Section 1
//ByteArrayAsset (mx.core.ByteArrayAsset)
package mx.core {
import flash.utils.*;
public class ByteArrayAsset extends ByteArray implements IFlexAsset {
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.core
Section 2
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 3
//mx_internal (mx.core.mx_internal)
package mx.core {
public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
}//package mx.core
Section 4
//ASPreloader (ASPreloader)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import mx.core.*;
import flash.system.*;
public class ASPreloader extends Sprite {
public var gimme5games_layer:Sprite;
public var game_layer:Sprite;
public var timer:Timer;
public var sample_game:Object;
private var G5Framework:Class;
private var GameData:Class;
public var remote_object:Object;
public static var instance:ASPreloader;
public function ASPreloader(){
G5Framework = ASPreloader_G5Framework;
GameData = ASPreloader_GameData;
super();
_slot1.instance = this;
game_layer = new Sprite();
gimme5games_layer = new Sprite();
addChild(game_layer);
stage.addChild(gimme5games_layer);
var _local1:ByteArrayAsset = new G5Framework();
var _local2:Loader = new Loader();
_local2.loadBytes(_local1);
_local2.contentLoaderInfo.addEventListener(Event.COMPLETE, sponsor_ad_load_complete);
gimme5games_layer.addChild(_local2);
}
public function cb():void{
sample_game = remote_object.sample_game;
timer = new Timer(4400, 1);
timer.addEventListener(TimerEvent.TIMER, load_game_data, false, 0, true);
timer.start();
}
public function sponsor_ad_load_complete(_arg1:Object):void{
remote_object = _arg1.target.content;
remote_object.cb = cb;
}
public function load_game_data(_arg1:TimerEvent):void{
timer.removeEventListener(TimerEvent.TIMER, load_game_data);
var _local2:ByteArrayAsset = new GameData();
var _local3:int = _local2.readUnsignedByte();
var _local4:int = _local2.readUnsignedByte();
var _local5:int = _local2.readUnsignedByte();
var _local6:int = _local2.readUnsignedByte();
var _local7 = ((((_local3 << 24) | (_local4 << 16)) | (_local5 << 8)) | _local6);
var _local8:ByteArray = new ByteArray();
while (_local2.bytesAvailable > 4) {
_local8.writeInt((_local2.readUnsignedInt() ^ _local7));
};
var _local9:int;
while (_local2.bytesAvailable > 0) {
switch ((_local9 & 3)){
case 0:
_local8.writeByte((_local2.readUnsignedByte() ^ _local3));
break;
case 1:
_local8.writeByte((_local2.readUnsignedByte() ^ _local4));
break;
case 2:
_local8.writeByte((_local2.readUnsignedByte() ^ _local5));
break;
default:
_local8.writeByte((_local2.readUnsignedByte() ^ _local6));
break;
};
_local9++;
};
_local8.uncompress();
var _local10:Loader = new Loader();
game_layer.addChild(_local10);
var _local11:LoaderContext = new LoaderContext();
_local10.loadBytes(_local8, _local11);
}
public static function get_url():String{
return (_slot1.instance.loaderInfo.url);
}
}
}//package
Section 5
//ASPreloader_G5Framework (ASPreloader_G5Framework)
package {
import mx.core.*;
public class ASPreloader_G5Framework extends ByteArrayAsset {
}
}//package
Section 6
//ASPreloader_GameData (ASPreloader_GameData)
package {
import mx.core.*;
public class ASPreloader_GameData extends ByteArrayAsset {
}
}//package