This content has been marked as final. Show 5 replies
your use of the -- and ++ operators is incorrect and causing your problem. instead of:
Thanks kglad...that did the job!
Now for another question...
How would I get the particle to pause for like a second before beginning its movement?
The way it works now it starts moving as soon as it touches the ruler...
you can use setInterval() to delay execution of any function. so, if you place your particle movement in a function can call that function with a delay length you want.
you'll clear that interval the first time the function is called and then use another setInterval() to repeatedly execute the particle movement. you'll clear that 2nd interval when the particles have left the demonstration area or have collided.
I tried the setInterval but it isn't calling the function (Move) for some reason...I put a trace in the function just to make sure...I also know that I haven't put the 2nd interval in yet to keep calling the function...if I put the function (Move) outside the ParticlePositive1_mc.onRelease then it works...and there's no script errors(I know I'm missing some brackets but it's just cause I didn't show all the code)....