I’ve been fighting this for two days now on this, my first flash CS4 project with AS 3.0. I’ve found a lot of things on the net, but nothing that resolved my issue.
I have a series of buttons on my stage that get instatiated on the first frame of the timeline. I put all of my actionscript code on the first frame as well on a separate actions frame. So far, all is well. Each time I click one of the 5 buttons, a panel appears on stage with a description for each button. Each of these descriptive panels appears on a different frame, so the buttons essentially gotoAndPlay a named frame and then stop.
One of my panels includes a button that isn’t initiated until the panel appears (lets say that it happens on frame 10). This button isn’t instatiated until Frame10 so I put the ActionScript code on the Actions Layer on Frame10. This special button on frame 10 simply sends another gotoAndPlay and the user jumps to Frame20 to watch a movie clip. On Frame20 there is a button to return back to frame 10 (a home button), so that you arrive back at the panel on Frame10.
From this point, none of the 5 initial buttons instatiated in Frame1 work anymore. The button that was instatiated in Frame10 is still clickable to go back to Frame20, but the others simply don’t work. The button actions (DOWN/OVER/HIT) still display that I’m clicking the buttons created on Frame1, but they don’t gotoAndPlay anything.
I changed the target on Frame20 to instead go back to Frame1 when the user clicks the home button, and it works great, as it appears as though the actionscript gets reloaded/refreshed (I’m sure a bad choice of words).
It seems as if I navigate with buttons that aren’t instatiated on Frame1 destroys the ability to use actionscript and buttons that WERE instatiated on Frame1.
I’m sure there’s a logical explanation for this, but I’ll be darned if I can figure out what it is.
Thank You!
Pete