Re: [Flashcoders] x, y coordinates when using Mouse Listener object arenot giving correct output

2006-05-11 Thread Vivek lakhanpal

Hi Jim,

I have tried this problem at 2-3 other places and at last it has been
confirmed as some sort of bug in Flash. we have got a way out of the
problem. You can follow the following thread:

http://www.actionscript.org/forums/showthread.php3?p=484976posted=1#post484976

Thanks,
Vivek
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] x, y coordinates when using Mouse Listener object arenot giving correct output

2006-05-03 Thread Vivek lakhanpal

Hi Jim,

Thanks for looking into the problem. It certainly seems a bug to me. For all
other who might have not been able to replicate this bug on their machine
here are the steps you can try and then check.
==
1. Left click on stage it will show x,y in trace window.
2. Without moving mouse do right click at same place.
3. Now move mouse to some other place (make sure your right click menu is
showing up on stage) in the file and do left click there and and the result
i got was the last x,y coordinates.which i got after doing action 1.
==
The environment i used is authoring environment Flash8.
I am not getting this problem when i test in Firefox with player 8 or
8.5but it's there if i check in IE with flash player
8.0  8.5.


Thanks,
vivek
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] x, y coordinates when using Mouse Listener object arenot giving correct output

2006-05-02 Thread Jim Robson
Vivek,

It seems to be a bug in certain versions of the player. I dragged a TextArea
component onto the stage, named it mouseText, and modified the code as
shown below. When I published the movie and opened the HTML container in
Firefox, then it worked correctly. However, the error persists in IE. (I'm
running Flash 8 authoring tool, Flash Player 8.5, and the latest versions of
both browsers on Win XP Pro.)

/*/
/ Modified code

var mouseListener:Object = new Object();

mouseListener.onMouseDown = function() {
trace(mouseDown x:  + _level0._xmouse);
trace(mouseDown y:  + _level0._ymouse);
mouseText.text += mouseDown x:  + _level0._xmouse + \n;
mouseText.text += mouseDown y:  + _level0._ymouse + \n;
 updateAfterEvent();
};
mouseListener.onMouseUp = function() {
trace(mouseUp x:  + _level0._xmouse);
trace(mouseUp y:  + _level0._ymouse);
mouseText.text += mouseUp x:  + _level0._xmouse + \n;
mouseText.text += mouseUp y:  + _level0._ymouse + \n;
updateAfterEvent();
};

Mouse.addListener(mouseListener); 

//

Can anyone shed any more light on this? Are we just missing something, or is
this a bug?

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vivek
lakhanpal
Sent: Tuesday, May 02, 2006 6:31 AM
To: Flashcoders mailing list
Subject: [Flashcoders] x, y coordinates when using Mouse Listener object
arenot giving correct output

Hi All,

I would like to get mouse coordinates i.e. xmouse  ymouse when user's click
in my flash file and I am using mouse listener for this.

The problem i encountered is as follow

I did left click on stage and got some x, y coordinates then without moving
my mouse i did right click at same place.
Now i moved my mouse to some other place in the file and did left click
there and and i got last x,y coordinates.
Which is wrong output.

Here is the code i am using in my flash file.
//
// Create a mouse listener object
var mouseListener:Object = new Object();

mouseListener.onMouseDown = function() {
trace(mouseDown  + _level0._xmouse);
trace(mouseDown  + _level0._ymouse);
 updateAfterEvent();
};
mouseListener.onMouseUp = function() {
trace(mouseUp  + _level0._xmouse);
trace(mouseUp  + _level0._ymouse);
updateAfterEvent();
};

Mouse.addListener(mouseListener);

//

Please suggest me some solution to this problem.


Thanks,
Vivek
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com