home *** CD-ROM | disk | FTP | other *** search
/ Computer Active 2010 August / CA08.iso / Multimedija / shufflr.air / ShufflrClient.swf / scripts / air / update / utils / NetUtils.as < prev    next >
Encoding:
Text File  |  2010-06-23  |  446 b   |  23 lines

  1. package air.update.utils
  2. {
  3.    public class NetUtils
  4.    {
  5.       public static const ACCEPTABLE_STATUSES:Array = [0,200];
  6.       
  7.       public function NetUtils()
  8.       {
  9.          super();
  10.       }
  11.       
  12.       public static function isHTTPStatusAcceptable(param1:int) : Boolean
  13.       {
  14.          if(ACCEPTABLE_STATUSES.indexOf(param1) == -1)
  15.          {
  16.             return false;
  17.          }
  18.          return true;
  19.       }
  20.    }
  21. }
  22.  
  23.