public virtual void broadcastEvent(AsEvent _event) { if (_event.getBubbles()) { throw new AsArgumentError("Broadcast of bubbling events is prohibited"); } dispatchEventOnChildren(_event); }
public virtual void broadcastEvent(AsEvent _event) { if (_event.getBubbles()) { throw new AsArgumentError("Broadcast of bubbling events is prohibited"); } int fromIndex = (int)(sBroadcastListeners.getLength()); getChildEventListeners(this, _event.getType(), sBroadcastListeners); int toIndex = (int)(sBroadcastListeners.getLength()); int i = fromIndex; for (; i < toIndex; ++i) { sBroadcastListeners[i].dispatchEvent(_event); } sBroadcastListeners.setLength(fromIndex); }