kwanie
October 26th, 2002, 02:31 PM
hi! i'm pretty new at actionscript. struggling actually... so thanks for all your help in advance :)
I need help with a time function with an onMouseMove function.
I want to be able to do a couple of things:
The movie clip must be globally be able to calculate,
if the distance from _x position of the mouse to another _x position of the mouse is say (for example) less than 20 pixels, and the time to achieve less than 20 pixels is less than 2 second,
then go to and play an external movie clip (which must be absolutely positioned at a specific cooridinates.
I am planning to have like 3 similar movie clips detecting different distances calculations and time, so that each will go and play different movie clips for different specifications.
I dont know where getTimer() gets into this but i have a very deep feeling it does :cyclops:
I was browsing:
http://www.kirupaforum.com/showthread.php?threadid=6355&perpage=15&highlight=mouse%20move&pagenumber=2
It is a similar concept i think but mine requires calcuation of pixels and the positioning parts.
I'm pretty distressed! I hope I'm pretty thanks! Thanks for your help!
I need help with a time function with an onMouseMove function.
I want to be able to do a couple of things:
The movie clip must be globally be able to calculate,
if the distance from _x position of the mouse to another _x position of the mouse is say (for example) less than 20 pixels, and the time to achieve less than 20 pixels is less than 2 second,
then go to and play an external movie clip (which must be absolutely positioned at a specific cooridinates.
I am planning to have like 3 similar movie clips detecting different distances calculations and time, so that each will go and play different movie clips for different specifications.
I dont know where getTimer() gets into this but i have a very deep feeling it does :cyclops:
I was browsing:
http://www.kirupaforum.com/showthread.php?threadid=6355&perpage=15&highlight=mouse%20move&pagenumber=2
It is a similar concept i think but mine requires calcuation of pixels and the positioning parts.
I'm pretty distressed! I hope I'm pretty thanks! Thanks for your help!