hello,
i’m stuck in the same thing over and over again, I’ve found some wobly ways around it but there must be a proper way, please help!
I have a property for a movieclip
button.numero
and want to pass it when clicked
button.addEventListener(MouseEvent.CLICK, display )
private function display(evt:MouseEvent){ …
...
button.x = i* 135 + 36;
button.numero = i;
button.addEventListener(MouseEvent.CLICK, display )
addChild(button);
// trace (i);
}
}
private function display(evt:MouseEvent){
trace(evt.target.numero);
...