I need my script to randomly choose between the 3 containers on the stage. Here’s what I have so far, but I’m not sure what to put in place of the “box” section of the script.
var items:Array = new Array("artExchange", "austinVentures", "axcelis");
var containers:Array = new Array("1", "2", "3");
function randomImage() {
nr = Math.floor(Math.random()*items.length);
ct = Math.floor(Math.random()*containers.length);
box.attachMovie(items[nr], "thang", 1);
}
Where I’m confused is how to change my target container which is currently “box”, to the call the random variable “ct” instead.
box.attachMovie(items[nr], "thang", 1);