View Single Post

  #2 (permalink)  
Old 23-08-08, 09:02
Onsitus's Avatar
Onsitus Onsitus is offline
CSS.FlepStudio.org
 
Join Date: Jul 2007
Location: Nettuno Beach
Posts: 1,066
Rep Power: 3
Onsitus is on a distinguished road
Re: Help with Combo box

Quote:
Originally Posted by oliveros_daryl View Post
I need to make a combo box so that when u select one of the labels it takes you to other frame
Hi,

you need to add a listener to your combo box and from there call the frame label with the same name as the value choosen

Example:

Code:
var myListener:Object=new Object();  // a new listener
cb_name.addEventListener("change", myListener);  //add listener to combobox
myListener.change=function(){  //function called
    _root.gotoAndStop(cb_name.value);  //go to the frame label based on the value of the item of the cb.  Change the _root part as needed
}
Reply With Quote