Menu
x = Math.ceil(Math.random()*9);
gotoAndplay(x);
This is a script I got for a flash project! what it does is randomly go to a frame!
9 is the number of frames but I want it to not rely on the number 9 I want it to just go random from frame to frame and only the frames that are filled no number needed(not blank frames only the ones I got artwork on!)So every time I add a new frame I haven’t got to modify the number *9 to ten or 11
in the end if i have a thousand frames when I add frame 1001 I haven’t got to modify 1001 frames!please help that is too many frames to be modifying action script!