el codigo para la carga es este
Código :
public function rnd_():void { for (var i:int= 0; i<3; i++) { var rnd:int = Math.round(Math.random()* banderas.length-1); if (rnd < 0 ) { rnd=0; } band_sa[cont]= rnd; //trace (band_sa) rut_img = new URLRequest(banderas[rnd][1]) ; this["img_" + cont].load(rut_img); this["img_" + cont].y = 0; this["cont_" + cont].addChild(this["img_" + cont]); this["btn_" + cont].my_num = rnd ; this["btn_" + cont].buttonMode= true; this["btn_"+cont].buttonMode= true; this["btn_" + cont].play(); cont++ ; if (cont >= 3 ) { this["img_" + cont].contentLoaderInfo.addEventListener(Event.COMPLETE, datos); cont = 0; } band_sa.push(rnd); num_.push( rnd ); }
y el link para que vean el problema
http://www.kongregate.com/games/MaxiSan20/find-my-flag_preview
gracias