Section 1
//AdLoader (CPMStar.AdLoader)
package CPMStar {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.net.*;
public class AdLoader extends Sprite {
private var contentspotid:String;
private var cpmstarLoader:Loader;
public function AdLoader(_arg1:String){
this.contentspotid = _arg1;
addEventListener(Event.ADDED, addedHandler);
}
private function addedHandler(_arg1:Event):void{
var _local2:String;
var _local3:DisplayObjectContainer;
removeEventListener(Event.ADDED, addedHandler);
Security.allowDomain("server.cpmstar.com");
_local2 = "http://server.cpmstar.com/adviewas3.swf";
_local3 = parent;
cpmstarLoader = new Loader();
cpmstarLoader.contentLoaderInfo.addEventListener(Event.INIT, dispatchHandler);
cpmstarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchHandler);
cpmstarLoader.load(new URLRequest(((_local2 + "?contentspotid=") + contentspotid)));
addChild(cpmstarLoader);
}
private function dispatchHandler(_arg1:Event):void{
dispatchEvent(_arg1);
}
}
}//package CPMStar
Section 2
//Data (Data)
package {
import flash.display.*;
public dynamic class Data extends BitmapData {
public function Data(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 3
//GamesplzLoader (GamesplzLoader)
package {
import flash.events.*;
import flash.display.*;
import CPMStar.*;
import flash.utils.*;
public dynamic class GamesplzLoader extends MovieClip {
private var loader:Loader;
private var progress:MovieClip;// = null
private var adsprite:Sprite;// = null
private var framerate:int;// = 0
public function GamesplzLoader(){
loader = new Loader();
progress = null;
framerate = 0;
adsprite = null;
super();
addFrameScript(2, frame3);
stop();
stage.align = StageAlign.TOP;
stage.scaleMode = StageScaleMode.SHOW_ALL;
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
addEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage);
if (loaderInfo.bytesLoaded == loaderInfo.bytesTotal){
onFinish();
} else {
loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
loaderInfo.addEventListener(Event.COMPLETE, onComplete);
};
}
private function onRemovedFromStage(_arg1:Event):void{
}
private function onProgress(_arg1:ProgressEvent):void{
progress.gotoAndStop(int(Math.max(1, ((_arg1.bytesLoaded / _arg1.bytesTotal) * progress.totalFrames))));
}
private function onComplete(_arg1:Event):void{
var _local2:Class;
var _local3:BitmapData;
var _local4:ByteArray;
var _local5:Array;
var _local6:int;
var _local7:uint;
var _local8:ByteArray;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
if (adsprite){
removeChild(adsprite);
adsprite = null;
stage.frameRate = framerate;
};
nextFrame();
nextFrame();
_local2 = Class(getDefinitionByName("Data"));
_local3 = BitmapData(new _local2(0, 0));
_local4 = _local3.getPixels(_local3.rect);
_local4.position = 0;
_local5 = new Array();
_local6 = 0;
while (_local6 < 8) {
_local5.push(_local4.readUnsignedByte());
_local6++;
};
_local7 = ((((_local5[7] * 16777216) + (_local5[1] * 65536)) + (_local5[2] * 0x0100)) + _local5[3]);
_local8 = new ByteArray();
_local8.writeByte(_local5[6]);
_local8.writeByte(_local5[5]);
_local6 = 2;
while (_local6 < (_local3.width * _local3.height)) {
_local9 = _local4.readUnsignedByte();
_local10 = _local4.readUnsignedByte();
_local11 = _local4.readUnsignedByte();
_local12 = _local4.readUnsignedByte();
_local8.writeByte(_local12);
_local8.writeByte(_local11);
_local8.writeByte(_local10);
_local6++;
};
_local8.length = _local7;
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onDataComplete);
loader.loadBytes(_local8);
}
function frame3(){
stop();
}
private function onFinish():void{
onComplete(null);
}
private function onDataComplete(_arg1:Event):void{
var _local2:MovieClip;
_local2 = (loader.contentLoaderInfo.content as MovieClip);
stage.addChild(_local2);
}
private function onAddedToStage(_arg1:Event):void{
if (adsprite == null){
framerate = stage.frameRate;
adsprite = new Sprite();
adsprite.x = 125;
adsprite.y = 54;
addChild(adsprite);
adsprite.addChild(new AdLoader("1486QD7BD2045"));
};
progress = new Progress();
addChild(progress);
}
private function onIOError(_arg1:IOErrorEvent):void{
}
public function urlbase():String{
var _local1:String;
var _local2:Number;
var _local3:Number;
var _local4:String;
_local1 = loaderInfo.loaderURL;
_local2 = (_local1.indexOf("://") + 3);
_local3 = _local1.indexOf("/", _local2);
_local4 = _local1.substring(_local2, _local3);
if (_local4.substr(0, 4) == "www."){
return (_local4.substr(4, _local4.length));
};
return (_local4);
}
}
}//package
Section 4
//HeroWalk (HeroWalk)
package {
import flash.events.*;
import flash.display.*;
public class HeroWalk extends MovieClip {
private var frame:int;// = 0
public function HeroWalk(){
frame = 0;
super();
addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
private function onEnterFrame(_arg1:Event):void{
gotoAndStop(int(((frame % totalFrames) + 1)));
frame++;
}
}
}//package
Section 5
//Progress (Progress)
package {
import flash.display.*;
public dynamic class Progress extends MovieClip {
}
}//package