Hello >
I am trying to make a slide show, which selects the next picture at random from an array.
Unfortunately, the image is undefined when traced…
Here is my code … Any help would be most appreciated!
var slides:Array =newArray(“image1.jpg”,“image2.jpg”,“image3.jpg”,“image4.jpg”,“image5.jpg”);
function show (){
var ran:Number = Math.random()*5;
var i:Number = Math.round(ran);
_root.movie_clip.loadMovie(slides*);
};
setInterval(show,5000);