# Here's a doozy for some genius out there

**URL:** <https://forum.kirupa.com/t/heres-a-doozy-for-some-genius-out-there/6486>\
**Category:** Uncategorized\
**Created:** [October 8, 2002, 7:04pm UTC](https://forum.kirupa.com/t/heres-a-doozy-for-some-genius-out-there/6486 "2002-10-08T19:04:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![shuga](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@shuga](https://forum.kirupa.com/u/shuga)\
**Post date:** [October 8, 2002, 7:04pm UTC](https://forum.kirupa.com/t/heres-a-doozy-for-some-genius-out-there/6486/1 "2002-10-08T19:04:23Z")

</div>

k … here’s the deal

i have a combobox in my movie … actually two … but the point remains the same.

i have data in them and i have set the click handler to “selected” but i don’t know where to go from there.

its been suggested to me that i use an array to define what i want each selection to do ( but i don’t know how to do that) it’s also been suggested that i use a long string of if-then statements. i understand how to write an if-then statement in flash so i think i can do this one … i just don’t understand how to refer to the objects in the combobox.

any help on this would be greatly appreciated 🙂  
thanks in advance

---

<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, 10:18pm UTC](https://forum.kirupa.com/t/heres-a-doozy-for-some-genius-out-there/6486/2 "2002-10-08T22:18:17Z")

</div>

Try the tutes. There’s one about a listbox, pretty similar, and one more general about components.

pom :cyclops:

---

<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 9, 2002, 1:41am UTC](https://forum.kirupa.com/t/heres-a-doozy-for-some-genius-out-there/6486/3 "2002-10-09T01:41:42Z")

</div>

try this thread at flashkit. it seems to be what you are looking for

[link](http://www.flashkit.com/board/showthread.php?threadid=380744)

any probs with the link just mail me and i will post the solution they gave (dont understand it but you can have it lolol)

---

<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 10, 2002, 5:20pm UTC](https://forum.kirupa.com/t/heres-a-doozy-for-some-genius-out-there/6486/4 "2002-10-10T17:20:36Z")

</div>

pom … i checked through the tutes and found what you were talking about … but i really am too dumb apparently to figure out how to apply it to my flash movie.\

gary\_bydesign: i would appreciate you emailing to me or posting that source here so i can hopefully use it … since the link didn’t work 🙂

thanks very much

---

<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 10, 2002, 5:50pm UTC](https://forum.kirupa.com/t/heres-a-doozy-for-some-genius-out-there/6486/5 "2002-10-10T17:50:33Z")

</div>

```auto

selected=function(fcombobox){
switch(fcombobox.getselecteditem().label){

case Kirupa:

trace("you picked Kirupa, awesome source of tutorials and answers");
break;

case Flashkit:

trace("you picked Flashkit, a good source of fla's, loops, backgrounds");
break;

case Phong:

trace("you picked Phong, a great site for Photoshop tutorials");
break;

```

also, do a search for OnChange and you will find other examples I’ve writton on these forums. Hope it helps.

---

<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 10, 2002, 8:13pm UTC](https://forum.kirupa.com/t/heres-a-doozy-for-some-genius-out-there/6486/6 "2002-10-10T20:13:40Z")

</div>

Iammontoya: don’t suppose there’s anyway I could get you to post a source file using the combo box and having it gotoAndStop on a particular frame of an mc depending on which button you select.

i know thats a lot to ask … but i really don’t understand what to do with that code and i think maybe if i saw an example of it working … i’d be able to figure it out.

thank you so much in advance.

p.s. i searched for OnChange and kirupa returned 0 results ☹

---

<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 10, 2002, 8:42pm UTC](https://forum.kirupa.com/t/heres-a-doozy-for-some-genius-out-there/6486/7 "2002-10-10T20:42:57Z")

</div>

There’s a working example in the tute… 😛

Except it’s a listbox, but it works EXACTLY the same.

pom :cyclops:

---

<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 11, 2002, 2:17am UTC](https://forum.kirupa.com/t/heres-a-doozy-for-some-genius-out-there/6486/8 "2002-10-11T02:17:01Z")

</div>

You must have used the wrong search. You have to use the grey search button at the top of this page. I just tried it and it returned 8 results. More than enough to explain what you’re trying to accomplish.

---

<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 11, 2002, 3:07am UTC](https://forum.kirupa.com/t/heres-a-doozy-for-some-genius-out-there/6486/9 "2002-10-11T03:07:46Z")

</div>

sorry it took so long. try typing the url yourself as it worked fine for me

[http://www.flashkit.com/board/showthread.php?threadid=380744](http://www.flashkit.com/board/showthread.php?threadid=380744)

this is the fla they were talking about though
