Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/06/2011, 11:33
Avatar de Bandit
Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 9 meses
Puntos: 406
Respuesta: Convertir MC en botones

Hola sciffo:
El código está mal escrito.
Debe ser así:
Código actionscript:
Ver original
  1. var numero = 5;
  2. for (var i = 1; i<=numero; i++) {
  3.     _root["boton"+i].onRelease = function() {
  4.         trace("soy el " +this._name);
  5.     };
  6. }
Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/