I have this swf with three different movie clips that each load a random image. I have this code and it works when I just use the code for one movie clip. I fugure I’m doing something wrong with the code. Any suggestions???(also, I am controlling this swf with another—swf_01 has btns and when you rollover the btns swf_02 loads random images into the empty mc’s. The problem isn’t with the LocalConnection jazz (i think). I beleive it’s something with this code)
Here’s the code:
stop();
pic_arr = [“images2/comm_pic1”, “images2/comm_pic2”, “images2/comm_pic3”, “images2/comm_pic4”, “images2/comm_pic5”, “images2/comm_pic6”, “images2/comm_pic7”];
holder_mc.onEnterFrame = function() {
ranNum = Math.floor(Math.random()*pic_arr.length);
holder_mc.loadMovie(pic_arr[ranNum]+".jpg");
};
pic_arr = [“images2/comm_pic1”, “images2/comm_pic2”, “images2/comm_pic3”, “images2/comm_pic4”, “images2/comm_pic5”, “images2/comm_pic6”, “images2/comm_pic7”];
holder_mc2.onEnterFrame = function() {
ranNum = Math.floor(Math.random()*pic_arr.length);
holder_mc.loadMovie(pic_arr[ranNum]+".jpg");
};
pic_arr = [“images2/comm_pic1”, “images2/comm_pic2”, “images2/comm_pic3”, “images2/comm_pic4”, “images2/comm_pic5”, “images2/comm_pic6”, “images2/comm_pic7”];
holder_mc3.onEnterFrame = function() {
ranNum = Math.floor(Math.random()*pic_arr.length);
holder_mc.loadMovie(pic_arr[ranNum]+".jpg");
};
thanks,
hutch