Skip to content

Instantly share code, notes, and snippets.

@vrobel
Created August 9, 2011 23:03
Show Gist options
  • 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