Código:
a si no es mucha molestia me podrian decir como puedo crear un boton para que me muestre otra galeria similar a la que cree pero con otras fotos disculpen las molestias es que recien comienzo a programar en actionscript import mx.transitions.* import mx.transitions.easing.*; var i:Number; var dirX:Number = 0; var dirY:Number = 0; var numFotos:Number = 10; 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 < 10; 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 + 50,4, true ); new Tween(mcs,"_y", Elastic.easeInOut,0, 100*dirY + 5,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("thumb/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, 25, 3, true); new Tween(fotos_mc,"_y",Elastic.easeOut, Stage.height, 25, 3, true); //fotos_mc.loadMovie("img/0" + num + ".jpg"); imgloader.loadClip("img/0" + num + ".jpg",img); } fotos_mc.onPress = Click; } function Click(){ fotos_mc._visible = false; }