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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ComboBox navigating between scenes

Status
Not open for further replies.

globetrotter84

Technical User
Sep 5, 2004
8
CA
I'm relatively new to flash...

I have built a photogallery with 4 different galleries which are on 4 different scenes in my movie (flash mx)

To navagate the scenes I'm using a combobox component with a gotoAndPlay action.

I have set up actionscript to retrieve the name of the scene in the "data" that matches the "label" of the combobox using the change handler...however, when I chose one of the scenes it only moves forward one scene at a time, not matching the label I've chosen.

Each Scene has this actionscript in the first frame.

stop();
function changescene() {
gotoAndPlay("galleries.getSelectedItem().data", "1");
}

('galleries' is the instance name of my combobox, changescene is the instance name of my change handler)

Can anyone offer some advice?

Thank you :)
 
Targeting the labeled frame worked great.
Through your .fla I also realized I had another error...each scene had the 'Change Scene' actionscript and it was messing stuff up. So I deleted it on scenes 2-4 and it works brilliantly now.

Much gratitude [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top