i am trying to populate a combobox (named countriesBox) in the flash file from an external text file. it works great when i run the swf directly but when i use loadMovieNum() function to load it inside a different flash movie it won't populate the combobox.
here's my actionscript code:
i just can't understand why it works great as a standalone movie and won't work when loaded inside another movie.
by the way, i'm loading it as follows (into layer 3):
i'm using flash mx 2004 professional...
(-:
here's my actionscript code:
Code:
this._lockroot = true;
//load the text file
var countryList = new LoadVars();
countryList.load("countries.list");
countriesBox.addItem("-- your country --", '');
countryList.onLoad = function() {
var comboCountries = countryList.countries.split(",");
var why = false;
for (i=0; i < comboCountries.length;i++) {
countriesBox.addItem(comboCountries[i],comboCountries[i]);
}
}
i just can't understand why it works great as a standalone movie and won't work when loaded inside another movie.
by the way, i'm loading it as follows (into layer 3):
Code:
on (release) {
loadMovieNum("mailist.swf", 3);
}
i'm using flash mx 2004 professional...
(-: