# Comboboxes

**URL:** <https://forum.kirupa.com/t/comboboxes/216373>\
**Category:** flash\
**Created:** [February 15, 2007, 10:53pm UTC](https://forum.kirupa.com/t/comboboxes/216373 "2007-02-15T22:53:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![durstlaw](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@durstlaw](https://forum.kirupa.com/u/durstlaw)\
**Post date:** [February 15, 2007, 10:53pm UTC](https://forum.kirupa.com/t/comboboxes/216373/1 "2007-02-15T22:53:09Z")

</div>

I am trying to use several combo boxes in a document. I’ve modified code from page 208 of Foundation Flash 8 Video book, so instead of having a combobox play video, it goes to an URL. I put the Combobox component on the stage, gave it an instance name of 2dCirList, and put links like [http://www.ca2.uscourts.gov](http://www.ca2.uscourts.gov) in Data. Then I put the following code in Frame 1 of the actions layer:

function GetURL():Void{  
getURL(2dCirList.data[2dCirList.selectedIndex])  
}

var 2dCirListenerObject:Object = new Object ();  
2dCirListenerObject.change = function (eventObject:Object):Void{  
GetURL();  
}

2dCirList.addEventListener (“change”, 2dCirListObject);  
GetURL();

The list drops down, but when you select an item, it goes nowhere.

I’ve been trying different combinations of things for 2 days now. Can anyone give me any ideas? Its probably a " or something, but I’m tapped out.

John  
[www.thefirm.tv](http://www.thefirm.tv)
