# K ... got the combobox ... one lil bug in it :)

**URL:** <https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597>\
**Category:** Uncategorized\
**Created:** [October 11, 2002, 4:48pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597 "2002-10-11T16:48:19Z")\
**Posts on this page:** 20\
**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 11, 2002, 4:48pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/1 "2002-10-11T16:48:19Z")

</div>

if you could help me figure this out … i’d appreciate it.

here’s the script i have for one of the comboboxes on the main timeline of the movie

```auto

onChange=function(fcombobox){
_root.mapview.gotoAndStop(divisions.getselecteditem().data);
}

```

i have data entered in the combobox as just a number … so it will gotoAndStop on whatever the number is corresponding to that frame within the mc named mapview … it’s instance name on the main timeline is map

i tried saying … \_root.map.gotoAndStop … as well … but that’s not working either … what am i doing wrong … i can post an example if necessary . but the file is kinda large 🙂

also … one thing i just thought of … in the mc “mapview” i have all the frames labeled with their names … exactly as they are in the labels for the combobox. is it possible to write a script that goes to the frame with the label corresponding to the selected name in the combobox … or would it just be easier to tell it to go to a frame number like i’m currently trying to do? 🙂

---

<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, 7:11pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/2 "2002-10-11T19:11:40Z")

</div>

frame labels are usually best. If you labels on your combobox correspond exactly with your frame names, then…

```auto

onChange=function(fcombobox){
_root.mapview.gotoAndStop(fcombobox.getselecteditem().label);
}

```

Note two things. If the instance name of your combobox is division, you could just say onChange=function(division){  
etc…

notice I changed division to fcombobox… for the same reason.

---

<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, 7:14pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/3 "2002-10-11T19:14:18Z")

</div>

Try to trace the value just to check

```auto
onChange=function(fcombobox){
    trace (divisions.getselecteditem().data);
    _root.mapview.gotoAndStop(divisions.getselecteditem().data);
}

```

And if divisions is the name of your combobox, then your function should be:

```auto
onChange=function(fcombobox){
    _root.mapview.gotoAndStop(fcombobox.getselecteditem().data);
}

```

Cheers.

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 11, 2002, 7:15pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/4 "2002-10-11T19:15:44Z")

</div>

😛 You’re getting faster, Inigo… :cowboy:

---

<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, 7:26pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/5 "2002-10-11T19:26:05Z")

</div>

Hey man! How are you?

Im boooooooooooooooooooored! Just got a new assignment for a site. We’ll see how it goes!

---

<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, 7:37pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/6 "2002-10-11T19:37:11Z")

</div>

So-so… exams are coming really fast, I don’t know anything, I flash too much, and I’m going to have a head ache for 3 weeks after all the C++ I have done this week. That language is just too much trouble for me.

So, what’s the site about? And does it mean you’ve just finished one? Can we see it 🙂

---

<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, 7:42pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/7 "2002-10-11T19:42:20Z")

</div>

all the stuff I’ve done is Internal for a financial institution, so they dont let us share. I am doing a new site for a development company. I just got it today. I did another one a looooooooong time ago in html, but it is just funny dreamweaver stuff. Very outdated the moment I finished it.

---

<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, 7:48pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/8 "2002-10-11T19:48:34Z")

</div>

Naahh, don’t be so modest.

Man I really have to work on my site. I have a few ideas, but it’s all messy and pretty much impossible to do. It’s really frustrating, so I guess I’ll leave that for later, when I have time…

So what about that prototype? 😛

---

<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, 7:50pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/9 "2002-10-11T19:50:32Z")

</div>

prototype sounds right… Im trying to get the cobwebs out of my head. My first thought was a couple of functions. I guess the trick is that it should invoke onpress and onEnterframe in order to work correctly. Right? Sounds right… 🙂

---

<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, 7:53pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/10 "2002-10-11T19:53:01Z")

</div>

i did the trace like you said pom … and it returned nothing … what do i do?

here’s the code i have on the frame containing the combobox instance

```auto

//this is the control funtion for the Divisions combo box
onChange = function (divisions) {
	trace (divisions.getselecteditem().data);
	_root.map.gotoAndStop(divisions.getselecteditem().label);
};

```

---

<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, 7:56pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/11 "2002-10-11T19:56:16Z")

</div>

did you try what I said, shuga? You said the labels matched the frame names.

However, like Pom said… if your trace is not showing a value, something else is wrong. Check your change handler and the name of your instances.

---

<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, 8:01pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/12 "2002-10-11T20:01:17Z")

</div>

i did try what you said inigo … when i do that … do i erase the data values for the combobox? or leave them as frame numbers like they were?

can i email you the file … its 1.81 mb?

---

<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, 8:04pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/13 "2002-10-11T20:04:14Z")

</div>

_running away_  
You take it, Inigo!! 😛

---

<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, 8:08pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/14 "2002-10-11T20:08:42Z")

</div>

hhahahah… you can just leave them, Shuga. It should work. If you have problems with it, email to me at [iammontoya@hotmail.com](mailto:iammontoya@hotmail.com) and let me know here that you did that, please. 🙂

Pom, you crack me up. I keep refreshing to see if you’re prototype comes up… I think Im too fried today! hahah

---

<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, 8:11pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/15 "2002-10-11T20:11:59Z")

</div>

i just sent it … go get it quick before hotmail clears your inbox b/c the file is so large 🙂

thanks very much for your help

---

<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, 8:25pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/16 "2002-10-11T20:25:31Z")

</div>

nothing there. zip before you send, shuga, plus I should plenty of space available.

---

<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, 8:25pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/17 "2002-10-11T20:25:49Z")

</div>

Well Inigo, I kept refreshing to see if YOU had posted it 😛

---

<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, 8:29pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/18 "2002-10-11T20:29:17Z")

</div>

i had to upload it to one of my servers b/c the filesize was too large for your box 🙂

[http://www.roughedout.com/newTour.fla](http://www.roughedout.com/newTour.fla)

---

<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:** [November 11, 2002, 5:44am UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/19 "2002-11-11T05:44:07Z")

</div>

Hi,  
I’m trying to load a couple of .swfs into a main swf. I wan to drop it into a target movieclip. This is all I have

function movieSelector() {  
loadMovieNum(comboBox.getSelectedItem().data, 2);  
}  
stop();

but this drops it into a level. Anybody got any ideas?

Thanks

---

<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:** [November 11, 2002, 1:30pm UTC](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597/20 "2002-11-11T13:30:11Z")

</div>

well, this one fell through the cracks. I wonder if it was resolved?

[Next page](https://forum.kirupa.com/t/k-got-the-combobox-one-lil-bug-in-it/6597.md?page=2)
