Comunidad de diseño web y desarrollo en internet online

Bloquer funcion resize

Citar            
MensajeEscrito el 15 Ago 2009 07:38 pm
Buenas, tengo un stage en diagrama liquido y ewstoy utilizando tween2as con los botones pero no se como bloquear el resize cuando le doy click al boton.

Código ActionScript :

import mx.transitions.Tween;
import mx.transitions.easing.*
mov_tw=function(clip,prop,fin){
   new Tween(clip,prop, Strong.easeOut,clip[prop],fin, 30, false);
}

Stage.align = "TL";
Stage.scaleMode = "noScale";
var miListener:Object = new Object();
miListener.onResize = function() {
   text_info = "Tamaño del Stage: "+Stage.width+" x "+Stage.height;
   
   mov_tw(botones,"_x",(Stage.width) - 384 );
   mov_tw(botones,"_y",(Stage.height) - 100);   
   
};
Stage.addListener(miListener);
miListener.onResize();



y este es el boton

Código ActionScript :

botones.onPress= function () {
   
   botones.alphaTo(0,.5,"linear");
   botones.slideTo(400,200,1,"linear",.5);
   botones.alphaTo(100,.5,"linear",1.2);
   
   
}



Como hago para bloquear la funcion cuando redimensiono la pagina?

saludos

Por emma18

20 de clabLevel



 

msie7
Citar            
MensajeEscrito el 17 Ago 2009 05:14 pm
mm podrías usar Stage.removeListener(miListener); en el boton

Por nasho

Claber

908 de clabLevel

1 tutorial

Genero:Masculino  

Web Developer

firefox

 

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