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); }