# Combobox works in swf file, but not in container

**URL:** <https://forum.kirupa.com/t/combobox-works-in-swf-file-but-not-in-container/279479>\
**Category:** Uncategorized\
**Created:** [January 15, 2009, 5:08am UTC](https://forum.kirupa.com/t/combobox-works-in-swf-file-but-not-in-container/279479 "2009-01-15T05:08:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kitsmcbits](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@kitsmcbits](https://forum.kirupa.com/u/kitsmcbits)\
**Post date:** [January 15, 2009, 5:08am UTC](https://forum.kirupa.com/t/combobox-works-in-swf-file-but-not-in-container/279479/1 "2009-01-15T05:08:10Z")

</div>

Hey there,

I’m working on a website using the combobox to control multiple functions. One controls the color, the other controls the lights. I have my “products” file as a separate swf file, which I am plugging into my main site using an empty container. The functionality of the swf works great when I test it on its own, but once I plug it into the main file it doesn’t work. Help!!!

The swf file:  
[http://www.vliteusa.com/products.swf](http://www.vliteusa.com/products.swf) (only green and red work)

The main site:  
[http://www.vliteusa.com](http://www.vliteusa.com)

Here is the code I am using to control my comboboxes:  
var myListener:Object = new Object();  
colors\_cb.addEventListener(“change”,myListener);  
myListener.change = function() {  
\_root.gotoAndStop(colors\_cb.value);

};

var myListener:Object = new Object();  
gfunc\_cb.addEventListener(“change”,myListener);  
myListener.change = function() {  
\_root.gotoAndStop(gfunc\_cb.value);

};

Any help would be hugely appreciated! Thanks so much! :flower:
