Created
August 9, 2011 23:03
-
-
Save vrobel/1135443 to your computer and use it in GitHub Desktop.
AutoremoveMediator for Navigator-as3 https://github.com/epologee/navigator-as3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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