Comunidad de diseño web y desarrollo en internet online

problema con onEnterFrame

Citar            
MensajeEscrito el 03 May 2008 12:02 am
Hola amigos tengo un problema, la web que estoy haciendo se adapta segun la resolucion de pantalla, esto funciona perfectamente .Ademas el menu tiene q mover el contenedor tanto para arriba como para abajo, segun la seccion que se encuentre, el problema està, que al cambiar la posicion del contenedor vuelve automaticamente a su posicion inicial y esa no es la idea. Ojala me hayan entendido lo que quiero hacer y me puedan ayudar por favor???. Estare atento a su ayuda mil gracias!
Esta es la funcion para adaptar el web a la resolucion.

Código :

function stageResize() {
   this.xwidth = Stage.width;
   this.yheight = Stage.height;
   this.menu_._width =this.xwidth;
   distanciaX = (xwidth-1276)/2;
   distanciaY = (yheight-660)/2;
   mc_contenido._x = mc_contenido._x += (distanciaX-mc_contenido._x)*0.3;
   mc_contenido._y = mc_contenido._y += (distanciaY-mc_contenido._y)*0.3;
}
stageListener = new Object();
stageListener.onResize = function() {
   stageResize();
};
Stage.addListener(stageListener);
this.onEnterFrame = function() {
   stageResize();
};

Y el codigo del menu

Código :

on(press) {
   import mx.transitions.Tween;
      var mTw = new Tween(_root.mc_contenido, "_y", mx.transitions.easing.Bounce.easeOut,_root.mc_contenido._y ,_root.mc_contenido._y-200,3,true);
  }

Por sandino

51 de clabLevel



 

firefox
Citar            
MensajeEscrito el 05 May 2008 03:36 pm
nadie me puede responder o ayudar? :(

Por sandino

51 de clabLevel



 

firefox
Citar            
MensajeEscrito el 05 May 2008 05:57 pm
Se me ocurre esto...

Código :

on(press) {
   import mx.transitions.Tween;

  delete this._parent.onEnterFrame;
  delete this.onEnterFrame;
      var mTw = new Tween(_root.mc_contenido, "_y", mx.transitions.easing.Bounce.easeOut,_root.mc_contenido._y ,_root.mc_contenido._y-200,3,true);

  }

Por micheloud

341 de clabLevel



 

Misiones, Argentina

firefox
Citar            
MensajeEscrito el 06 May 2008 02:21 pm
funciono! muchas gracias!

Por sandino

51 de clabLevel



 

firefox

 

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