This is a discussion on "tracking mouse by _xmouse, _ymouse" within the Flash & Multimedia Forum section. This forum, and the thread "tracking mouse by _xmouse, _ymouse are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
tracking mouse by _xmouse, _ymouse
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
tracking mouse by _xmouse, _ymouse
Hi all again..
need a/script help like before! I wanted to track my mouse in a flash movie and display it into a dynamic textbox but the textbox does not show anything. I debugged the code and nothing seems wrong. On the root timeline, this is my code :
updateAfterEvent(); means whenever the mouse moves, the variable value would change and Math.round means round it to a round number,not a floating point or fraction. I also tried Math.floor but didn't work either. that's about the code and info I have, I don't see why things got wrong. to sum it up : xPos and yPos are variables One dynamic textfield assigned to xPos and one assigned value of yPos These two textfields are in a movie clip called inputs_mc Code shown above is on movie main timeline ( the scene or root timeline or whatever you call it ) |
|
|
|
|||
|
If that code is on the main timeline then you are approaching this wrong.
onMouseMove applies to a movieclip, not the timeline. So you would have to put this code onto a movieclip for the code you have to work. However, there is a better way to do this.
This will go anywhere and always work. |
|
|||
|
|
|
|||
|
ok.. sirkent answered me over msn..
Mouse.addListener(someListener); means you add a Listener which was created just now ( which goes by the name of someListener ) to Mouse, a built-in object. |
![]() |
| Tags |
| tracking, mouse, _xmouse, _ymouse |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Looking for a bug tracking system | hermanjoe | ASP.NET Forum | 1 | Dec 8th, 2007 08:13 |
| tracking referrals? | Paulos77 | Starting Out | 4 | Apr 8th, 2007 06:32 |
| Download tracking | Ross | Web Page Design | 3 | Feb 28th, 2007 14:11 |
| Tracking program | SDUK | PHP Forum | 5 | Sep 16th, 2006 20:22 |
| mouse tracking in firefox (mozilla5) | Psiryan | JavaScript Forum | 2 | Aug 10th, 2006 07:49 |