Código :
var carga:Loader = new Loader(); // Creamos el contenedor de carga
carga.load(new URLRequest(direccion_foto)); // Le damos el archivo a cargar
carga.contentLoaderInfo.addEventListener(Event.COMPLETE, completado);
function completado (e:Event){
var bitmap = carga.content as Bitmap;
bitmap.smoothing = true;
ancla1.addChild(carga);
ancla2.addChild(carga);
ancla1.height = stage.stageHeight - 50;
ancla2.height = stage.stageHeight - 50;
ancla1.width = width_Dr * (ancla1.height / height_Dr);
ancla2.width = width_Dr * (ancla2.height / height_Dr);
ancla1.x = (finalWidth - ancla1.width)/2;
ancla2.x = (finalWidth - ancla2.width)/2;
if (primeraVez){
TweenLite.to(ancla1, 1, {alpha:1});
TweenLite.to(ancla2, 1, {alpha:1});
}
}Y el problema que tengo es que solo me pega el segunda addchild... el primer no me lo hace. Sabeis por que puede ser? un saludo y gracias
