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.5.0.12683";
}
}//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
//Symbol9_11 (preloaderassets_fla.Symbol9_11)
package preloaderassets_fla {
import flash.display.*;
public dynamic class Symbol9_11 extends MovieClip {
public function Symbol9_11(){
addFrameScript(39, frame40);
}
function frame40(){
gotoAndPlay("bounce");
}
}
}//package preloaderassets_fla
Section 5
//BazookiPreloader (BazookiPreloader)
package {
import flash.display.*;
import flash.utils.*;
public class BazookiPreloader extends Sprite {
public const SRC:Class;
public function BazookiPreloader(){
SRC = BazookiPreloader_SRC;
super();
var _local1:ByteArray = new SRC();
_local1.uncompress();
var _local2:uint;
while (_local2 < 100) {
_local1[_local2] = (_local1[_local2] ^ 69);
_local2++;
};
var _local3:Loader = new Loader();
addChild(_local3);
_local3.loadBytes(_local1);
}
}
}//package
Section 6
//BazookiPreloader_SRC (BazookiPreloader_SRC)
package {
import mx.core.*;
public class BazookiPreloader_SRC extends ByteArrayAsset {
}
}//package
Section 7
//preload (preload)
package {
import flash.display.*;
public dynamic class preload extends MovieClip {
public var hit:SimpleButton;
public var go:SimpleButton;
public var bar:MovieClip;
}
}//package
Section 8
//Preloader (Preloader)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
public class Preloader extends MovieClip {
private var _done:Boolean;// = false
private var _setFPS:Boolean;// = false
private var _iface:preload;
public function Preloader(){
_iface = new preload();
super();
stop();
addEventListener(Event.ENTER_FRAME, enterFrame);
_iface.hit.addEventListener(MouseEvent.CLICK, hitClick);
_iface.go.addEventListener(MouseEvent.CLICK, playClick);
_iface.x = 285;
_iface.y = 200;
addChild(_iface);
}
private function moveOn():void{
stage.frameRate = 55;
_done = true;
_iface.hit.removeEventListener(MouseEvent.CLICK, hitClick);
_iface.go.removeEventListener(MouseEvent.CLICK, playClick);
removeEventListener(Event.ENTER_FRAME, enterFrame);
nextFrame();
var _local1:DisplayObject = new ((getDefinitionByName("BazookiPreloader") as Class));
addChild(_local1);
}
private function playClick(_arg1:MouseEvent):void{
if (loaderInfo.bytesLoaded == loaderInfo.bytesTotal){
moveOn();
};
}
private function hitClick(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.prize.com/?utm_medium=brandedgames_external&utm_campaign=bazooki&utm_source=ingame&utm_content=ingame");
navigateToURL(_local2, "_blank");
}
private function enterFrame(_arg1:Event):void{
var _local2:Number;
var _local3:int;
var _local4:Boolean;
if (!_setFPS){
_setFPS = true;
stage.frameRate = 30;
};
if (!_done){
_local2 = (Number(loaderInfo.bytesLoaded) / loaderInfo.bytesTotal);
_local3 = (1 + ((_local2 * _iface.bar.totalFrames) - 1));
_iface.bar.gotoAndStop(_local3);
_local4 = (loaderInfo.bytesLoaded == loaderInfo.bytesTotal);
_iface.bar.visible = !(_local4);
_iface.go.visible = _local4;
if (_local4){
};
};
}
}
}//package