Comunidad de diseño web y desarrollo en internet online

AYUDENME, PASAR ESTO DE AS2 A AS3 POR FAVOR

Citar            
MensajeEscrito el 20 May 2010 02:23 pm
HOLA ESTOY EMPEZANDO CON AS APENAS Y NO COMPRENDO MUCHO DEL CODIGO, PODRIAN AYUDARME A CONVERTIR ESTO A AS3, DE VERDAD SE LOS AGRADECERIA MUCHO ME URGE




//Sin escalar y alineado a la izquierda y arriba
Stage.scaleMode = "noScale";
Stage.align = "TL";

//full screen

function cambiar(){
if(Stage.displayState=="normal"){
Stage.displayState="fullScreen";
_root.boton.gotoAndStop(2);
}else{Stage.displayState="normal";
_root.boton.gotoAndStop(1);}}


//objeto listener para el onResize
var listener:Object = new Object();
//definicion de acciones para el onResize
listener.onResize = function():Void {
resizebackGround();
//aca la gracia de poner afuera la funcion es poder hacer muchas acciones en el evento
};

//funcion de resize
resizebackGround=function():Void{
var imageAspectRatio = bg_mov_mc._width / bg_mov_mc._height;
var stageAspectRatio = Stage.width / Stage.height;
if (stageAspectRatio >= imageAspectRatio) {
bg_mov_mc._width = Stage.width;
bg_mov_mc._height = Stage.width / imageAspectRatio;
} else {
bg_mov_mc._height = Stage.height;
bg_mov_mc._width = Stage.height * imageAspectRatio;
}
}
//Listener de redimensionado de stage
Stage.addListener(listener);
//llamado inicial a la funcion
resizebackGround()

//Esto ubica el menu al pie de la pantalla y el fondo del menu al ancho de la pantalla

mc_bottom._width = Stage.width;
mc_bottom._y = Stage.height - mc_bottom._height;
boton._y = Stage.height - (boton._height+20);
boton._x = Stage.width - (boton._width+20);

sizeListener = new Object();
sizeListener.onResize = function() {
mc_bottom._width = Stage.width;
mc_bottom._y = Stage.height - mc_bottom._height;
boton._y = Stage.height - (boton._height+20);
boton._x = Stage.width - (boton._width+20);
};

Stage.addListener(sizeListener);

Por alexmatam

2 de clabLevel



 

chrome
Citar            
MensajeEscrito el 20 May 2010 03:53 pm
con gusto te ayudo pero me gustaría que subieras el documento o por lo menos que me lo envíes a mi correo veo que hay instancias de clip de película entonces quisiera verlos.

[email protected]

Por tuxianof

48 de clabLevel



 

chrome

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.