Comunidad de diseño web y desarrollo en internet online

Localizar y Posicionar MC en DIAGRAMACION LIQUIDA

Citar            
MensajeEscrito el 12 Dic 2009 06:57 am
Tengo un problema con la diagramación liquida...
Quiero ubicar un Movie Clip pequeño en la esquina inferior izquierda... el problema es que no se por medio del codigo en Flash donde me lo está ubicando.

Código ActionScript :


Stage.align = "TL";
Stage.scaleMode = "noScale";

img._x = (Stage.width)/2
img._y = (Stage.height)/2

sizeListener = new Object();
sizeListener.onResize = function() {
   img._x = (Stage.width)/2
   img._y = (Stage.height)/2
};
Stage.addListener(sizeListener);



Espero me peudan ayudar

Por avillate

11 de clabLevel



 

chrome
Citar            
MensajeEscrito el 12 Dic 2009 09:31 pm
Pues te lo esta ubicando al centro pero mal...

Tienes el código que dice: Ubicar img exactamente en el centro del escenario (State.width o heigth /2) y luego no te preocupas tampoco por el tamaño de img, so queda centrado pero en sus coordenadas (0,0).

Si lo que quieres es ubicarlo en la parte inferior izquierda, lo que tendrías que hacer es algo así:

Código ActionScript :

img._x = (Stage.width) - img._width
img._y = (Stage.height) - img._height


Saludos, Hernán . -

Por Hernán

BOFH

6148 de clabLevel

19 tutoriales
23 articulos

Genero:Masculino   REC Desarrollador de GAIA

Marketing & IT

firefox

 

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