# ComboBox AS2 question

**URL:** <https://forum.kirupa.com/t/combobox-as2-question/255589>\
**Category:** flash\
**Created:** [March 25, 2008, 3:01am UTC](https://forum.kirupa.com/t/combobox-as2-question/255589 "2008-03-25T03:01:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tchum](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@tchum](https://forum.kirupa.com/u/tchum)\
**Post date:** [March 25, 2008, 3:01am UTC](https://forum.kirupa.com/t/combobox-as2-question/255589/1 "2008-03-25T03:01:26Z")

</div>

I want to use a ComboBox to load SWFs, rather than assigning AS2 to a static button.

The current, static code is simple, and works fine:

on (release) {   
this.emptyMCtoc.loadMovie(“edition\_3\_toc.swf”);  
this.emptyMCpage.loadMovie(“content/2008-01/article\_1.swf”);  
}

This AS2 code I’ve created for my ComboBox (cb\_editionList) works.

var myListener:Object = new Object ();  
cb\_editionList.addEventListener (“change”,myListener);

myListener.change = function () {  
cb\_editionList.loadMovie(cb\_editionList.value);  
}

However, I need the “cb\_editionList.loadMovie” above to load into “emptyMCtoc”

This code doesn’t work (Error: ‘Expected a field name after “.” operator’):

cb\_editionList.this.loadMovie.emptyMCtoc (cb\_edititionList.value);

This does nothing:

cb\_editionList.loadMovie.emptyMCtoc (cb\_edititionList.value);

This loads the movie at the point of the ComboBox:

cb\_editionList.loadMovie(cb\_editionList.value,empt yMCtoc);

Thanks in advance.
