// first the working function:
reps = function(){
b2nnereid_kokku = 2 + 1
iu=1
while (iu < b2nnereid_kokku){
var targetrida:String = “targetrida” + iu
attachMovie(“rida”,targetrida,this.getNextHighestDepth())
_root[targetrida]._y = (iu*45)
_root[targetrida]._x = 25
_root[targetrida].idrida = iu
iu++
}}
reps();
// ----so all seem cool i get all the mc-s to scene but if i load from external file and i kno
// the stuff that gets loaded is ok and the same then - only the last mc is placed on the scene
// with correct parameters. But all the mcs created before that wont appare
// problem code:violin:
repsnotok = function () {
loadedinfo = new LoadVars();
loadedinfo.load(“banners_max.php”);
loadedinfo.onLoad = function( success ){
if(success){
b2nnereid_kokku = int(loadedinfo.maxids)+1;
iu=1
while (iu < b2nnereid_kokku){
var targetrida:String = "targetrida" + iu
attachMovie("rida",targetrida,this.getNextHighestDepth())
_root[targetrida]._y = (iu*45)
_root[targetrida]._x = 25
_root[targetrida].idrida = iu
iu++
}
} else {
debugtextarea.text = "Error"
}
}
}
repsnotok();
//any ideas?