Hola amigos mi problema es el siguiente.Me guio por esta pag
http://www.drawingart.org/ en un mecanismo muy interesante en cual siempre se centra la pag con clase tween dependiendo de la resolucion, eso ya lo tengo y lo hize, al minizar o al agrandar la ventana del browser se corren todos los elementos y se centra.mi problema es; al carga la pagina o al abrirla por primera ves los elementos no aparecen centrados.¿Abra una funcion onload algo asi para centrar los elementos al cargar el swf?
Eso a ver si me hechan una manito.Gracias!
Esto llevo de codigo.
Código:
stageListener = new Object();
stageListener.onResize = function ()
{
if (Stage.width < 940){xwidth = 940;}else{xwidth = Stage.width;}
if (Stage.height < 560){yheight = 560;}else{yheight = Stage.height;}
//blackbg._width = _root.xwidth;
//blackbg._height = _root.yheight;
//llamamos funcione detrminadas
//movenewsletter();
movecontenido();
movemenu();
moveplayer();
};
Stage.addListener(stageListener);
stageListener.onResize();