I have a swf file that i want’it to load diffrent pictures on page refresh, a random picture. How is this possibble, i’m kinda new in actionScript and i will realy apreciate if you could help me a bit!
just think that you have 3 pictures
put this on the first frame of the main timeline,
pictures = new Array(“pic1.jpg”, “pic2.jpg”,“pic3.jpg”); //you can put any no of pictures here
no_of_pictures = pictures.length;
random_picture_number = Math.ceil(Math.Random())*no_of_pictures ; //generate random picture number
_root.loadMovie(pictures[random_picture_number],2);