【发布时间】:2015-06-03 22:50:56
【问题描述】:
我经常需要发送带有 soem 自定义 String 文本的 flash.events.Event,例如:
protected function mouseClicked(event:Event) {
//here I'd want to notify anyone interested in the button click,
//and also transfer the name of the button (or whatever) that was clicked - assume some dynamic value
dispatchEvent(new Event("myMouseEvent"), button.name));
}
当然上述事件是无效的。但是是否有任何事件可以用于该类型的事件?也许是TextEvent,但我不知道我是否会在这里误用它。
【问题讨论】:
标签: actionscript-3 apache-flex