Ver Mensaje Individual
  #4 (permalink)  
Antiguo 10/11/2010, 20:46
Avatar de Diegoazul
Diegoazul
 
Fecha de Ingreso: mayo-2007
Ubicación: { Dash Berlin }
Mensajes: 1.879
Antigüedad: 17 años
Puntos: 67
Respuesta: referenciar un attach movie dinámico

mira este ejemplo espero te ayude:


Cita:
for (var i:Number = 0; i < 30; i++)
{


var carta:MovieClip = _root.attachMovie("carta", "carta" + i, _root.getNextHighestDepth());
//creas una variable
carta.id_boton = i;
carta._x = Math.random() * 800;
carta._y = Math.random() * 800;

carta.onRelease = function()
{

trace("este es el boton numero: " + this.id_boton);
};
}
__________________
{ Flash }