Comunidad de diseño web y desarrollo en internet online

solucion de getNextHighestDepth en attachmovie

Citar            
MensajeEscrito el 06 Jul 2009 08:44 pm
Hola buenas tardes, aqui me encuentro con un pequeño problema, he añadido algunos movieclips al escenario por medio de


Código ActionScript :

for(i = 0; i < 20; i++){
   this.attachMovie("icon3d2", "icon3d2" + i, this.getNextHighestDepth(), {_x:Math.floor(Math.random() * (1200 - 2 + 1)) + 2, _y:Math.floor(Math.random() * (1000- 2 + 1)) + 2,_alpha:Math.floor(Math.random() * (3 - 2 + 1)) + 2, _rotation:Math.floor(Math.random() * (45 - 10 + 1)) + 10});
   this.attachMovie("icon3d1", "icon3d1" + i, this.getNextHighestDepth(), {_x:Math.floor(Math.random() * (1200 - 2 + 1)) + 2, _y:Math.floor(Math.random() * (1000- 2 + 1)) + 2,_alpha:Math.floor(Math.random() * (3 - 2 + 1)) + 2, _rotation:Math.floor(Math.random() * (45 - 10 + 1)) + 10});
}




pero yo quiero que un movieClip en el escenario, este encima de ellos; cual es la solucion para poner un valor mas alto en su depth?


Saludos.
gracias.
:D

Por biohazard

44 de clabLevel



Genero:Masculino  

Ingeniero en desarrollo WEB

firefox
Citar            
MensajeEscrito el 06 Jul 2009 09:08 pm
Cuando termina el loop, usa swapDepths para cambiar al nivel mas alto ... ¿como lo obtienes? Pues con getNextHighestDepth()

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 10 Jul 2009 02:19 am
oks probare enseguida, gracias

Por biohazard

44 de clabLevel



Genero:Masculino  

Ingeniero en desarrollo WEB

firefox

 

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