Código :
for (var i:Number = 0; i<imagenes.length; i++) {
this.createEmptyMovieClip("clip"+i, this.getNextHighestDepth());
this["clip"+i]._x = posicionesX[i];
this["clip"+i]._y = posicionesY[i];
this["clip"+i].createEmptyMovieClip("contenedor", 6);
this["clip"+i].contenedor.loadMovie(imagenes[i]);
_root.createEmptyMovieClip("contenedor1", 1);
this["clip"+i].swf = this["popup"+i].swf;
trace ( this["popup"+i].swf);
this["clip"+i].onPress = function() {
_root.contenedor1.loadMovie(this.swf);
_root.contenedor1._x = 50;
_root.contenedor1._y = 100;
_root.contenedor1.swapDepths(_root.getNextHighestDepth());
};
}
El trace me devuelva undefined y teniedo:
Código :
for (var i:Number = 0; i<imagenes.length; i++) {
this.createEmptyMovieClip("clip"+i, this.getNextHighestDepth());
this["clip"+i]._x = posicionesX[i];
this["clip"+i]._y = posicionesY[i];
this["clip"+i].createEmptyMovieClip("contenedor", 6);
this["clip"+i].contenedor.loadMovie(imagenes[i]);
_root.createEmptyMovieClip("contenedor1", 1);
this["clip"+i].swf = "popup.swf"+i;
trace("popup.swf"+i);
this["clip"+i].onPress = function() {
_root.contenedor1.loadMovie(this.swf);
_root.contenedor1._x = 50;
_root.contenedor1._y = 100;
_root.contenedor1.swapDepths(_root.getNextHighestDepth());
};
}
El trace me devuelve popup.swf1,popup.swf2..... lo q intento hacer es q me devulva popup1.swf,popup2.swf!!!!
me voy a volver loco!!!!
