rabblerouser
05-16-2004, 09:19 PM
Hi...
I'm trying to get a movie clip to go to a random frame upon loading onto the main timeline. I have a clip event attached to the MC that goes as follows:
onClipEvent (load) {
ranFrame = ["one", "two", "three", "four", "five"];
this(ranFrame[Math.floor(Math.random()*ranFrame.length)]);
}
It's not working but I think I'm close to figuring it out. Any ideas?
I'm trying to get a movie clip to go to a random frame upon loading onto the main timeline. I have a clip event attached to the MC that goes as follows:
onClipEvent (load) {
ranFrame = ["one", "two", "three", "four", "five"];
this(ranFrame[Math.floor(Math.random()*ranFrame.length)]);
}
It's not working but I think I'm close to figuring it out. Any ideas?