home *** CD-ROM | disk | FTP | other *** search
- package Gamefile
- {
- import flash.net.LocalConnection;
- import flash.net.URLRequest;
- import flash.net.navigateToURL;
-
- public class Language
- {
-
- public static var urlString:String;
-
- private static var moreGameLink:String;
-
- public static var mode:int;
-
- public static var frame_language:int;
-
- private static var localConnection:LocalConnection;
-
- private static var freeGameLink:String;
-
- private static var SpillGroupUrl:Array;
-
- public static var frame_logo:int;
-
-
- public function Language()
- {
- super();
- mode = 1;
- localConnection = new LocalConnection();
- SpillGroupUrl = new Array();
- SpillGroupUrl.push("www8.agame.com");
- setPro();
- if(localConnection.domain == SpillGroupUrl[0])
- {
- urlString = freeGameLink;
- }
- else
- {
- urlString = moreGameLink;
- }
- }
-
- public static function onCLick1() : *
- {
- if(mode == 2)
- {
- navigateToURL(new URLRequest(urlString),"_blank");
- }
- else
- {
- navigateToURL(new URLRequest(urlString + "&utm_term=button_level_moregames"),"_blank");
- }
- trace("main");
- }
-
- public static function onCLick5() : *
- {
- if(mode == 2)
- {
- navigateToURL(new URLRequest(urlString),"_blank");
- }
- else
- {
- navigateToURL(new URLRequest(urlString + "&utm_term=logo_mainscreen"),"_blank");
- }
- trace("menu logo");
- }
-
- public static function onCLick4() : *
- {
- if(mode == 2)
- {
- navigateToURL(new URLRequest(urlString),"_blank");
- }
- else
- {
- navigateToURL(new URLRequest(urlString + "&utm_term=button_mainscreen_moregames"),"_blank");
- }
- trace("menu button");
- }
-
- public static function onCLick3() : *
- {
- if(mode == 2)
- {
- navigateToURL(new URLRequest(urlString),"_blank");
- }
- else
- {
- navigateToURL(new URLRequest(urlString + "&utm_term=logo_preloader"),"_blank");
- }
- trace("loading logo");
- }
-
- private function setPro() : void
- {
- switch(mode)
- {
- case 1:
- moreGameLink = "http://www.girlsgogames.com/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
- freeGameLink = "http://www.girlsgogames.com/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
- frame_language = 1;
- frame_logo = 29;
- break;
- case 2:
- moreGameLink = "http://www.game.com.cn/moregames/";
- freeGameLink = "http://www.game.com.cn/downloads/";
- frame_language = 16;
- frame_logo = 2;
- break;
- case 3:
- moreGameLink = "http://www.girlsgogames.nl/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
- freeGameLink = "http://www.girlsgogames.nl/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
- frame_language = 3;
- frame_logo = 30;
- break;
- case 4:
- moreGameLink = "http://www.girlsgogames.fr/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
- freeGameLink = "http://www.girlsgogames.fr/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
- frame_language = 4;
- frame_logo = 31;
- break;
- case 5:
- moreGameLink = "http://www.girlsgogames.de/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
- freeGameLink = "http://www.girlsgogames.de/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
- frame_language = 5;
- frame_logo = 32;
- break;
- case 6:
- moreGameLink = "http://www.girlsgogames.pl/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
- freeGameLink = "http://www.girlsgogames.pl/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
- frame_language = 11;
- frame_logo = 33;
- break;
- case 7:
- moreGameLink = "http://www.girlsgogames.se/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
- freeGameLink = "http://www.girlsgogames.se/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
- frame_language = 10;
- frame_logo = 34;
- break;
- case 8:
- moreGameLink = "http://www.girlsgogames.it/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
- freeGameLink = "http://www.girlsgogames.it/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
- frame_language = 9;
- frame_logo = 35;
- break;
- case 9:
- moreGameLink = "http://www.juegosdechicas.com/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
- freeGameLink = "http://www.juegosdechicas.com/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
- frame_language = 6;
- frame_logo = 36;
- break;
- case 10:
- moreGameLink = "http://www.girlsgogames.com.br/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
- freeGameLink = "http://www.girlsgogames.com.br/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
- frame_language = 7;
- frame_logo = 38;
- break;
- case 11:
- moreGameLink = "http://www.games.co.id/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
- freeGameLink = "http://www.games.co.id/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
- frame_language = 14;
- frame_logo = 13;
- break;
- case 12:
- moreGameLink = "http://www.girlsgogames.ru/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
- freeGameLink = "http://www.girlsgogames.ru/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
- frame_language = 12;
- frame_logo = 39;
- break;
- case 13:
- moreGameLink = "http://www.girlsgogames.co.uk/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
- freeGameLink = "http://www.girlsgogames.co.uk/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
- frame_language = 2;
- frame_logo = 37;
- break;
- case 14:
- moreGameLink = "http://www.girlsgogames.in/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
- freeGameLink = "http://www.girlsgogames.in/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
- frame_language = 2;
- frame_logo = 40;
- break;
- case 15:
- moreGameLink = "http://www.girlsgogamestr.com/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
- freeGameLink = "http://www.girlsgogamestr.com/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
- frame_language = 13;
- frame_logo = 41;
- break;
- case 16:
- moreGameLink = "http://www.game.com.my/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
- freeGameLink = "http://www.game.com.my/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
- frame_language = 15;
- frame_logo = 16;
- break;
- case 17:
- moreGameLink = "http://www.ojogos.pt/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
- freeGameLink = "http://www.ojogos.pt/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
- frame_language = 8;
- frame_logo = 42;
- break;
- case 18:
- moreGameLink = "http://www.laro.com.ph/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain;
- freeGameLink = "http://www.laro.com.ph/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
- frame_language = 2;
- frame_logo = 43;
- }
- }
- }
- }
-