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.