home *** CD-ROM | disk | FTP | other *** search
/ Computer Active 2010 August / CA08.iso / Multimedija / shufflr.air / ShufflrClient.swf / scripts / air / update / states / UpdateState.as < prev   
Encoding:
Text File  |  2010-06-23  |  1.1 KB  |  43 lines

  1. package air.update.states
  2. {
  3.    public class UpdateState
  4.    {
  5.       private static const STATES:Array = ["UNINITIALIZED","INITIALIZING","READY","BEFORE_CHECKING","CHECKING","AVAILABLE","DOWNLOADING","DOWNLOADED","INSTALLING","PENDING_INSTALLING"];
  6.       
  7.       public static const UNINITIALIZED:int = 0;
  8.       
  9.       public static const INITIALIZING:int = 1;
  10.       
  11.       public static const READY:int = 2;
  12.       
  13.       public static const BEFORE_CHECKING:int = 3;
  14.       
  15.       public static const CHECKING:int = 4;
  16.       
  17.       public static const AVAILABLE:int = 5;
  18.       
  19.       public static const DOWNLOADING:int = 6;
  20.       
  21.       public static const DOWNLOADED:int = 7;
  22.       
  23.       public static const INSTALLING:int = 8;
  24.       
  25.       public static const PENDING_INSTALLING:int = 9;
  26.       
  27.       public function UpdateState()
  28.       {
  29.          super();
  30.       }
  31.       
  32.       public static function getStateName(param1:int) : String
  33.       {
  34.          if(param1 >= 0 && param1 < STATES.length)
  35.          {
  36.             return STATES[param1];
  37.          }
  38.          return "INVALID_STATE: " + param1;
  39.       }
  40.    }
  41. }
  42.  
  43.