home *** CD-ROM | disk | FTP | other *** search
/ Ice Age Fan CD 1 / CD1_Scrat.iso / flash / data / game.swf / scripts / com / google / analytics / external / AdSenseGlobals.as next >
Encoding:
Text File  |  2012-07-04  |  2.6 KB  |  121 lines

  1. package com.google.analytics.external
  2. {
  3.    import com.google.analytics.debug.DebugConfiguration;
  4.    
  5.    public class AdSenseGlobals extends JavascriptProxy
  6.    {
  7.       public static var gaGlobal_js:XML = <script>
  8.             <![CDATA[
  9.                 function()
  10.                 {
  11.                     try
  12.                     {
  13.                         gaGlobal
  14.                     }
  15.                     catch(e)
  16.                     {
  17.                         gaGlobal = {} ;
  18.                     }
  19.                 }
  20.             ]]>
  21.         </script>;
  22.       
  23.       private var _gaGlobalVerified:Boolean = false;
  24.       
  25.       public function AdSenseGlobals(param1:DebugConfiguration)
  26.       {
  27.          super(param1);
  28.       }
  29.       
  30.       public function set vid(param1:String) : void
  31.       {
  32.          if(!isAvailable())
  33.          {
  34.             return;
  35.          }
  36.          _verify();
  37.          setProperty("gaGlobal.vid",param1);
  38.       }
  39.       
  40.       public function get hid() : String
  41.       {
  42.          if(!isAvailable())
  43.          {
  44.             return null;
  45.          }
  46.          _verify();
  47.          return getProperty("gaGlobal.hid");
  48.       }
  49.       
  50.       public function set hid(param1:String) : void
  51.       {
  52.          if(!isAvailable())
  53.          {
  54.             return;
  55.          }
  56.          _verify();
  57.          setProperty("gaGlobal.hid",param1);
  58.       }
  59.       
  60.       public function get dh() : String
  61.       {
  62.          if(!isAvailable())
  63.          {
  64.             return null;
  65.          }
  66.          _verify();
  67.          return getProperty("gaGlobal.dh");
  68.       }
  69.       
  70.       public function get sid() : String
  71.       {
  72.          if(!isAvailable())
  73.          {
  74.             return null;
  75.          }
  76.          _verify();
  77.          return getProperty("gaGlobal.sid");
  78.       }
  79.       
  80.       public function get vid() : String
  81.       {
  82.          if(!isAvailable())
  83.          {
  84.             return null;
  85.          }
  86.          _verify();
  87.          return getProperty("gaGlobal.vid");
  88.       }
  89.       
  90.       private function _verify() : void
  91.       {
  92.          if(!_gaGlobalVerified)
  93.          {
  94.             executeBlock(gaGlobal_js);
  95.             _gaGlobalVerified = true;
  96.          }
  97.       }
  98.       
  99.       public function set sid(param1:String) : void
  100.       {
  101.          if(!isAvailable())
  102.          {
  103.             return;
  104.          }
  105.          _verify();
  106.          setProperty("gaGlobal.sid",param1);
  107.       }
  108.       
  109.       public function get gaGlobal() : Object
  110.       {
  111.          if(!isAvailable())
  112.          {
  113.             return null;
  114.          }
  115.          _verify();
  116.          return getProperty("gaGlobal");
  117.       }
  118.    }
  119. }
  120.  
  121.