View Full Version : comboBox Text
HeadlessMonster
01-11-2007, 06:15 PM
How would I change the text that appears in the comboBox?
Also, I'm trying to make the comboBox, when selected, go to another scene. I can make it load another file and go to another link...but I would just like to go to another scene.
Thanks!
ryancbutler
01-11-2007, 07:50 PM
I'm assuming you're working with the drop down list. When you select the combo box, there's a label parameter which accepts an array of text values.
I've never navigated to scenes but here's the code used to navigate and load a new file based off of user selection of a combo box:
function setFiles(evt:Object){
if (evt.target.selectedIndex > 0) {
_parent.container_mc.loadMovie(evt.target.selected Item.data);
}
}
mylistmc.mylist.addEventListener("change",setFiles);
Inside the condition, I load the selected file into a container movie clip. Should be something similar for scenes.
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.