# Few Combobox on the same frame?

**URL:** <https://forum.kirupa.com/t/few-combobox-on-the-same-frame/6427>\
**Category:** Uncategorized\
**Created:** [October 7, 2002, 10:47am UTC](https://forum.kirupa.com/t/few-combobox-on-the-same-frame/6427 "2002-10-07T10:47:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![corinne](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@corinne](https://forum.kirupa.com/u/corinne)\
**Post date:** [October 7, 2002, 10:47am UTC](https://forum.kirupa.com/t/few-combobox-on-the-same-frame/6427/1 "2002-10-07T10:47:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 7, 2002, 12:36pm UTC](https://forum.kirupa.com/t/few-combobox-on-the-same-frame/6427/2 "2002-10-07T12:36:39Z")

</div>

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);

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 7, 2002, 12:57pm UTC](https://forum.kirupa.com/t/few-combobox-on-the-same-frame/6427/3 "2002-10-07T12:57:35Z")

</div>

so how do you writte the correct script for that?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 7, 2002, 1:52pm UTC](https://forum.kirupa.com/t/few-combobox-on-the-same-frame/6427/4 "2002-10-07T13:52:19Z")

</div>

Do you want all the combobox to do the same thing?

And one thing:

```auto
function comboBox(c) {
where = c.getValue();
_root.musicroom.gotoAndStop(where);

```

is better.

pom :asian:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 7, 2002, 2:05pm UTC](https://forum.kirupa.com/t/few-combobox-on-the-same-frame/6427/5 "2002-10-07T14:05:02Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 8, 2002, 1:16pm UTC](https://forum.kirupa.com/t/few-combobox-on-the-same-frame/6427/6 "2002-10-08T13:16:39Z")

</div>

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?

1. combobox name : box1  
label:musicgroup1, song1.1,song1.2…  
data:, song1.2, song2.2… (framelabel on my timeline)

2. 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
