Play random movie clip

i have a series of movie clip instances (of the same movie) on the stage all numbered 0 through 15

its a simple experiment but i can’t get it to work

heres what i want to do

i want


to work

i have the actionscript on a clip called controller that is on the main stage.

i want it to choose a random number between 0 and 15 and then play that number’s corresponding instance of the movieclip

this is possible i think … i’m sure i’m just missing something simple

thanks in advance for the help.

[COLOR=blue]onClipEvent (enterFrame) {
i = random(15);

When referring to variables that are integers (numbers) lose the quotes.

and use _root because the movie clips are not sub clips of your controller clip.

it works … thank you