Se me complica para buscar las equivalencias de As2 y hacerlas funcionar en As3.
Alguien me ayuda???
Código ActionScript :
CODIGO: /////////////////////////////
Stage.scaleMode = "noscale";
// -- restaura los botones del menú
_global.restoreMenu = function() {
for (i=0; i<menuArray.length; i++) {
item = eval("boton"+i);
item.enabled = true;
item.useHandCursor = true;
}
};
//
// * prototipo loadMovieFX
// * parámetros $clip
// * descripción
// * reproduce en sentido inverso la película cargada
// * en el objeto movieClip (holder_mc) y carga una nueva ($_clip)
//
MovieClip.prototype.loadMovieFX = function($clip) {
this.onEnterFrame = function() {
if (this._currentframe == 1) {
delete this.onEnterFrame;
this.loadMovie($clip);
}
this.prevFrame();
};
};
// -- cada elemento de menuArray es una SWF
_global.menuArray = new Array();
menuArray[0] = "img01.swf";
menuArray[1] = "img02.swf";
menuArray[2] = "img03.swf";
menuArray[3] = "img04.swf";
menuArray[4] = "img05.swf";
menuArray[5] = "img06.swf";
// -- cargo primera imagen
holder_mc.loadMovie(menuArray[0]);
boton0.enabled = false;
for (i=0; i<menuArray.length; i++) {
item = eval("boton"+i);
item.img = menuArray[i];
item.onRelease = function() {
// -- desactivo el botón y restauro el resto
restoreMenu();
this.enabled = false;
this.useHandCursor = false;
// -- cargar nueva - descargar actual
holder_mc.loadMovieFX(this.img);
};
}//////////
OTRO CODIGO MAS QUE NO ME FUNCIONA
this._visible = false;
Gracias por la ayuda!!!!
usa as /as entre conchetes para AS
