I am building a non-interactive animation based on slot machine reels which will be exported as a quicktime movie and burned to a DVD for playback.
To create the looping of the three reels, I’ve used the following script:
onClipEvent (load) {
looping.duplicateMovieClip("slots");
slots._y=looping._y+looping._height;
loopStarty=this._y
loopSpeed=30;
}
onClipEvent (enterFrame) {
if(_root.bg.loopStart) {
this._y-=loopSpeed;
if(this._y<=(loopStarty-looping._height)) {
this._y=loopStartx-loopSpeed;
}
}
}
However, I want to pause the looping at specified moments in order to match up the images (like winning on a slot machine). I’m assuming that there is a function in which I can say “Pause ‘slots’ after looping 1.3 times for 30 seconds” or “Pause ‘slots’ for 30 seconds after looping for 3 seconds”.
Again, there is no interactivity - this is just a looping animation that will run on a screen.
Thanks!