Comunidad de diseño web y desarrollo en internet online

ayuda: Enviar un bmp al fondo en el stage

Citar            
MensajeEscrito el 23 Feb 2009 11:23 pm
Hola, estoy usando actionscript 2 para colocar un bmp de la librería en el el stage. El código funciona pero cualquier cosa que agrego directo en la escena (botones o gráfico) queda detrás de la imagen. alguna pista para cambiar el depth??
este es el código:

import flash.display.BitmapData;
var imageBmp:BitmapData = BitmapData.loadBitmap("myImage");
this.createEmptyMovieClip("imageClip", 0);
imageClip.attachBitmap(imageBmp, 0);

Por nonweb

1 de clabLevel



 

msie7
Citar            
MensajeEscrito el 23 Feb 2009 11:34 pm
todos los botones o graficos creado en tiempo de diseño, tienen depth negativa, podrias hacer esto, pero no se que tan acertado sea:

Código ActionScript :

import flash.display.BitmapData;
var imageBmp:BitmapData = BitmapData.loadBitmap("myImage");
this.createEmptyMovieClip("imageClip", 0);
imageClip.attachBitmap(imageBmp, 0); 

for(var i in this)
{
if(i != "imageClip")  this[i].swapDepths( this.getNextHighestDepth());
}

Por LongeVie

Claber

1741 de clabLevel

1 tutorial

Genero:Masculino  

En un lugar, re moto.

firefox

 

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