petersego
asked on
how do I randomly multiply movieclip-function
I have a small movieclip that I move from one place to another with the tween class. But I want the movieclip-function - see code below - to multiply into a flow, that follow each other constantly. Like bloodcells. Preferably randomnly, but still along the same line.
import mx.transitions.Tween;
import mx.transitions.easing.Regular;
attachMovie("bloodcell","bloodcell_mc",10);
moveBlood = function(){
new mx.transitions.Tween(bloodcell_mc, "_x", Regular.easeIn, 30, 500, 1, true);
new mx.transitions.Tween(bloodcell_mc, "_y", Regular.easeIn, 30, 200, 1, true);
}
ASKER
Thanks, excellent.
But is there a way to make the flow continue endlessly. So it doesnt look as if it ends before it restarts.
But is there a way to make the flow continue endlessly. So it doesnt look as if it ends before it restarts.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you very much, simply perfect.
just replace your existing code with the following:
Open in new window