Section 1
//PokerLoader1 (com.altigi.poker.PokerLoader1)
package com.altigi.poker {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
public class PokerLoader1 extends Sprite {
private const domain:String;
private const isHomeLoaderUrlTest:Boolean = false;
private const versionsDate:String = "20091219";
private const isFaceBook:Boolean = false;
private const FILENamePoker:String;
private const ordner:String;
private const datei:String;
private const FILENameRefTrack:String;
private var loaderPHP:URLLoader;
public function PokerLoader1(){
var loaderPHP:Loader;
var loader:Loader;
var cache:*;
domain = (isHomeLoaderUrlTest) ? "files" : "cdn";
ordner = (isHomeLoaderUrlTest) ? "loader-test/" : "loader/";
datei = (isFaceBook) ? "fbpokerloader.swf" : "pokerloader.swf";
FILENamePoker = (((("http://" + domain) + ".goodgamestudios.com/") + ordner) + datei);
FILENameRefTrack = (("http://files.goodgamestudios.com/" + ordner) + "refcount.swf");
super();
var date:Date = new Date();
var swfUrl = "";
Security.allowDomain("*");
try {
swfUrl = ExternalInterface.call("function getLocation() {return document.referrer;}");
if (swfUrl.indexOf("http") == -1){
swfUrl = ExternalInterface.call("document.location.toString");
};
if (swfUrl.indexOf("http") == -1){
swfUrl = String(stage.loaderInfo.url);
};
} catch(e:Error) {
swfUrl = String(stage.loaderInfo.url);
};
cache = String(Math.floor((date.time / 1000)));
loaderPHP = new Loader();
loaderPHP.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
loaderPHP.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
loaderPHP.load(new URLRequest((((((((((FILENameRefTrack + "?") + "gameID=1&ref=") + swfUrl) + "&") + "vD=") + versionsDate) + "&") + "cache=") + cache)));
loader = new Loader();
addChild(loader);
cache = String(Math.floor((date.time / (((1000 * 60) * 60) * 24))));
loader.load(new URLRequest((((FILENamePoker + "?") + "cache=") + cache)));
}
function securityErrorHandler(_arg1:SecurityErrorEvent):void{
}
function onIOError(_arg1:IOErrorEvent):void{
}
}
}//package com.altigi.poker