0
我在将StageListener添加到舞台上的多个对象时遇到了一些问题。我在舞台上有名为“Button01”,“Button02”,“Button40”的40个以上的按钮,并且我正在寻找将EventListener添加到所有这些按钮的最简单方法。Actionscript - 添加EventListener到舞台上的多个按钮
创建类似
Button01.addEventListener(MouseEvent.CLICK, doSomething)
Button02.addEventListener(MouseEvent.CLICK, doSomething)
..
Button40.addEventListener(MouseEvent.Click, doSomething)
(注意同样的功能)。 不解决我要找:(提前
感谢
完美地工作。谢谢! – mswiszcz