Comunidad de diseño web y desarrollo en internet online

programacion de botones por attachmovie

Citar            
MensajeEscrito el 11 Dic 2005 11:06 am
Hola!!una prguntilla a ver si tiene solucion: tengo un codigo tal q asi

for (i=0;i<=4;i++) {
_root.attachMovie("boton1","boton_" add i,);
_root["boton_" add i]._y = 10 * i;
trace(_root["boton_" add i]);
}

Bueno como pueden ver lo q me hace es poner 5 botones en el escenario importanto el boton1 de la biblio y renombrando a boton_1, boton_2....
Me gustaria saber como puedo hacer para q cada boton nuevo q creo tenga una programación particular. GRACIAS.

Por carter15

73 de clabLevel



 

firefox
Citar            
MensajeEscrito el 11 Dic 2005 02:57 pm
_root["boton_" + i].onRelease = function(){
trace("something");
};

Por bipsa

628 de clabLevel

1 tutorial
1 articulo

Genero:Masculino  

Colombia

firefox
Citar            
MensajeEscrito el 12 Dic 2005 04:57 pm
:o Parezco tonto ni darme cuenta!! mcuhas gracias :D

Por carter15

73 de clabLevel



 

firefox

 

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