Skip to content

Instantly share code, notes, and snippets.

@nsdevaraj
Created May 12, 2010 12:51
Show Gist options
  • Save nsdevaraj/398546 to your computer and use it in GitHub Desktop.
Save nsdevaraj/398546 to your computer and use it in GitHub Desktop.
HomeViewMediator extends AbstractViewMediator (SkinnableComponent).
The above code, is to mediate when "ResultSignal" is dispatched.
The AbstractSignal was prior dispatched from this view only, to get server Response.
The Same signal was sent as argument "signal:SignalVO"
Thus, we map it back to make sure about the mediated signal,
is response for what was dispatched from the same object
AbstractViewMediator initiates on addedToStage event,
through [Mediate( event="flash.events.Event.ADDED_TO_STAGE" , properties="target",useCapture="true" )]
to achieve the PassiveView.
"http://blogs.adobe.com/paulw/archives/2007/11/presentation_pa_6.html".
The same event is mediated by every related viewMediators
(viewMediators extends SkinnableComponent).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment