Código Javascript:
Ver original
function hizoClick(e:MouseEvent):void{ var btn:MovieClip = e.currentTarget as MovieClip; switch(btn){ case arrBotones[0]: txtAccion.text = "Presionaste btn_1"; break; case arrBotones[1]: txtAccion.text = "Presionaste btn_2"; break; case arrBotones[2]: txtAccion.text = "Presionaste btn_3"; break; case arrBotones[3]: txtAccion.text = "Presionaste btn_4"; break; case arrBotones[4]: txtAccion.text = "Presionaste btn_5"; break; } }