I need help with a combo box please!

  • cnet
  • Born
  • Born
  • cnet
  • Posts: 1

Post 3+ Months Ago

Im trying to get a combo box working, so that when the user clicks on a selection, it will go t o a frame.

I used the following code:

myComboBox.change = function()
if (myComboBox.value == "Public Relations") {
gotoAndStop("PR");
} else if (myComboBox.value == "Unity") {
gotoAndStop("Unity");
} else if (myComboBox.value == "Finance/Fundraising") {
gotoAndStop("Finance");
} else if (myComboBox.value == "Community Service") {
gotoAndStop("CS");
} else if (myComboBox.value == "Talent Show") {
gotoAndStop("Talent");
}
};

(I got this from another site. Is there an easier way of doinng this?)

BTW, I get these errors:

Scene=Scene 1, Layer=Committees, Frame=12: Line 20: '{' expected
if (myComboBox.value == "Public Relations") {

Scene=Scene 1, Layer=Committees, Frame=12: Line 19: Statement must appear within on/onClipEvent handler
myComboBox.change = function()

_________

What I want is for the box to work (it's called committees which located in the folder on the timeline committees )

Also, in the committees folder are the other frames that I want the combo box to link to.

Any help would be greatly appreciated. Sorry for the long explanation.

PS: i can email you the .fla file for it to be easier to look at
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Travis Coats
  • Graduate
  • Graduate
  • Travis Coats
  • Posts: 107

Post 3+ Months Ago

Check out my solution to List navigation here at this link. Just change out the value parameter with selectedItem value etc.

http://www.ozzu.com/flash-forum/list-box-navigation-t80124.html

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 11 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.