Skip to content

Instantly share code, notes, and snippets.

@vrobel
Created August 9, 2011 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vrobel/1135443 to your computer and use it in GitHub Desktop.
Save vrobel/1135443 to your computer and use it in GitHub Desktop.
AutoremoveMediator for Navigator-as3 https://github.com/epologee/navigator-as3
package {
public class PageFlipperMediator extends Mediator implements IHasStateTransition{
/**
* VIEW
*/
[Inject]
public var view:PageFlipperView;
/**
* IHasStateTransition implementation for autoremove
*/
public function transitionIn(callOnComplete:Function):void {
callOnComplete()
}
public function transitionOut(callOnComplete:Function):void {
if(view.parent)
view.parent.removeChild(view);
callOnComplete()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment