Hi there...pretty new to flash and would like a simple question answering if poss...
Basically I have a small flash animation with 15 images, but I would like them randomized (IE: The first doesn,t always come first, the third doesn't always come third, etc)
put the animation into a movieClip, and then give that movieClip on the stage an instance name
(you do that in the property bar of flash- the same panel where you set your line style, font style, x/y positions ect. it the upper left input field I guess)
so for example if you gave the instance name "myMc" you can write the following code in the first frame of your flash movie on the stage (thus the main timeline, not the movieClip one!)
wich should stop on each frame (fps) of your movie the MovieClip with the instance name "myMc" to a random frame of it´s possible length.
hope that helps
yes I think so,- basicly your movie with it´s frames (you say images but I think you mean frames) is inside a movieClip. That is because with Actionscript it´s the best way accessing Animations in MovieClips.
give it a shot
I realize this thread is old but it's the best code I've been able to find to get a series of images to display randomly. However, there's one problem. They display randomly fine except for the first frame -- it is always first. I tried having the first frame empty, and then it worked except that there was a delay (as there should be) before subsequent random frames loaded. Any suggestions? (completely different code is okay too!) I'm using AS2.