Comunidad de diseño web y desarrollo en internet online

Cargar imagen y asignarle un _width

Citar            
MensajeEscrito el 30 Jun 2009 06:17 pm
Hola amigos, estoy intentando crear un template en flash. La idea es que coja las imágenes de una carpeta y las modifique a mi gusto. En este caso quiero que la imagen superior tenga el _width = al Stage.width

Me carga la imagen pero no la pone a lo ancho.

Código ActionScript :

//crear estructura
function crearEstructura(){
   _root.createEmptyMovieClip("top", 2);
   top.loadMovie("theme/img/topBg.png", "topBg");
   top.topBg._width = Stage.width;
}
crearEstructura();


¿cómo lo haceis vosotros?

Por tes

5 de clabLevel



 

firefox
Citar            
MensajeEscrito el 02 Jul 2009 11:19 am
Para cambiar cualquier propiedad del elemento cargado, tienes que esperara a que termine de cargar, es decir agregarle un preload a la carga

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

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