! Whitey !
Baseband Member
- Messages
- 23
Hi,
Can anyone help me?!
I would like to get the coordinates of the mouse movements into flash. The only way I can think of doing it is though javascript, then into the FlashVar param on the webpage and into Flash.
Sounds easy but I can't do it!!!
My flash movie is only 50px x 50px, so doing it in Flash isnt ok, because I want the coordinates of the mouse in the whole page.
I am not great at programming in either languages... yet!
So far I can set a variable in javascript and pass it though FlashVar into flash so that works fine, its just getting the coordinates values in!
This is my FlashVars code so far, but it doesnt work!
Any help is much appreciated!
Thank you.
Can anyone help me?!
I would like to get the coordinates of the mouse movements into flash. The only way I can think of doing it is though javascript, then into the FlashVar param on the webpage and into Flash.
Sounds easy but I can't do it!!!
My flash movie is only 50px x 50px, so doing it in Flash isnt ok, because I want the coordinates of the mouse in the whole page.
I am not great at programming in either languages... yet!
So far I can set a variable in javascript and pass it though FlashVar into flash so that works fine, its just getting the coordinates values in!
This is my FlashVars code so far, but it doesnt work!
Code:
document.write("<param name=\"FlashVars\" value=mouseX=" + test1 + "&mouseY=" + test2 +" />");
Any help is much appreciated!
Thank you.