Hi all,
I used the tutorial in this site for the “load random movieclip”
The code looks like this:
filename = [“Image00.swf”, “Image00.swf”, “Image00.swf”, “Image00.swf”];
path = “swf_files/”;
i = filename.length;
k = Math.floor(Math.random()*i);
loadMovie(path+filename[k], movieTarget);
It works prefectly fine, but now my question is, I want to be able to unload the randomly loaded swf. I try to make a button and assigned the unloadMovie script to it
and I’ve this:
on(release){
unloadMovie(movieTarget);
}
but it doesn’t work, does anyone have any ideas?
I tried to put “movieTarget” or even ‘movieTarget’ but still doesn’t work. I would need help for this.
Thanks in advance