Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Back Button Problem, Please Check Out My FLA!

Status
Not open for further replies.

theKeyper

Technical User
Jun 11, 2003
79
AU
Hi Old! (and anyone else who would care to lend some advice)
You were helping me with this problem a little while back but the thread got cold or something. Baisically, you gave me the code for a back button to previous scenes in Flash, however, I can't get this code to work on a drop down menu. I made a sample FLA to show you. It's Flash MX and in a .zip file (winzip).
The buttons on the main timeline work just fine. The first drop-down menu uses the same code as the buttons on the main timeline and does absoulutly nothing. The alternate drop-down uses just a standard gotoAndPlay code but the back button obviously dosn't work. Thanks alot for checking it out for me.
-Keyper
 
Since the history array is defined on the _root level, you have to allways refer to it as referenced to _root...

Thus in your dropdown...

on (release) {
_root.arrayindex += 1;
_root.history[_root.arrayindex] = "five";
_root.gotoAndPlay(_root.history[_root.arrayindex]);
}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top