home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / Frizzle_fraz.swf / scripts / Code / LIB / _bm350.as next >
Encoding:
Text File  |  2008-09-26  |  2.4 KB  |  98 lines

  1. package Code.LIB
  2. {
  3.    import flash.display.Stage;
  4.    
  5.    public class _bm350
  6.    {
  7.       
  8.       public static var showMochi:Boolean = false;
  9.       
  10.       private static var iURL:String;
  11.       
  12.       public static var lives:int = 0;
  13.       
  14.       public static var scoreSubmitted:Boolean = false;
  15.       
  16.       public static var prStage:Stage;
  17.       
  18.       private static var iDx:Number;
  19.       
  20.       public static var iNative:Boolean = false;
  21.       
  22.       private static var iScale:Number = 1;
  23.       
  24.       private static var iDy:Number;
  25.       
  26.       public static var iDebug:Boolean = false;
  27.        
  28.       
  29.       public function _bm350()
  30.       {
  31.          super();
  32.       }
  33.       
  34.       public static function _ij151() : void
  35.       {
  36.          var _loc1_:Number = NaN;
  37.          var _loc2_:Number = NaN;
  38.          var _loc3_:Number = NaN;
  39.          var _loc4_:Number = NaN;
  40.          _loc1_ = prStage.stageWidth;
  41.          _loc2_ = prStage.stageHeight;
  42.          _loc3_ = _loc1_ / 800;
  43.          _loc4_ = _loc2_ / 600;
  44.          iScale = _loc3_ < _loc4_ ? _loc3_ : _loc4_;
  45.          if(iScale > 1.5)
  46.          {
  47.             iScale = 1.3;
  48.          }
  49.          _aq429((_bm350.prStage.stageWidth - 800 * _tc204) / 2,(_bm350.prStage.stageHeight - 600 * _tc204) / 2);
  50.       }
  51.       
  52.       public static function get _st175() : Number
  53.       {
  54.          return iDy / _tc204;
  55.       }
  56.       
  57.       public static function get _cg260() : Number
  58.       {
  59.          return iDx / _tc204;
  60.       }
  61.       
  62.       public static function _aq429(param1:Number, param2:Number) : void
  63.       {
  64.          iDx = param1;
  65.          iDy = param2;
  66.          trace(iDx," ",iDy);
  67.       }
  68.       
  69.       public static function set _dt66(param1:String) : void
  70.       {
  71.          var _loc2_:String = null;
  72.          var _loc3_:Array = null;
  73.          iURL = param1.substring(0,29);
  74.          _loc2_ = param1.slice(0,param1.length);
  75.          _loc2_.toLowerCase();
  76.          _loc3_ = _loc2_.split("/");
  77.          iNative = true;
  78.          if(_loc2_.indexOf("http://") == 0 || _loc2_.indexOf("https://") == 0)
  79.          {
  80.             if(String(_loc3_[2]).indexOf("bibagames.com") == -1)
  81.             {
  82.                iNative = false;
  83.             }
  84.          }
  85.       }
  86.       
  87.       public static function get _tc204() : Number
  88.       {
  89.          return iScale;
  90.       }
  91.       
  92.       public static function get _dt66() : String
  93.       {
  94.          return iURL;
  95.       }
  96.    }
  97. }
  98.