This content has been marked as final. Show 4 replies
make some code that picks a random number between 0 and 8. create an array of the names of your swf files. make the random number pick the corresponding swf in the array to load.
Thanks but I am restricted in that I have to keep this in 1 .swf. It has multiple scenes. Anyway you know of to make the 1st scene load the next randomly?
Upon compile, all scenes get made into one long timeline. So, lets say scene 1 ends at frame 10. the beginning of scene 2 will be frame 11. Yes, use a random function to choose a random number within an array, and send it to that frame.
when I try this code it doesn't work...any ideas
scenearray = ["electrical", "appliance"];
randomidx = random(labelarray.length);