模拟鼠标事件listener(new MouseEvent(MouseEvent.CLICK));
摘要:
import flash.events.KeyboardEvent;import flash.ui.Keyboard;mc.addEventListener(MouseEvent.CLICK,listener);stage.addEventListener(KeyboardEvent.KEY_DOWN,_keyDown);function _keyDown(e:KeyboardEvent):void{ if (e.keyCode == Keyboard.SPACE) { listener(new MouseEvent(MouseEvent.CLICK)); }}function listene 阅读全文