Código:
y el servidor en el que lo estoy alojando es 000webhost.com import mx.transitions.* import mx.transitions.easing.*; var i:Number; var dirX:Number = 0; var dirY:Number = 0; var numFotos:Number = 9; var col:Number = 3; var thumbloader:MovieClipLoader = new MovieClipLoader; var imgloader:MovieClipLoader = new MovieClipLoader; thumb_mc._visible = false; fotos_mc._visible = false; for (i = 0; i < 9; i++){ var mcs:MovieClip = thumb_mc.duplicateMovieClip("im" + i,i); //mcs._x = 150*dirX + 50; //mcs._y = 100*dirY + 5; new Tween(mcs,"_x", Elastic.easeInOut,0,150*dirX + 93,4, true ); new Tween(mcs,"_y", Elastic.easeInOut,0, 100*dirY + 20,4, true ); dirX++; if (dirX == col){ dirX = 0; dirY++; } cargarPrevias(); verFoto() mcs.onRollOver = RollOver; } function RollOver(){ TransitionManager.start(this, {type:Photo, direction:Transition.IN, duration: 1, easing:Strong.easeOut}); } function cargarPrevias(){ var thumb:MovieClip = mcs.createEmptyMovieClip("n",this.getNextHighestDepth()); thumbloader.loadClip("0" + i + ".jpg",thumb); //mcs.loadMovie("thumb/0"+ i + ".JPG"); } function verFoto(){ var num:Number = i; var img:MovieClip = fotos_mc.createEmptyMovieClip("n",this.getNextHighestDepth()); mcs.onPress = function(event){ fotos_mc._visible = true; fotos_mc.swapDepths(mcs.getNextHighestDepth()); new Tween(fotos_mc,"_x",Elastic.easeOut, Stage.width, 0, 3, true); new Tween(fotos_mc,"_y",Elastic.easeOut, Stage.height, 0, 3, true); //fotos_mc.loadMovie("img/0" + num + ".jpg"); imgloader.loadClip("0" + num + " (2).jpg",img); } fotos_mc.onPress = Click; } function Click(){ fotos_mc._visible = false; }