The class MacaoEvent is used internally to send or post an event to one or more objects.
See also sendEvent(), postEvent() and broadcastEvent().
Constructor Summary |
---|
MacaoEvent(MacaoObject senderObject, String eventType, optional Array params)
The class MacaoEvent is used internally, to send or post an event to one or more objects. |
Method Summary | |
---|---|
void | broadcast(boolean toAllFrames)
Call this method to send the event to all objects of the current frame or to all objects in all frames. |
void | disable()
Use this method to cancel an event, which has been posted but has not yet been delivered. |
Array | getParams()
Returns an array containing the parameters, which are used to call the target method. |
MacaoObject | getSenderObject()
Returns the object, which sent or posted the event. |
String | getType()
Returns the name of the method, which is to be called by the event. |
void | postTo(String recipientName, integer delay, optional String frameName)
Call this method to send this event to a target object delaying the delivery. |
variant | sendTo(String recipientName, optional frameName)
Call this method to send the event to a recipient object. |
Constructor Details |
---|
The class MacaoEvent is used internally, to send or post an event to one or more objects.
See also sendEvent(), postEvent() and broadcastEvent().
Method Details |
---|
Call this method to send the event to all objects of the current frame or to all objects in all frames.
See also broadcastEvent().
Use this method to cancel an event, which has been posted but has not yet been delivered.
After calling this method the event will not be delivered any more. The event object is returned by the method postEvent() when posting the event. You can keep a reference to the event object and disable the delivery by calling this method. See also postEvent().
Returns an array containing the parameters, which are used to call the target method.
Returns the object, which sent or posted the event.
See also sendEvent() and broadcastEvent().
Returns the name of the method, which is to be called by the event.
Call this method to send this event to a target object delaying the delivery.
See also postEvent().
Call this method to send the event to a recipient object.
See also sendEvent().