lambie
March 31st, 2008, 12:08 AM
I am currently reading the following tutorial: http://www.kirupa.com/developer/actionscript/random_motion.htm
And I come across few questions.
1. How can I adjust the boundaries for the moving dots? To be exact, the area I am working with is 600 x 900. And on the height, the top 120 px, I have buttons and such, so I don't want the dot to move into that area. So far, I tried...
width = random(900);
height = random(480)+120;
However that doesn't solve the problem...
2. How can I pause the movement of a dot when the mouse is rollover?
Thank you for your help and attention.
And I come across few questions.
1. How can I adjust the boundaries for the moving dots? To be exact, the area I am working with is 600 x 900. And on the height, the top 120 px, I have buttons and such, so I don't want the dot to move into that area. So far, I tried...
width = random(900);
height = random(480)+120;
However that doesn't solve the problem...
2. How can I pause the movement of a dot when the mouse is rollover?
Thank you for your help and attention.