import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;
import flash.display.Bitmap;
var a = 0
var b = 12
function foto1():void
{
if (a <= b)
{
var ruta:URLRequest = new URLRequest("foto_"+a+".png");
var carga:Loader = new Loader();
carga.load(ruta);
carga.contentLoaderInfo.addEventListener(Event.COMPLETE, mostrar);
function mostrar (evento :Event):void
{
var foto:Bitmap = evento.target.content;
foto.width = 156,60;
foto.height = 117,45
addChild(carga);
carga.x +=60 ;
carga.y +=75 ;
}
}
}
a++
foto1();