I think what I am looking for is a random action script. I want to make a swf (mainmovie.swf) that would call up random swfs. What would be ideal is that every time the person goes to the site a different file is called up out of the files I created. So what I have done is put my (mainmovie.swf) into a folder with all of the other swf files I want to be random. I need to know what the action might look like. It does not need to load to any specific level or anything it could even just replace the original move(mainmovie.swf) what ever is the easiest. Thanks for the help
You could use an array to store the movie names and pick a random one:[AS]movies_array = [“profile.swf”, “gallery.swf”, “photos.swf”, “songs.swf”];
loadMovieNum(movies_array[Math.floor(Math.random()*movies_array.length)], 0);[/AS]
would it be best if these actions are stored in the first frame of my main movie. to me it looks like the main movie will just hold this actionScript in the first frame of _root and I dont even have to place a blank MC on the time line of the main movie does this seem right? thanks so much for your help.