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") {
} else if (myComboBox.value == "Unity") {
} else if (myComboBox.value == "Finance/Fundraising") {
} else if (myComboBox.value == "Community Service") {
} else if (myComboBox.value == "Talent Show") {

(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
  • 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.


Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 6 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-2017. Ozzu® is a registered trademark of Unmelted, LLC.