Hi I am making a multiple choice quiz that has an array of movieclips question bars. I would like to call movieclips from the library. Its done. But what I want to add is to randomize the movieclips everytime I click the button. How can I do this in AS2?

questions1 = new Array();
questions1[0] = “Hexagon”;
questions1[1] = “Para”;

menu1.onRelease = function():Void
{
var randomSelection = Math.floor((Math.random() * questions1.length));
q_txt.text = questions1[randomSelection];
questions1.splice(randomSelection, 1);
}

This code function well if I display the array texts to the dynamic textfield…but I would like to randomize the movieclips and call it from the library everytime I click a button. Please Help.

Tell me if I am understanding this correctly. You have a bunch of movie clips in your library. When the button is clicked, you’d like to load a random movie clip from the library and display it on your stage. Is that accurate?

Cheers
Kirupa