Package | com.asfusion.mate.actions.builders |
Class | public class ResponseAnnouncer |
Inheritance | ResponseAnnouncer EventAnnouncer ObjectBuilder BaseAction AbstractAction |
IActionList
, so that when an object dispatches an event,
and the list runs, this tag will allow you to send responses directly to the object that dispatched the event.
These responses are actually custom events that you need to create (if no generator class is specified, a DynamicEvent will be created).
Using the ResponseAnnouncer tag is very similar in form and purpose of the EventAnnouncer tag, with the important difference that when using the EventAnnouncer tag, all listeners of that event will be notified, whereas when using the ResponseAnnouncer tag, only the object that dispatched the original event will be notified.
The use of this tag will have no effect if the original event was not dispatched using the Dispatcher tag. Moreover, this tag will have no effect if no Response tag was added as an inner tag to the Dispatcher tag.
MXML Syntax Hide MXML SyntaxThe <ResponseAnnouncer>
tag has the following tag attributes:
<ResponseAnnouncer Properties generator="Class" constructorArgs="Object|Array" properties="Properties" type="String" bubbles="true|false" cancelable="true|false" />
See also
Method | Defined by | ||
---|---|---|---|
The last method that
trigger calls. | AbstractAction | ||
createInstance(scope:IScope):Object
Where the currentInstance is created using the
generator class as the template, passing arguments to the constructor
as specified by the constructorArgs (if any). | EventAnnouncer | ||
The first method that
trigger calls. | ObjectBuilder | ||
Where all the action occurs.
| ResponseAnnouncer | ||
setProperties(scope:IScope):void
Where all the properties are set into the
currentInstance . | BaseAction |