Hi
I have created a flash movie with a movieclip (content_mc) with a number of empty moviclips sitting along its timeline (red_mc, green_mc etc)
I am trying to randomaly load images and then play the movie so tha the images play as an animation. The images load into the individual movieclips but then as you advance to the next movieclip the previous one vanishes. so the animation dosent work beccause you can only see the last loaded image
Is it my lack of understanding of how moviclips work that is causing the problem. Here is the code I am using
var i = 0;
red_btn.onRelease = function() {
filename = [“Tone0001.jpg”, “Tone0002.jpg”, “Tone0003.jpg”, “Tone0004.jpg”, “Tone0005.jpg”, “Tone0006.jpg”, “Tone0007.jpg”, “Tone0008.jpg”, “Tone0009.jpg”];
path = “Theame1/”;
f = filename.length;
k = Math.floor(Math.random()*f);
i++;
if (i == 1) {
_root.content_mc.nextFrame();
loadMovie(path+filename[k], _root.content_mc.red_mc);
}
if (i == 2) {
_root.content_mc.nextFrame();
loadMovie(path+filename[k], _root.content_mc.green_mc);
}
trace(i);
};