Section 1
//AdLoader (CPMStar.AdLoader)
package CPMStar {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.system.*;
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
//Logo (Logo)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class Logo extends MovieClip {
public function Logo(){
addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
private function onEnterFrame(_arg1:Event):void{
var _local2:MovieClip;
_local2 = MovieClip(getChildAt(1));
if (_local2.currentFrame == _local2.totalFrames){
if (parent){
parent.removeChild(this);
};
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
};
}
private function onMouseDown(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.minijuegos.com"));
}
}
}//package
Section 4
//MinijuegosButton (MinijuegosButton)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class MinijuegosButton extends SimpleButton {
public function MinijuegosButton(){
addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
}
private function onMouseDown(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.minijuegos.com"));
}
}
}//package
Section 5
//MinijuegosLoader (MinijuegosLoader)
package {
import flash.events.*;
import flash.display.*;
import CPMStar.*;
import flash.utils.*;
public dynamic class MinijuegosLoader extends MovieClip {
private var loader:Loader;
private var progress:Oxygen;// = null
public function MinijuegosLoader(){
loader = new Loader();
progress = 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.value = (_arg1.bytesLoaded / _arg1.bytesTotal);
}
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;
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);
stage.addChild(new Logo());
}
private function onAddedToStage(_arg1:Event):void{
var _local2:Sprite;
var _local3:String;
_local2 = new Sprite();
_local2.x = 200;
_local2.y = 140;
_local2.graphics.beginFill(0);
_local2.graphics.drawRect(0, 0, 300, 250);
_local2.graphics.endFill();
_local3 = "1059Q582F5C91";
_local2.addChild(new AdLoader(_local3));
addChild(_local2);
progress = new Oxygen();
progress.x = 25;
progress.y = ((525 - 25) - 8);
progress.width = (700 - (2 * 25));
progress.value = 0;
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 6
//MinijuegosSmallButton (MinijuegosSmallButton)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class MinijuegosSmallButton extends SimpleButton {
public function MinijuegosSmallButton(){
addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
}
private function onMouseDown(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.minijuegos.com"));
}
}
}//package
Section 7
//OxyFill (OxyFill)
package {
import flash.display.*;
public dynamic class OxyFill extends MovieClip {
}
}//package
Section 8
//Oxygen (Oxygen)
package {
import flash.display.*;
public class Oxygen extends MovieClip {
private var m_fill:MovieClip;// = null
private var m_value:Number;// = 1
private var m_left:MovieClip;// = null
private var m_middle:MovieClip;// = null
private var m_right:MovieClip;// = null
public function Oxygen(){
m_left = null;
m_middle = null;
m_right = null;
m_fill = null;
m_value = 1;
super();
m_fill = new OxyFill();
m_left = new OxyLeft();
m_middle = new OxyMiddle();
m_right = new OxyRight();
addChild(m_fill);
addChild(m_left);
addChild(m_middle);
addChild(m_right);
update();
}
public function get value():Number{
return (m_value);
}
public function update():void{
var _local1:Number;
_local1 = width;
scaleX = 1;
scaleY = 1;
m_left.scaleX = 1;
m_right.scaleX = 1;
if (_local1 < (m_left.width + m_right.width)){
m_left.x = 0;
m_right.x = (m_left.x + m_left.width);
m_middle.width = 0;
m_fill.width = 0;
} else {
m_left.x = 0;
m_middle.x = (m_left.x + m_left.width);
m_middle.width = ((_local1 - m_left.width) - m_right.width);
m_fill.x = m_middle.x;
m_fill.width = (value * m_middle.width);
m_right.x = (_local1 - m_right.width);
};
}
public function set value(_arg1:Number):void{
m_value = _arg1;
if (m_value < 0){
m_value = 0;
};
if (m_value > 1){
m_value = 1;
};
update();
}
}
}//package
Section 9
//OxyLeft (OxyLeft)
package {
import flash.display.*;
public dynamic class OxyLeft extends MovieClip {
}
}//package
Section 10
//OxyMiddle (OxyMiddle)
package {
import flash.display.*;
public dynamic class OxyMiddle extends MovieClip {
}
}//package
Section 11
//OxyRight (OxyRight)
package {
import flash.display.*;
public dynamic class OxyRight extends MovieClip {
}
}//package