Strange Script behavior on button for Timeline navigation: first run is different from second run
I have a banner that needs a Disclaimer text, triggered by a button.
The Disclaimer text appears on a dark overlay that fades in (a 25 frame movie clip)
Both frame 1 and frame 25 have this.stop(); on the timeline.
First approach:
button on Main Timeline triggers Disclaimer Movieclip to this.gotoAndPlay (2);
Didn't work; can't find how to target the Disclaimer Movieclip (this used to be Tell Target in the old Flash)
Second approach:
button on first frame of Disclaimer Movieclip does this.gotoAndPlay (2);
Back button on last frame of Disclaimer Movieclip does this.gotoAndStop (1);
Doesn’t work; the button on last frame does send the Movieclip back to frame 1, but now the button of frame 1 just doesn’t appear
Third approach:
this.stop(); is moved to frame 2
button on second frame of Disclaimer Movieclip does this.gotoAndPlay (3);
Back button on last frame of Disclaimer Movieclip does this.gotoAndPlay (1);
Strangest thing: when I run this third approach, all goes well: the button on frame 2 plays the Movieclip; dark background fades in / text appears / Back button appears (that sends the Movieclip, when clicked, back to frame 1 – movie plays to frame 2 and stops, huzzah)
And then I click the Disclaimer button again. Everything goes well until we get the disclaimer text and the Back button. When I click that, the banner behaves differently. Movieclip goes back to frame 1 and just plays the whole Movieclip without stopping, through frame 25 where again I have the Disclaimer text and the Back button. So it runs in one way the first time, and in a different way every subsequent run.
What do I do?
