Ok this is REALLY killing me!!! PLZ HELP!
I'm using Flash MX....Ok so this is a simple example of what I'm trying to do...I have my main time line and I added a circle...I converted the circle to a movie clip...I double clicked it. In the movie clip I double clicked the same circle and converted it into a button....Ok so in the movie clip I click actions for the button that i've created and did a on release goto and stop on frame one of scene two script....I added a scene 2 to the file with a stop action in frame one....when I load up the movie and click the button it DOESN'T goto scene 2. I believe it's because I don't know how to script nested things can someone PLEEEASE help me? What is the syntax for nexted things like this????
There might still be a few gaps...
OK. You are new and I'm new too. Been new for far too long, so I'll spell it out for you.
- Name level one actions.
- Put a stop on the fames needing a stop.
- Name level two "stops"
- Put your content on this layer, and name the frame (just in case)
- Name level three "button"
- Place your button on the first frame of the button layer.
- Click on the button (to select), select Modify>convert to symbol.
- With the button still selected, open the properties window, type myBut (or whatever makes sense to you) as an instance name. (if you see a red flag on the frame, that means you just named the frame instead of the instance)
- Extend the button frame to the last frame of the movie. (Makes it available to every frame)
- Add rag85's code to frame one row one of this movie (make a habit of giving actions a row of their own)
- Control>Test Movie
If your timeline is sequential, you could use:
Code:
buttonInstanceName.onRelease=function() {
nextFrame();
}
If your timeline is not sequential, you want to place a new instance of your button on each stop frame with:
Code:
UniqueButtonInstanceNameForThisInstance.onRelease=function() {
gotoAndStop("theNameYouGavetoTheFrame");
}
With a stop(); on the last frame, hitting the button with nextFrame(); would take the user back to frame 1.
Hope this helps!