|
-
[F8] Pausing frames in a movie clip?
I've got a movie clip where I'm picking a random number and loading a corresponding image, and my ActionScript on the first frame of the movie clip is this-
startTime = getTimer();
this.onEnterFrame = function () {
currentTime = getTimer();
if(currentTime-startTime > 1000) {
var frontr:Number=random(44);
while(frontr == 0){
frontr=random(44);
}
this.loadMovie('http://www.tiffanydavisphotography.com/gallery/photo'+frontr+'.jpg');
}
}
It runs through there once, and loads an image, but I want it to keep loading images every "x" (or 1000) seconds. How do I keep it running?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|