How do I need to change the script to be able to have few combox on the same frame?
I have 3 comboBox on the same frame ( box, box_1, box_2)
This is the script that used for one combobox (gave by Flex) :
function comboBox() {
where = box.getValue();
_root.musicroom.gotoAndStop(where);
note: My comboBox are linked to frames labels
Thank’s in advance for your help.
Corinne
system
2
if you have more than one combo box, make sure you name your instances and your code needs to reflect those names…
function comboBox() {
where = box.getValue();//here you can say box1 or box2 or box3
_root.musicroom.gotoAndStop(where);
system
3
so how do you writte the correct script for that?
system
4
Do you want all the combobox to do the same thing?
And one thing:
function comboBox(c) {
where = c.getValue();
_root.musicroom.gotoAndStop(where);
is better.
pom :asian:
system
5
many ways in Flash… here’s one.
create three different onChange handlers one for each combo
onChange1, onChange2, onChange3
or,
give them all one OnChange handler
onChange=function(fcombobox){
value1=box.getselecteditem().data;
value2=box_2.getselecteditem().data;
value3=box_3.getselecteditem().data;
}
etc…
system
6
thank’s guys, but I still didn’t make it.
would it be possible to send me a fla or the complete script to make this work?
-
combobox name : box1
label:musicgroup1, song1.1,song1.2…
data:, song1.2, song2.2… (framelabel on my timeline)
-
combobox name : box2
label:musicgroup2, song2.1,song2.2…
data:, song2.1, song2.2… (framelabel on my timeline)
3.combobox name : box3
label:musicgroup3, song3.1,song3.2…
data:, song3.1, song3.2… (framelabel on my timeline)
thank’s again.
note: great line by the way, loved the movie!
(My name is Inigo Montoya. You killed my father. Prepare to Die!)
Corinne