home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / sinta.swf / scripts / MochiBot.as < prev    next >
Encoding:
Text File  |  2008-08-08  |  1.6 KB  |  56 lines

  1. package
  2. {
  3.    import flash.display.*;
  4.    import flash.net.*;
  5.    import flash.system.*;
  6.    
  7.    public dynamic class MochiBot extends Sprite
  8.    {
  9.        
  10.       
  11.       public function MochiBot()
  12.       {
  13.          super();
  14.       }
  15.       
  16.       public static function track(param1:Sprite, param2:String) : MochiBot
  17.       {
  18.          var _loc3_:MochiBot = null;
  19.          var _loc4_:String = null;
  20.          var _loc5_:URLVariables = null;
  21.          var _loc6_:String = null;
  22.          var _loc7_:URLRequest = null;
  23.          var _loc8_:Loader = null;
  24.          if(Security.sandboxType == "localWithFile")
  25.          {
  26.             return null;
  27.          }
  28.          _loc3_ = new MochiBot();
  29.          param1.addChild(_loc3_);
  30.          Security.allowDomain("core.mochibot.com");
  31.          Security.allowInsecureDomain("core.mochibot.com");
  32.          _loc4_ = "http://core.mochibot.com/my/core.swf";
  33.          (_loc5_ = new URLVariables())["sb"] = Security.sandboxType;
  34.          _loc5_["v"] = Capabilities.version;
  35.          _loc5_["swfid"] = param2;
  36.          _loc5_["mv"] = "8";
  37.          _loc5_["fv"] = "9";
  38.          if((_loc6_ = _loc3_.root.loaderInfo.loaderURL).indexOf("http") == 0)
  39.          {
  40.             _loc5_["url"] = _loc6_;
  41.          }
  42.          else
  43.          {
  44.             _loc5_["url"] = "local";
  45.          }
  46.          (_loc7_ = new URLRequest(_loc4_)).contentType = "application/x-www-form-urlencoded";
  47.          _loc7_.method = URLRequestMethod.POST;
  48.          _loc7_.data = _loc5_;
  49.          _loc8_ = new Loader();
  50.          _loc3_.addChild(_loc8_);
  51.          _loc8_.load(_loc7_);
  52.          return _loc3_;
  53.       }
  54.    }
  55. }
  56.