Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.50 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. package  {
  2. public class PageFlipperMediator extends Mediator implements IHasStateTransition{
  3.     /**
  4.      * VIEW
  5.      */
  6.     [Inject]
  7.     public var view:PageFlipperView;
  8.  
  9.     /**
  10.      * IHasStateTransition implementation for autoremove
  11.      */
  12.     public function transitionIn(callOnComplete:Function):void {
  13.         callOnComplete()
  14.     }
  15.  
  16.     public function transitionOut(callOnComplete:Function):void {
  17.         if(view.parent)
  18.             view.parent.removeChild(view);
  19.         callOnComplete()
  20.     }
  21. }
  22. }