what actionscript would I use if my movie has many different
scenes. I am about 3 scenes into my movie and when a certain frame
is entered I want Scene 1 to go to a certain frame. I cant seem to
get the actionscript right.
onEnterFrame is misleadingly named. It actually is an event
that occurs repeatedly at the rate of the FPS. So, if you have 12
frames per second, the onEnterFrame should be roughly called 12
I guess putting code directly on a frame is what you want.
Click on the frame that you want to leave from. Open the Actions
Panel. Type in:
where FRAMENUMBER is the frame to go to. However, if you are
using multiple scenes, it might be easier to give your frame, what
is called a "Frame Label". Click on the destination frame. In the
properties Panel, type in redirectFrame for the <Frame
Label>. Then, go back to the other frame where the code was to
be applied, and use:
And of course if you want the movie to PLAY from the redirect
frame, use gotoAndPlay instead of gotoAndStop.