home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / animal_artist.swf / scripts / Gamefile / Language.as < prev    next >
Encoding:
Text File  |  2008-09-05  |  9.6 KB  |  212 lines

  1. package Gamefile
  2. {
  3.    import flash.net.LocalConnection;
  4.    import flash.net.URLRequest;
  5.    import flash.net.navigateToURL;
  6.    
  7.    public class Language
  8.    {
  9.       
  10.       public static var urlString:String;
  11.       
  12.       private static var moreGameLink:String;
  13.       
  14.       public static var mode:int;
  15.       
  16.       public static var frame_language:int;
  17.       
  18.       private static var localConnection:LocalConnection;
  19.       
  20.       private static var freeGameLink:String;
  21.       
  22.       private static var SpillGroupUrl:Array;
  23.       
  24.       public static var frame_logo:int;
  25.        
  26.       
  27.       public function Language()
  28.       {
  29.          super();
  30.          mode = 1;
  31.          localConnection = new LocalConnection();
  32.          SpillGroupUrl = new Array();
  33.          SpillGroupUrl.push("www8.agame.com");
  34.          setPro();
  35.          if(localConnection.domain == SpillGroupUrl[0])
  36.          {
  37.             urlString = freeGameLink;
  38.          }
  39.          else
  40.          {
  41.             urlString = moreGameLink;
  42.          }
  43.       }
  44.       
  45.       public static function onCLick1() : *
  46.       {
  47.          if(mode == 2)
  48.          {
  49.             navigateToURL(new URLRequest(urlString),"_blank");
  50.          }
  51.          else
  52.          {
  53.             navigateToURL(new URLRequest(urlString + "&utm_term=button_level_moregames"),"_blank");
  54.          }
  55.          trace("main");
  56.       }
  57.       
  58.       public static function onCLick5() : *
  59.       {
  60.          if(mode == 2)
  61.          {
  62.             navigateToURL(new URLRequest(urlString),"_blank");
  63.          }
  64.          else
  65.          {
  66.             navigateToURL(new URLRequest(urlString + "&utm_term=logo_mainscreen"),"_blank");
  67.          }
  68.          trace("menu logo");
  69.       }
  70.       
  71.       public static function onCLick4() : *
  72.       {
  73.          if(mode == 2)
  74.          {
  75.             navigateToURL(new URLRequest(urlString),"_blank");
  76.          }
  77.          else
  78.          {
  79.             navigateToURL(new URLRequest(urlString + "&utm_term=button_mainscreen_moregames"),"_blank");
  80.          }
  81.          trace("menu button");
  82.       }
  83.       
  84.       public static function onCLick3() : *
  85.       {
  86.          if(mode == 2)
  87.          {
  88.             navigateToURL(new URLRequest(urlString),"_blank");
  89.          }
  90.          else
  91.          {
  92.             navigateToURL(new URLRequest(urlString + "&utm_term=logo_preloader"),"_blank");
  93.          }
  94.          trace("loading logo");
  95.       }
  96.       
  97.       private function setPro() : void
  98.       {
  99.          switch(mode)
  100.          {
  101.             case 1:
  102.                moreGameLink = "http://www.girlsgogames.com/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
  103.                freeGameLink = "http://www.girlsgogames.com/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
  104.                frame_language = 1;
  105.                frame_logo = 29;
  106.                break;
  107.             case 2:
  108.                moreGameLink = "http://www.game.com.cn/moregames/";
  109.                freeGameLink = "http://www.game.com.cn/downloads/";
  110.                frame_language = 16;
  111.                frame_logo = 2;
  112.                break;
  113.             case 3:
  114.                moreGameLink = "http://www.girlsgogames.nl/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
  115.                freeGameLink = "http://www.girlsgogames.nl/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
  116.                frame_language = 3;
  117.                frame_logo = 30;
  118.                break;
  119.             case 4:
  120.                moreGameLink = "http://www.girlsgogames.fr/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
  121.                freeGameLink = "http://www.girlsgogames.fr/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
  122.                frame_language = 4;
  123.                frame_logo = 31;
  124.                break;
  125.             case 5:
  126.                moreGameLink = "http://www.girlsgogames.de/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
  127.                freeGameLink = "http://www.girlsgogames.de/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
  128.                frame_language = 5;
  129.                frame_logo = 32;
  130.                break;
  131.             case 6:
  132.                moreGameLink = "http://www.girlsgogames.pl/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
  133.                freeGameLink = "http://www.girlsgogames.pl/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
  134.                frame_language = 11;
  135.                frame_logo = 33;
  136.                break;
  137.             case 7:
  138.                moreGameLink = "http://www.girlsgogames.se/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
  139.                freeGameLink = "http://www.girlsgogames.se/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
  140.                frame_language = 10;
  141.                frame_logo = 34;
  142.                break;
  143.             case 8:
  144.                moreGameLink = "http://www.girlsgogames.it/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
  145.                freeGameLink = "http://www.girlsgogames.it/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
  146.                frame_language = 9;
  147.                frame_logo = 35;
  148.                break;
  149.             case 9:
  150.                moreGameLink = "http://www.juegosdechicas.com/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
  151.                freeGameLink = "http://www.juegosdechicas.com/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
  152.                frame_language = 6;
  153.                frame_logo = 36;
  154.                break;
  155.             case 10:
  156.                moreGameLink = "http://www.girlsgogames.com.br/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
  157.                freeGameLink = "http://www.girlsgogames.com.br/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
  158.                frame_language = 7;
  159.                frame_logo = 38;
  160.                break;
  161.             case 11:
  162.                moreGameLink = "http://www.games.co.id/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
  163.                freeGameLink = "http://www.games.co.id/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
  164.                frame_language = 14;
  165.                frame_logo = 13;
  166.                break;
  167.             case 12:
  168.                moreGameLink = "http://www.girlsgogames.ru/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
  169.                freeGameLink = "http://www.girlsgogames.ru/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
  170.                frame_language = 12;
  171.                frame_logo = 39;
  172.                break;
  173.             case 13:
  174.                moreGameLink = "http://www.girlsgogames.co.uk/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
  175.                freeGameLink = "http://www.girlsgogames.co.uk/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
  176.                frame_language = 2;
  177.                frame_logo = 37;
  178.                break;
  179.             case 14:
  180.                moreGameLink = "http://www.girlsgogames.in/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
  181.                freeGameLink = "http://www.girlsgogames.in/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
  182.                frame_language = 2;
  183.                frame_logo = 40;
  184.                break;
  185.             case 15:
  186.                moreGameLink = "http://www.girlsgogamestr.com/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
  187.                freeGameLink = "http://www.girlsgogamestr.com/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
  188.                frame_language = 13;
  189.                frame_logo = 41;
  190.                break;
  191.             case 16:
  192.                moreGameLink = "http://www.game.com.my/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
  193.                freeGameLink = "http://www.game.com.my/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
  194.                frame_language = 15;
  195.                frame_logo = 16;
  196.                break;
  197.             case 17:
  198.                moreGameLink = "http://www.ojogos.pt/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
  199.                freeGameLink = "http://www.ojogos.pt/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
  200.                frame_language = 8;
  201.                frame_logo = 42;
  202.                break;
  203.             case 18:
  204.                moreGameLink = "http://www.laro.com.ph/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
  205.                freeGameLink = "http://www.laro.com.ph/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
  206.                frame_language = 2;
  207.                frame_logo = 43;
  208.          }
  209.       }
  210.    }
  211. }
  212.