Question
Random Delay
Does anyone know an efficient way to play movie clips at
random(different) intervals? I have tried using "if - else if" and
the random function to go to different frames in the movie, but
this produced unexpected results.
Here is one of my attempts:
var jump:Number;
jump = random(2);
trace (jump);
if (jumpr = 0) {gotoAndPlay(1);
}
else if (jump = 1) {gotoAndPlay(60);
}
Even though I can see the different numbers are actually generated (by way of the "trace") I suspect the movie clip is alway playing from line 60. I am new to scripting and this puzzles me.
Help much appreciated.
Here is one of my attempts:
var jump:Number;
jump = random(2);
trace (jump);
if (jumpr = 0) {gotoAndPlay(1);
}
else if (jump = 1) {gotoAndPlay(60);
}
Even though I can see the different numbers are actually generated (by way of the "trace") I suspect the movie clip is alway playing from line 60. I am new to scripting and this puzzles me.
Help much appreciated.