Section 1
//MindJoltAPI (com.mindjolt.api.as3.MindJoltAPI)
package com.mindjolt.api.as3 {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class MindJoltAPI extends MovieClip {
private var dispatcher:CustomDispatcher;
public static var service:Object;
public function MindJoltAPI(){
dispatcher = new CustomDispatcher();
dispatcher.doAction(1, 100);
dispatcher.addEventListener(_slot2.ACTION, createRoot);
}
private function createRoot(_arg1:Event):void{
if (root != null){
_arg1.currentTarget.removeEventListener(_slot2.ACTION, createRoot);
init();
};
}
private function init():void{
var _local1:Object;
var _local2:String;
var _local3:Loader;
_local1 = Object(parent.root).loaderInfo.parameters;
_local2 = "";
if (((!((_local1.mjPath == null))) && (isDomainAllowed()))){
_local2 = _local1.mjPath;
} else {
_local2 = "http://static.mindjolt.com/api/as3/scoreapi_as3_local.swf";
};
_local3 = new Loader();
_local3.contentLoaderInfo.addEventListener(Event.COMPLETE, loadFinished);
_local3.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadFailed);
_local3.load(new URLRequest(_local2));
addChild(_local3);
}
private function loadFinished(_arg1:Event):void{
service = _arg1.currentTarget.content.service;
service.connect();
trace("[MindJoltAPI] service loaded");
}
private function isDomainAllowed():Boolean{
var _local1:String;
var _local2:LocalConnection;
var _local3:String;
_local1 = ".mindjolt.com";
_local2 = new LocalConnection();
_local3 = _local2.domain;
if (_local3.indexOf(_local1) == (_local3.length - _local1.length)){
return (true);
};
return (false);
}
private function loadFailed(_arg1:IOErrorEvent):void{
trace("[MindJoltAPI] unable to load service");
}
}
}//package com.mindjolt.api.as3
import flash.events.*;
import flash.utils.*;
class CustomDispatcher extends EventDispatcher {
public static var ACTION:String = "action";
private function CustomDispatcher(){
}
public function doAction(_arg1:Number, _arg2:Number):void{
var myTimer:Timer;
var propAction:Function;
var delay = _arg1;
var repeat = _arg2;
propAction = function (_arg1:TimerEvent):void{
dispatchEvent(new Event(_slot2.ACTION));
};
myTimer = new Timer(delay, repeat);
myTimer.addEventListener(TimerEvent.TIMER, propAction);
myTimer.start();
}
}
Section 2
//BezierSegment (fl.motion.BezierSegment)
package fl.motion {
import flash.geom.*;
public class BezierSegment {
public var a:Point;
public var c:Point;
public var b:Point;
public var d:Point;
public function BezierSegment(_arg1:Point, _arg2:Point, _arg3:Point, _arg4:Point){
this.a = _arg1;
this.b = _arg2;
this.c = _arg3;
this.d = _arg4;
}
public function getYForX(_arg1:Number, _arg2:Array=null):Number{
var _local3:Array;
var _local4:Number;
var _local5:Number;
var _local6:Number;
if (this.a.x < this.d.x){
if (_arg1 <= (this.a.x + 1E-16)){
return (this.a.y);
};
if (_arg1 >= (this.d.x - 1E-16)){
return (this.d.y);
};
} else {
if (_arg1 >= (this.a.x + 1E-16)){
return (this.a.y);
};
if (_arg1 <= (this.d.x - 1E-16)){
return (this.d.y);
};
};
if (!_arg2){
_arg2 = getCubicCoefficients(this.a.x, this.b.x, this.c.x, this.d.x);
};
_local3 = getCubicRoots(_arg2[0], _arg2[1], _arg2[2], (_arg2[3] - _arg1));
_local4 = NaN;
if (_local3.length == 0){
_local4 = 0;
} else {
if (_local3.length == 1){
_local4 = _local3[0];
} else {
for each (_local6 in _local3) {
if ((((0 <= _local6)) && ((_local6 <= 1)))){
_local4 = _local6;
break;
};
};
};
};
if (isNaN(_local4)){
return (NaN);
};
_local5 = getSingleValue(_local4, this.a.y, this.b.y, this.c.y, this.d.y);
return (_local5);
}
public function getValue(_arg1:Number):Point{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local2 = this.a.x;
_local3 = (((((_arg1 * _arg1) * (this.d.x - _local2)) + ((3 * (1 - _arg1)) * ((_arg1 * (this.c.x - _local2)) + ((1 - _arg1) * (this.b.x - _local2))))) * _arg1) + _local2);
_local4 = this.a.y;
_local5 = (((((_arg1 * _arg1) * (this.d.y - _local4)) + ((3 * (1 - _arg1)) * ((_arg1 * (this.c.y - _local4)) + ((1 - _arg1) * (this.b.y - _local4))))) * _arg1) + _local4);
return (new Point(_local3, _local5));
}
public static function getCubicCoefficients(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Array{
return ([(((-(_arg1) + (3 * _arg2)) - (3 * _arg3)) + _arg4), (((3 * _arg1) - (6 * _arg2)) + (3 * _arg3)), ((-3 * _arg1) + (3 * _arg2)), _arg1]);
}
public static function getSingleValue(_arg1:Number, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0):Number{
return ((((((_arg1 * _arg1) * (_arg5 - _arg2)) + ((3 * (1 - _arg1)) * ((_arg1 * (_arg4 - _arg2)) + ((1 - _arg1) * (_arg3 - _arg2))))) * _arg1) + _arg2));
}
public static function getCubicRoots(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0):Array{
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:int;
var _local16:Number;
if (!_arg1){
return (BezierSegment.getQuadraticRoots(_arg2, _arg3, _arg4));
};
if (_arg1 != 1){
_arg2 = (_arg2 / _arg1);
_arg3 = (_arg3 / _arg1);
_arg4 = (_arg4 / _arg1);
};
_local5 = (((_arg2 * _arg2) - (3 * _arg3)) / 9);
_local6 = (((((_arg2 * _arg2) - (3 * _arg3)) / 9) * _local5) * _local5);
_local7 = ((((((2 * _arg2) * _arg2) * _arg2) - ((9 * _arg2) * _arg3)) + (27 * _arg4)) / 54);
_local8 = (_local6 - (_local7 * _local7));
if (_local8 >= 0){
if (!_local5){
return ([0]);
};
_local9 = Math.acos((_local7 / Math.sqrt(_local6)));
_local10 = Math.sqrt(_local5);
_local11 = (((-2 * _local10) * Math.cos((_local9 / 3))) - (_arg2 / 3));
_local12 = (((-2 * _local10) * Math.cos(((_local9 + (2 * Math.PI)) / 3))) - (_arg2 / 3));
_local13 = (((-2 * _local10) * Math.cos(((_local9 + (4 * Math.PI)) / 3))) - (_arg2 / 3));
return ([_local11, _local12, _local13]);
//unresolved jump
};
_local14 = Math.pow((Math.sqrt(-(_local8)) + Math.abs(_local7)), (1 / 3));
_local15 = ((_local7)>0) ? 1 : ((_local7 < 0)) ? -1 : 0;
_local16 = ((-(_local15) * (_local14 + (_local5 / _local14))) - (_arg2 / 3));
return ([_local16]);
}
public static function getQuadraticRoots(_arg1:Number, _arg2:Number, _arg3:Number):Array{
var _local4:Array;
var _local5:Number;
var _local6:int;
var _local7:Number;
_local4 = [];
if (!_arg1){
if (!_arg2){
return ([]);
};
_local4[0] = (-(_arg3) / _arg2);
return (_local4);
};
_local5 = ((_arg2 * _arg2) - ((4 * _arg1) * _arg3));
_local6 = ((_local5)>0) ? 1 : ((_local5 < 0)) ? -1 : 0;
if (_local6 < 0){
return ([]);
};
if (!_local6){
_local4[0] = (-(_arg2) / (2 * _arg1));
} else {
_local4[0] = (_local4[1] = (-(_arg2) / (2 * _arg1)));
_local7 = (Math.sqrt(_local5) / (2 * _arg1));
_local4[0] = (_local4[0] - _local7);
_local4[1] = (_local4[1] + _local7);
};
return (_local4);
}
}
}//package fl.motion
Section 3
//CustomEase (fl.motion.CustomEase)
package fl.motion {
import flash.geom.*;
public class CustomEase implements ITween {
public var points:Array;
private var firstNode:Point;
private var _target:String;// = ""
private var lastNode:Point;
public function CustomEase(_arg1:XML=null){
_target = "";
super();
this.points = [];
this.parseXML(_arg1);
this.firstNode = new Point(0, 0);
this.lastNode = new Point(1, 1);
}
public function set target(_arg1:String):void{
this._target = _arg1;
}
public function get target():String{
return (this._target);
}
public function getValue(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number;
var _local6:Array;
var _local7:Number;
if (_arg4 <= 0){
return (NaN);
};
_local5 = (_arg1 / _arg4);
if (_local5 <= 0){
return (_arg2);
};
if (_local5 >= 1){
return ((_arg2 + _arg3));
};
_local6 = [this.firstNode].concat(this.points);
_local6.push(this.lastNode);
_local7 = getYForPercent(_local5, _local6);
return ((_arg2 + (_local7 * _arg3)));
}
private function parseXML(_arg1:XML=null):CustomEase{
var _local2:XMLList;
var _local3:XML;
if (!_arg1){
return (this);
};
if (_arg1.@target.length()){
this.target = _arg1.@target;
};
_local2 = _arg1.elements();
for each (_local3 in _local2) {
this.points.push(new Point(Number(_local3.@x), Number(_local3.@y)));
};
return (this);
}
static function getYForPercent(_arg1:Number, _arg2:Array):Number{
var _local3:BezierSegment;
var _local4:Array;
var _local5:int;
var _local6:BezierSegment;
var _local7:Number;
var _local8:int;
var _local9:BezierSegment;
_local3 = new BezierSegment(_arg2[0], _arg2[1], _arg2[2], _arg2[3]);
_local4 = [_local3];
_local5 = 3;
while (_local5 < (_arg2.length - 3)) {
_local4.push(new BezierSegment(_arg2[_local5], _arg2[(_local5 + 1)], _arg2[(_local5 + 2)], _arg2[(_local5 + 3)]));
_local5 = (_local5 + 3);
};
_local6 = _local3;
if (_arg2.length >= 5){
_local8 = 0;
while (_local8 < _local4.length) {
_local9 = _local4[_local8];
if ((((_local9.a.x <= _arg1)) && ((_arg1 <= _local9.d.x)))){
_local6 = _local9;
break;
};
_local8++;
};
};
_local7 = _local6.getYForX(_arg1);
return (_local7);
}
}
}//package fl.motion
Section 4
//ITween (fl.motion.ITween)
package fl.motion {
public interface ITween {
function get target():String;
function set target(_arg1:String):void;
function getValue(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number;
}
}//package fl.motion
Section 5
//MochiAd (mochi.as3.MochiAd)
package mochi.as3 {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class MochiAd {
public static function getVersion():String{
return ("3.02 as3");
}
public static function showClickAwayAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_timeout:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var sendHostProgress:Boolean;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
sendHostProgress = false;
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
_local3 = true;
chk.started = getTimer();
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (this.root == null){
_local3 = true;
};
if (_local3){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(_arg1:String):String{
var _local2:String;
_local2 = _arg1.split("/")[2].split(":")[0];
if (Security.sandboxType == "application"){
return (_local2);
};
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function unload(_arg1:Object):Boolean{
if (((_arg1.clip) && (_arg1.clip._mochiad))){
_arg1 = _arg1.clip;
};
if (_arg1.origFrameRate != undefined){
_arg1.stage.frameRate = _arg1.origFrameRate;
};
if (!_arg1._mochiad){
return (false);
};
if (_arg1._mochiad._containerLCName != undefined){
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"});
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
delete _arg1._mochiad_loaded;
delete _arg1._mochiad;
return (true);
}
public static function showInterLevelAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = (_arg1 - 250);
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (_local2 > chk.ad_msec){
_local3 = true;
};
if (_local3){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
var _local3:Object;
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
_local3 = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
if (_local3.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
_arg1 = _local3.clip.loaderInfo.parameters.mochiad_options;
if (_arg1){
_local5 = _arg1.split("&");
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = _local5[_local6].split("=");
_local3[unescape(_local7[0])] = unescape(_local7[1]);
_local6++;
};
};
if (_local3.id == "test"){
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
};
return (_local3);
}
public static function _cleanup(_arg1:Object):void{
var idx:Number;
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = _arg1;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
try {
lc.client = null;
lc.close();
} catch(e:Error) {
};
};
setTimeout(f, 0);
};
idx = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(_arg1:Object):MovieClip{
var DEFAULTS:Object;
var clip:Object;
var depth:Number;
var mc:MovieClip;
var wh:Array;
var lv:URLVariables;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = _arg1;
DEFAULTS = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = MochiAd.getVersion();
clip = options.clip;
if (!MochiAd._isNetworkAvailable()){
return (null);
};
try {
if (clip._mochiad_loaded){
return (null);
};
} catch(e:Error) {
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
depth = options.depth;
delete options.depth;
mc = createEmptyMovieClip(clip, "_mochiad", depth);
wh = MochiAd._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
} else {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
};
lv = new URLVariables();
for (k in options) {
v = options[k];
if (!(v is Function)){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
g = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
MochiAd.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime()));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function (_arg1:IOErrorEvent):void{
trace("[MochiAds] Blocked URL");
});
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
if (typeof(_arg1[_local4[_local5]]) == "function"){
return (_arg1[_local4[_local5]].apply(_arg1, _arg3));
};
return (undefined);
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4:MovieClip;
_local4 = new MovieClip();
if (((false) && (_arg3))){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
_arg1[_arg2] = _local4;
_local4["_name"] = _arg2;
return (_local4);
}
public static function _getRes(_arg1:Object, _arg2:Object):Array{
var _local3:Object;
var _local4:Number;
var _local5:Number;
var _local6:Array;
_local3 = _arg2.getBounds(_arg2.root);
_local4 = 0;
_local5 = 0;
if (typeof(_arg1.res) != "undefined"){
_local6 = _arg1.res.split("x");
_local4 = parseFloat(_local6[0]);
_local5 = parseFloat(_local6[1]);
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
if ((((_local4 == 0)) || ((_local5 == 0)))){
_local4 = _arg2.stage.stageWidth;
_local5 = _arg2.stage.stageHeight;
};
return ([_local4, _local5]);
}
public static function adShowing(_arg1:Object):void{
_arg1.origFrameRate = _arg1.stage.frameRate;
_arg1.stage.frameRate = 30;
}
public static function getValue(_arg1:Object, _arg2:String):Object{
var _local3:Array;
var _local4:Number;
_local3 = _arg2.split(".");
_local4 = 0;
while (_local4 < (_local3.length - 1)) {
if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local3[_local4]];
_local4++;
};
return (_arg1[_local3[_local4]]);
}
public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{
var _local4:Object;
var _local5:Object;
switch (_arg3.id){
case "setValue":
MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = MochiAd.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
_local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5);
break;
default:
trace(("[mochiads rpc] unknown rpc id: " + _arg3.id));
};
}
public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return;
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
_arg1[_local4[_local5]] = _arg3;
}
public static function showPreGameAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var bar:MovieClip;
var bar_color:Number;
var bar_background:Number;
var bar_outline:Number;
var backing_mc:MovieClip;
var backing:Object;
var inside_mc:MovieClip;
var inside:Object;
var outline_mc:MovieClip;
var outline:Object;
var complete:Boolean;
var unloaded:Boolean;
var f:Function;
var sendHostProgress:Boolean;
var fn:Function;
var r:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}, ad_progress:function (_arg1:Number):void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
return;
};
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
var fn:Function;
MochiAd._cleanup(mc);
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
bar = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = 10;
bar.y = (h - 20);
};
bar_color = options.color;
delete options.color;
bar_background = options.background;
delete options.background;
bar_outline = options.outline;
delete options.outline;
backing_mc = createEmptyMovieClip(bar, "_outline", 1);
backing = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo((w - 20), 0);
backing.lineTo((w - 20), 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
inside_mc = createEmptyMovieClip(bar, "_inside", 2);
inside = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo((w - 20), 0);
inside.lineTo((w - 20), 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
outline_mc = createEmptyMovieClip(bar, "_outline", 3);
outline = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo((w - 20), 0);
outline.lineTo((w - 20), 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number;
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
f = function (_arg1:Event):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
complete = true;
if (unloaded){
MochiAd.unload(clip);
};
};
if (clip.loaderInfo.bytesLoaded == clip.loaderInfo.bytesTotal){
complete = true;
} else {
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
} else {
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
};
} else {
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
MochiAd.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = _arg1;
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
mc.rpcTestFn = function (_arg1:String):Object{
trace(("[MOCHIAD rpcTestFn] " + _arg1));
return (_arg1);
};
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Object;
var _local3:Number;
var _local4:Boolean;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Object;
var _local10:Number;
var _local11:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
_local1 = this.parent.parent.root;
_local2 = this.parent._mochiad_ctr;
_local3 = (getTimer() - this.started);
_local4 = false;
_local5 = _local1.loaderInfo.bytesTotal;
_local6 = _local1.loaderInfo.bytesLoaded;
if (complete){
_local6 = Math.max(1, _local6);
_local5 = _local6;
};
_local7 = ((100 * _local6) / _local5);
_local8 = ((100 * _local3) / chk.ad_msec);
_local9 = this._mochiad_bar._inside;
_local10 = Math.min(100, Math.min(((_local7) || (0)), _local8));
_local10 = Math.max(this.last_pcnt, _local10);
this.last_pcnt = _local10;
_local9.scaleX = (_local10 * 0.01);
options.ad_progress(_local10);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7});
if (_local7 == 100){
sendHostProgress = false;
};
};
if (!chk.showing){
_local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local11 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){
options.ad_failed();
_local4 = true;
};
};
};
if (_local3 > chk.ad_msec){
_local4 = true;
};
if (((complete) && (_local4))){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(_arg1);
}
public static function showTimedAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(_arg1);
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var f:Function;
var mc = _arg1;
f = function (_arg1:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package mochi.as3
Section 6
//MochiDigits (mochi.as3.MochiDigits)
package mochi.as3 {
public final class MochiDigits {
private var Sibling:MochiDigits;
private var Fragment:Number;
private var Encoder:Number;
public function MochiDigits(_arg1:Number=0, _arg2:uint=0):void{
Encoder = 0;
setValue(_arg1, _arg2);
}
public function set value(_arg1:Number):void{
setValue(_arg1);
}
public function reencode():void{
var _local1:uint;
_local1 = int((2147483647 * Math.random()));
Fragment = (Fragment ^ (_local1 ^ Encoder));
Encoder = _local1;
}
public function toString():String{
var _local1:String;
_local1 = String.fromCharCode((Fragment ^ Encoder));
if (Sibling != null){
_local1 = (_local1 + Sibling.toString());
};
return (_local1);
}
public function get value():Number{
return (Number(this.toString()));
}
public function setValue(_arg1:Number=0, _arg2:uint=0):void{
var _local3:String;
_local3 = _arg1.toString();
var _temp1 = _arg2;
_arg2 = (_arg2 + 1);
Fragment = (_local3.charCodeAt(_temp1) ^ Encoder);
if (_arg2 < _local3.length){
Sibling = new MochiDigits(_arg1, _arg2);
} else {
Sibling = null;
};
reencode();
}
public function addValue(_arg1:Number):void{
value = (value + _arg1);
}
}
}//package mochi.as3
Section 7
//MochiScores (mochi.as3.MochiScores)
package mochi.as3 {
import flash.display.*;
import flash.text.*;
public class MochiScores {
private static var boardID:String;
public static var onErrorHandler:Object;
public static var onCloseHandler:Object;
public static function showLeaderboard(_arg1:Object=null):void{
var n:Number;
var options = _arg1;
if (options != null){
if (options.clip != null){
if ((options.clip is Sprite)){
MochiServices.setContainer(options.clip);
};
delete options.clip;
} else {
MochiServices.setContainer();
};
MochiServices.stayOnTop();
if (options.name != null){
if ((options.name is TextField)){
if (options.name.text.length > 0){
options.name = options.name.text;
};
};
};
if (options.score != null){
if ((options.score is TextField)){
if (options.score.text.length > 0){
options.score = options.score.text;
};
} else {
if ((options.score is MochiDigits)){
options.score = options.score.value;
};
};
n = Number(options.score);
if (isNaN(n)){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((n == Number.NEGATIVE_INFINITY)) || ((n == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(n) != n){
trace((("WARNING: Submitted score '" + options.score) + "' will be truncated"));
};
options.score = n;
};
};
};
if (options.onDisplay != null){
options.onDisplay();
} else {
if (MochiServices.clip != null){
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
};
} else {
options = {};
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
if (options.onClose != null){
onCloseHandler = options.onClose;
} else {
onCloseHandler = function ():void{
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.play();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onClose.");
};
};
};
if (options.onError != null){
onErrorHandler = options.onError;
} else {
onErrorHandler = null;
};
if (options.boardID == null){
if (MochiScores.boardID != null){
options.boardID = MochiScores.boardID;
};
};
MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose);
}
public static function closeLeaderboard():void{
MochiServices.send("scores_closeLeaderboard");
}
public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2);
}
public static function requestList(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_requestList", null, _arg1, _arg2);
}
public static function scoresArrayToObjects(_arg1:Object):Object{
var _local2:Object;
var _local3:Number;
var _local4:Number;
var _local5:Object;
var _local6:Object;
var _local7:String;
var _local8:String;
_local2 = {};
for (_local7 in _arg1) {
if (typeof(_arg1[_local7]) == "object"){
if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){
_local2[_local7] = [];
_local5 = _arg1[_local7];
_local4 = 0;
while (_local4 < _local5.rows.length) {
_local6 = {};
_local3 = 0;
while (_local3 < _local5.cols.length) {
_local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3];
_local3++;
};
_local2[_local7].push(_local6);
_local4++;
};
} else {
_local2[_local7] = {};
for (_local8 in _arg1[_local7]) {
_local2[_local7][_local8] = _arg1[_local7][_local8];
};
};
} else {
_local2[_local7] = _arg1[_local7];
};
};
return (_local2);
}
public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{
_arg1 = Number(_arg1);
if (isNaN(_arg1)){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((_arg1 == Number.NEGATIVE_INFINITY)) || ((_arg1 == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(_arg1) != _arg1){
trace((("WARNING: Submitted score '" + String(_arg1)) + "' will be truncated"));
};
_arg1 = Number(_arg1);
};
};
MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4);
}
public static function onClose(_arg1:Object=null):void{
if (_arg1 != null){
if (_arg1.error != null){
if (_arg1.error == true){
if (onErrorHandler != null){
if (_arg1.errorCode == null){
_arg1.errorCode = "IOError";
};
onErrorHandler(_arg1.errorCode);
MochiServices.doClose();
return;
};
};
};
};
onCloseHandler();
MochiServices.doClose();
}
public static function setBoardID(_arg1:String):void{
MochiServices.warnID(_arg1, true);
MochiScores.boardID = _arg1;
MochiServices.send("scores_setBoardID", {boardID:_arg1});
}
}
}//package mochi.as3
Section 8
//MochiServices (mochi.as3.MochiServices)
package mochi.as3 {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class MochiServices {
private static var _container:Object;
private static var _connected:Boolean = false;
private static var _swfVersion:String;
public static var netupAttempted:Boolean = false;
private static var _sendChannel:LocalConnection;
private static var _clip:MovieClip;
private static var _loader:Loader;
private static var _id:String;
private static var _listenChannel:LocalConnection;
public static var widget:Boolean = false;
private static var _timer:Timer;
private static var _sendChannelName:String;
private static var _connecting:Boolean = false;
public static var onError:Object;
private static var _listenChannelName:String = "__ms_";
private static var _servicesURL:String = "http://www.mochiads.com/static/lib/services/services.swf";
public static var netup:Boolean = true;
public static function isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function get connected():Boolean{
return (_connected);
}
private static function flush(_arg1:Boolean):void{
var _local2:Object;
var _local3:Object;
if (_clip != null){
if (_clip._queue != null){
while (_clip._queue.length > 0) {
_local2 = _clip._queue.shift();
_local3 = null;
if (_local2 != null){
if (_local2.callbackID != null){
_local3 = _clip._callbacks[_local2.callbackID];
};
delete _clip._callbacks[_local2.callbackID];
if (((_arg1) && (!((_local3 == null))))){
handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod);
};
};
};
};
};
}
public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{
if (_connected){
_sendChannel.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
} else {
if ((((_clip == null)) || (!(_connecting)))){
onError("NotConnected");
handleError(_arg2, _arg3, _arg4);
flush(true);
return;
};
_clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
};
if (_clip != null){
if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){
_clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4};
_clip._nextcallbackID++;
};
};
}
private static function init(_arg1:String, _arg2:Object):void{
_id = _arg1;
if (_arg2 != null){
_container = _arg2;
loadCommunicator(_arg1, _container);
};
}
public static function get childClip():Object{
return (_clip);
}
private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{
var _local3:Array;
var _local4:int;
var _local5:Array;
var _local6:Array;
var _local7:MovieClip;
var _local8:LocalConnection;
var _local9:String;
var _local10:ByteArray;
var _local11:ByteArray;
var _local12:uint;
var _local13:uint;
var _local14:Loader;
_local3 = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23];
_local5 = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3];
_local6 = [0, 64, 0, 0, 0];
_local7 = new MovieClip();
_local8 = new LocalConnection();
_local9 = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().getTime()));
_local8 = new LocalConnection();
_local7.lc = _local8;
_local7.click = _arg2;
_local8.client = _local7;
_local8.connect(_local9);
_local10 = new ByteArray();
_local11 = new ByteArray();
_local11.endian = Endian.LITTLE_ENDIAN;
_local11.writeShort(1);
_local11.writeUTFBytes(((_arg1 + " ") + _local9));
_local11.writeByte(0);
_local12 = ((_local3.length + _local11.length) + 4);
_local13 = (_local12 + 35);
_local10.endian = Endian.LITTLE_ENDIAN;
_local10.writeUTFBytes("FWS");
_local10.writeByte(8);
_local10.writeUnsignedInt(_local13);
for each (_local4 in _local5) {
_local10.writeByte(_local4);
};
_local10.writeUnsignedInt(_local12);
_local10.writeByte(136);
_local10.writeShort(_local11.length);
_local10.writeBytes(_local11);
for each (_local4 in _local3) {
_local10.writeByte(_local4);
};
for each (_local4 in _local6) {
_local10.writeByte(_local4);
};
_local14 = new Loader();
_local14.loadBytes(_local10);
_local7.addChild(_local14);
return (_local7);
}
public static function stayOnTop():void{
_container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true);
if (_clip != null){
_clip.visible = true;
};
}
public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{
var vars:Object;
var avm1Click:DisplayObject;
var s:String;
var i:Number;
var x:String;
var req:URLRequest;
var loader:Loader;
var setURL:Function;
var err:Function;
var complete:Function;
var url = _arg1;
var burl = _arg2;
var btn = _arg3;
var onClick = _arg4;
vars = new Object();
vars["mav"] = getVersion();
vars["swfv"] = "9";
vars["swfurl"] = btn.loaderInfo.loaderURL;
vars["fv"] = Capabilities.version;
vars["os"] = Capabilities.os;
vars["lang"] = Capabilities.language;
vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY);
s = "?";
i = 0;
for (x in vars) {
if (i != 0){
s = (s + "&");
};
i = (i + 1);
s = (((s + x) + "=") + escape(vars[x]));
};
req = new URLRequest("http://x.mochiads.com/linkping.swf");
loader = new Loader();
setURL = function (_arg1:String):void{
var _local2:Rectangle;
if (avm1Click){
btn.removeChild(avm1Click);
};
avm1Click = clickMovie(_arg1, onClick);
_local2 = btn.getBounds(btn);
btn.addChild(avm1Click);
avm1Click.x = _local2.x;
avm1Click.y = _local2.y;
avm1Click.scaleX = (0.01 * _local2.width);
avm1Click.scaleY = (0.01 * _local2.height);
};
err = function (_arg1:Object):void{
netup = false;
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
setURL(burl);
};
complete = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
if (netup){
setURL((url + s));
} else {
setURL(burl);
};
if (!((netupAttempted) || (_connected))){
netupAttempted = true;
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.load(req);
};
}
public static function warnID(_arg1:String, _arg2:Boolean):void{
var _local3:Number;
_arg1 = _arg1.toLowerCase();
if (_arg1.length != 16){
trace((("WARNING: " + (_arg2) ? "board" : "game") + " ID is not the appropriate length"));
return;
} else {
if (_arg1 == "1e113c7239048b3f"){
if (_arg2){
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
};
return;
} else {
if (_arg1 == "84993a1de4031cd8"){
if (_arg2){
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
};
return;
};
};
};
_local3 = 0;
while (_local3 < _arg1.length) {
switch (_arg1.charAt(_local3)){
case "0":
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
case "9":
case "a":
case "b":
case "c":
case "d":
case "e":
case "f":
break;
default:
trace(("WARNING: Board ID contains illegal characters: " + _arg1));
return;
};
_local3++;
};
}
public static function disconnect():void{
if (((_connected) || (_connecting))){
if (_clip != null){
if (_clip.parent != null){
if ((_clip.parent is Sprite)){
Sprite(_clip.parent).removeChild(_clip);
_clip = null;
};
};
};
_connecting = (_connected = false);
flush(true);
try {
_listenChannel.close();
} catch(error:Error) {
};
};
if (_timer != null){
try {
_timer.stop();
} catch(error:Error) {
};
};
}
public static function allowDomains(_arg1:String):String{
var _local2:String;
if (Security.sandboxType != "application"){
Security.allowDomain("*");
Security.allowInsecureDomain("*");
};
if (_arg1.indexOf("http://") != -1){
_local2 = _arg1.split("/")[2].split(":")[0];
if (Security.sandboxType != "application"){
Security.allowDomain(_local2);
Security.allowInsecureDomain(_local2);
};
};
return (_local2);
}
public static function getVersion():String{
return ("3.02 as3");
}
public static function doClose():void{
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
if (_clip.parent != null){
Sprite(_clip.parent).removeChild(_clip);
};
}
private static function onStatus(_arg1:StatusEvent):void{
switch (_arg1.level){
case "error":
_connected = false;
_listenChannel.connect(_listenChannelName);
break;
};
}
public static function get id():String{
return (_id);
}
private static function urlOptions(_arg1:Object):Object{
var _local2:Object;
var _local3:String;
var _local4:Array;
var _local5:Number;
var _local6:Array;
_local2 = {};
_local3 = _arg1.loaderInfo.parameters.mochiad_options;
if (_local3){
_local4 = _local3.split("&");
_local5 = 0;
while (_local5 < _local4.length) {
_local6 = _local4[_local5].split("=");
_local2[unescape(_local6[0])] = unescape(_local6[1]);
_local5++;
};
};
return (_local2);
}
public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{
if (_arg1 != null){
if ((_arg1 is Sprite)){
_container = _arg1;
};
};
if (_arg2){
if ((_container is Sprite)){
Sprite(_container).addChild(_clip);
};
};
}
private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{
var args = _arg1;
var callbackObject = _arg2;
var callbackMethod = _arg3;
if (args != null){
if (args.onError != null){
args.onError.apply(null, ["NotConnected"]);
};
if (((!((args.options == null))) && (!((args.options.onError == null))))){
args.options.onError.apply(null, ["NotConnected"]);
};
};
if (callbackMethod != null){
args = {};
args.error = true;
args.errorCode = "NotConnected";
if (((!((callbackObject == null))) && ((callbackMethod is String)))){
try {
var _local5 = callbackObject;
_local5[callbackMethod](args);
} catch(error:Error) {
};
} else {
if (callbackMethod != null){
try {
callbackMethod.apply(args);
} catch(error:Error) {
};
};
};
};
}
private static function initComChannels():void{
if (!_connected){
_sendChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus);
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_container, version:getVersion(), parentURL:_container.loaderInfo.loaderURL});
_listenChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus);
_clip.onReceive = function (_arg1:Object):void{
var cb:String;
var cblst:Object;
var method:*;
var methodName:String;
var obj:Object;
var pkg = _arg1;
cb = pkg.callbackID;
cblst = this.client._callbacks[cb];
if (!cblst){
return;
};
method = cblst.callbackMethod;
methodName = "";
obj = cblst.callbackObject;
if (((obj) && ((typeof(method) == "string")))){
methodName = method;
if (obj[method] != null){
method = obj[method];
} else {
trace((("Error: Method " + method) + " does not exist."));
};
};
if (method != undefined){
try {
method.apply(obj, pkg.args);
} catch(error:Error) {
trace(((("Error invoking callback method '" + methodName) + "': ") + error.toString()));
};
} else {
if (obj != null){
try {
obj(pkg.args);
} catch(error:Error) {
trace(("Error invoking method on object: " + error.toString()));
};
};
};
delete this.client._callbacks[cb];
};
_clip.onError = function ():void{
MochiServices.onError("IOError");
};
trace("connected!");
_connecting = false;
_connected = true;
while (_clip._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _clip._queue.shift());
};
};
}
private static function listen():void{
_listenChannel = new LocalConnection();
_listenChannel.client = _clip;
_clip.handshake = function (_arg1:Object):void{
MochiServices.comChannelName = _arg1.newChannel;
};
_listenChannel.allowDomain("*", "localhost");
_listenChannel.allowInsecureDomain("*", "localhost");
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
public static function set comChannelName(_arg1:String):void{
if (_arg1 != null){
if (_arg1.length > 3){
_sendChannelName = (_arg1 + "_fromgame");
initComChannels();
};
};
}
private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{
var clipname:String;
var f:Function;
var req:URLRequest;
var vars:URLVariables;
var id = _arg1;
var clip = _arg2;
clipname = ("_mochiservices_com_" + id);
if (_clip != null){
return (_clip);
};
if (!MochiServices.isNetworkAvailable()){
return (null);
};
if (urlOptions(clip).servicesURL != undefined){
_servicesURL = urlOptions(clip).servicesURL;
};
MochiServices.allowDomains(_servicesURL);
_clip = createEmptyMovieClip(clip, clipname, 10336, false);
_loader = new Loader();
f = function (_arg1:Object):void{
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load.");
MochiServices.disconnect();
MochiServices.onError("IOError");
};
_listenChannelName = (_listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor((Math.random() * 99999))));
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f);
req = new URLRequest(_servicesURL);
vars = new URLVariables();
vars.listenLC = _listenChannelName;
vars.mochiad_options = clip.loaderInfo.parameters.mochiad_options;
if (widget){
vars.widget = true;
};
req.data = vars;
listen();
_loader.load(req);
_clip.addChild(_loader);
_clip._mochiservices_com = _loader;
_sendChannel = new LocalConnection();
_clip._queue = [];
_clip._nextcallbackID = 0;
_clip._callbacks = {};
_timer = new Timer(10000, 1);
_timer.addEventListener(TimerEvent.TIMER, connectWait);
_timer.start();
return (_clip);
}
public static function get clip():Object{
return (_container);
}
public static function bringToTop(_arg1:Event):void{
var e = _arg1;
if (MochiServices.clip != null){
if (MochiServices.childClip != null){
try {
if (MochiServices.clip.numChildren > 1){
MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1));
};
} catch(errorObject:Error) {
trace("Warning: Depth sort error.");
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
};
};
};
}
public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{
var id = _arg1;
var clip = _arg2;
var onError = _arg3;
warnID(id, false);
if ((clip is DisplayObject)){
if (((!(_connected)) && ((_clip == null)))){
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
};
} else {
trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage.");
};
if (onError != null){
MochiServices.onError = onError;
} else {
if (MochiServices.onError == null){
MochiServices.onError = function (_arg1:String):void{
trace(_arg1);
};
};
};
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{
var mc:MovieClip;
var parent = _arg1;
var name = _arg2;
var depth = _arg3;
var doAdd = _arg4;
mc = new MovieClip();
if (doAdd){
if (((false) && (depth))){
parent.addChildAt(mc, depth);
} else {
parent.addChild(mc);
};
};
try {
parent[name] = mc;
} catch(e:Error) {
throw (new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
mc["_name"] = name;
return (mc);
}
public static function connectWait(_arg1:TimerEvent):void{
if (!_connected){
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load. (timeout)");
MochiServices.disconnect();
MochiServices.onError("IOError");
};
}
}
}//package mochi.as3
Section 9
//MainTimeline (SpinMatch4_fla.MainTimeline)
package SpinMatch4_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import mochi.as3.*;
import flash.media.*;
import flash.text.*;
import flash.filters.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class MainTimeline extends MovieClip {
public var _mochiads_game_id:String;
public var frosmoMatch:Game;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
_mochiads_game_id = "e9afab055d8219d6";
MochiServices.connect("e9afab055d8219d6", root);
MochiBot.track(this, "990aa329");
MochiAd.showPreGameAd({clip:root, id:"e9afab055d8219d6", res:"600x500"});
}
function frame2(){
frosmoMatch = new Game();
addChild(frosmoMatch);
stop();
}
}
}//package SpinMatch4_fla
Section 10
//Achievements (Achievements)
package {
import flash.display.*;
import flash.events.*;
public class Achievements extends MovieClip {
public function Achievements(_arg1:Stage, _arg2:Number, _arg3:Number){
x = _arg2;
y = _arg3;
back.addEventListener(MouseEvent.CLICK, backToMainScreen);
}
public function backToMainScreen(_arg1:MouseEvent){
parent.removeChild(this);
dispatchEvent(new NavigationEvent(NavigationEvent.INTROSCREEN));
}
}
}//package
Section 11
//alert_30 (alert_30)
package {
import flash.media.*;
public dynamic class alert_30 extends Sound {
}
}//package
Section 12
//BadBall (BadBall)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class BadBall extends Ball {
public function BadBall(_arg1:Stage, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Boolean){
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
override public function enterStage(_arg1:Event){
this.scaleX = (this.scaleX + 0.025);
this.scaleY = (this.scaleY + 0.025);
if (this.scaleX >= 0.9){
this.scaleX = 0.9;
this.scaleY = 0.9;
removeEventListener(Event.ENTER_FRAME, enterStage);
GameData.badBallHolder.push(this);
addEventListener(Event.ENTER_FRAME, move);
};
}
}
}//package
Section 13
//Ball (Ball)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.filters.*;
public class Ball extends Sprite {
public var mySide:Boolean;
public var shadowF:DropShadowFilter;
public var collision:Collision;
public var newY:Number;
public var vx:Number;
public var vy:Number;
public var newX:Number;
public var blurF:BlurFilter;
public function Ball(_arg1:Stage, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Boolean){
radius = (width / 2);
cacheAsBitmap = true;
blurFilter = new BlurFilter(1, 1);
shadowF = new DropShadowFilter(2);
filters = [blurFilter, shadowF];
x = _arg2;
y = _arg3;
this.mySide = _arg6;
if (_arg6 == false){
addEventListener(Event.ADDED_TO_STAGE, addedToStage);
this.scaleX = (this.scaleY = 0.01);
this.vx = (_arg4 * 0.8);
this.vy = (_arg5 * 0.8);
} else {
addEventListener(Event.ADDED_TO_STAGE, addedToStage);
};
}
public function goodCollision(_arg1:Number){
var _local2:Particle;
var _local3:Sound;
if (GamePlay.score){
GamePlay.score.update(100);
};
if (FreePlay.score){
FreePlay.score.update(100);
};
GameData.enemiesHolder[_arg1].remove();
_arg1 = 0;
while (_arg1 < 20) {
_local2 = new Particle(x, y);
parent.parent.addChild(_local2);
_arg1++;
};
if (Game.soundFlag){
_local3 = new Good();
_local3.play();
trace("played");
};
}
public function enterStage(_arg1:Event){
this.scaleX = (this.scaleX + 0.025);
this.scaleY = (this.scaleY + 0.025);
if (this.scaleX >= 1){
this.scaleX = 1;
this.scaleY = 1;
removeEventListener(Event.ENTER_FRAME, enterStage);
if (mySide == false){
GameData.enemiesHolder.push(this);
addEventListener(Event.ENTER_FRAME, move);
} else {
collision = new Collision();
GameData.unitHolder.push(this);
addEventListener(Event.ENTER_FRAME, collisionDetection);
};
};
}
public function shrink(_arg1:Event){
this.scaleX = (this.scaleX - 0.04);
this.scaleY = (this.scaleY - 0.04);
if (this.scaleX <= 0){
removeEventListener(Event.ENTER_FRAME, shrink);
remove();
};
}
public function addedToStage(_arg1:Event){
addEventListener(Event.ENTER_FRAME, enterStage);
}
public function isColliding(_arg1:Sprite){
var _local2:*;
var _local3:*;
var _local4:Number;
var _local5:Number;
var _local6:Number;
_local2 = (Hero.globalR - 90);
_local3 = ((_local2 * 3.141593) / 180);
_local4 = (_arg1.x - this.x);
_local5 = (_arg1.y - this.y);
_local6 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5)));
if (_local6 < ((_arg1.width / 2) + (width / 2))){
return (true);
};
return (false);
}
public function collisionDetection(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:Point;
var _local5:*;
var _local6:*;
var _local7:*;
rotation = (rotation - 3);
_local2 = 0;
while (_local2 < GameData.badBallHolder.length) {
_local3 = this.parent;
_local4 = new Point(this.x, this.y);
_local5 = parent.localToGlobal(_local4);
_local6 = x;
_local7 = y;
x = _local5.x;
y = _local5.y;
if (isColliding(GameData.badBallHolder[_local2])){
badCollision();
};
x = _local6;
y = _local7;
_local2++;
};
_local2 = 0;
while (_local2 < GameData.enemiesHolder.length) {
_local3 = this.parent;
_local4 = new Point(this.x, this.y);
_local5 = parent.localToGlobal(_local4);
_local6 = x;
_local7 = y;
x = _local5.x;
y = _local5.y;
if (isColliding(GameData.enemiesHolder[_local2])){
if (this.type == GameData.enemiesHolder[_local2].type){
goodCollision(_local2);
} else {
badCollision();
};
};
x = _local6;
y = _local7;
_local2++;
};
}
public function remove(){
var _local1:*;
if ((((GameData.enemiesHolder.length == 1)) && ((GameData.unitHolder.length > 0)))){
trace("Victory");
trace(("Units: " + GameData.unitHolder.length));
dispatchEvent(new NavigationEvent(NavigationEvent.VICTORY));
};
if (this.parent){
parent.removeChild(this);
};
removeEventListener(Event.ADDED_TO_STAGE, addedToStage);
removeEventListener(Event.ENTER_FRAME, collisionDetection);
removeEventListener(Event.ENTER_FRAME, move);
_local1 = 0;
while (_local1 < GameData.enemiesHolder.length) {
if (GameData.enemiesHolder[_local1] == this){
GameData.enemiesHolder.splice(_local1, 1);
};
_local1++;
};
_local1 = 0;
while (_local1 < GameData.badBallHolder.length) {
if (GameData.badBallHolder[_local1] == this){
GameData.badBallHolder.splice(_local1, 1);
};
_local1++;
};
_local1 = 0;
while (_local1 < GameData.unitHolder.length) {
if (GameData.unitHolder[_local1] == this){
GameData.unitHolder.splice(_local1, 1);
};
_local1++;
};
}
public function badCollision(){
GameData.removeAnim();
dispatchEvent(new NavigationEvent(NavigationEvent.LOSS));
trace("BAD COLLSION");
}
public function removeAnim(){
removeEventListener(Event.ENTER_FRAME, move);
addEventListener(Event.ENTER_FRAME, shrink);
}
public function move(_arg1:Event){
newX = (x + vx);
newY = (y + vy);
if ((newX + radius) > 600){
vx = (vx * -1);
newX = (600 - radius);
} else {
if ((newX - radius) < 0){
vx = (vx * -1);
newX = radius;
};
};
if ((newY + radius) > 500){
vy = (vy * -1);
newY = (500 - radius);
} else {
if ((newY - radius) < 0){
vy = (vy * -1);
newY = radius;
};
};
x = newX;
y = newY;
}
}
}//package
Section 14
//Ball1 (Ball1)
package {
import flash.display.*;
public class Ball1 extends Ball {
public var type;// = 1
public function Ball1(_arg1:Stage, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Boolean){
type = 1;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
}
}//package
Section 15
//Ball2 (Ball2)
package {
import flash.display.*;
public class Ball2 extends Ball {
public var type;// = 2
public function Ball2(_arg1:Stage, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Boolean){
type = 2;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
}
}//package
Section 16
//Ball3 (Ball3)
package {
import flash.display.*;
public class Ball3 extends Ball {
public var type;// = 3
public function Ball3(_arg1:Stage, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Boolean){
type = 3;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
}
}//package
Section 17
//Ball4 (Ball4)
package {
import flash.display.*;
public class Ball4 extends Ball {
public var type;// = 4
public function Ball4(_arg1:Stage, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Boolean){
type = 4;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
}
}//package
Section 18
//Ball5 (Ball5)
package {
import flash.display.*;
public class Ball5 extends Ball {
public var type;// = 5
public function Ball5(_arg1:Stage, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Boolean){
type = 5;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
}
}//package
Section 19
//Ball6 (Ball6)
package {
import flash.display.*;
public class Ball6 extends Ball {
public var type;// = 6
public function Ball6(_arg1:Stage, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Boolean){
type = 6;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
}
}//package
Section 20
//Button (Button)
package {
import flash.media.*;
public dynamic class Button extends Sound {
}
}//package
Section 21
//Campaign (Campaign)
package {
import flash.media.*;
public dynamic class Campaign extends Sound {
}
}//package
Section 22
//CampaignCompleted (CampaignCompleted)
package {
import flash.display.*;
import flash.events.*;
import mochi.as3.*;
import flash.media.*;
import flash.text.*;
import com.mindjolt.api.as3.*;
import flash.net.*;
public class CampaignCompleted extends MovieClip {
public var best:TextField;
public var ok:OkBut;
public var next:SimpleButton;
public var campaign:TextField;
public var campaignNumber:Number;
private var alphaGrow:Number;// = 0.03
public var score:TextField;
public var campaignName:String;
public function CampaignCompleted(_arg1:Number, _arg2:Number){
var shared:SharedObject;
var mySound:Sound;
var o:Object;
var boardID:String;
var startX = _arg1;
var startY = _arg2;
alphaGrow = 0.03;
super();
alpha = 0.4;
addEventListener(Event.ENTER_FRAME, enterStage);
if (Game.soundFlag){
mySound = new Campaign();
mySound.play();
trace("played");
};
x = startX;
y = startY;
ok.addEventListener(MouseEvent.CLICK, okClicked);
next.addEventListener(MouseEvent.CLICK, nextClicked);
ok.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
next.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
campaignNumber = (Math.round((Game.level / 12)) - 1);
trace(Game.level);
trace(campaignNumber);
switch (campaignNumber){
case 0:
campaignName = "Novice";
o = {n:[8, 8, 4, 0, 13, 12, 13, 4, 8, 4, 15, 13, 6, 8, 10, 14], f:function (_arg1:Number, _arg2:String):String{
if (_arg2.length == 16){
return (_arg2);
};
return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16))));
}};
boardID = o.f(0, "");
MochiScores.showLeaderboard({boardID:boardID, score:Score.amount, onClose:nextScreen});
MindJoltAPI.service.submitScore(score.tempAmount, "easy");
break;
case 1:
campaignName = "Normal";
o = {n:[9, 2, 5, 14, 1, 13, 0, 10, 12, 3, 8, 5, 9, 11, 15, 7], f:function (_arg1:Number, _arg2:String):String{
if (_arg2.length == 16){
return (_arg2);
};
return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16))));
}};
boardID = o.f(0, "");
MochiScores.showLeaderboard({boardID:boardID, score:Score.amount, onClose:nextScreen});
MindJoltAPI.service.submitScore(score.tempAmount, "normal");
break;
case 2:
campaignName = "Hard";
o = {n:[9, 2, 10, 8, 15, 6, 7, 7, 5, 1, 4, 4, 1, 2, 12, 10], f:function (_arg1:Number, _arg2:String):String{
if (_arg2.length == 16){
return (_arg2);
};
return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16))));
}};
boardID = o.f(0, "");
MochiScores.showLeaderboard({boardID:boardID, score:Score.amount, onClose:nextScreen});
MindJoltAPI.service.submitScore(score.tempAmount, "hard");
break;
case 3:
campaignName = "Expert";
o = {n:[5, 6, 9, 12, 11, 0, 10, 11, 15, 2, 0, 1, 6, 5, 11, 5], f:function (_arg1:Number, _arg2:String):String{
if (_arg2.length == 16){
return (_arg2);
};
return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16))));
}};
boardID = o.f(0, "");
MochiScores.showLeaderboard({boardID:boardID, score:Score.amount, onClose:nextScreen});
MindJoltAPI.service.submitScore(score.tempAmount, "expert");
break;
case 4:
campaignName = "Insane";
o = {n:[2, 6, 1, 13, 2, 8, 5, 11, 11, 15, 10, 3, 2, 0, 0, 9], f:function (_arg1:Number, _arg2:String):String{
if (_arg2.length == 16){
return (_arg2);
};
return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16))));
}};
boardID = o.f(0, "");
MochiScores.showLeaderboard({boardID:boardID, score:Score.amount, onClose:nextScreen});
MindJoltAPI.service.submitScore(score.tempAmount, "impossible");
break;
};
this.campaign.text = (("Campaign " + campaignName) + " completed");
shared = SharedObject.getLocal("userData");
if ((((shared.data.campScore == null)) || ((shared.data.campScore == undefined)))){
trace("Created!");
shared.data.campScore = new Array();
};
if ((((Score.amount >= shared.data.campScore[Math.round((Game.level / 12))])) || ((shared.data.campScore[Math.round((Game.level / 12))] == null)))){
shared.data.campScore[Math.round((Game.level / 12))] = Score.amount;
shared.flush();
};
this.score.text = ("Campaign score: " + Score.amount);
this.best.text = ("Personal best:" + shared.data.campScore[Math.round((Game.level / 12))]);
}
private function enterStage(_arg1:Event):void{
if ((alpha + alphaGrow) < 1){
alpha = (alpha + alphaGrow);
} else {
alpha = 1;
removeEventListener(Event.ENTER_FRAME, enterStage);
};
}
public function nextScreen():void{
stop();
}
public function okClicked(_arg1:MouseEvent){
Game.level = 0;
Score.amount = 0;
next.removeEventListener(MouseEvent.CLICK, nextClicked);
ok.removeEventListener(MouseEvent.CLICK, okClicked);
if (this.parent){
this.parent.parent.parent.addChild(parent.parent.parent.introScreen);
this.parent.removeChild(this);
};
}
public function nextClicked(_arg1:MouseEvent){
trace("CLICKED");
dispatchEvent(new NavigationEvent(NavigationEvent.NEXTLEVELPLAY));
Score.amount = 0;
next.removeEventListener(MouseEvent.CLICK, nextClicked);
ok.removeEventListener(MouseEvent.CLICK, okClicked);
if (this.parent){
this.parent.removeChild(this);
};
}
}
}//package
Section 23
//CampaignScreen (CampaignScreen)
package {
import flash.display.*;
import flash.events.*;
public class CampaignScreen extends MovieClip {
public var hard:HardBut;
public var expert:SimpleButton;
private var alphaGrow:Number;// = 0.03
public var impossible:SimpleButton;
public var novice:NoviceBut;
public var normal:NormalBut;
public function CampaignScreen(_arg1:Number, _arg2:Number){
var _local3:Ball;
var _local4:Ball;
var _local5:Ball;
var _local6:*;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
alphaGrow = 0.03;
super();
alpha = 0.4;
addEventListener(Event.ENTER_FRAME, enterStage);
x = _arg1;
y = _arg2;
if (GamePlay.score){
GamePlay.score.tempAmount = 0;
};
if (Score.amount){
Score.amount = 0;
};
hero = new Hero(stage, 500, 250);
hero.removeEventListener(Event.ENTER_FRAME, hero.move);
addChild(hero);
_local3 = new Ball1(stage, 50, 0, -10, -4, true);
_local3.removeEventListener(Event.ADDED_TO_STAGE, _local3.addedToStage);
hero.addChild(_local3);
_local4 = new Ball2(stage, -50, 0, -10, -4, true);
_local4.removeEventListener(Event.ADDED_TO_STAGE, _local4.addedToStage);
hero.addChild(_local4);
_local5 = new Ball3(stage, 0, 50, 0, 0, true);
_local5.removeEventListener(Event.ADDED_TO_STAGE, _local5.addedToStage);
hero.addChild(_local5);
_local6 = new Hero(stage, 100, 250);
_local6.removeEventListener(Event.ENTER_FRAME, _local6.move);
addChild(_local6);
_local7 = new Ball6(stage, 50, 0, -10, -4, true);
_local7.removeEventListener(Event.ADDED_TO_STAGE, _local7.addedToStage);
_local6.addChild(_local7);
_local8 = new Ball3(stage, -50, 0, -10, -4, true);
_local8.removeEventListener(Event.ADDED_TO_STAGE, _local8.addedToStage);
_local6.addChild(_local8);
_local9 = new Ball4(stage, 0, 50, 0, 0, true);
_local9.removeEventListener(Event.ADDED_TO_STAGE, _local9.addedToStage);
_local6.addChild(_local9);
_local10 = new Ball5(stage, 0, -50, 0, 0, true);
_local10.removeEventListener(Event.ADDED_TO_STAGE, _local10.addedToStage);
_local6.addChild(_local10);
novice.addEventListener(MouseEvent.CLICK, noviceStart);
normal.addEventListener(MouseEvent.CLICK, normalStart);
hard.addEventListener(MouseEvent.CLICK, hardStart);
expert.addEventListener(MouseEvent.CLICK, expertStart);
impossible.addEventListener(MouseEvent.CLICK, impossibleStart);
novice.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
normal.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
hard.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
expert.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
impossible.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
}
private function enterStage(_arg1:Event):void{
if ((alpha + alphaGrow) < 1){
alpha = (alpha + alphaGrow);
} else {
alpha = 1;
removeEventListener(Event.ENTER_FRAME, enterStage);
};
}
public function hardStart(_arg1:MouseEvent){
Game.level = 25;
dispatchEvent(new NavigationEvent(NavigationEvent.NEXTLEVELPLAY));
remove();
}
public function expertStart(_arg1:MouseEvent){
Game.level = 37;
dispatchEvent(new NavigationEvent(NavigationEvent.NEXTLEVELPLAY));
remove();
}
public function noviceStart(_arg1:MouseEvent){
Game.level = 1;
dispatchEvent(new NavigationEvent(NavigationEvent.NEXTLEVELPLAY));
remove();
}
public function remove(){
novice.removeEventListener(MouseEvent.CLICK, noviceStart);
normal.removeEventListener(MouseEvent.CLICK, normalStart);
hard.removeEventListener(MouseEvent.CLICK, hardStart);
expert.removeEventListener(MouseEvent.CLICK, expertStart);
impossible.removeEventListener(MouseEvent.CLICK, impossibleStart);
if (this.parent){
parent.removeChild(this);
};
}
public function normalStart(_arg1:MouseEvent){
Game.level = 13;
dispatchEvent(new NavigationEvent(NavigationEvent.NEXTLEVELPLAY));
remove();
}
public function impossibleStart(_arg1:MouseEvent){
Game.level = 49;
dispatchEvent(new NavigationEvent(NavigationEvent.NEXTLEVELPLAY));
remove();
}
}
}//package
Section 24
//ChangeBall (ChangeBall)
package {
public class ChangeBall extends PowerUp {
public function ChangeBall(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=2){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
}
}
}//package
Section 25
//Collision (Collision)
package {
import flash.geom.*;
import flash.display.*;
public class Collision {
private function getAlphaMap(_arg1:DisplayObject, _arg2:Rectangle, _arg3:uint, _arg4:Rectangle):BitmapData{
var _local5:BitmapData;
var _local6:Matrix;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:BitmapData;
_local5 = new BitmapData(_arg2.width, _arg2.height, true, 0);
_local6 = new Matrix();
_local7 = (_arg1.x - _arg4.x);
_local8 = (_arg1.y - _arg4.y);
_local9 = ((_arg4.x + _local7) - _arg2.x);
_local10 = ((_arg4.y + _local8) - _arg2.y);
_local6.translate(_local9, _local10);
_local5.draw(_arg1, _local6);
_local11 = new BitmapData(_arg2.width, _arg2.height, false, 0);
_local11.copyChannel(_local5, _local5.rect, new Point(0, 0), BitmapDataChannel.ALPHA, _arg3);
return (_local11);
}
public function isColliding(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=0):Boolean{
var _local4:Rectangle;
_local4 = getCollision(_arg1, _arg2, _arg3);
if (((!((_local4 == null))) && ((_local4.size.length > 0)))){
return (true);
};
return (false);
}
public function getCollisionPoint(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=0):Point{
var _local4:Point;
var _local5:Rectangle;
var _local6:Number;
var _local7:Number;
_local5 = getCollision(_arg1, _arg2, _arg3);
if (((!((_local5 == null))) && ((_local5.size.length > 0)))){
_local6 = ((_local5.left + _local5.right) / 2);
_local7 = ((_local5.top + _local5.bottom) / 2);
_local4 = new Point(_local6, _local7);
};
return (_local4);
}
public function getCollision(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=0):Rectangle{
var _local4:Rectangle;
var _local5:DisplayObjectContainer;
var _local6:Rectangle;
var _local7:Rectangle;
var _local8:Boolean;
var _local9:Rectangle;
var _local10:BitmapData;
var _local11:BitmapData;
var _local12:uint;
var _local13:Number;
if (_arg1.parent == _arg2.parent){
_local5 = _arg1.parent;
_local6 = _arg1.getBounds(_local5);
_local7 = _arg2.getBounds(_local5);
_local8 = _local6.intersects(_local7);
if (_local8){
_local9 = _local6.union(_local7);
_local10 = getAlphaMap(_arg1, _local9, BitmapDataChannel.RED, _local6);
_local11 = getAlphaMap(_arg2, _local9, BitmapDataChannel.GREEN, _local7);
_local10.draw(_local11, new Matrix(), new ColorTransform(), BlendMode.LIGHTEN);
if (_arg3 > 1){
_arg3 = 1;
};
if (_arg3 < 0){
_arg3 = 0;
};
if (_arg3 == 0){
_local12 = 65792;
} else {
_local13 = Math.round((_arg3 * 0xFF));
_local12 = (((_local13 << 16) | (_local13 << 8)) | 0);
};
_local4 = _local10.getColorBoundsRect(_local12, _local12);
_local10.getColorBoundsRect(_local12, _local12).x = (_local4.x + _local9.x);
_local4.y = (_local4.y + _local9.y);
return (_local4);
};
};
return (_local4);
}
}
}//package
Section 26
//Credits (Credits)
package {
import flash.display.*;
import flash.events.*;
public class Credits extends MovieClip {
public var startB:SimpleButton;
public var back:SimpleButton;
public function Credits(_arg1:Stage, _arg2:Number, _arg3:Number){
x = _arg2;
y = _arg3;
back.addEventListener(MouseEvent.CLICK, backToMainScreen);
back.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
startB.addEventListener(MouseEvent.CLICK, startGame);
startB.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
}
private function startGame(_arg1:MouseEvent):void{
parent.removeChild(this);
dispatchEvent(new NavigationEvent(NavigationEvent.START));
}
public function backToMainScreen(_arg1:MouseEvent){
parent.removeChild(this);
dispatchEvent(new NavigationEvent(NavigationEvent.INTROSCREEN));
}
}
}//package
Section 27
//EndScreen (EndScreen)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class EndScreen extends Sprite {
public var restart:SimpleButton;
public var menu:OkBut;
public var options:SimpleButton;
public var best:TextField;
public function EndScreen(){
options.addEventListener(MouseEvent.CLICK, optionsClicked);
menu.addEventListener(MouseEvent.CLICK, menuClicked);
restart.addEventListener(MouseEvent.CLICK, restartClicked);
}
private function restartClicked(_arg1:MouseEvent):void{
dispatchEvent(new NavigationEvent(NavigationEvent.RESTART));
}
private function optionsClicked(_arg1:MouseEvent):void{
dispatchEvent(new NavigationEvent(NavigationEvent.OPTIONS));
}
private function menuClicked(_arg1:MouseEvent):void{
dispatchEvent(new NavigationEvent(NavigationEvent.MENU));
}
}
}//package
Section 28
//FPSCounter (FPSCounter)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
public class FPSCounter extends Sprite {
private var ticks:uint;// = 0
private var tf:TextField;
private var last:uint;
public function FPSCounter(_arg1:int=0, _arg2:int=0, _arg3:uint=0xFFFFFF, _arg4:Boolean=false, _arg5:uint=0){
last = getTimer();
ticks = 0;
super();
x = _arg1;
y = _arg2;
tf = new TextField();
tf.textColor = _arg3;
tf.text = "----- fps";
tf.selectable = false;
tf.background = _arg4;
tf.backgroundColor = _arg5;
tf.autoSize = TextFieldAutoSize.LEFT;
addChild(tf);
width = tf.textWidth;
height = tf.textHeight;
addEventListener(Event.ENTER_FRAME, tick);
}
public function tick(_arg1:Event):void{
var _local2:uint;
var _local3:uint;
var _local4:Number;
ticks++;
_local2 = getTimer();
_local3 = (_local2 - last);
if (_local3 >= 1000){
_local4 = ((ticks / _local3) * 1000);
tf.text = (_local4.toFixed(1) + " fps");
ticks = 0;
last = _local2;
};
}
}
}//package
Section 29
//FreePlay (FreePlay)
package {
import flash.display.*;
import flash.events.*;
import mochi.as3.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
public class FreePlay extends MovieClip {
private var alphaGrow:Number;// = 0.03
public var scoreNum:Number;
public var gameData:GameData;
public static var score:Score;
public static var level:LevelFreePlay;
public static var levelBG:MovieClip;
public function FreePlay(){
var _local1:*;
alphaGrow = 0.03;
super();
alpha = 0.4;
addEventListener(Event.ENTER_FRAME, enterStage);
gameData = new GameData();
levelBG = new LevelFree();
levelBG.y = 0;
addChild(levelBG);
score = new Score(10, 10);
addChild(score);
_local1 = new FPSCounter();
addChild(_local1);
level = new LevelFreePlay(stage, 0, 0);
addChild(level);
Mouse.hide();
level.addEventListener(NavigationEvent.LOSS, levelLost);
addEventListener(NavigationEvent.OPTIONS, displayOptions);
addEventListener(NavigationEvent.MENU, displayMenu);
addEventListener(NavigationEvent.RESTART, restart);
}
private function enterStage(_arg1:Event):void{
if ((alpha + alphaGrow) < 1){
alpha = (alpha + alphaGrow);
} else {
alpha = 1;
removeEventListener(Event.ENTER_FRAME, enterStage);
};
}
private function removeListeners():void{
removeEventListener(NavigationEvent.OPTIONS, displayOptions);
removeEventListener(NavigationEvent.MENU, displayMenu);
removeEventListener(NavigationEvent.RESTART, restart);
}
private function restart(_arg1:NavigationEvent):void{
trace("restart");
dispatchEvent(new NavigationEvent(NavigationEvent.RESTARTFREEPLAY));
if (this.parent){
removeChild(levelBG);
removeChild(level);
removeChild(fps);
parent.removeChild(this);
};
}
private function nextScreen():void{
stop();
}
private function displayMenu(_arg1:NavigationEvent):void{
GameData.removeAnim();
removeListeners();
dispatchEvent(new NavigationEvent(NavigationEvent.RESTARTGAME));
if (this.parent){
parent.removeChild(this);
};
trace("menu");
}
private function updateScores(_arg1:EndScreen):void{
var shared:SharedObject;
var o:Object;
var boardID:String;
var endGame = _arg1;
shared = SharedObject.getLocal("FreePlayData");
trace(("MyScore: " + score.tempAmount));
if ((((shared.data.score == null)) || ((shared.data.score == undefined)))){
trace("Created!");
shared.data.score = new Number();
};
if (score.tempAmount > shared.data.score){
shared.data.score = score.tempAmount;
shared.flush();
};
o = {n:[13, 4, 4, 4, 2, 13, 3, 9, 3, 1, 9, 3, 8, 5, 1, 1], f:function (_arg1:Number, _arg2:String):String{
if (_arg2.length == 16){
return (_arg2);
};
return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16))));
}};
boardID = o.f(0, "");
MochiScores.showLeaderboard({boardID:boardID, score:score.tempAmount, onClose:nextScreen});
endGame.best.text = ("Personal best: " + shared.data.score);
}
private function displayOptions(_arg1:NavigationEvent):void{
var _local2:OptionScreen;
trace("options");
_local2 = new OptionScreen();
_local2.addEventListener(NavigationEvent.START, restartFreePlay);
addChild(_local2);
}
private function levelLost(_arg1:NavigationEvent):void{
var _local2:EndScreen;
var _local3:Sound;
trace("LEVEL LOST");
Mouse.show();
if (Game.soundFlag){
_local3 = new alert_30();
_local3.play();
};
level.stopSpawn();
GameData.removeAnim();
level.removeEventListener(NavigationEvent.LOSS, levelLost);
_local2 = new EndScreen();
addChild(_local2);
updateScores(_local2);
}
private function restartFreePlay(_arg1:NavigationEvent):void{
dispatchEvent(new NavigationEvent(NavigationEvent.RESTARTFREEPLAY));
if (this.parent){
removeChild(levelBG);
removeChild(level);
removeChild(fps);
parent.removeChild(this);
};
}
}
}//package
Section 30
//FrosmoLogo (FrosmoLogo)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class FrosmoLogo extends SimpleButton {
public function FrosmoLogo(){
addEventListener(MouseEvent.CLICK, mouseClicked);
}
private function mouseClicked(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.frosmo.com/uk/ui/?ref=spinmatch2");
navigateToURL(_local2);
}
}
}//package
Section 31
//FrosmoSplash (FrosmoSplash)
package {
import flash.display.*;
public dynamic class FrosmoSplash extends SimpleButton {
}
}//package
Section 32
//Game (Game)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class Game extends MovieClip {
public var campaignCompleted:CampaignCompleted;
public var instructionsScreen:Instructions;
private var preloader:Preloader;
public var gamePlay:GamePlay;
public var gameTimer:Timer;
public var army:Array;
public var creditsScreen:Credits;
public var optionsScreen:OptionScreen;
public var campaignScreen:CampaignScreen;
public var freePlay:FreePlay;
public var introScreen:IntroScreen;
public static var sTransform:SoundTransform;
public static var level = 1;
public static var musicFlag = true;
public static var stageRef:Stage;
public static var myMusic:Sound;
public static var soundFlag = true;
public static var musicChannel:SoundChannel;
public function Game(){
preloader = new Preloader(this);
preloader.addEventListener(NavigationEvent.STARTGAME, gotoGame);
}
public function displayAchievements(_arg1:NavigationEvent){
achievementsScreen = new Achievements(stageRef, 100, 100);
achievementsScreen.addEventListener(NavigationEvent.INTROSCREEN, displayIntroScreen);
addChild(achievementsScreen);
}
private function gotoGame(_arg1:NavigationEvent):void{
initGame();
}
public function musicHandler(_arg1:NavigationEvent){
if (musicFlag == true){
musicFlag = false;
musicChannel.stop();
} else {
musicFlag = true;
musicChannel = myMusic.play(0, 1000);
musicChannel.soundTransform = sTransform;
};
}
private function initGame():void{
stageRef = stage;
army = new Array();
introScreen = new IntroScreen(stageRef, 0, 0);
addChild(introScreen);
sTransform = new SoundTransform(0.1);
myMusic = new MusicJazz();
musicChannel = myMusic.play(0, 1000);
musicChannel.soundTransform = sTransform;
introScreen.addEventListener(NavigationEvent.START, displayCampaign);
introScreen.addEventListener(NavigationEvent.CREDITS, displayCredits);
introScreen.addEventListener(NavigationEvent.INSTRUCTIONS, displayInstructions);
introScreen.addEventListener(NavigationEvent.MAINOPTIONS, displayOptions);
introScreen.addEventListener(NavigationEvent.FREEPLAY, freePlayStart);
addEventListener(NavigationEvent.MUSIC, musicHandler);
addEventListener(NavigationEvent.RESTARTLEVEL, restartLevel);
addEventListener(NavigationEvent.NEXTLEVELPLAY, startGame);
addEventListener(NavigationEvent.START, displayCampaign);
addEventListener(NavigationEvent.RESTARTGAME, restartGame);
}
public function endGameLoss(_arg1:NavigationEvent){
trace("Loss");
}
public function startGame(_arg1:NavigationEvent){
if (gamePlay){
if (gamePlay.parent){
removeChild(gamePlay);
};
};
gamePlay = new GamePlay(stageRef, 0, 0, Game.level);
addEventListener(NavigationEvent.NEXTLEVELPLAY, startGame);
addChild(gamePlay);
}
private function displayOptions(_arg1:NavigationEvent):void{
optionsScreen = new OptionScreen();
optionsScreen.addEventListener(NavigationEvent.START, displayCampaign);
optionsScreen.addEventListener(NavigationEvent.INTROSCREEN, displayIntroScreen);
addChild(optionsScreen);
}
public function displayCredits(_arg1:NavigationEvent){
if (gamePlay){
if (gamePlay.parent){
removeChild(gamePlay);
};
};
creditsScreen = new Credits(stageRef, 0, 0);
creditsScreen.addEventListener(NavigationEvent.INTROSCREEN, displayIntroScreen);
creditsScreen.addEventListener(NavigationEvent.START, displayCampaign);
addChild(creditsScreen);
}
private function freePlayStart(_arg1:NavigationEvent):void{
if (freePlay){
if (freePlay.parent){
removeChild(freePlay);
};
};
addEventListener(NavigationEvent.RESTARTFREEPLAY, freePlayStart);
freePlay = new FreePlay();
addChild(freePlay);
}
public function startCampaign(_arg1:NavigationEvent){
trace("START");
removeEventListener(NavigationEvent.NEXTLEVELPLAY, startCampaign);
Game.level--;
gamePlay = new GamePlay(stageRef, 0, 0, Game.level);
addEventListener(NavigationEvent.NEXTLEVELPLAY, startGame);
addChild(gamePlay);
}
public function displayInstructions(_arg1:NavigationEvent){
instructionsScreen = new Instructions(stageRef, 0, 0);
instructionsScreen.addEventListener(NavigationEvent.INTROSCREEN, displayIntroScreen);
instructionsScreen.addEventListener(NavigationEvent.START, displayCampaign);
addChild(instructionsScreen);
}
public function restartGame(_arg1:NavigationEvent){
if (gamePlay){
if (gamePlay.parent){
trace("GAMEPLAY REMOVED");
removeChild(gamePlay);
};
};
introScreen = new IntroScreen(stageRef, 0, 0);
addChild(introScreen);
introScreen.addEventListener(NavigationEvent.START, displayCampaign);
introScreen.addEventListener(NavigationEvent.CREDITS, displayCredits);
introScreen.addEventListener(NavigationEvent.INSTRUCTIONS, displayInstructions);
introScreen.addEventListener(NavigationEvent.MAINOPTIONS, displayOptions);
introScreen.addEventListener(NavigationEvent.FREEPLAY, freePlayStart);
addEventListener(NavigationEvent.RESTARTGAME, restartGame);
addEventListener(NavigationEvent.RESTARTLEVEL, restartLevel);
addEventListener(NavigationEvent.NEXTLEVELPLAY, startGame);
addEventListener(NavigationEvent.START, displayCampaign);
addEventListener(NavigationEvent.MUSIC, musicHandler);
}
public function restartLevel(_arg1:NavigationEvent){
gamePlay.removeEventListener(NavigationEvent.STARTNEXTLEVELPLAY, startGame);
removeChild(gamePlay);
gamePlay = new GamePlay(stageRef, 0, 0, Game.level);
gamePlay.addEventListener(NavigationEvent.STARTNEXTLEVELPLAY, startGame);
addChild(gamePlay);
}
public function displayIntroScreen(_arg1:NavigationEvent){
trace(Game.level);
trace("IntroDisplayed");
addChild(introScreen);
}
public function endGameVictory(_arg1:NavigationEvent){
trace("victory");
removeChild(gamePlay);
gamePlay = null;
}
public function displayCampaign(_arg1:NavigationEvent){
campaignScreen = new CampaignScreen(0, 0);
addChild(campaignScreen);
}
public static function buttonSound(_arg1:MouseEvent){
var _local2:Sound;
if (Game.soundFlag){
_local2 = new Button();
_local2.play();
trace("played");
};
}
}
}//package
Section 33
//GameData (GameData)
package {
import flash.events.*;
public class GameData {
public static var powerUpHolder:Array;
public static var unitHolder:Array;
public static var enemiesHolder:Array;
public static var badBallHolder:Array;
public static var gameFlag:Boolean = true;
public function GameData(){
unitHolder = new Array();
enemiesHolder = new Array();
badBallHolder = new Array();
powerUpHolder = new Array();
}
public static function remove(){
var _local1:*;
_local1 = 0;
while (_local1 < unitHolder.length) {
unitHolder[_local1].remove();
_local1++;
};
_local1 = 0;
while (_local1 < enemiesHolder.length) {
enemiesHolder[_local1].remove();
_local1++;
};
_local1 = 0;
while (_local1 < badBallHolder.length) {
badBallHolder[_local1].remove();
_local1++;
};
_local1 = 0;
while (_local1 < powerUpHolder.length) {
powerUpHolder[_local1].remove();
_local1++;
};
}
public static function removeAnim(){
var _local1:*;
_local1 = 0;
while (_local1 < unitHolder.length) {
unitHolder[_local1].removeAnim();
_local1++;
};
_local1 = 0;
while (_local1 < enemiesHolder.length) {
enemiesHolder[_local1].removeAnim();
_local1++;
};
_local1 = 0;
while (_local1 < badBallHolder.length) {
badBallHolder[_local1].removeAnim();
_local1++;
};
_local1 = 0;
while (_local1 < powerUpHolder.length) {
powerUpHolder[_local1].removeAnim();
_local1++;
};
}
}
}//package
Section 34
//GamePlay (GamePlay)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.ui.*;
public class GamePlay extends MovieClip {
public var timeBar:TimeBar;
public var restartScreen:RestartScreen;
public var levelNum:Number;
private var alphaGrow:Number;// = 0.02
public var levelPassedScreen:LevelPassedScreen;
public var inGameMainMenu:InGameMainMenu;
public var stageRef:Stage;
public var gameData:GameData;
public var inGameMenu:InGameMenu;
public static var levelBG:MovieClip;
public static var score:Score;
public static var level:Level;
public function GamePlay(_arg1:Stage, _arg2:Number, _arg3:Number, _arg4:Number){
var _local5:*;
alphaGrow = 0.02;
super();
x = _arg2;
y = _arg3;
alpha = 0.7;
addEventListener(Event.ENTER_FRAME, enterStage);
Mouse.hide();
trace(_arg4);
this.levelNum = _arg4;
this.stageRef = _arg1;
gameData = new GameData();
if ((_arg4 / 12) <= 1){
levelBG = new Level2Bg();
} else {
if ((_arg4 / 12) <= 2){
levelBG = new Level3Bg();
} else {
if ((_arg4 / 12) <= 3){
levelBG = new Level1Bg();
} else {
if ((_arg4 / 12) <= 4){
levelBG = new Level4Bg();
} else {
levelBG = new Level5Bg();
};
};
};
};
if ((_arg4 % 12) != 0){
levelBG.y = (-1620 + ((_arg4 % 12) * 120));
} else {
levelBG.y = (-1620 + (12 * 120));
};
addChild(levelBG);
if (_arg4 == 1){
level = new Level1(_arg1, 0, 0);
} else {
if (_arg4 == 2){
level = new Level2(_arg1, 0, 0);
} else {
if (_arg4 == 3){
level = new Level3(_arg1, 0, 0);
} else {
if (_arg4 == 4){
level = new Level4(_arg1, 0, 0);
} else {
if (_arg4 == 5){
level = new Level5(_arg1, 0, 0);
} else {
if (_arg4 == 6){
level = new Level6(_arg1, 0, 0);
} else {
if (_arg4 == 7){
level = new Level7(_arg1, 0, 0);
} else {
if (_arg4 == 8){
level = new Level8(_arg1, 0, 0);
} else {
if (_arg4 == 9){
level = new Level9(_arg1, 0, 0);
} else {
if (_arg4 == 10){
level = new Level10(_arg1, 0, 0);
} else {
if (_arg4 == 11){
level = new Level11(_arg1, 0, 0);
} else {
if (_arg4 == 12){
level = new Level12(_arg1, 0, 0);
} else {
if (_arg4 == 12){
level = new Level12(_arg1, 0, 0);
} else {
if (_arg4 == 13){
level = new Level13(_arg1, 0, 0);
} else {
if (_arg4 == 14){
level = new Level14(_arg1, 0, 0);
} else {
if (_arg4 == 15){
level = new Level15(_arg1, 0, 0);
} else {
if (_arg4 == 16){
level = new Level16(_arg1, 0, 0);
} else {
if (_arg4 == 17){
level = new Level17(_arg1, 0, 0);
} else {
if (_arg4 == 18){
level = new Level18(_arg1, 0, 0);
} else {
if (_arg4 == 19){
level = new Level19(_arg1, 0, 0);
} else {
if (_arg4 == 20){
level = new Level20(_arg1, 0, 0);
} else {
if (_arg4 == 21){
level = new Level21(_arg1, 0, 0);
} else {
if (_arg4 == 22){
level = new Level22(_arg1, 0, 0);
} else {
if (_arg4 == 23){
level = new Level23(_arg1, 0, 0);
} else {
if (_arg4 == 24){
level = new Level24(_arg1, 0, 0);
} else {
if (_arg4 == 25){
level = new Level25(_arg1, 0, 0);
} else {
if (_arg4 == 26){
level = new Level26(_arg1, 0, 0);
} else {
if (_arg4 == 27){
level = new Level27(_arg1, 0, 0);
} else {
if (_arg4 == 28){
level = new Level28(_arg1, 0, 0);
} else {
if (_arg4 == 29){
level = new Level29(_arg1, 0, 0);
} else {
if (_arg4 == 30){
level = new Level30(_arg1, 0, 0);
} else {
if (_arg4 == 31){
level = new Level31(_arg1, 0, 0);
} else {
if (_arg4 == 32){
level = new Level32(_arg1, 0, 0);
} else {
if (_arg4 == 33){
level = new Level33(_arg1, 0, 0);
} else {
if (_arg4 == 34){
level = new Level34(_arg1, 0, 0);
} else {
if (_arg4 == 35){
level = new Level35(_arg1, 0, 0);
} else {
if (_arg4 == 36){
level = new Level36(_arg1, 0, 0);
} else {
if (_arg4 == 37){
level = new Level37(_arg1, 0, 0);
} else {
if (_arg4 == 38){
level = new Level38(_arg1, 0, 0);
} else {
if (_arg4 == 39){
level = new Level39(_arg1, 0, 0);
} else {
if (_arg4 == 40){
level = new Level40(_arg1, 0, 0);
} else {
if (_arg4 == 41){
level = new Level41(_arg1, 0, 0);
} else {
if (_arg4 == 42){
level = new Level42(_arg1, 0, 0);
} else {
if (_arg4 == 43){
level = new Level43(_arg1, 0, 0);
} else {
if (_arg4 == 44){
level = new Level44(_arg1, 0, 0);
} else {
if (_arg4 == 45){
level = new Level45(_arg1, 0, 0);
} else {
if (_arg4 == 46){
level = new Level46(_arg1, 0, 0);
} else {
if (_arg4 == 47){
level = new Level47(_arg1, 0, 0);
} else {
if (_arg4 == 48){
level = new Level48(_arg1, 0, 0);
} else {
if (_arg4 == 49){
level = new Level49(_arg1, 0, 0);
} else {
if (_arg4 == 50){
level = new Level50(_arg1, 0, 0);
} else {
if (_arg4 == 51){
level = new Level51(_arg1, 0, 0);
} else {
if (_arg4 == 52){
level = new Level52(_arg1, 0, 0);
} else {
if (_arg4 == 53){
level = new Level53(_arg1, 0, 0);
} else {
if (_arg4 == 54){
level = new Level54(_arg1, 0, 0);
} else {
if (_arg4 == 55){
level = new Level55(_arg1, 0, 0);
} else {
if (_arg4 == 56){
level = new Level56(_arg1, 0, 0);
} else {
if (_arg4 == 57){
level = new Level57(_arg1, 0, 0);
} else {
if (_arg4 == 58){
level = new Level58(_arg1, 0, 0);
} else {
if (_arg4 == 59){
level = new Level59(_arg1, 0, 0);
} else {
if (_arg4 == 60){
level = new Level60(_arg1, 0, 0);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
addChild(level);
addEventListener(NavigationEvent.LOSS, levelLost);
addEventListener(NavigationEvent.VICTORY, levelPassed);
addEventListener(NavigationEvent.OPTIONS, optionsDisplay);
addEventListener(NavigationEvent.MENU, menuDisplay);
timeBar = new TimeBar();
addChild(timeBar);
score = new Score(10, 10);
addChild(score);
_local5 = new FPSCounter();
addChild(_local5);
}
private function enterStage(_arg1:Event):void{
if ((alpha + alphaGrow) < 1){
alpha = (alpha + alphaGrow);
} else {
alpha = 1;
removeEventListener(Event.ENTER_FRAME, enterStage);
};
}
public function levelPassed(_arg1:NavigationEvent){
Mouse.show();
timeBar.removeEventListener(Event.ENTER_FRAME, timeBar.expand);
removeEventListener(NavigationEvent.VICTORY, levelPassed);
removeEventListener(NavigationEvent.LOSS, levelLost);
levelPassedScreen = new LevelPassedScreen(0, 0);
addChild(levelPassedScreen);
}
public function nextLevelPlay(_arg1:MouseEvent){
}
public function nextLevelScreen(_arg1:NavigationEvent){
trace("next level");
}
private function optionsDisplay(_arg1:NavigationEvent):void{
inGameMenu = new InGameMenu(0, 0);
addChild(inGameMenu);
}
private function menuDisplay(_arg1:NavigationEvent):void{
inGameMainMenu = new InGameMainMenu(0, 0);
addChild(inGameMainMenu);
}
public function levelLost(_arg1:NavigationEvent){
var _local2:Sound;
if (Game.soundFlag){
_local2 = new alert_30();
_local2.play();
};
Mouse.show();
timeBar.removeEventListener(Event.ENTER_FRAME, timeBar.expand);
removeEventListener(NavigationEvent.VICTORY, levelPassed);
removeEventListener(NavigationEvent.LOSS, levelLost);
restartScreen = new RestartScreen(0, 0);
addChild(restartScreen);
}
}
}//package
Section 35
//GamingOcean (GamingOcean)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class GamingOcean extends SimpleButton {
public function GamingOcean(){
addEventListener(MouseEvent.CLICK, mouseClicked);
}
private function mouseClicked(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.gamingocean.com");
navigateToURL(_local2);
}
}
}//package
Section 36
//Good (Good)
package {
import flash.media.*;
public dynamic class Good extends Sound {
}
}//package
Section 37
//HardBut (HardBut)
package {
import flash.display.*;
public dynamic class HardBut extends SimpleButton {
}
}//package
Section 38
//Hero (Hero)
package {
import flash.display.*;
import flash.events.*;
public class Hero extends MovieClip {
public var type;// = 1
public static var globalR:Number;
private static var _rotationAmount = 3;
public static var globalY:Number;
public static var globalX:Number;
public function Hero(_arg1:Stage, _arg2:Number, _arg3:Number){
type = 1;
super();
x = _arg2;
y = _arg3;
addEventListener(Event.ENTER_FRAME, move);
addEventListener(Event.ENTER_FRAME, rotate);
addEventListener(Event.ADDED_TO_STAGE, added);
}
private function added(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, added);
}
public function rotate(_arg1:Event){
rotation = (rotation + Hero.rotationAmount);
}
public function spawnParticles(_arg1:Event){
var _local2:Particle;
if (Math.random() < 0.2){
_local2 = new Particle(x, y);
parent.addChild(_local2);
};
}
private function mouseClicked(_arg1:MouseEvent):void{
trace(Math.random());
}
public function move(_arg1:Event){
this.x = parent.mouseX;
this.y = parent.mouseY;
globalR = rotation;
globalX = parent.mouseX;
globalY = parent.mouseY;
}
public static function set rotationAmount(_arg1:int):void{
_rotationAmount = _arg1;
}
public static function enlarge():void{
i = 0;
while (i < GameData.unitHolder.length) {
GameData.unitHolder[i].scaleX = (GameData.unitHolder[i].scaleX * 1.5);
GameData.unitHolder[i].scaleY = (GameData.unitHolder[i].scaleY * 1.5);
i++;
};
}
public static function get rotationAmount():int{
return (_rotationAmount);
}
}
}//package
Section 39
//InfoBadBall (InfoBadBall)
package {
import flash.display.*;
import flash.events.*;
import flash.ui.*;
public class InfoBadBall extends InfoBall {
public var restart:SimpleButton;
public function InfoBadBall(){
Mouse.show();
GameData.gameFlag = false;
restart.addEventListener(MouseEvent.CLICK, restartPressed);
}
private function restartPressed(_arg1:MouseEvent):void{
Mouse.hide();
GameData.gameFlag = true;
parent.removeChild(this);
}
}
}//package
Section 40
//InfoBall (InfoBall)
package {
import flash.display.*;
import flash.events.*;
public class InfoBall extends Sprite {
private var startTweenY:Number;
private var goalY:Number;
public function InfoBall(){
alpha = 0.1;
goalY = y;
y = (startTweenY = (goalY + 100));
addEventListener(Event.ENTER_FRAME, enterStage);
}
private function enterStage(_arg1:Event):void{
if (visible){
if (y > goalY){
y = (y - (1 + ((100 - (startTweenY - y)) / 16)));
} else {
y = goalY;
removeEventListener(Event.ENTER_FRAME, enterStage);
};
if ((alpha + 0.05) < 1){
alpha = (alpha + 0.05);
} else {
alpha = 1;
};
};
}
}
}//package
Section 41
//InfoRotateBall (InfoRotateBall)
package {
import flash.display.*;
import flash.events.*;
import flash.ui.*;
public class InfoRotateBall extends InfoBall {
public var restart:SimpleButton;
public function InfoRotateBall(){
Mouse.show();
GameData.gameFlag = false;
restart.addEventListener(MouseEvent.CLICK, restartPressed);
}
private function restartPressed(_arg1:MouseEvent):void{
Mouse.hide();
GameData.gameFlag = true;
parent.removeChild(this);
}
}
}//package
Section 42
//InfoScoreBall (InfoScoreBall)
package {
import flash.display.*;
import flash.events.*;
import flash.ui.*;
public class InfoScoreBall extends InfoBall {
public var restart:SimpleButton;
public function InfoScoreBall(){
Mouse.show();
GameData.gameFlag = false;
restart.addEventListener(MouseEvent.CLICK, restartPressed);
}
private function restartPressed(_arg1:MouseEvent):void{
Mouse.hide();
GameData.gameFlag = true;
parent.removeChild(this);
}
}
}//package
Section 43
//InfoSizeBall (InfoSizeBall)
package {
import flash.display.*;
import flash.events.*;
import flash.ui.*;
public class InfoSizeBall extends InfoBall {
public var restart:SimpleButton;
public function InfoSizeBall(){
Mouse.show();
GameData.gameFlag = false;
restart.addEventListener(MouseEvent.CLICK, restartPressed);
}
private function restartPressed(_arg1:MouseEvent):void{
Mouse.hide();
GameData.gameFlag = true;
parent.removeChild(this);
}
}
}//package
Section 44
//InfoSlowBall (InfoSlowBall)
package {
import flash.display.*;
import flash.events.*;
import flash.ui.*;
public class InfoSlowBall extends InfoBall {
public var restart:SimpleButton;
public function InfoSlowBall(){
Mouse.show();
GameData.gameFlag = false;
restart.addEventListener(MouseEvent.CLICK, restartPressed);
}
private function restartPressed(_arg1:MouseEvent):void{
Mouse.hide();
GameData.gameFlag = true;
parent.removeChild(this);
}
}
}//package
Section 45
//InfoTimeBall (InfoTimeBall)
package {
import flash.display.*;
import flash.events.*;
import flash.ui.*;
public class InfoTimeBall extends InfoBall {
public var restart:SimpleButton;
public function InfoTimeBall(){
Mouse.show();
GameData.gameFlag = false;
restart.addEventListener(MouseEvent.CLICK, restartPressed);
}
private function restartPressed(_arg1:MouseEvent):void{
Mouse.hide();
GameData.gameFlag = true;
parent.removeChild(this);
}
}
}//package
Section 46
//InGameMainMenu (InGameMainMenu)
package {
import flash.display.*;
import flash.events.*;
public class InGameMainMenu extends MovieClip {
private var levelPassed;
public var no:SimpleButton;
public var yes:SimpleButton;
public function InGameMainMenu(_arg1:Number, _arg2:Number){
no.addEventListener(MouseEvent.CLICK, startClicked);
no.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
yes.addEventListener(MouseEvent.CLICK, yesClicked);
yes.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
}
public function yesClicked(_arg1:MouseEvent){
dispatchEvent(new NavigationEvent(NavigationEvent.RESTARTGAME));
}
public function startClicked(_arg1:MouseEvent){
no.removeEventListener(MouseEvent.CLICK, startClicked);
if (((Game.level - 1) % 12) != 0){
dispatchEvent(new NavigationEvent(NavigationEvent.NEXTLEVELPLAY));
} else {
campaignCompleted = new CampaignCompleted(0, 0);
parent.addChild(campaignCompleted);
};
if (this.parent){
parent.removeChild(this);
};
}
}
}//package
Section 47
//InGameMenu (InGameMenu)
package {
import flash.display.*;
import flash.events.*;
public class InGameMenu extends MovieClip {
public var musicOn:SimpleButton;
public var onBut:SimpleButton;
public var musicOff:SimpleButton;
public var start:SimpleButton;
public var offBut:SimpleButton;
public var inGameMainMenu:InGameMainMenu;
public var main:OkBut;
public static var levelPassedFlag = true;
public function InGameMenu(_arg1:Number, _arg2:Number){
start.addEventListener(MouseEvent.CLICK, continueClicked);
start.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
main.addEventListener(MouseEvent.CLICK, menuClicked);
main.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
onBut.addEventListener(MouseEvent.CLICK, onClicked);
onBut.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
offBut.addEventListener(MouseEvent.CLICK, offClicked);
offBut.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
musicOff.addEventListener(MouseEvent.CLICK, musicOffClicked);
musicOff.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
musicOn.addEventListener(MouseEvent.CLICK, musicOnClicked);
musicOn.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
}
public function levelPassedFunction(){
start.removeEventListener(MouseEvent.CLICK, continueClicked);
if (((Game.level - 1) % 12) != 0){
dispatchEvent(new NavigationEvent(NavigationEvent.NEXTLEVELPLAY));
} else {
campaignCompleted = new CampaignCompleted(0, 0);
addChild(campaignCompleted);
};
}
public function onClicked(_arg1:MouseEvent){
Game.soundFlag = true;
}
private function continueClicked(_arg1:MouseEvent):void{
var _local2:RestartScreen;
if (levelPassedFlag){
levelPassedFunction();
return;
};
if (this.parent == Game){
trace("Game parent");
};
if (this.parent){
InGameMenu.levelPassedFlag = true;
_local2 = new RestartScreen(0, 0);
parent.addChild(_local2);
parent.removeChild(this);
};
}
private function musicOnClicked(_arg1:MouseEvent):void{
if (Game.musicFlag == false){
Game.musicFlag = true;
Game.musicChannel = Game.myMusic.play(0, 1000);
Game.musicChannel.soundTransform = Game.sTransform;
};
}
private function musicOffClicked(_arg1:MouseEvent):void{
Game.musicFlag = false;
Game.musicChannel.stop();
}
public function offClicked(_arg1:MouseEvent){
Game.soundFlag = false;
}
public function menuClicked(_arg1:MouseEvent){
dispatchEvent(new NavigationEvent(NavigationEvent.MENU));
parent.removeChild(this);
}
}
}//package
Section 48
//Instructions (Instructions)
package {
import flash.display.*;
import flash.events.*;
public class Instructions extends MovieClip {
public var startB:SimpleButton;
private var alphaGrow:Number;// = 0.03
public var back:SimpleButton;
public function Instructions(_arg1:Stage, _arg2:Number, _arg3:Number){
alphaGrow = 0.03;
super();
alpha = 0.4;
addEventListener(Event.ENTER_FRAME, enterStage);
x = _arg2;
y = _arg3;
back.addEventListener(MouseEvent.CLICK, backToMainScreen);
startB.addEventListener(MouseEvent.CLICK, startGame);
back.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
startB.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
}
private function enterStage(_arg1:Event):void{
if ((alpha + alphaGrow) < 1){
alpha = (alpha + alphaGrow);
} else {
alpha = 1;
removeEventListener(Event.ENTER_FRAME, enterStage);
};
}
public function startGame(_arg1:MouseEvent){
parent.removeChild(this);
dispatchEvent(new NavigationEvent(NavigationEvent.START));
}
public function backToMainScreen(_arg1:MouseEvent){
parent.removeChild(this);
dispatchEvent(new NavigationEvent(NavigationEvent.INTROSCREEN));
}
}
}//package
Section 49
//IntroScreen (IntroScreen)
package {
import flash.display.*;
import flash.events.*;
import fl.motion.*;
public class IntroScreen extends MovieClip {
public var creditsBut:SimpleButton;
public var freePlayBut:SimpleButton;
public var options:SimpleButton;
public var instructionsBut:SimpleButton;
public var startBut:SimpleButton;
private var ease:CustomEase;
public function IntroScreen(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
ease = new CustomEase();
super();
x = _arg2;
y = _arg3;
startBut.x = -100;
creditsBut.x = -180;
instructionsBut.x = -160;
freePlayBut.x = -120;
options.x = -140;
addEventListener(Event.ENTER_FRAME, onEnterFrame);
startBut.addEventListener(MouseEvent.CLICK, dispatchStart);
creditsBut.addEventListener(MouseEvent.CLICK, dispatchCredits);
instructionsBut.addEventListener(MouseEvent.CLICK, dispatchInstructions);
startBut.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
creditsBut.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
instructionsBut.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
options.addEventListener(MouseEvent.CLICK, optionsClicked);
options.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
freePlayBut.addEventListener(MouseEvent.CLICK, freePlayButClicked);
freePlayBut.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
hero = new Hero(_arg1, 430, 250);
hero.removeEventListener(Event.ENTER_FRAME, hero.move);
addChild(hero);
_local4 = new Ball1(_arg1, 50, 0, -10, -4, true);
_local4.removeEventListener(Event.ADDED_TO_STAGE, _local4.addedToStage);
hero.addChild(_local4);
_local5 = new Ball2(_arg1, -50, 0, -10, -4, true);
_local5.removeEventListener(Event.ADDED_TO_STAGE, _local5.addedToStage);
hero.addChild(_local5);
_local6 = new Ball3(_arg1, 0, 50, 0, 0, true);
_local6.removeEventListener(Event.ADDED_TO_STAGE, _local6.addedToStage);
hero.addChild(_local6);
}
public function dispatchStart(_arg1:MouseEvent){
parent.removeChild(this);
dispatchEvent(new NavigationEvent(NavigationEvent.START));
}
public function dispatchInstructions(_arg1:MouseEvent){
parent.removeChild(this);
dispatchEvent(new NavigationEvent(NavigationEvent.INSTRUCTIONS));
}
private function freePlayButClicked(_arg1:MouseEvent):void{
trace("Freeplay dispatched");
parent.removeChild(this);
dispatchEvent(new NavigationEvent(NavigationEvent.FREEPLAY));
}
private function myease(_arg1:Number, _arg2:Number){
var _local3:Number;
var _local4:Number;
_local3 = 380;
_local4 = (_arg2 - _arg1);
if (_local4 < (_local3 / 2)){
return (((_local4 / 9) + 1));
};
return (20);
}
public function optionsClicked(_arg1:MouseEvent){
parent.removeChild(this);
dispatchEvent(new NavigationEvent(NavigationEvent.MAINOPTIONS));
}
private function onEnterFrame(_arg1:Event):void{
if (startBut.x < 180){
startBut.x = (startBut.x + myease(startBut.x, 180));
} else {
startBut.x = 180;
};
if (creditsBut.x < 180){
creditsBut.x = (creditsBut.x + myease(creditsBut.x, 180));
} else {
creditsBut.x = 180;
};
if (instructionsBut.x < 180){
instructionsBut.x = (instructionsBut.x + myease(instructionsBut.x, 180));
} else {
instructionsBut.x = 180;
};
if (freePlayBut.x < 180){
freePlayBut.x = (freePlayBut.x + myease(freePlayBut.x, 180));
} else {
freePlayBut.x = 180;
};
if (options.x < 180){
options.x = (options.x + myease(options.x, 180));
} else {
options.x = 180;
};
}
public function dispatchAchievements(_arg1:MouseEvent){
parent.removeChild(this);
dispatchEvent(new NavigationEvent(NavigationEvent.ACHIEVEMENTS));
}
public function dispatchCredits(_arg1:MouseEvent){
parent.removeChild(this);
dispatchEvent(new NavigationEvent(NavigationEvent.CREDITS));
}
}
}//package
Section 50
//IntroScreenStart (IntroScreenStart)
package {
import flash.display.*;
public dynamic class IntroScreenStart extends SimpleButton {
}
}//package
Section 51
//Level (Level)
package {
import flash.display.*;
import flash.events.*;
public class Level extends MovieClip {
public var stageRef:Stage;
public function Level(_arg1:Stage, _arg2:Number, _arg3:Number){
x = _arg2;
y = _arg3;
this.y = (this.y - 0);
trace(("This is" + Game.level));
this.stageRef = _arg1;
}
public function removeListeners(){
removeEventListener(Event.ENTER_FRAME, loop);
}
}
}//package
Section 52
//Level1 (Level1)
package {
import flash.display.*;
import flash.events.*;
public class Level1 extends Level {
public var hero:Hero;
public function Level1(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
_local4 = new Ball1(_arg1, 100, 400, -3, -2, false);
addChild(_local4);
_local5 = new Ball4(_arg1, 500, 400, 1, 2, false);
addChild(_local5);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local6 = new Ball1(_arg1, 100, 0, -10, -4, true);
hero.addChild(_local6);
_local7 = new Ball4(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local7);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 53
//Level10 (Level10)
package {
import flash.display.*;
import flash.events.*;
public class Level10 extends Level {
public var hero:Hero;
public function Level10(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:PowerUp;
var _local9:PowerUp;
var _local10:PowerUp;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
_local4 = new Ball1(_arg1, 300, 100, -10, -4, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 150, 100, 6, -4, false);
addChild(_local5);
_local6 = new Ball3(_arg1, 100, 400, -5, 1, false);
addChild(_local6);
_local7 = new Ball4(_arg1, 30, 550, 8, 3, false);
addChild(_local7);
_local8 = new SlowBall(100, 120, -2, -1);
addChild(_local8);
_local8 = new SlowBall(500, 190, -1.2, 2);
addChild(_local8);
_local9 = new ScoreBall(550, 430, 1.2, -2.1);
addChild(_local9);
_local10 = new TimeBall(500, 490, 2.1, -0.1);
addChild(_local10);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local11 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local11);
_local12 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local12);
_local13 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local13);
_local14 = new Ball4(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local14);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 54
//Level11 (Level11)
package {
import flash.display.*;
import flash.events.*;
public class Level11 extends Level {
public var hero:Hero;
public function Level11(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:PowerUp;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
_local4 = new Ball2(_arg1, 350, 100, -1.2, -3.6, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 300, 100, -1.5, -5.1, false);
addChild(_local5);
_local6 = new Ball4(_arg1, 550, 100, 1.2, -2.4, false);
addChild(_local6);
_local7 = new Ball4(_arg1, 150, 100, 4.1, -0.2, false);
addChild(_local7);
_local8 = new Ball6(_arg1, 300, 400, 0.71, 1.71, false);
addChild(_local8);
_local9 = new SlowBall(400, 490, -1.2, 2);
addChild(_local9);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local10 = new Ball2(_arg1, 60, 0, -10, -4, true);
hero.addChild(_local10);
_local11 = new Ball4(_arg1, -60, 0, -10, -4, true);
hero.addChild(_local11);
_local12 = new Ball6(_arg1, 0, 60, 0, 0, true);
hero.addChild(_local12);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 55
//Level12 (Level12)
package {
import flash.display.*;
import flash.events.*;
public class Level12 extends Level {
public var hero:Hero;
public function Level12(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:PowerUp;
var _local11:PowerUp;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
_local4 = new Ball2(_arg1, 270, 120, -5, -2, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 550, 90, -4, -2, false);
addChild(_local5);
_local6 = new Ball3(_arg1, 550, 450, -4, -2, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 150, 100, 0.5, 1.3, false);
addChild(_local7);
_local8 = new Ball5(_arg1, 30, 400, 3.5, -2.3, false);
addChild(_local8);
_local9 = new Ball5(_arg1, 30, 40, 2.5, -3.3, false);
addChild(_local9);
_local10 = new ChangeBall(320, 350, 2.2, 3.1);
addChild(_local10);
_local11 = new ChangeBall(100, 170, 3.2, 4.51);
addChild(_local11);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local12 = new Ball2(_arg1, 30, 0, -10, -4, true);
hero.addChild(_local12);
_local13 = new Ball3(_arg1, -30, 0, -10, -4, true);
hero.addChild(_local13);
_local14 = new Ball5(_arg1, 0, 30, 0, 0, true);
hero.addChild(_local14);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 56
//Level13 (Level13)
package {
import flash.display.*;
import flash.events.*;
public class Level13 extends Level {
public var hero:Hero;
public function Level13(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
_local4 = new Ball1(_arg1, 570, 40, -3.9, -2.3, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 550, 140, 1.9, -4, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 100, 0.33, -4, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 350, 400, 1, 1.5, false);
addChild(_local7);
_local8 = new Ball1(_arg1, 30, 400, 3, 2.3, false);
addChild(_local8);
_local9 = new BadBall(_arg1, 520, 180, -2, 2.1, false);
addChild(_local9);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local10 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local10);
_local11 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local11);
_local12 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local12);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 57
//Level14 (Level14)
package {
import flash.display.*;
import flash.events.*;
public class Level14 extends Level {
public var hero:Hero;
public function Level14(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:PowerUp;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
_local4 = new Ball4(_arg1, 300, 100, -10, -4, false);
addChild(_local4);
_local5 = new Ball4(_arg1, 300, 500, -10, -4, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 100, 9, -4, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 100, 1, -8, false);
addChild(_local7);
_local8 = new Ball5(_arg1, 300, 400, 1, 1, false);
addChild(_local8);
_local9 = new Ball5(_arg1, 30, 400, 3, 3, false);
addChild(_local9);
_local10 = new SlowBall(140, 250, -1.2, -0.61);
addChild(_local10);
_local10 = new SlowBall(450, 150, -2.2, 1);
addChild(_local10);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local11 = new Ball2(_arg1, 0, 50, -10, -4, true);
hero.addChild(_local11);
_local12 = new Ball4(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local12);
_local13 = new Ball5(_arg1, 50, 0, 0, 0, true);
hero.addChild(_local13);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 58
//Level15 (Level15)
package {
import flash.display.*;
import flash.events.*;
public class Level15 extends Level {
public var hero:Hero;
public function Level15(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:PowerUp;
var _local10:PowerUp;
var _local11:PowerUp;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
_local4 = new Ball1(_arg1, 320, 80, -3.5, -2.4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 430, 530, -1, -1.4, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 550, 100, 1, -3.8, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 300, 400, 1, 1.5, false);
addChild(_local7);
_local8 = new Ball4(_arg1, 430, 100, 4, 3, false);
addChild(_local8);
_local9 = new TimeBall(100, 310, 9, 3);
addChild(_local9);
_local10 = new TimeBall(570, 210, -4.2, 1.1);
addChild(_local10);
_local11 = new ScoreBall(270, 130, 5.2, -2.1);
addChild(_local11);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local12 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local12);
_local13 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local13);
_local14 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local14);
_local15 = new Ball4(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local15);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 59
//Level16 (Level16)
package {
import flash.display.*;
import flash.events.*;
public class Level16 extends Level {
public var hero:Hero;
public function Level16(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
_local4 = new Ball1(_arg1, 500, 80, -1.6, -1.4, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 570, 100, -2.1, 3, false);
addChild(_local5);
_local6 = new Ball3(_arg1, 30, 400, -2.3, 1, false);
addChild(_local6);
_local7 = new Ball4(_arg1, 560, 100, -2.5, 3, false);
addChild(_local7);
_local8 = new Ball5(_arg1, 430, 400, -1.5, 2.8, false);
addChild(_local8);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local9 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local9);
_local10 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local10);
_local11 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local11);
_local12 = new Ball4(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local12);
_local13 = new Ball5(_arg1, 60, 60, 0, 0, true);
hero.addChild(_local13);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 60
//Level17 (Level17)
package {
import flash.display.*;
import flash.events.*;
public class Level17 extends Level {
public var hero:Hero;
public function Level17(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:PowerUp;
var _local13:Ball;
var _local14:Ball;
_local4 = new Ball1(_arg1, 550, 450, 3, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 350, 450, 0.3, -0.4, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 550, 550, 1, 0.62, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 100, 400, 1.8, 1.2, false);
addChild(_local7);
_local8 = new BadBall(_arg1, 50, 150, 2.1, -1, false);
addChild(_local8);
_local9 = new BadBall(_arg1, 500, 450, 0.22, 1.111, false);
addChild(_local9);
_local10 = new BadBall(_arg1, 400, 350, -2, 1, false);
addChild(_local10);
_local11 = new BadBall(_arg1, 40, 35, -2, 1, false);
addChild(_local11);
_local12 = new SizeBall(520, 420, 4.2, 6.1);
addChild(_local12);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local13 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local13);
_local14 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local14);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 61
//Level18 (Level18)
package {
import flash.display.*;
import flash.events.*;
public class Level18 extends Level {
public var hero:Hero;
public function Level18(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:PowerUp;
var _local10:PowerUp;
var _local11:PowerUp;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
_local4 = new Ball1(_arg1, 300, 100, -2.5, -2, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 150, 100, 4.5, -4, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 550, 100, 5, -4, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 300, 400, 1, 3, false);
addChild(_local7);
_local8 = new Ball3(_arg1, 30, 400, 4, 3, false);
addChild(_local8);
_local9 = new ChangeBall(160, 280, 3.72, -4.1);
addChild(_local9);
_local10 = new ChangeBall(170, 140, -2.2, -3.81);
addChild(_local10);
_local11 = new ChangeBall(120, 360, -3.2, 5.3);
addChild(_local11);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local12 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local12);
_local13 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local13);
_local14 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local14);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 62
//Level19 (Level19)
package {
import flash.display.*;
import flash.events.*;
public class Level19 extends Level {
public var hero:Hero;
public function Level19(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:PowerUp;
var _local12:PowerUp;
var _local13:PowerUp;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
_local4 = new Ball4(_arg1, 300, 100, -1.5, -4, false);
addChild(_local4);
_local5 = new Ball4(_arg1, 300, 500, -3, -2, false);
addChild(_local5);
_local6 = new Ball4(_arg1, 300, 50, -4.7, -2.5, false);
addChild(_local6);
_local7 = new Ball5(_arg1, 150, 100, 2.9, -4, false);
addChild(_local7);
_local8 = new Ball5(_arg1, 550, 100, 1, -8, false);
addChild(_local8);
_local9 = new Ball6(_arg1, 300, 400, 1, 1, false);
addChild(_local9);
_local10 = new Ball6(_arg1, 30, 400, 3, 3, false);
addChild(_local10);
_local11 = new ScoreBall(100, 310, 2, 1);
addChild(_local11);
_local12 = new ScoreBall(500, 210, -0.2, 1.1);
addChild(_local12);
_local13 = new ScoreBall(70, 130, 1.2, -2.1);
addChild(_local13);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local14 = new Ball4(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local14);
_local15 = new Ball6(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local15);
_local16 = new Ball5(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local16);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 63
//Level1Bg (Level1Bg)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
public class Level1Bg extends MovieClip {
public function Level1Bg(){
addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
private function onEnterFrame(_arg1:Event):void{
var _local2:ParticleSnow;
if (Math.random() < 0.08){
_local2 = new ParticleSnow(new Point(((Math.random() * 800) - 300), (1680 - (((Game.level % 12) * Math.random()) * 200))));
_local2.scaleX = (_local2.scaleY = (1 + (Math.random() * 2)));
addChild(_local2);
};
}
}
}//package
Section 64
//Level2 (Level2)
package {
import flash.display.*;
import flash.events.*;
public class Level2 extends Level {
public var hero:Hero;
public function Level2(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
_local4 = new Ball6(_arg1, 400, 120, -2, -3, false);
addChild(_local4);
_local5 = new Ball3(_arg1, 500, 400, 3, -1, false);
addChild(_local5);
_local6 = new Ball3(_arg1, 30, 150, 1, 2, false);
addChild(_local6);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local7 = new Ball6(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local7);
_local8 = new Ball3(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local8);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 65
//Level20 (Level20)
package {
import flash.display.*;
import flash.events.*;
public class Level20 extends Level {
public var hero:Hero;
public function Level20(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:PowerUp;
var _local12:PowerUp;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17:Ball;
_local4 = new Ball1(_arg1, 300, 100, -1.2, -2.4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 300, 500, -0.1, -1.3, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 550, 100, 2.3, -1.2, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 300, 400, 2.1, 1.3, false);
addChild(_local7);
_local8 = new Ball3(_arg1, 30, 400, 3, 3, false);
addChild(_local8);
_local9 = new Ball4(_arg1, 430, 100, 1.5, 3, false);
addChild(_local9);
_local10 = new Ball5(_arg1, 430, 400, -2.5, 1.8, false);
addChild(_local10);
_local11 = new TimeBall(500, 210, 1.9, 3);
addChild(_local11);
_local12 = new TimeBall(540, 170, -4.2, 1.1);
addChild(_local12);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local13 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local13);
_local14 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local14);
_local15 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local15);
_local16 = new Ball4(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local16);
_local17 = new Ball5(_arg1, 60, 60, 0, 0, true);
hero.addChild(_local17);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 66
//Level21 (Level21)
package {
import flash.display.*;
import flash.events.*;
public class Level21 extends Level {
public var hero:Hero;
public function Level21(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:PowerUp;
var _local13:Ball;
var _local14:Ball;
_local4 = new Ball3(_arg1, 100, 100, -10, -4, false);
addChild(_local4);
_local5 = new Ball4(_arg1, 500, 50, -10, -4, false);
addChild(_local5);
_local6 = new Ball3(_arg1, 550, 450, -10, -14, false);
addChild(_local6);
_local7 = new Ball4(_arg1, 300, 400, 1, 1, false);
addChild(_local7);
_local8 = new Ball3(_arg1, 30, 400, 3, 3, false);
addChild(_local8);
_local9 = new Ball4(_arg1, 30, 40, 5, 3, false);
addChild(_local9);
_local10 = new Ball3(_arg1, 100, 100, 3, 12, false);
addChild(_local10);
_local11 = new Ball3(_arg1, 40, 440, 5, 6, false);
addChild(_local11);
_local12 = new SlowBall(100, 150, 2, 3);
addChild(_local12);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local13 = new Ball3(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local13);
_local14 = new Ball4(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local14);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 67
//Level22 (Level22)
package {
import flash.display.*;
import flash.events.*;
public class Level22 extends Level {
public var hero:Hero;
public function Level22(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:PowerUp;
var _local15:Ball;
var _local16:Ball;
var _local17:Ball;
_local4 = new Ball1(_arg1, 300, 130, -2.5, -1.4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 340, 190, -0.5, 1.4, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 30, 2.9, -2.4, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 4500, 3.1, -2.8, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 50, 160, 4.7, -2.5, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 200, 100, 3.1, -3.8, false);
addChild(_local9);
_local10 = new Ball6(_arg1, 300, 360, 1.4, 5.9, false);
addChild(_local10);
_local11 = new Ball6(_arg1, 30, 400, 3.8, 3, false);
addChild(_local11);
_local12 = new BadBall(_arg1, 100, 150, 2, 1, false);
addChild(_local12);
_local13 = new BadBall(_arg1, 580, 150, -0.2, 3, false);
addChild(_local12);
_local14 = new TimeBall(500, 50, 0.2, -0.31);
addChild(_local14);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local15 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local15);
_local16 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local16);
_local17 = new Ball6(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local17);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 68
//Level23 (Level23)
package {
import flash.display.*;
import flash.events.*;
public class Level23 extends Level {
public var hero:Hero;
public function Level23(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:PowerUp;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
_local4 = new Ball1(_arg1, 300, 100, -10, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 300, 500, -5, -2, false);
addChild(_local5);
_local6 = new Ball1(_arg1, 300, 50, -10, -4, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 150, 100, 9, -4, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 550, 100, 1, -8, false);
addChild(_local8);
_local9 = new Ball3(_arg1, 300, 400, 1, 1, false);
addChild(_local9);
_local10 = new Ball3(_arg1, 30, 400, 3, 3, false);
addChild(_local10);
_local11 = new Ball3(_arg1, 30, 40, 13, 3, false);
addChild(_local11);
_local12 = new SlowBall(120, 350, -5, -1);
addChild(_local12);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local13 = new Ball1(_arg1, 70, 0, -10, -4, true);
hero.addChild(_local13);
_local14 = new Ball2(_arg1, -70, 0, -10, -4, true);
hero.addChild(_local14);
_local15 = new Ball3(_arg1, 0, 70, 0, 0, true);
hero.addChild(_local15);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 69
//Level24 (Level24)
package {
import flash.display.*;
import flash.events.*;
public class Level24 extends Level {
public var hero:Hero;
public function Level24(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:PowerUp;
var _local11:PowerUp;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
_local4 = new Ball1(_arg1, 300, 100, -5, -4, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 150, 100, 9, -4, false);
addChild(_local5);
_local6 = new Ball3(_arg1, 300, 400, 1, 1, false);
addChild(_local6);
_local7 = new Ball4(_arg1, 430, 100, 5, 3, false);
addChild(_local7);
_local8 = new Ball5(_arg1, 430, 400, -5, 2, false);
addChild(_local8);
_local9 = new BadBall(_arg1, 400, 150, 3.2, -1.2, false);
addChild(_local9);
_local9 = new BadBall(_arg1, 50, 450, 2, 3, false);
addChild(_local9);
_local10 = new SlowBall(520, 250, -2, -1);
addChild(_local10);
_local11 = new TimeBall(500, 550, 2, -1);
addChild(_local11);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local12 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local12);
_local13 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local13);
_local14 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local14);
_local15 = new Ball4(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local15);
_local16 = new Ball5(_arg1, 60, 60, 0, 0, true);
hero.addChild(_local16);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 70
//Level25 (Level25)
package {
import flash.display.*;
import flash.events.*;
public class Level25 extends Level {
public var hero:Hero;
public function Level25(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball1;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
_local4 = new Ball1(_arg1, 500, 100, -1.3, -0.4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 100, 50, 1.2, -1.6, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 90, 430, -1.5, 1.8, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 400, -1.4, -1.2, false);
addChild(_local7);
_local8 = new BadBall(_arg1, 40, 150, 1.2, -1.2, false);
addChild(_local8);
_local8 = new BadBall(_arg1, 350, 450, -2, 1.3, false);
addChild(_local8);
_local8 = new BadBall(_arg1, 550, 450, -3.2, 1.2, false);
addChild(_local8);
_local8 = new BadBall(_arg1, 90, 49, 2.5, -3, false);
addChild(_local8);
_local8 = new BadBall(_arg1, 300, 200, 3.2, -1.2, false);
addChild(_local8);
_local8 = new BadBall(_arg1, 50, 450, 2, 3, false);
addChild(_local8);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local9 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local9);
_local10 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local10);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 71
//Level26 (Level26)
package {
import flash.display.*;
import flash.events.*;
public class Level26 extends Level {
public var hero:Hero;
public function Level26(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:PowerUp;
var _local12:ScoreBall;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
_local4 = new Ball1(_arg1, 350, 80, -10, -4, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 150, 450, 18, -8, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 550, 360, 10, -8, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 50, 100, 10, -8, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 200, 100, 10, -8, false);
addChild(_local8);
_local9 = new Ball3(_arg1, 300, 400, 1, 9, false);
addChild(_local9);
_local10 = new Ball3(_arg1, 30, 400, 8, 3, false);
addChild(_local10);
_local11 = new SlowBall(520, 350, -5, -1);
addChild(_local11);
_local12 = new ScoreBall(400, 200, -1, -2);
addChild(_local12);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local13 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local13);
_local14 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local14);
_local15 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local15);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 72
//Level27 (Level27)
package {
import flash.display.*;
import flash.events.*;
public class Level27 extends Level {
public var hero:Hero;
public function Level27(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
_local4 = new Ball2(_arg1, 300, 100, 1.3, 2.3, false);
addChild(_local4);
_local5 = new Ball4(_arg1, 300, 500, -3.6, -2.3, false);
addChild(_local5);
_local6 = new BadBall(_arg1, 300, 500, 3.2, -1.2, false);
addChild(_local6);
_local7 = new Ball5(_arg1, 150, 100, 2.7, -2, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 550, 100, 1, -3, false);
addChild(_local8);
_local9 = new Ball6(_arg1, 50, 100, 1, -1, false);
addChild(_local9);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local10 = new Ball2(_arg1, 100, 0, -10, -4, true);
hero.addChild(_local10);
_local11 = new Ball4(_arg1, -100, 0, -10, -4, true);
hero.addChild(_local11);
_local12 = new Ball5(_arg1, 0, 100, 0, 0, true);
hero.addChild(_local12);
_local13 = new Ball6(_arg1, 0, -100, 0, 0, true);
hero.addChild(_local13);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 73
//Level28 (Level28)
package {
import flash.display.*;
import flash.events.*;
public class Level28 extends Level {
public var hero:Hero;
public function Level28(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:PowerUp;
var _local14:PowerUp;
var _local15:Ball;
var _local16:Ball;
var _local17:Ball;
var _local18:Ball;
_local4 = new Ball1(_arg1, 300, 100, -5, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 300, 500, -1, -4, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 100, 5, -3.8, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 100, 2, -1, false);
addChild(_local7);
_local8 = new Ball3(_arg1, 300, 400, 1, 1, false);
addChild(_local8);
_local9 = new Ball3(_arg1, 30, 400, 3, 3, false);
addChild(_local9);
_local10 = new Ball5(_arg1, 430, 400, -2.5, 1.8, false);
addChild(_local10);
_local11 = new Ball5(_arg1, 430, 400, -4.5, 3.8, false);
addChild(_local11);
_local12 = new BadBall(_arg1, 450, 190, -3.2, -2.2, false);
addChild(_local12);
_local12 = new BadBall(_arg1, 550, 450, -1.2, 2.3, false);
addChild(_local12);
_local13 = new SlowBall(430, 250, -2, -1);
addChild(_local13);
_local14 = new TimeBall(470, 550, 2, -1);
addChild(_local14);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local15 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local15);
_local16 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local16);
_local17 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local17);
_local18 = new Ball5(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local18);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 74
//Level29 (Level29)
package {
import flash.display.*;
import flash.events.*;
public class Level29 extends Level {
public var hero:Hero;
public function Level29(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:PowerUp;
var _local11:ScoreBall;
var _local12:SizeBall;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17:Ball;
var _local18:Ball;
var _local19:Ball;
_local4 = new Ball1(_arg1, 300, 100, -2.5, -1.4, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 550, 100, 3.1, -3.8, false);
addChild(_local5);
_local6 = new Ball3(_arg1, 30, 400, 3, 3, false);
addChild(_local6);
_local7 = new Ball4(_arg1, 430, 100, 5, 3, false);
addChild(_local7);
_local8 = new Ball5(_arg1, 430, 400, 4.5, 8, false);
addChild(_local8);
_local9 = new Ball6(_arg1, 20, 400, -3, 5, false);
addChild(_local9);
_local10 = new SlowBall(520, 350, -5, -1);
addChild(_local10);
_local11 = new ScoreBall(400, 200, -1, -2);
addChild(_local11);
_local12 = new SizeBall(450, 470, 5, 6);
addChild(_local12);
_local13 = new BadBall(_arg1, 550, 450, -3.2, 1.2, false);
addChild(_local13);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local14 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local14);
_local15 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local15);
_local16 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local16);
_local17 = new Ball4(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local17);
_local18 = new Ball5(_arg1, 60, 60, 0, 0, true);
hero.addChild(_local18);
_local19 = new Ball6(_arg1, -60, -60, 0, 0, true);
hero.addChild(_local19);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 75
//Level2Bg (Level2Bg)
package {
import flash.display.*;
public dynamic class Level2Bg extends MovieClip {
}
}//package
Section 76
//Level3 (Level3)
package {
import flash.display.*;
import flash.events.*;
public class Level3 extends Level {
public var hero:Hero;
public function Level3(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:InfoBall;
_local4 = new InfoBadBall();
addChild(_local4);
_local4.addEventListener(Event.REMOVED_FROM_STAGE, startLevel);
super(_arg1, _arg2, _arg3);
}
private function startLevel(_arg1:Event):void{
var _local2:Ball;
var _local3:Ball;
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
_local2 = new Ball4(stageRef, 100, 100, -10, -4, false);
addChild(_local2);
_local3 = new Ball6(stageRef, 350, 500, 2, 2, false);
addChild(_local3);
_local4 = new BadBall(stageRef, 500, 150, 2, 1, false);
addChild(_local4);
hero = new Hero(stageRef, 400, 400);
addChild(hero);
_local5 = new Ball4(stageRef, 100, 0, -10, -4, true);
hero.addChild(_local5);
_local6 = new Ball6(stageRef, -50, 0, -10, -4, true);
hero.addChild(_local6);
}
}
}//package
Section 77
//Level30 (Level30)
package {
import flash.display.*;
import flash.events.*;
public class Level30 extends Level {
public var hero:Hero;
public function Level30(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:ChangeBall;
var _local11:ChangeBall;
var _local12:ChangeBall;
var _local13:Ball;
var _local14:Ball;
_local4 = new Ball2(_arg1, 100, 100, -1, -1.4, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 500, 50, -3, 4, false);
addChild(_local5);
_local6 = new Ball3(_arg1, 50, 400, -2, -2.8, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 550, 400, 3, -3.8, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 550, 50, 2.6, -2.4, false);
addChild(_local8);
_local9 = new BadBall(_arg1, 40, 150, 1.2, -1.2, false);
addChild(_local9);
_local9 = new BadBall(_arg1, 350, 450, -2, 1.3, false);
addChild(_local9);
_local9 = new BadBall(_arg1, 550, 450, -3.2, 1.2, false);
addChild(_local9);
_local9 = new BadBall(_arg1, 90, 49, 2.5, -3, false);
addChild(_local9);
_local9 = new BadBall(_arg1, 300, 200, 3.2, -1.2, false);
addChild(_local9);
_local9 = new BadBall(_arg1, 50, 450, 2, 3, false);
addChild(_local9);
_local10 = new ChangeBall(30, 40, 9, 10);
addChild(_local10);
_local11 = new ChangeBall(300, 40, 3.9, -5.1);
addChild(_local11);
_local12 = new ChangeBall(30, 490, -1.9, 2.1);
addChild(_local12);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local13 = new Ball2(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local13);
_local14 = new Ball3(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local14);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 78
//Level31 (Level31)
package {
import flash.display.*;
import flash.events.*;
public class Level31 extends Level {
public var hero:Hero;
public function Level31(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:PowerUp;
var _local14:PowerUp;
var _local15:Ball;
var _local16:Ball;
var _local17:Ball;
_local4 = new Ball1(_arg1, 250, 50, -2.7, 1.3, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 550, 500, -1.5, -2, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 120, 11, -8, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 100, 1.4, -3.8, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 50, 400, 3, -2, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 230, 500, 3, -2.6, false);
addChild(_local9);
_local10 = new Ball3(_arg1, 320, 400, 1, 2.9, false);
addChild(_local10);
_local11 = new Ball3(_arg1, 30, 450, 1.8, 3, false);
addChild(_local11);
_local12 = new BadBall(_arg1, 150, 450, -2.2, -1.2, false);
addChild(_local12);
_local12 = new BadBall(_arg1, 190, 420, -1.2, 1.2, false);
addChild(_local12);
_local13 = new SlowBall(520, 350, -5, -1);
addChild(_local13);
_local14 = new TimeBall(500, 550, 0.2, -1);
addChild(_local14);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local15 = new Ball1(_arg1, 35, 35, -10, -4, true);
hero.addChild(_local15);
_local16 = new Ball2(_arg1, -35, 35, -10, -4, true);
hero.addChild(_local16);
_local17 = new Ball3(_arg1, 0, 15, 0, 0, true);
hero.addChild(_local17);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 79
//Level32 (Level32)
package {
import flash.display.*;
import flash.events.*;
public class Level32 extends Level {
public var hero:Hero;
public function Level32(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:PowerUp;
var _local16:PowerUp;
var _local17:Ball;
var _local18:Ball;
var _local19:Ball;
_local4 = new Ball5(_arg1, 300, 100, -1.5, -2.4, false);
addChild(_local4);
_local5 = new Ball5(_arg1, 300, 500, -1.2, -3.6, false);
addChild(_local5);
_local6 = new Ball5(_arg1, 300, 50, 3.6, -2.4, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 150, 100, 2.4, -4.8, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 550, 100, 1.3, -3.6, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 50, 100, 1.3, -2.4, false);
addChild(_local9);
_local10 = new Ball3(_arg1, 300, 400, 1, 1, false);
addChild(_local10);
_local11 = new Ball3(_arg1, 30, 400, 3, 3, false);
addChild(_local11);
_local12 = new Ball3(_arg1, 30, 40, 4.8, 3, false);
addChild(_local12);
_local13 = new Ball3(_arg1, 30, 40, 3, -2.7, false);
addChild(_local13);
_local14 = new BadBall(_arg1, 480, 120, 3.2, -1.2, false);
addChild(_local14);
_local14 = new BadBall(_arg1, 50, 480, 2, 3, false);
addChild(_local14);
_local15 = new SlowBall(520, 250, -2, -1);
addChild(_local15);
_local16 = new TimeBall(500, 550, 2, -1);
addChild(_local16);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local17 = new Ball5(_arg1, 70, 0, -10, -4, true);
hero.addChild(_local17);
_local18 = new Ball2(_arg1, -70, 0, -10, -4, true);
hero.addChild(_local18);
_local19 = new Ball3(_arg1, 0, 70, 0, 0, true);
hero.addChild(_local19);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 80
//Level33 (Level33)
package {
import flash.display.*;
import flash.events.*;
public class Level33 extends Level {
public var hero:Hero;
public function Level33(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:PowerUp;
var _local15:ChangeBall;
var _local16:Ball;
var _local17:Ball;
var _local18:Ball;
var _local19:Ball;
_local4 = new Ball1(_arg1, 400, 30, -1.2, -2.4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 100, 550, -0.1, -0.2, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 10, 1.2, -0.72, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 20, 1.2, -2.3, false);
addChild(_local7);
_local8 = new Ball4(_arg1, 520, 580, 1.3, -3.6, false);
addChild(_local8);
_local9 = new Ball3(_arg1, 500, 450, 1, 1, false);
addChild(_local9);
_local10 = new Ball3(_arg1, 30, 450, 3, 3, false);
addChild(_local10);
_local11 = new Ball4(_arg1, 430, 50, -2.5, -1.33, false);
addChild(_local11);
_local12 = new Ball1(_arg1, 430, 430, -1, 1, false);
addChild(_local12);
_local13 = new BadBall(_arg1, 490, 150, 3.2, -1.2, false);
addChild(_local13);
_local13 = new BadBall(_arg1, 550, 450, 2, 3, false);
addChild(_local13);
_local13 = new BadBall(_arg1, 90, 150, 1.2, -1.2, false);
addChild(_local13);
_local13 = new BadBall(_arg1, 50, 450, 0.82, -0.93, false);
addChild(_local13);
_local14 = new TimeBall(50, 550, 2, -1);
addChild(_local14);
_local15 = new ChangeBall(370, 400, 3.9, -5.1);
addChild(_local15);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local16 = new Ball2(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local16);
_local17 = new Ball3(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local17);
_local18 = new Ball1(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local18);
_local19 = new Ball4(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local19);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 81
//Level34 (Level34)
package {
import flash.display.*;
import flash.events.*;
public class Level34 extends Level {
public var hero:Hero;
public function Level34(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:SizeBall;
var _local14:Ball;
var _local15:Ball;
_local4 = new Ball5(_arg1, 300, 600, 2, -1.4, false);
addChild(_local4);
_local5 = new Ball6(_arg1, 300, 500, -1, 1.4, false);
addChild(_local5);
_local6 = new Ball5(_arg1, 150, 110, 1.8, -0.8, false);
addChild(_local6);
_local7 = new Ball6(_arg1, 550, 90, 1, -0.8, false);
addChild(_local7);
_local8 = new Ball5(_arg1, 30, 420, 3, 2.3, false);
addChild(_local8);
_local9 = new Ball6(_arg1, 430, 100, 1.5, 3, false);
addChild(_local9);
_local10 = new Ball5(_arg1, 430, 360, -3.5, 2.8, false);
addChild(_local10);
_local11 = new Ball6(_arg1, 20, 448, -4.3, 2.5, false);
addChild(_local11);
_local12 = new BadBall(_arg1, 190, 420, -1.2, 1.2, false);
addChild(_local12);
_local12 = new BadBall(_arg1, 390, 420, 2.2, 1.2, false);
addChild(_local12);
_local13 = new SizeBall(450, 470, 5, 6);
addChild(_local13);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local14 = new Ball5(_arg1, 120, 0, -10, -4, true);
hero.addChild(_local14);
_local15 = new Ball6(_arg1, -120, 0, -10, -4, true);
hero.addChild(_local15);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 82
//Level35 (Level35)
package {
import flash.display.*;
import flash.events.*;
public class Level35 extends Level {
public var hero:Hero;
public function Level35(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:PowerUp;
var _local17:ChangeBall;
var _local18:Ball;
var _local19:Ball;
var _local20:Ball;
_local4 = new Ball2(_arg1, 100, 100, -12, -3, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 500, 50, -10, -4, false);
addChild(_local5);
_local6 = new Ball3(_arg1, 50, 400, -8, -8, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 550, 400, -11, -9, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 550, 50, 9, -4, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 150, 100, 3, 3, false);
addChild(_local9);
_local10 = new Ball2(_arg1, 50, 10, 2, 5, false);
addChild(_local10);
_local11 = new Ball1(_arg1, 300, 400, 1, 1, false);
addChild(_local11);
_local12 = new Ball1(_arg1, 30, 400, 3, 3, false);
addChild(_local12);
_local13 = new Ball2(_arg1, 30, 40, 5, 3, false);
addChild(_local13);
_local14 = new Ball3(_arg1, 100, 100, 3, 12, false);
addChild(_local14);
_local15 = new Ball2(_arg1, 100, 400, 3, 12, false);
addChild(_local15);
_local16 = new SlowBall(570, 390, -5, -1);
addChild(_local16);
_local17 = new ChangeBall(370, 400, 3.9, -5.1);
addChild(_local17);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local18 = new Ball2(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local18);
_local19 = new Ball3(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local19);
_local20 = new Ball1(_arg1, 0, -40, -10, -4, true);
hero.addChild(_local20);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 83
//Level36 (Level36)
package {
import flash.display.*;
import flash.events.*;
public class Level36 extends Level {
public var hero:Hero;
public function Level36(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:PowerUp;
var _local17:PowerUp;
var _local18:Ball;
var _local19:Ball;
var _local20:Ball;
_local4 = new Ball5(_arg1, 300, 100, -3.7, -5, false);
addChild(_local4);
_local5 = new Ball5(_arg1, 300, 500, -2, -1.4, false);
addChild(_local5);
_local6 = new Ball5(_arg1, 300, 50, -2.8, -6, false);
addChild(_local6);
_local7 = new Ball1(_arg1, 150, 100, 4.15, -4, false);
addChild(_local7);
_local8 = new Ball1(_arg1, 550, 100, 3, -2.8, false);
addChild(_local8);
_local9 = new Ball1(_arg1, 50, 100, 3, -1.4, false);
addChild(_local9);
_local10 = new Ball1(_arg1, 50, 100, 2.8, -4, false);
addChild(_local10);
_local11 = new Ball3(_arg1, 300, 400, 3.5, 1, false);
addChild(_local11);
_local12 = new Ball3(_arg1, 30, 400, 3, 2.7, false);
addChild(_local12);
_local13 = new Ball3(_arg1, 30, 40, 1.3, 3, false);
addChild(_local13);
_local14 = new Ball3(_arg1, 30, 40, 3, -7, false);
addChild(_local14);
_local15 = new BadBall(_arg1, 180, 420, 3.2, -1.2, false);
addChild(_local15);
_local15 = new BadBall(_arg1, 150, 380, 2, 3, false);
addChild(_local15);
_local15 = new BadBall(_arg1, 480, 120, 3.2, -1.2, false);
addChild(_local15);
_local15 = new BadBall(_arg1, 50, 480, 2, 3, false);
addChild(_local15);
_local16 = new TimeBall(500, 550, 2, -1);
addChild(_local16);
_local17 = new ScoreBall(70, 130, 1.2, -2.1);
addChild(_local17);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local18 = new Ball5(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local18);
_local19 = new Ball1(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local19);
_local20 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local20);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 84
//Level37 (Level37)
package {
import flash.display.*;
import flash.events.*;
public class Level37 extends Level {
public var hero:Hero;
public function Level37(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball1;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17:PowerUp;
var _local18:PowerUp;
var _local19:Ball;
var _local20:Ball;
var _local21:Ball;
var _local22:Ball;
_local4 = new Ball3(_arg1, 500, 100, -3, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 100, 50, -2, -6, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 50, 450, -5, -8, false);
addChild(_local6);
_local7 = new Ball4(_arg1, 550, 400, -4, -2, false);
addChild(_local7);
_local8 = new Ball3(_arg1, 550, 50, 6, -4, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 150, 100, 3, 3, false);
addChild(_local9);
_local10 = new Ball1(_arg1, 590, 400, 1, 1, false);
addChild(_local10);
_local11 = new Ball4(_arg1, 30, 400, 3, 3, false);
addChild(_local11);
_local12 = new Ball2(_arg1, 30, 40, 5, 3, false);
addChild(_local12);
_local13 = new Ball3(_arg1, 100, 100, 3, 6, false);
addChild(_local13);
_local14 = new Ball2(_arg1, 100, 400, 3, 6, false);
addChild(_local14);
_local15 = new Ball3(_arg1, 10, 10, 5, 6, false);
addChild(_local15);
_local16 = new BadBall(_arg1, 150, 380, 2, 3, false);
addChild(_local16);
_local17 = new SlowBall(570, 390, -5, -1);
addChild(_local17);
_local18 = new ScoreBall(500, 210, -0.2, 1.1);
addChild(_local18);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local19 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local19);
_local20 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local20);
_local21 = new Ball3(_arg1, 0, 50, -10, -4, true);
hero.addChild(_local21);
_local22 = new Ball4(_arg1, 0, -50, -10, -4, true);
hero.addChild(_local22);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 85
//Level38 (Level38)
package {
import flash.display.*;
import flash.events.*;
public class Level38 extends Level {
public var hero:Hero;
public function Level38(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:PowerUp;
var _local15:ChangeBall;
var _local16:PowerUp;
var _local17:Ball;
var _local18:Ball;
var _local19:Ball;
var _local20:Ball;
_local4 = new Ball1(_arg1, 350, 50, -5, -2, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 380, 90, -2, -3.7, false);
addChild(_local5);
_local6 = new Ball4(_arg1, 510, 110, -3, -4, false);
addChild(_local6);
_local7 = new Ball4(_arg1, 350, 20, 2, -4, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 150, 100, 5, -4, false);
addChild(_local8);
_local9 = new Ball3(_arg1, 550, 150, 2, -4, false);
addChild(_local9);
_local10 = new Ball1(_arg1, 50, 470, -5, -4, false);
addChild(_local10);
_local11 = new Ball2(_arg1, 200, 440, 5, -4, false);
addChild(_local11);
_local12 = new Ball3(_arg1, 300, 390, 1, 3, false);
addChild(_local12);
_local13 = new Ball3(_arg1, 30, 400, 4, 3, false);
addChild(_local13);
_local14 = new TimeBall(500, 550, 2, -1);
addChild(_local14);
_local15 = new ChangeBall(370, 400, 3.9, -5.1);
addChild(_local15);
_local15 = new ChangeBall(170, 200, 1.9, 2.1);
addChild(_local15);
_local15 = new ChangeBall(270, 470, -2.9, 1.1);
addChild(_local15);
_local16 = new ScoreBall(100, 310, 2, 1);
addChild(_local16);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local17 = new Ball4(_arg1, 30, 0, -10, -4, true);
hero.addChild(_local17);
_local18 = new Ball1(_arg1, -30, 0, -10, -4, true);
hero.addChild(_local18);
_local19 = new Ball3(_arg1, 0, 30, 0, 0, true);
hero.addChild(_local19);
_local20 = new Ball2(_arg1, 0, -30, 0, 0, true);
hero.addChild(_local20);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 86
//Level39 (Level39)
package {
import flash.display.*;
import flash.events.*;
public class Level39 extends Level {
public var hero:Hero;
public function Level39(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:SizeBall;
var _local17:Ball;
var _local18:Ball;
var _local19:Ball;
_local4 = new Ball1(_arg1, 400, 110, -3, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 120, 500, -2, -2, false);
addChild(_local5);
_local6 = new Ball1(_arg1, 500, 70, -1, -4, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 550, 50, -2, -4, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 150, 120, 3, -3, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 550, 30, 1, -4, false);
addChild(_local9);
_local10 = new Ball2(_arg1, 50, 100, 1, -4, false);
addChild(_local10);
_local11 = new Ball2(_arg1, 30, 10, 3, -4, false);
addChild(_local11);
_local12 = new Ball3(_arg1, 300, 420, 1, 1, false);
addChild(_local12);
_local13 = new Ball3(_arg1, 30, 400, 3, 3, false);
addChild(_local13);
_local14 = new Ball3(_arg1, 30, 40, 6.3, 3, false);
addChild(_local14);
_local15 = new BadBall(_arg1, 390, 420, 2.2, 1.2, false);
addChild(_local15);
_local15 = new BadBall(_arg1, 550, 420, -1.2, 0.2, false);
addChild(_local15);
_local16 = new SizeBall(450, 470, 5, 6);
addChild(_local16);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local17 = new Ball1(_arg1, 70, 0, -10, -4, true);
hero.addChild(_local17);
_local18 = new Ball2(_arg1, -70, 0, -10, -4, true);
hero.addChild(_local18);
_local19 = new Ball3(_arg1, 0, 70, 0, 0, true);
hero.addChild(_local19);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 87
//Level3Bg (Level3Bg)
package {
import flash.display.*;
public dynamic class Level3Bg extends MovieClip {
}
}//package
Section 88
//Level4 (Level4)
package {
import flash.display.*;
import flash.events.*;
public class Level4 extends Level {
public var hero:Hero;
public function Level4(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:InfoBall;
_local4 = new InfoSlowBall();
addChild(_local4);
_local4.addEventListener(Event.REMOVED_FROM_STAGE, startLevel);
super(_arg1, _arg2, _arg3);
}
private function startLevel(_arg1:Event):void{
var _local2:Ball;
var _local3:Ball;
var _local4:Ball;
var _local5:PowerUp;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
_local2 = new Ball1(stageRef, 100, 300, -2, -4, false);
addChild(_local2);
_local3 = new Ball2(stageRef, 100, 150, 3, -4, false);
addChild(_local3);
_local4 = new Ball3(stageRef, 400, 300, 2, 2, false);
addChild(_local4);
_local5 = new SlowBall(500, 150, -2, -1);
addChild(_local5);
hero = new Hero(stageRef, 400, 400);
addChild(hero);
_local6 = new Ball1(stageRef, 50, 0, -10, -4, true);
hero.addChild(_local6);
_local7 = new Ball2(stageRef, -50, 0, -10, -4, true);
hero.addChild(_local7);
_local8 = new Ball3(stageRef, 0, 50, 0, 0, true);
hero.addChild(_local8);
}
}
}//package
Section 89
//Level40 (Level40)
package {
import flash.display.*;
import flash.events.*;
public class Level40 extends Level {
public var hero:Hero;
public function Level40(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:PowerUp;
var _local16:Ball;
var _local17:Ball;
var _local18:Ball;
var _local19:Ball;
var _local20:Ball;
_local4 = new Ball1(_arg1, 300, 100, -2, -2.4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 300, 500, -1, -1.4, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 100, 5, -6, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 100, 3, -4, false);
addChild(_local7);
_local8 = new Ball3(_arg1, 300, 400, 1, 1, false);
addChild(_local8);
_local9 = new Ball3(_arg1, 30, 400, 3, 3, false);
addChild(_local9);
_local10 = new Ball3(_arg1, 30, 590, 1, 2, false);
addChild(_local10);
_local11 = new Ball4(_arg1, 430, 100, 5, 3, false);
addChild(_local11);
_local12 = new Ball5(_arg1, 430, 400, -5, 8, false);
addChild(_local12);
_local13 = new Ball5(_arg1, 430, 400, -5, 2, false);
addChild(_local13);
_local14 = new BadBall(_arg1, 150, 420, -1.2, 2.2, false);
addChild(_local14);
_local14 = new BadBall(_arg1, 500, 220, -1.2, 2.2, false);
addChild(_local14);
_local15 = new ScoreBall(270, 130, 6.2, -2.1);
addChild(_local15);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local16 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local16);
_local17 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local17);
_local18 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local18);
_local19 = new Ball4(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local19);
_local20 = new Ball5(_arg1, 60, 60, 0, 0, true);
hero.addChild(_local20);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 90
//Level41 (Level41)
package {
import flash.display.*;
import flash.events.*;
public class Level41 extends Level {
public var hero:Hero;
public function Level41(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:PowerUp;
var _local15:PowerUp;
var _local16:Ball;
var _local17:Ball;
var _local18:Ball;
var _local19:Ball;
var _local20:Ball;
var _local21:Ball;
_local4 = new Ball1(_arg1, 300, 120, -5, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 330, 440, -1, -4, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 550, 100, 10, -8, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 30, 400, 3, 3, false);
addChild(_local7);
_local8 = new Ball4(_arg1, 430, 100, 5, 3, false);
addChild(_local8);
_local9 = new Ball5(_arg1, 530, 450, -5, 8, false);
addChild(_local9);
_local10 = new Ball5(_arg1, 30, 80, -5, 2, false);
addChild(_local10);
_local11 = new Ball6(_arg1, 20, 400, -3, 5, false);
addChild(_local11);
_local12 = new BadBall(_arg1, 150, 380, 2, 3, false);
addChild(_local12);
_local13 = new BadBall(_arg1, 190, 80, -2, -1.3, false);
addChild(_local13);
_local14 = new SlowBall(570, 390, -5, -1);
addChild(_local14);
_local15 = new ScoreBall(550, 10, -1.2, 1.1);
addChild(_local15);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local16 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local16);
_local17 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local17);
_local18 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local18);
_local19 = new Ball4(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local19);
_local20 = new Ball5(_arg1, 60, 60, 0, 0, true);
hero.addChild(_local20);
_local21 = new Ball6(_arg1, -60, -60, 0, 0, true);
hero.addChild(_local21);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 91
//Level42 (Level42)
package {
import flash.display.*;
import flash.events.*;
public class Level42 extends Level {
public var hero:Hero;
public function Level42(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17:Ball;
var _local18:Ball;
var _local19:Ball;
var _local20:PowerUp;
var _local21:PowerUp;
var _local22:Ball;
var _local23:Ball;
_local4 = new Ball2(_arg1, 100, 50, -1, -4, false);
addChild(_local4);
_local5 = new Ball3(_arg1, 550, 50, -3, 4, false);
addChild(_local5);
_local6 = new Ball3(_arg1, 50, 400, -2, 8, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 400, -3, -8, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 550, 50, -6, -4, false);
addChild(_local8);
_local9 = new Ball3(_arg1, 550, 100, 16, -4, false);
addChild(_local9);
_local10 = new Ball2(_arg1, 150, 100, 3, 3, false);
addChild(_local10);
_local11 = new Ball3(_arg1, 300, 400, 1, 1, false);
addChild(_local11);
_local12 = new Ball3(_arg1, 30, 400, 3, 3, false);
addChild(_local12);
_local13 = new Ball2(_arg1, 30, 40, 5, 3, false);
addChild(_local13);
_local14 = new Ball2(_arg1, 100, 100, 3, 6, false);
addChild(_local14);
_local15 = new Ball2(_arg1, 100, 400, 3, 4, false);
addChild(_local15);
_local16 = new Ball3(_arg1, 500, 450, 9, 7, false);
addChild(_local16);
_local17 = new Ball3(_arg1, 10, 40, 13, 14, false);
addChild(_local17);
_local18 = new BadBall(_arg1, 250, 80, -2, -1.3, false);
addChild(_local18);
_local19 = new BadBall(_arg1, 90, 400, -2, 2.3, false);
addChild(_local19);
_local20 = new ScoreBall(300, 310, 2, 1);
addChild(_local20);
_local21 = new ScoreBall(70, 130, 1.2, -2.1);
addChild(_local21);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local22 = new Ball2(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local22);
_local23 = new Ball3(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local23);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 92
//Level43 (Level43)
package {
import flash.display.*;
import flash.events.*;
public class Level43 extends Level {
public var hero:Hero;
public function Level43(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:PowerUp;
var _local12:ChangeBall;
var _local13:ChangeBall;
var _local14:ChangeBall;
var _local15:Ball;
var _local16:Ball;
var _local17:Ball;
_local4 = new Ball1(_arg1, 200, 100, -7, 3, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 150, 100, 1, -8, false);
addChild(_local5);
_local6 = new Ball3(_arg1, 30, 400, 8, 3, false);
addChild(_local6);
_local7 = new BadBall(_arg1, 490, 150, 3.2, -1.2, false);
addChild(_local7);
_local8 = new BadBall(_arg1, 550, 450, 2, 3, false);
addChild(_local8);
_local9 = new BadBall(_arg1, 90, 150, 1.2, -1.2, false);
addChild(_local9);
_local10 = new BadBall(_arg1, 50, 450, 0.82, -0.93, false);
addChild(_local10);
_local11 = new TimeBall(50, 550, 2, -1);
addChild(_local11);
_local12 = new ChangeBall(370, 400, 3.9, -5.1);
addChild(_local12);
_local13 = new ChangeBall(70, 450, 1.9, -2.1);
addChild(_local13);
_local14 = new ChangeBall(470, 100, 3.9, 1.1);
addChild(_local14);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local15 = new Ball1(_arg1, 70, 0, -10, -4, true);
hero.addChild(_local15);
_local16 = new Ball2(_arg1, -70, 0, -10, -4, true);
hero.addChild(_local16);
_local17 = new Ball3(_arg1, 0, 70, 0, 0, true);
hero.addChild(_local17);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 93
//Level44 (Level44)
package {
import flash.display.*;
import flash.events.*;
public class Level44 extends Level {
public var hero:Hero;
public function Level44(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:SizeBall;
var _local16:Ball;
var _local17:Ball;
var _local18:Ball;
var _local19:Ball;
var _local20:Ball;
_local4 = new Ball5(_arg1, 100, 100, -2.5, -2, false);
addChild(_local4);
_local5 = new Ball5(_arg1, 500, 500, -2, -3.5, false);
addChild(_local5);
_local6 = new Ball5(_arg1, 300, 50, 2.5, -4, false);
addChild(_local6);
_local7 = new Ball4(_arg1, 150, 100, 3, -3.8, false);
addChild(_local7);
_local8 = new Ball4(_arg1, 550, 100, 2, -2.6, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 50, 100, 3, -2.4, false);
addChild(_local9);
_local10 = new Ball2(_arg1, 250, 200, 3.6, -4, false);
addChild(_local10);
_local11 = new Ball3(_arg1, 300, 400, 6, 3.6, false);
addChild(_local11);
_local12 = new Ball3(_arg1, 30, 400, 3, 2.8, false);
addChild(_local12);
_local13 = new Ball3(_arg1, 30, 40, 3.8, 3, false);
addChild(_local13);
_local14 = new Ball3(_arg1, 30, 40, 4.9, -7, false);
addChild(_local14);
_local15 = new SizeBall(450, 470, 1.5, 2.6);
addChild(_local15);
_local16 = new BadBall(_arg1, 70, 420, -1.82, 1.93, false);
addChild(_local16);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local17 = new Ball4(_arg1, 30, 0, -10, -4, true);
hero.addChild(_local17);
_local18 = new Ball5(_arg1, -30, 0, -10, -4, true);
hero.addChild(_local18);
_local19 = new Ball3(_arg1, 0, 30, 0, 0, true);
hero.addChild(_local19);
_local20 = new Ball2(_arg1, 0, -30, 0, 0, true);
hero.addChild(_local20);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 94
//Level45 (Level45)
package {
import flash.display.*;
import flash.events.*;
public class Level45 extends Level {
public var hero:Hero;
public function Level45(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17:PowerUp;
var _local18:PowerUp;
var _local19:Ball;
var _local20:Ball;
var _local21:Ball;
var _local22:Ball;
var _local23:Ball;
_local4 = new Ball5(_arg1, 400, 10, -2, -1.4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 100, 550, -1, -0.2, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 10, 1.2, -2, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 20, 2, -1.3, false);
addChild(_local7);
_local8 = new Ball4(_arg1, 520, 580, 3, -2.6, false);
addChild(_local8);
_local9 = new Ball3(_arg1, 500, 450, 1, 1, false);
addChild(_local9);
_local10 = new Ball3(_arg1, 30, 450, 3, 1.3, false);
addChild(_local10);
_local11 = new Ball4(_arg1, 430, 50, 1.5, 3, false);
addChild(_local11);
_local12 = new Ball5(_arg1, 430, 480, -5, 2.8, false);
addChild(_local12);
_local13 = new Ball1(_arg1, 430, 430, -1, 1, false);
addChild(_local13);
_local14 = new Ball5(_arg1, 30, 580, -3.12, 8, false);
addChild(_local14);
_local15 = new Ball5(_arg1, 530, 80, -7, 2.8, false);
addChild(_local15);
_local16 = new BadBall(_arg1, 150, 420, -1.2, 2.2, false);
addChild(_local16);
_local16 = new BadBall(_arg1, 150, 380, 2, 3, false);
addChild(_local16);
_local17 = new SlowBall(570, 390, -5, -1);
addChild(_local17);
_local18 = new TimeBall(500, 550, 2, -1);
addChild(_local18);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local19 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local19);
_local20 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local20);
_local21 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local21);
_local22 = new Ball4(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local22);
_local23 = new Ball5(_arg1, 100, 100, 0, 0, true);
hero.addChild(_local23);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 95
//Level46 (Level46)
package {
import flash.display.*;
import flash.events.*;
public class Level46 extends Level {
public var hero:Hero;
public function Level46(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:PowerUp;
var _local17:PowerUp;
var _local18:ChangeBall;
var _local19:Ball;
var _local20:Ball;
var _local21:Ball;
var _local22:Ball;
var _local23:Ball;
var _local24:Ball;
_local4 = new Ball1(_arg1, 300, 120, -7, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 300, 550, -1, -6, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 80, 5, -6, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 40, 10, -8, false);
addChild(_local7);
_local8 = new Ball3(_arg1, 300, 450, 1, 1, false);
addChild(_local8);
_local9 = new Ball3(_arg1, 30, 420, 5, 3, false);
addChild(_local9);
_local10 = new Ball4(_arg1, 430, 100, 5, 1, false);
addChild(_local10);
_local11 = new Ball5(_arg1, 430, 470, -1.5, 2, false);
addChild(_local11);
_local12 = new Ball5(_arg1, 430, 390, -5, 3, false);
addChild(_local12);
_local13 = new Ball6(_arg1, 20, 400, -3, 5, false);
addChild(_local13);
_local14 = new BadBall(_arg1, 150, 380, 2, 3, false);
addChild(_local14);
_local15 = new BadBall(_arg1, 190, 80, -2, -1.3, false);
addChild(_local15);
_local16 = new SlowBall(570, 390, -5, -1);
addChild(_local16);
_local17 = new TimeBall(500, 550, 2, -1);
addChild(_local17);
_local18 = new ChangeBall(370, 400, 3.9, -5.1);
addChild(_local18);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local19 = new Ball1(_arg1, 40, 0, -10, -4, true);
hero.addChild(_local19);
_local20 = new Ball2(_arg1, -40, 0, -10, -4, true);
hero.addChild(_local20);
_local21 = new Ball3(_arg1, 0, 40, 0, 0, true);
hero.addChild(_local21);
_local22 = new Ball4(_arg1, 0, -40, 0, 0, true);
hero.addChild(_local22);
_local23 = new Ball5(_arg1, 50, 50, 0, 0, true);
hero.addChild(_local23);
_local24 = new Ball6(_arg1, -50, -50, 0, 0, true);
hero.addChild(_local24);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 96
//Level47 (Level47)
package {
import flash.display.*;
import flash.events.*;
public class Level47 extends Level {
public var hero:Hero;
public function Level47(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:PowerUp;
var _local15:Ball;
var _local16:Ball;
_local4 = new Ball2(_arg1, 100, 100, -2, -2, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 500, 50, 1.8, -4, false);
addChild(_local5);
_local6 = new Ball3(_arg1, 50, 400, 10, -8, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 550, 400, -7, -8, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 550, 50, 9, -4, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 150, 100, 5, 3, false);
addChild(_local9);
_local10 = new Ball3(_arg1, 300, 400, 1, 1, false);
addChild(_local10);
_local11 = new Ball3(_arg1, 30, 400, 3, 3, false);
addChild(_local11);
_local12 = new Ball2(_arg1, 30, 40, 5, 3, false);
addChild(_local12);
_local13 = new Ball3(_arg1, 100, 100, 3, 12, false);
addChild(_local13);
_local14 = new ScoreBall(200, 110, -0.2, 5.1);
addChild(_local14);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local15 = new Ball2(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local15);
_local16 = new Ball3(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local16);
_local15 = new Ball2(_arg1, 0, -100, -10, -4, true);
hero.addChild(_local15);
_local16 = new Ball3(_arg1, 0, 100, -10, -4, true);
hero.addChild(_local16);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 97
//Level48 (Level48)
package {
import flash.display.*;
import flash.events.*;
public class Level48 extends Level {
public var hero:Hero;
public function Level48(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17:Ball;
var _local18:PowerUp;
var _local19:ChangeBall;
var _local20:ChangeBall;
var _local21:ChangeBall;
var _local22:PowerUp;
var _local23:Ball;
var _local24:Ball;
var _local25:Ball;
_local4 = new Ball4(_arg1, 300, 100, -7, -5, false);
addChild(_local4);
_local5 = new Ball4(_arg1, 300, 500, -2, -4, false);
addChild(_local5);
_local6 = new Ball1(_arg1, 350, 550, -4, -3, false);
addChild(_local6);
_local7 = new Ball4(_arg1, 300, 500, -2, -4, false);
addChild(_local5);
_local8 = new Ball4(_arg1, 300, 50, -8, -6, false);
addChild(_local8);
_local9 = new Ball1(_arg1, 150, 100, 5, -4, false);
addChild(_local9);
_local10 = new Ball1(_arg1, 550, 100, 5, -8, false);
addChild(_local10);
_local11 = new Ball1(_arg1, 50, 100, 10, -4, false);
addChild(_local11);
_local12 = new Ball1(_arg1, 50, 100, 9, -4, false);
addChild(_local12);
_local13 = new Ball3(_arg1, 300, 400, 15, 1, false);
addChild(_local13);
_local14 = new Ball3(_arg1, 30, 400, 9, 7, false);
addChild(_local14);
_local15 = new Ball3(_arg1, 30, 40, 8, 3, false);
addChild(_local15);
_local16 = new Ball3(_arg1, 30, 40, 8, -7, false);
addChild(_local16);
_local17 = new BadBall(_arg1, 390, 420, 2.2, 1.2, false);
addChild(_local17);
_local17 = new BadBall(_arg1, 550, 420, -1.2, 0.2, false);
addChild(_local17);
_local17 = new BadBall(_arg1, 150, 470, -0.2, 0.8, false);
addChild(_local17);
_local18 = new SlowBall(570, 390, -5, -1);
addChild(_local18);
_local19 = new ChangeBall(370, 400, 3.9, -5.1);
addChild(_local19);
_local20 = new ChangeBall(70, 450, 1.9, -2.1);
addChild(_local20);
_local21 = new ChangeBall(470, 100, 3.9, 1.1);
addChild(_local21);
_local22 = new ScoreBall(70, 130, 1.2, -2.1);
addChild(_local22);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local23 = new Ball4(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local23);
_local24 = new Ball1(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local24);
_local25 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local25);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 98
//Level49 (Level49)
package {
import flash.display.*;
import flash.events.*;
public class Level49 extends Level {
public var hero:Hero;
public function Level49(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17:Ball;
var _local18:ChangeBall;
var _local19:ChangeBall;
var _local20:Ball;
var _local21:PowerUp;
var _local22:PowerUp;
var _local23:PowerUp;
var _local24:Ball;
var _local25:Ball;
var _local26:Ball;
_local4 = new Ball2(_arg1, 500, 100, -3, -6, false);
addChild(_local4);
_local5 = new Ball6(_arg1, 100, 50, -4, -6, false);
addChild(_local5);
_local6 = new Ball4(_arg1, 50, 450, -5, -8, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 400, -4, -2, false);
addChild(_local7);
_local8 = new Ball6(_arg1, 550, 50, 6, -4, false);
addChild(_local8);
_local9 = new Ball4(_arg1, 150, 100, 3, 3, false);
addChild(_local9);
_local10 = new Ball2(_arg1, 590, 400, 1, 1, false);
addChild(_local10);
_local11 = new Ball6(_arg1, 30, 400, 3, 3, false);
addChild(_local11);
_local12 = new Ball4(_arg1, 30, 40, 5, 3, false);
addChild(_local12);
_local13 = new Ball2(_arg1, 100, 100, 3, 6, false);
addChild(_local13);
_local14 = new Ball4(_arg1, 100, 400, 3, 6, false);
addChild(_local14);
_local15 = new Ball6(_arg1, 10, 10, 5, 6, false);
addChild(_local15);
_local16 = new Ball6(_arg1, 200, 10, 3, 2, false);
addChild(_local16);
_local17 = new Ball6(_arg1, 10, 480, 4, 6, false);
addChild(_local17);
_local18 = new ChangeBall(370, 400, 3.9, -5.1);
addChild(_local18);
_local19 = new ChangeBall(470, 40, 1.9, -2.1);
addChild(_local19);
_local20 = new BadBall(_arg1, 390, 420, 2.2, 1.2, false);
addChild(_local20);
_local20 = new BadBall(_arg1, 550, 420, -1.2, 3.2, false);
addChild(_local20);
_local20 = new BadBall(_arg1, 150, 470, -0.2, 4.8, false);
addChild(_local20);
_local21 = new SlowBall(70, 30, -5, -1);
addChild(_local21);
_local22 = new TimeBall(50, 50, 2, -1);
addChild(_local22);
_local23 = new ScoreBall(400, 310, 2, 1);
addChild(_local23);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local24 = new Ball2(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local24);
_local25 = new Ball4(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local25);
_local26 = new Ball6(_arg1, 0, 50, -10, -4, true);
hero.addChild(_local26);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 99
//Level4Bg (Level4Bg)
package {
import flash.display.*;
public dynamic class Level4Bg extends MovieClip {
}
}//package
Section 100
//Level5 (Level5)
package {
import flash.display.*;
import flash.events.*;
public class Level5 extends Level {
public var hero:Hero;
public function Level5(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:InfoBall;
_local4 = new InfoScoreBall();
addChild(_local4);
_local4.addEventListener(Event.REMOVED_FROM_STAGE, startLevel);
super(_arg1, _arg2, _arg3);
}
private function startLevel(_arg1:Event):void{
var _local2:Ball;
var _local3:PowerUp;
var _local4:Ball;
var _local5:Ball;
var _local6:PowerUp;
var _local7:PowerUp;
var _local8:PowerUp;
var _local9:Ball;
var _local10:Ball;
_local2 = new Ball5(stageRef, 100, 350, -3, -4, false);
addChild(_local2);
_local3 = new ScoreBall(200, 370, -2, 3);
addChild(_local3);
_local4 = new Ball2(stageRef, 450, 400, -1, 3, false);
addChild(_local4);
_local5 = new Ball2(stageRef, 100, 400, 1, 1, false);
addChild(_local5);
_local6 = new ScoreBall(100, 310, 2, 1);
addChild(_local6);
_local7 = new ScoreBall(500, 210, -0.2, 1.1);
addChild(_local7);
_local8 = new ScoreBall(70, 130, 1.2, -2.1);
addChild(_local8);
hero = new Hero(stageRef, 400, 400);
addChild(hero);
_local9 = new Ball5(stageRef, 70, 0, -10, -4, true);
hero.addChild(_local9);
_local10 = new Ball2(stageRef, -70, 0, -10, -4, true);
hero.addChild(_local10);
}
}
}//package
Section 101
//Level50 (Level50)
package {
import flash.display.*;
import flash.events.*;
public class Level50 extends Level {
public var hero:Hero;
public function Level50(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
_local4 = new Ball1(_arg1, 300, 100, -10, -4, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 500, 100, -2, -6, false);
addChild(_local5);
_local6 = new Ball3(_arg1, 300, 100, 5, 3, false);
addChild(_local6);
_local7 = new Ball4(_arg1, 300, 100, -2, -14, false);
addChild(_local7);
_local8 = new Ball5(_arg1, 500, 100, -6, -4, false);
addChild(_local8);
_local9 = new Ball6(_arg1, 350, 100, 2, -4, false);
addChild(_local9);
_local10 = new BadBall(_arg1, 550, 420, -1.2, 3.2, false);
addChild(_local10);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local11 = new Ball4(_arg1, 30, 0, -10, -4, true);
hero.addChild(_local11);
_local12 = new Ball1(_arg1, -30, 0, -10, -4, true);
hero.addChild(_local12);
_local13 = new Ball3(_arg1, 0, 30, 0, 0, true);
hero.addChild(_local13);
_local14 = new Ball2(_arg1, 0, -30, 0, 0, true);
hero.addChild(_local14);
_local15 = new Ball5(_arg1, 0, 70, 0, 0, true);
hero.addChild(_local15);
_local16 = new Ball6(_arg1, 0, -70, 0, 0, true);
hero.addChild(_local16);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 102
//Level51 (Level51)
package {
import flash.display.*;
import flash.events.*;
public class Level51 extends Level {
public var hero:Hero;
public function Level51(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:SizeBall;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:ChangeBall;
var _local15:ChangeBall;
var _local16:ChangeBall;
var _local17:ChangeBall;
var _local18:PowerUp;
var _local19:PowerUp;
var _local20:Ball;
var _local21:Ball;
var _local22:Ball;
var _local23:Ball;
var _local24:Ball;
var _local25:Ball;
_local4 = new Ball6(_arg1, 450, 120, -5, -4, false);
addChild(_local4);
_local5 = new Ball6(_arg1, 40, 220, 3, -4, false);
addChild(_local5);
_local6 = new Ball4(_arg1, 520, 100, -3, 5, false);
addChild(_local6);
_local7 = new Ball5(_arg1, 120, 550, -2, -2, false);
addChild(_local7);
_local8 = new Ball6(_arg1, 550, 50, -1, -4, false);
addChild(_local8);
_local9 = new Ball4(_arg1, 550, 50, -6, -4, false);
addChild(_local9);
_local10 = new SizeBall(450, 420, 0.5, 1.6);
addChild(_local10);
_local11 = new BadBall(_arg1, 70, 420, -1.82, 1.93, false);
addChild(_local11);
_local12 = new BadBall(_arg1, 150, 380, 2, 3, false);
addChild(_local12);
_local13 = new BadBall(_arg1, 190, 80, -2, -1.3, false);
addChild(_local13);
_local14 = new ChangeBall(170, 440, 1.9, -2.1);
addChild(_local14);
_local15 = new ChangeBall(570, 200, 3.9, -5.1);
addChild(_local15);
_local16 = new ChangeBall(70, 40, 5.9, -15.1);
addChild(_local16);
_local17 = new ChangeBall(70, 120, 7.9, -9.1);
addChild(_local17);
_local18 = new ScoreBall(500, 210, -0.2, 1.1);
addChild(_local18);
_local19 = new ScoreBall(70, 130, 1.2, -2.1);
addChild(_local19);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local20 = new Ball4(_arg1, 30, 0, -10, -4, true);
hero.addChild(_local20);
_local21 = new Ball5(_arg1, -30, 0, -10, -4, true);
hero.addChild(_local21);
_local22 = new Ball6(_arg1, 0, 30, 0, 0, true);
hero.addChild(_local22);
_local23 = new Ball6(_arg1, 80, 0, -10, -4, true);
hero.addChild(_local23);
_local24 = new Ball4(_arg1, -80, 0, -10, -4, true);
hero.addChild(_local24);
_local25 = new Ball5(_arg1, 0, -80, 0, 0, true);
hero.addChild(_local25);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 103
//Level52 (Level52)
package {
import flash.display.*;
import flash.events.*;
public class Level52 extends Level {
public var hero:Hero;
public function Level52(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:PowerUp;
var _local15:ScoreBall;
var _local16:PowerUp;
var _local17:Ball;
var _local18:PowerUp;
var _local19:Ball;
var _local20:Ball;
var _local21:Ball;
var _local22:Ball;
var _local23:Ball;
var _local24:Ball;
_local4 = new Ball1(_arg1, 300, 100, -2.5, -1.4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 300, 500, -1, -4, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 100, 18, -8, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 100, 3.1, -3.8, false);
addChild(_local7);
_local8 = new Ball3(_arg1, 300, 400, 1, 1, false);
addChild(_local8);
_local9 = new Ball3(_arg1, 30, 400, 3, 3, false);
addChild(_local9);
_local10 = new Ball4(_arg1, 430, 100, 5, 3, false);
addChild(_local10);
_local11 = new Ball5(_arg1, 430, 400, 4.5, 8, false);
addChild(_local11);
_local12 = new Ball5(_arg1, 430, 400, -5, 8, false);
addChild(_local12);
_local13 = new Ball6(_arg1, 20, 400, -3, 5, false);
addChild(_local13);
_local14 = new SlowBall(520, 350, -5, -1);
addChild(_local14);
_local15 = new ScoreBall(400, 200, -1, -2);
addChild(_local15);
_local16 = new TimeBall(500, 550, 2, -1);
addChild(_local16);
_local17 = new BadBall(_arg1, 40, 150, 1.2, -1.2, false);
addChild(_local17);
_local17 = new BadBall(_arg1, 350, 450, -2, 1.3, false);
addChild(_local17);
_local17 = new BadBall(_arg1, 550, 450, -3.2, 1.2, false);
addChild(_local17);
_local17 = new BadBall(_arg1, 90, 49, 2.5, -3, false);
addChild(_local17);
_local17 = new BadBall(_arg1, 300, 200, 3.2, -1.2, false);
addChild(_local17);
_local17 = new BadBall(_arg1, 50, 450, 2, 3, false);
addChild(_local17);
_local18 = new ScoreBall(50, 210, -0.2, 1.1);
addChild(_local18);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local19 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local19);
_local20 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local20);
_local21 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local21);
_local22 = new Ball4(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local22);
_local23 = new Ball5(_arg1, 60, 60, 0, 0, true);
hero.addChild(_local23);
_local24 = new Ball6(_arg1, -60, -60, 0, 0, true);
hero.addChild(_local24);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 104
//Level53 (Level53)
package {
import flash.display.*;
import flash.events.*;
public class Level53 extends Level {
public var hero:Hero;
public function Level53(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17:Ball;
var _local18:PowerUp;
var _local19:Ball;
var _local20:Ball;
_local4 = new Ball1(_arg1, 300, 100, -7, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 300, 500, -3, -5, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 100, 12, -9, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 100, 15, -8, false);
addChild(_local7);
_local8 = new Ball1(_arg1, 300, 400, 12, 7, false);
addChild(_local8);
_local9 = new Ball1(_arg1, 30, 400, 13, 5, false);
addChild(_local9);
_local10 = new Ball2(_arg1, 430, 100, 5, 13, false);
addChild(_local10);
_local11 = new Ball2(_arg1, 530, 450, -5, 4, false);
addChild(_local11);
_local12 = new Ball2(_arg1, 30, 80, -5, 2, false);
addChild(_local12);
_local13 = new Ball1(_arg1, 20, 400, -5, 5, false);
addChild(_local13);
_local14 = new Ball2(_arg1, 120, 370, 3, 1, false);
addChild(_local14);
_local15 = new Ball1(_arg1, 220, 430, 2, 4, false);
addChild(_local15);
_local16 = new Ball2(_arg1, 520, 460, -3, 6, false);
addChild(_local16);
_local17 = new BadBall(_arg1, 390, 420, 2.2, 1.2, false);
addChild(_local17);
_local17 = new BadBall(_arg1, 550, 420, -1.2, 3.2, false);
addChild(_local17);
_local17 = new BadBall(_arg1, 150, 470, -0.2, 4.8, false);
addChild(_local17);
_local18 = new TimeBall(50, 50, 2, -1);
addChild(_local18);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local19 = new Ball1(_arg1, 35, 0, -10, -4, true);
hero.addChild(_local19);
_local20 = new Ball2(_arg1, -35, 0, -10, -4, true);
hero.addChild(_local20);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 105
//Level54 (Level54)
package {
import flash.display.*;
import flash.events.*;
public class Level54 extends Level {
public var hero:Hero;
public function Level54(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17:Ball;
var _local18:Ball;
var _local19:Ball;
var _local20:ChangeBall;
var _local21:ChangeBall;
var _local22:ChangeBall;
var _local23:ChangeBall;
var _local24:PowerUp;
var _local25:Ball;
var _local26:Ball;
var _local27:Ball;
_local4 = new Ball4(_arg1, 100, 50, -1, -4, false);
addChild(_local4);
_local5 = new Ball5(_arg1, 550, 50, -3, 4, false);
addChild(_local5);
_local6 = new Ball4(_arg1, 50, 400, -2, 1.8, false);
addChild(_local6);
_local7 = new Ball5(_arg1, 550, 400, -3, -8, false);
addChild(_local7);
_local8 = new Ball4(_arg1, 550, 50, -6, -4, false);
addChild(_local8);
_local9 = new Ball4(_arg1, 550, 100, 1.6, -4, false);
addChild(_local9);
_local10 = new Ball5(_arg1, 150, 100, 3, 3, false);
addChild(_local10);
_local11 = new Ball4(_arg1, 300, 400, 1, 1, false);
addChild(_local11);
_local12 = new Ball4(_arg1, 30, 400, 3, 3, false);
addChild(_local12);
_local13 = new Ball5(_arg1, 30, 40, 5, 3, false);
addChild(_local13);
_local14 = new Ball4(_arg1, 100, 100, 3, 6, false);
addChild(_local14);
_local15 = new Ball5(_arg1, 100, 400, 3, 4, false);
addChild(_local15);
_local16 = new Ball4(_arg1, 500, 450, 0.9, 7, false);
addChild(_local16);
_local17 = new Ball5(_arg1, 10, 40, 1.3, 1.4, false);
addChild(_local17);
_local18 = new Ball6(_arg1, 140, 40, 3, 4, false);
addChild(_local18);
_local19 = new BadBall(_arg1, 190, 80, -2, -1.3, false);
addChild(_local19);
_local20 = new ChangeBall(120, 460, 1.9, -2.1);
addChild(_local20);
_local21 = new ChangeBall(530, 210, 3.9, -5.1);
addChild(_local21);
_local22 = new ChangeBall(40, 40, 5.9, -15.1);
addChild(_local22);
_local23 = new ChangeBall(110, 120, 7.9, -9.1);
addChild(_local23);
_local24 = new ScoreBall(70, 130, 1.2, -2.1);
addChild(_local24);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local25 = new Ball4(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local25);
_local26 = new Ball5(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local26);
_local27 = new Ball6(_arg1, 0, 35, -10, -4, true);
hero.addChild(_local27);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 106
//Level55 (Level55)
package {
import flash.display.*;
import flash.events.*;
public class Level55 extends Level {
public var hero:Hero;
public function Level55(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:PowerUp;
var _local17:ChangeBall;
var _local18:Ball;
var _local19:PowerUp;
var _local20:Ball;
var _local21:Ball;
var _local22:Ball;
_local4 = new Ball1(_arg1, 200, 120, -7, 3, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 100, 80, -6, 3, false);
addChild(_local5);
_local6 = new Ball1(_arg1, 520, 460, -5, -2, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 150, 30, 1, -8, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 550, 40, 4, -8, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 50, 160, 3, -2, false);
addChild(_local9);
_local10 = new Ball2(_arg1, 200, 110, 3, -6, false);
addChild(_local10);
_local11 = new Ball2(_arg1, 220, 100, 3, 5, false);
addChild(_local11);
_local12 = new Ball3(_arg1, 300, 390, 1, 9, false);
addChild(_local12);
_local13 = new Ball3(_arg1, 30, 440, 8, 3, false);
addChild(_local13);
_local14 = new Ball3(_arg1, 30, 460, 8, 7, false);
addChild(_local14);
_local15 = new Ball3(_arg1, 530, 400, 2, 2, false);
addChild(_local15);
_local16 = new TimeBall(50, 50, 2, -1);
addChild(_local16);
_local17 = new ChangeBall(120, 460, 1.9, -2.1);
addChild(_local17);
_local18 = new BadBall(_arg1, 90, 49, 2.5, -3, false);
addChild(_local18);
_local19 = new ScoreBall(450, 310, 2, 1);
addChild(_local19);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local20 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local20);
_local21 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local21);
_local22 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local22);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 107
//Level56 (Level56)
package {
import flash.display.*;
import flash.events.*;
public class Level56 extends Level {
public var hero:Hero;
public function Level56(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:PowerUp;
var _local14:ChangeBall;
var _local15:Ball;
var _local16:Ball;
var _local17:Ball;
var _local18:Ball;
var _local19:Ball;
var _local20:Ball;
_local4 = new Ball1(_arg1, 300, 120, -7, -4, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 150, 80, 5, -6, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 550, 40, 10, -8, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 300, 450, 1, 1, false);
addChild(_local7);
_local8 = new Ball4(_arg1, 430, 100, 5, 1, false);
addChild(_local8);
_local9 = new Ball5(_arg1, 430, 470, -1.5, 2, false);
addChild(_local9);
_local10 = new Ball6(_arg1, 20, 400, -3, 5, false);
addChild(_local10);
_local11 = new BadBall(_arg1, 150, 380, 2, 3, false);
addChild(_local11);
_local12 = new BadBall(_arg1, 190, 80, -2, -1.3, false);
addChild(_local12);
_local13 = new TimeBall(500, 550, 2, -1);
addChild(_local13);
_local14 = new ChangeBall(370, 400, 3.9, -5.1);
addChild(_local14);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local15 = new Ball1(_arg1, 40, 0, -10, -4, true);
hero.addChild(_local15);
_local16 = new Ball2(_arg1, -40, 0, -10, -4, true);
hero.addChild(_local16);
_local17 = new Ball3(_arg1, 0, 40, 0, 0, true);
hero.addChild(_local17);
_local18 = new Ball4(_arg1, 0, -40, 0, 0, true);
hero.addChild(_local18);
_local19 = new Ball5(_arg1, 50, 50, 0, 0, true);
hero.addChild(_local19);
_local20 = new Ball6(_arg1, -50, -50, 0, 0, true);
hero.addChild(_local20);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 108
//Level57 (Level57)
package {
import flash.display.*;
import flash.events.*;
public class Level57 extends Level {
public var hero:Hero;
public function Level57(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17:Ball;
var _local18:Ball;
var _local19:PowerUp;
var _local20:PowerUp;
var _local21:PowerUp;
var _local22:Ball;
var _local23:Ball;
var _local24:Ball;
var _local25:Ball;
var _local26:Ball;
_local4 = new Ball1(_arg1, 300, 100, -15, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 300, 500, -1, -4, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 100, 9, -4, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 100, 15, -4, false);
addChild(_local7);
_local8 = new Ball3(_arg1, 300, 400, 11, 1, false);
addChild(_local8);
_local9 = new Ball3(_arg1, 30, 400, 13, 3, false);
addChild(_local9);
_local10 = new Ball4(_arg1, 430, 100, 5, 13, false);
addChild(_local10);
_local11 = new Ball5(_arg1, 430, 400, -5, 12, false);
addChild(_local11);
_local12 = new BadBall(_arg1, 400, 150, 9.2, -1.2, false);
addChild(_local12);
_local13 = new BadBall(_arg1, 50, 450, 2, 9, false);
addChild(_local13);
_local14 = new BadBall(_arg1, 450, 120, 6.2, -3.2, false);
addChild(_local14);
_local15 = new BadBall(_arg1, 30, 450, 15, 3, false);
addChild(_local15);
_local16 = new BadBall(_arg1, 420, 70, 2.2, -1.2, false);
addChild(_local16);
_local17 = new BadBall(_arg1, 60, 390, 5, 3, false);
addChild(_local17);
_local18 = new BadBall(_arg1, 80, 490, 5, 13, false);
addChild(_local18);
_local19 = new SlowBall(520, 250, -2, -1);
addChild(_local19);
_local20 = new TimeBall(500, 550, 2, -1);
addChild(_local20);
_local21 = new ScoreBall(470, 230, 1.2, -2.1);
addChild(_local21);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local22 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local22);
_local23 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local23);
_local24 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local24);
_local25 = new Ball4(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local25);
_local26 = new Ball5(_arg1, 60, 60, 0, 0, true);
hero.addChild(_local26);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 109
//Level58 (Level58)
package {
import flash.display.*;
import flash.events.*;
public class Level58 extends Level {
public var hero:Hero;
public function Level58(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:SizeBall;
var _local17:ChangeBall;
var _local18:ChangeBall;
var _local19:ChangeBall;
var _local20:Ball;
var _local21:Ball;
var _local22:Ball;
var _local23:Ball;
_local4 = new Ball5(_arg1, 300, 550, 2, -1.4, false);
addChild(_local4);
_local5 = new Ball6(_arg1, 300, 10, -1, 1.4, false);
addChild(_local5);
_local6 = new Ball5(_arg1, 150, 130, 1.8, -0.8, false);
addChild(_local6);
_local7 = new Ball6(_arg1, 550, 50, 1, -0.8, false);
addChild(_local7);
_local8 = new Ball5(_arg1, 60, 420, 3, 2.3, false);
addChild(_local8);
_local9 = new Ball6(_arg1, 430, 100, 1.5, 3, false);
addChild(_local9);
_local10 = new Ball5(_arg1, 430, 360, -3.5, 2.8, false);
addChild(_local10);
_local11 = new Ball6(_arg1, 20, 448, -4.3, 2.5, false);
addChild(_local11);
_local12 = new BadBall(_arg1, 190, 420, -1.2, 1.2, false);
addChild(_local12);
_local13 = new BadBall(_arg1, 190, 420, 3.2, -2.2, false);
addChild(_local13);
_local14 = new BadBall(_arg1, 190, 420, -1.2, 1.2, false);
addChild(_local14);
_local15 = new BadBall(_arg1, 590, 420, 1.2, -1.2, false);
addChild(_local15);
_local16 = new SizeBall(450, 470, 5, 6);
addChild(_local16);
_local17 = new ChangeBall(370, 400, 3.9, -5.1);
addChild(_local17);
_local18 = new ChangeBall(270, 300, 7.9, -3.1);
addChild(_local18);
_local19 = new ChangeBall(290, 350, -1.9, 9.1);
addChild(_local19);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local20 = new Ball5(_arg1, 120, 0, -10, -4, true);
hero.addChild(_local20);
_local21 = new Ball6(_arg1, -120, 0, -10, -4, true);
hero.addChild(_local21);
_local22 = new Ball5(_arg1, 0, 30, -10, -4, true);
hero.addChild(_local22);
_local23 = new Ball6(_arg1, 0, -30, -10, -4, true);
hero.addChild(_local23);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 110
//Level59 (Level59)
package {
import flash.display.*;
import flash.events.*;
public class Level59 extends Level {
public var hero:Hero;
public function Level59(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17:Ball;
var _local18:Ball;
var _local19:Ball;
var _local20:Ball;
_local4 = new Ball2(_arg1, 100, 100, -12, -2, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 500, 50, 8, -4, false);
addChild(_local5);
_local6 = new Ball3(_arg1, 50, 400, 10, -8, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 550, 400, -7, -8, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 550, 50, 9, -4, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 150, 100, 5, 3, false);
addChild(_local9);
_local10 = new Ball3(_arg1, 300, 400, 4, 4, false);
addChild(_local10);
_local11 = new Ball3(_arg1, 30, 400, 3, 3, false);
addChild(_local11);
_local12 = new Ball2(_arg1, 30, 40, 5, 13, false);
addChild(_local12);
_local13 = new Ball3(_arg1, 100, 100, 3, 12, false);
addChild(_local13);
_local14 = new Ball2(_arg1, 100, 400, 3, 11, false);
addChild(_local14);
_local15 = new Ball3(_arg1, 500, 550, 2, 5, false);
addChild(_local15);
_local16 = new Ball3(_arg1, 100, 550, 12, 5, false);
addChild(_local16);
_local17 = new Ball3(_arg1, 500, 550, 2, 15, false);
addChild(_local17);
_local18 = new Ball3(_arg1, 50, 550, 12, -4, false);
addChild(_local18);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local19 = new Ball2(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local19);
_local20 = new Ball3(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local20);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 111
//Level5Bg (Level5Bg)
package {
import flash.display.*;
public dynamic class Level5Bg extends MovieClip {
}
}//package
Section 112
//Level6 (Level6)
package {
import flash.display.*;
import flash.events.*;
public class Level6 extends Level {
public var hero:Hero;
public function Level6(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:InfoBall;
_local4 = new InfoTimeBall();
addChild(_local4);
_local4.addEventListener(Event.REMOVED_FROM_STAGE, startLevel);
super(_arg1, _arg2, _arg3);
}
private function startLevel(_arg1:Event):void{
var _local2:Ball;
var _local3:Ball;
var _local4:Ball;
var _local5:Ball;
var _local6:PowerUp;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
_local2 = new Ball1(stageRef, 300, 100, -1, -1.5, false);
addChild(_local2);
_local3 = new Ball2(stageRef, 150, 100, 0.5, -2, false);
addChild(_local3);
_local4 = new Ball2(stageRef, 50, 10, 2.5, -1, false);
addChild(_local4);
_local5 = new Ball3(stageRef, 300, 400, 1, 1, false);
addChild(_local5);
_local6 = new TimeBall(500, 50, 2, -1);
addChild(_local6);
_local7 = new Ball4(stageRef, 30, 40, 0.2, 0.8, false);
addChild(_local7);
hero = new Hero(stageRef, 400, 400);
addChild(hero);
_local8 = new Ball1(stageRef, 50, 0, -10, -4, true);
hero.addChild(_local8);
_local9 = new Ball2(stageRef, -50, 0, -10, -4, true);
hero.addChild(_local9);
_local10 = new Ball3(stageRef, 0, 50, 0, 0, true);
hero.addChild(_local10);
_local11 = new Ball4(stageRef, 0, -50, 0, 0, true);
hero.addChild(_local11);
}
}
}//package
Section 113
//Level60 (Level60)
package {
import flash.display.*;
import flash.events.*;
public class Level60 extends Level {
public var hero:Hero;
public function Level60(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17:Ball;
var _local18:Ball;
var _local19:Ball;
var _local20:Ball;
var _local21:Ball;
var _local22:Ball;
_local4 = new Ball1(_arg1, 300, 100, -10, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 520, 180, -1, -4, false);
addChild(_local5);
_local6 = new Ball1(_arg1, 550, 100, -4, -6, false);
addChild(_local6);
_local7 = new Ball1(_arg1, 390, 100, 4, 5, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 300, 100, -2, -14, false);
addChild(_local8);
_local9 = new Ball4(_arg1, 500, 100, -6, -4, false);
addChild(_local9);
_local10 = new Ball4(_arg1, 350, 100, 2, -4, false);
addChild(_local10);
_local11 = new Ball2(_arg1, 150, 100, 5, -8, false);
addChild(_local11);
_local12 = new Ball3(_arg1, 550, 100, 2, -8, false);
addChild(_local12);
_local13 = new Ball1(_arg1, 50, 100, -10, -8, false);
addChild(_local13);
_local14 = new Ball2(_arg1, 200, 100, 5, -8, false);
addChild(_local14);
_local15 = new Ball3(_arg1, 300, 400, 1, 9, false);
addChild(_local15);
_local16 = new Ball1(_arg1, 30, 400, 8, 8, false);
addChild(_local16);
_local17 = new Ball2(_arg1, 30, 400, 9, 13, false);
addChild(_local17);
_local18 = new Ball3(_arg1, 30, 400, 5, 14, false);
addChild(_local18);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local19 = new Ball1(_arg1, 30, 0, -10, -4, true);
hero.addChild(_local19);
_local20 = new Ball2(_arg1, -30, 0, -10, -4, true);
hero.addChild(_local20);
_local21 = new Ball3(_arg1, 0, 30, 0, 0, true);
hero.addChild(_local21);
_local22 = new Ball4(_arg1, 0, -30, 0, 0, true);
hero.addChild(_local22);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 114
//Level7 (Level7)
package {
import flash.display.*;
import flash.events.*;
public class Level7 extends Level {
public var hero:Hero;
public function Level7(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:InfoBall;
_local4 = new InfoSizeBall();
addChild(_local4);
_local4.addEventListener(Event.REMOVED_FROM_STAGE, startLevel);
super(_arg1, _arg2, _arg3);
}
private function startLevel(_arg1:Event):void{
var _local2:Ball;
var _local3:Ball;
var _local4:Ball;
var _local5:Ball;
var _local6:PowerUp;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
_local2 = new Ball1(stageRef, 550, 100, -1, -2, false);
addChild(_local2);
_local3 = new Ball2(stageRef, 50, 10, 1.3, -3, false);
addChild(_local3);
_local4 = new Ball2(stageRef, 450, 390, 2.2, -1.2, false);
addChild(_local4);
_local5 = new Ball3(stageRef, 550, 400, 0.2, 0.11, false);
addChild(_local5);
_local6 = new SizeBall(500, 450, 1.2, 1.1);
addChild(_local6);
hero = new Hero(stageRef, 400, 400);
addChild(hero);
_local7 = new Ball1(stageRef, 50, 0, -10, -4, true);
hero.addChild(_local7);
_local8 = new Ball2(stageRef, -50, 0, -10, -4, true);
hero.addChild(_local8);
_local9 = new Ball3(stageRef, 0, 50, 0, 0, true);
hero.addChild(_local9);
}
}
}//package
Section 115
//Level8 (Level8)
package {
import flash.display.*;
import flash.events.*;
public class Level8 extends Level {
public var hero:Hero;
public function Level8(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:InfoBall;
_local4 = new InfoRotateBall();
addChild(_local4);
_local4.addEventListener(Event.REMOVED_FROM_STAGE, startLevel);
super(_arg1, _arg2, _arg3);
}
private function startLevel(_arg1:Event):void{
var _local2:Ball;
var _local3:Ball;
var _local4:Ball;
var _local5:PowerUp;
var _local6:PowerUp;
var _local7:PowerUp;
var _local8:PowerUp;
var _local9:PowerUp;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
_local2 = new Ball4(stageRef, 300, 100, -0.25, -1, false);
addChild(_local2);
_local3 = new Ball5(stageRef, 150, 100, 0.35, -2, false);
addChild(_local3);
_local4 = new Ball6(stageRef, 550, 100, 3, -1.5, false);
addChild(_local4);
_local5 = new ChangeBall(320, 350, 2.2, 3.1);
addChild(_local5);
_local6 = new ChangeBall(100, 170, 3.2, 4.51);
addChild(_local6);
_local7 = new ChangeBall(160, 280, 3.72, -4.1);
addChild(_local7);
_local8 = new ChangeBall(170, 140, -2.2, -3.81);
addChild(_local8);
_local9 = new ChangeBall(120, 360, -3.2, 5.3);
addChild(_local9);
hero = new Hero(stageRef, 400, 400);
addChild(hero);
_local10 = new Ball4(stageRef, 50, 0, -10, -4, true);
hero.addChild(_local10);
_local11 = new Ball5(stageRef, -50, 0, -10, -4, true);
hero.addChild(_local11);
_local12 = new Ball6(stageRef, 0, 50, 0, 0, true);
hero.addChild(_local12);
}
}
}//package
Section 116
//Level9 (Level9)
package {
import flash.display.*;
import flash.events.*;
public class Level9 extends Level {
public var hero:Hero;
public function Level9(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
var _local10:Ball;
_local4 = new BadBall(_arg1, 550, 50, -1, 1, false);
addChild(_local4);
_local5 = new BadBall(_arg1, 100, 50, 0.2, 1, false);
addChild(_local5);
_local6 = new Ball3(_arg1, 50, 400, -1, -1.1, false);
addChild(_local6);
_local7 = new Ball5(_arg1, 110, 30, 1, 0.6, false);
addChild(_local7);
_local8 = new Ball5(_arg1, 380, 450, 1.31, 1, false);
addChild(_local8);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local9 = new Ball3(_arg1, 100, 0, -10, -4, true);
hero.addChild(_local9);
_local10 = new Ball5(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local10);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 117
//LevelFree (LevelFree)
package {
import flash.display.*;
public dynamic class LevelFree extends MovieClip {
}
}//package
Section 118
//LevelFreePlay (LevelFreePlay)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class LevelFreePlay extends Level {
public var hero:Hero;
private var secondsPlayed;// = 0
private var timer:Timer;
private var spawnRate:Number;// = 2.5
private var time:Number;// = 1000
public function LevelFreePlay(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:*;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
spawnRate = 2.5;
time = 1000;
secondsPlayed = 0;
timer = new Timer(time);
timer.addEventListener(TimerEvent.TIMER, onSpawnTimer);
timer.start();
addEventListener(Event.ENTER_FRAME, onEnterFrame);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local4 = Math.floor((Math.random() * 10));
if (_local4 == 0){
_local5 = new Ball1(_arg1, 0, -50, -10, -4, true);
hero.addChild(_local5);
_local6 = new Ball2(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local6);
_local7 = new Ball3(_arg1, 0, 50, -10, -4, true);
hero.addChild(_local7);
_local8 = new Ball4(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local8);
} else {
if (_local4 == 1){
_local7 = new Ball1(_arg1, 0, 100, -10, -4, true);
hero.addChild(_local7);
_local8 = new Ball2(_arg1, 0, 0, -10, -4, true);
hero.addChild(_local8);
} else {
if (_local4 == 2){
_local5 = new Ball1(_arg1, 0, -50, -10, -4, true);
hero.addChild(_local5);
_local6 = new Ball2(_arg1, 150, 0, -10, -4, true);
hero.addChild(_local6);
_local7 = new Ball3(_arg1, 0, 50, -10, -4, true);
hero.addChild(_local7);
} else {
if (_local4 == 3){
_local5 = new Ball1(_arg1, 0, -50, -10, -4, true);
hero.addChild(_local5);
_local6 = new Ball2(_arg1, 150, 0, -10, -4, true);
hero.addChild(_local6);
_local7 = new Ball3(_arg1, 0, 50, -10, -4, true);
hero.addChild(_local7);
} else {
if (_local4 == 4){
_local5 = new Ball1(_arg1, 0, -70, -10, -4, true);
hero.addChild(_local5);
_local6 = new Ball2(_arg1, 70, 0, -10, -4, true);
hero.addChild(_local6);
_local7 = new Ball3(_arg1, 0, 70, -10, -4, true);
hero.addChild(_local7);
} else {
if (_local4 == 5){
_local5 = new Ball1(_arg1, 0, -100, -10, -4, true);
hero.addChild(_local5);
_local6 = new Ball2(_arg1, 100, 0, -10, -4, true);
hero.addChild(_local6);
_local7 = new Ball3(_arg1, 0, 100, -10, -4, true);
hero.addChild(_local7);
_local8 = new Ball4(_arg1, -100, 0, -10, -4, true);
hero.addChild(_local8);
} else {
if (_local4 == 6){
_local5 = new Ball1(_arg1, 0, -40, -10, -4, true);
hero.addChild(_local5);
_local6 = new Ball2(_arg1, 100, 0, -10, -4, true);
hero.addChild(_local6);
_local7 = new Ball3(_arg1, 0, 40, -10, -4, true);
hero.addChild(_local7);
_local8 = new Ball4(_arg1, -100, 0, -10, -4, true);
hero.addChild(_local8);
} else {
if (_local4 == 7){
_local5 = new Ball1(_arg1, 0, -50, -10, -4, true);
hero.addChild(_local5);
_local6 = new Ball2(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local6);
} else {
if (_local4 == 8){
_local5 = new Ball1(_arg1, 0, 0, -10, -4, true);
hero.addChild(_local5);
_local6 = new Ball2(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local6);
_local7 = new Ball3(_arg1, 100, 0, -10, -4, true);
hero.addChild(_local7);
} else {
if (_local4 == 9){
_local5 = new Ball1(_arg1, -100, 0, -10, -4, true);
hero.addChild(_local5);
_local6 = new Ball2(_arg1, 0, 0, -10, -4, true);
hero.addChild(_local6);
_local7 = new Ball3(_arg1, 100, 0, -10, -4, true);
hero.addChild(_local7);
} else {
if (_local4 == 10){
_local5 = new Ball1(_arg1, 0, -50, -10, -4, true);
hero.addChild(_local5);
_local6 = new Ball2(_arg1, 150, 0, -10, -4, true);
hero.addChild(_local6);
_local7 = new Ball3(_arg1, 0, 50, -10, -4, true);
hero.addChild(_local7);
_local8 = new Ball4(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local8);
} else {
if (_local4 == 11){
_local5 = new Ball1(_arg1, 0, -30, -10, -4, true);
hero.addChild(_local5);
_local6 = new Ball2(_arg1, 30, 0, -10, -4, true);
hero.addChild(_local6);
_local7 = new Ball3(_arg1, 0, 30, -10, -4, true);
hero.addChild(_local7);
_local8 = new Ball4(_arg1, -30, 0, -10, -4, true);
hero.addChild(_local8);
} else {
if (_local4 == 12){
_local5 = new Ball1(_arg1, 0, -30, -10, -4, true);
hero.addChild(_local5);
_local6 = new Ball2(_arg1, 45, 0, -10, -4, true);
hero.addChild(_local6);
_local7 = new Ball3(_arg1, 0, 30, -10, -4, true);
hero.addChild(_local7);
};
};
};
};
};
};
};
};
};
};
};
};
};
trace(hero.numChildren);
super(_arg1, _arg2, _arg3);
}
private function spawn(_arg1:Number):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:Ball;
var _local7:PowerUp;
_local2 = (Math.random() * 600);
_local3 = (Math.random() * 500);
_local4 = (Math.random() * ((secondsPlayed / 10) + 2));
_local5 = (Math.random() * ((secondsPlayed / 10) + 2));
if (Math.random() < 0.5){
_local4 = (_local4 * -1);
};
if (Math.random < 0.5){
_local5 = (_local5 * -1);
};
if (_arg1 == 1){
_local6 = new Ball1(stageRef, _local2, _local3, _local4, _local5, false);
addChild(_local6);
};
if (_arg1 == 2){
_local6 = new Ball2(stageRef, _local2, _local3, _local4, _local5, false);
addChild(_local6);
};
if (_arg1 == 3){
_local6 = new Ball3(stageRef, _local2, _local3, _local4, _local5, false);
addChild(_local6);
};
if (_arg1 == 4){
_local6 = new Ball4(stageRef, _local2, _local3, _local4, _local5, false);
addChild(_local6);
};
if (_arg1 == 5){
_local6 = new Ball5(stageRef, _local2, _local3, _local4, _local5, false);
addChild(_local6);
};
if (_arg1 == 6){
_local6 = new Ball6(stageRef, _local2, _local3, _local4, _local5, false);
addChild(_local6);
};
if (_arg1 == 7){
_local7 = new ScoreBall(_local2, _local3, _local4, _local5);
addChild(_local7);
};
if (_arg1 == 8){
_local7 = new SlowBall(_local2, _local3, _local4, _local5);
addChild(_local7);
};
if (_arg1 == 9){
_local7 = new ChangeBall(_local2, _local3, _local4, _local5);
addChild(_local7);
};
}
public function removeAll():void{
while (numChildren > 0) {
removeChildAt(0);
};
}
public function stopSpawn():void{
timer.stop();
timer.removeEventListener(TimerEvent.TIMER, onSpawnTimer);
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
}
private function onEnterFrame(_arg1:Event):void{
var _local2:*;
_local2 = Math.ceil((Math.random() * hero.numChildren));
if (spawnRate < 6){
spawnRate = (spawnRate * 1.0003);
} else {
spawnRate = (spawnRate * 1.0001);
};
trace(spawnRate);
if (Math.random() < (spawnRate / 600)){
trace("SPAWN SPECIAL");
spawn(7);
};
if (Math.random() < (spawnRate / 10000)){
trace("SPAWN SPECIAL");
spawn(8);
};
if (Math.random() < (spawnRate / 10000)){
trace("SPAWN SPECIAL");
spawn(9);
};
if (Math.random() < (spawnRate / 1000)){
if (_local2 == 1){
spawn(1);
return;
};
if (_local2 == 2){
spawn(2);
return;
};
if (_local2 == 3){
spawn(3);
return;
};
if (_local2 == 4){
};
spawn(4);
return;
};
}
private function onSpawnTimer(_arg1:TimerEvent):void{
var _local2:*;
secondsPlayed++;
trace(hero.numChildren);
_local2 = Math.ceil((Math.random() * hero.numChildren));
if (GameData.enemiesHolder.length <= 1){
if (_local2 == 1){
spawn(1);
return;
};
if (_local2 == 2){
spawn(2);
return;
};
if (_local2 == 3){
spawn(3);
return;
};
if (_local2 == 4){
};
spawn(4);
return;
};
}
}
}//package
Section 119
//LevelPassedScreen (LevelPassedScreen)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
public class LevelPassedScreen extends MovieClip {
public var best:TextField;
public var totalBest:TextField;
private var startTweenY:Number;
public var start:SimpleButton;
public var passed:TextField;
public var score:TextField;
private var goalY:Number;
public var options:SimpleButton;
public function LevelPassedScreen(_arg1:Number, _arg2:Number){
x = _arg1;
y = _arg2;
alpha = 0.1;
goalY = _arg2;
y = (startTweenY = (goalY + 100));
addEventListener(Event.ENTER_FRAME, enterStage);
if ((Game.level % 12) != 0){
this.passed.text = (("Level " + (Game.level % 12)) + " passed!");
} else {
this.passed.text = "Level 12 passed!";
};
start.addEventListener(MouseEvent.CLICK, startClicked);
start.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
options.addEventListener(MouseEvent.CLICK, optionsClicked);
options.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
start.visible = false;
score.visible = false;
best.visible = false;
totalBest.visible = false;
options.visible = false;
addEventListener(Event.ADDED_TO_STAGE, addedToStage);
GameData.removeAnim();
}
private function enterStage(_arg1:Event):void{
if (y > goalY){
y = (y - (1 + ((100 - (startTweenY - y)) / 16)));
} else {
y = goalY;
removeEventListener(Event.ENTER_FRAME, enterStage);
};
if ((alpha + 0.05) < 1){
alpha = (alpha + 0.05);
} else {
alpha = 1;
};
}
public function addedToStage(_arg1:Event){
var _local2:Sound;
parent.timeBar.addEventListener(Event.ENTER_FRAME, parent.timeBar.fastExpandPrepare);
if (Game.soundFlag){
_local2 = new mallert006();
_local2.play();
};
}
public function startClicked(_arg1:MouseEvent){
start.removeEventListener(MouseEvent.CLICK, startClicked);
trace(("Current Level: " + (Game.level - 1)));
if (((Game.level - 1) % 12) != 0){
dispatchEvent(new NavigationEvent(NavigationEvent.NEXTLEVELPLAY));
} else {
trace("Level 13...");
campaignCompleted = new CampaignCompleted(0, 0);
addChild(campaignCompleted);
};
}
public function optionsClicked(_arg1:MouseEvent){
dispatchEvent(new NavigationEvent(NavigationEvent.OPTIONS));
if (parent){
parent.removeChild(this);
};
}
}
}//package
Section 120
//mallert006 (mallert006)
package {
import flash.media.*;
public dynamic class mallert006 extends Sound {
}
}//package
Section 121
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 122
//MusicJazz (MusicJazz)
package {
import flash.media.*;
public dynamic class MusicJazz extends Sound {
}
}//package
Section 123
//NavigationEvent (NavigationEvent)
package {
import flash.events.*;
public class NavigationEvent extends Event {
public static const STARTNEXTLEVELPLAY:String = "startnextlevelplay";
public static const NEXTLEVELPLAY:String = "nextlevelplay";
public static const MUSIC:String = "music";
public static const RESTARTFREEPLAY:String = "restartfreeplay";
public static const STOPSPAWN:String = "stopspawn";
public static const FREEPLAY:String = "freeplay";
public static const LOSS:String = "loss";
public static const ACHIEVEMENTS:String = "achievements";
public static const INSTRUCTIONS:String = "instructions";
public static const MAINOPTIONS:String = "mainoptions";
public static const CREATEUNIT1:String = "createunit1";
public static const CREATEUNIT3:String = "createunit3";
public static const CREATEUNIT4:String = "createunit4";
public static const CREATEUNIT5:String = "createunit5";
public static const CREATEUNIT6:String = "createunit6";
public static const INTROSCREEN:String = "introscreen";
public static const CREATEUNIT2:String = "createunit2";
public static const STARTGAME:String = "startgame";
public static const START:String = "start";
public static const RESTARTLEVEL:String = "restartlevel";
public static const MENU:String = "menu";
public static const RESTARTGAME:String = "restartgame";
public static const RESTART:String = "restart";
public static const VICTORY:String = "victory";
public static const CREDITS:String = "credits";
public static const OPTIONS:String = "options";
public function NavigationEvent(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function toString():String{
return (formatToString("NavigationEvent", "type", "bubbles", "cancelable", "eventPhase"));
}
override public function clone():Event{
return (new NavigationEvent(type, bubbles, cancelable));
}
}
}//package
Section 124
//NormalBut (NormalBut)
package {
import flash.display.*;
public dynamic class NormalBut extends SimpleButton {
}
}//package
Section 125
//NoviceBut (NoviceBut)
package {
import flash.display.*;
public dynamic class NoviceBut extends SimpleButton {
}
}//package
Section 126
//OkBut (OkBut)
package {
import flash.display.*;
public dynamic class OkBut extends SimpleButton {
}
}//package
Section 127
//OptionScreen (OptionScreen)
package {
import flash.display.*;
import flash.events.*;
public class OptionScreen extends MovieClip {
public var musicOn:SimpleButton;
public var onBut:SimpleButton;
public var musicOff:SimpleButton;
public var start:SimpleButton;
private var alphaGrow:Number;// = 0.03
public var offBut:SimpleButton;
public var main:SimpleButton;
public function OptionScreen(){
alphaGrow = 0.03;
super();
alpha = 0.4;
addEventListener(Event.ENTER_FRAME, enterStage);
start.addEventListener(MouseEvent.CLICK, continueClicked);
start.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
main.addEventListener(MouseEvent.CLICK, menuClicked);
main.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
onBut.addEventListener(MouseEvent.CLICK, onClicked);
onBut.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
offBut.addEventListener(MouseEvent.CLICK, offClicked);
offBut.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
musicOff.addEventListener(MouseEvent.CLICK, musicOffClicked);
musicOff.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
musicOn.addEventListener(MouseEvent.CLICK, musicOnClicked);
musicOn.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
}
private function enterStage(_arg1:Event):void{
if ((alpha + alphaGrow) < 1){
alpha = (alpha + alphaGrow);
} else {
alpha = 1;
removeEventListener(Event.ENTER_FRAME, enterStage);
};
}
public function onClicked(_arg1:MouseEvent){
Game.soundFlag = true;
}
private function continueClicked(_arg1:Event):void{
if (parent){
parent.removeChild(this);
};
dispatchEvent(new NavigationEvent(NavigationEvent.START));
}
private function musicOnClicked(_arg1:MouseEvent):void{
if (Game.musicFlag == false){
Game.musicFlag = true;
Game.musicChannel = Game.myMusic.play(0, 1000);
Game.musicChannel.soundTransform = Game.sTransform;
};
}
private function musicOffClicked(_arg1:MouseEvent):void{
Game.musicFlag = false;
Game.musicChannel.stop();
}
public function offClicked(_arg1:MouseEvent){
Game.soundFlag = false;
}
private function menuClicked(_arg1:MouseEvent):void{
if (parent){
parent.removeChild(this);
};
dispatchEvent(new NavigationEvent(NavigationEvent.INTROSCREEN));
}
}
}//package
Section 128
//Particle (Particle)
package {
import flash.display.*;
import flash.events.*;
public class Particle extends MovieClip {
public var dy:Number;
public var vel:Number;// = 10
public var dx:Number;
public function Particle(_arg1:Number, _arg2:Number){
vel = 10;
super();
x = _arg1;
y = _arg2;
alpha = 0.9;
scaleX = (0.5 + (0.9 * Math.random()));
scaleY = scaleX;
dx = ((Math.random() * vel) - (vel / 2));
dy = ((Math.random() * vel) - (vel / 2));
addEventListener(Event.ENTER_FRAME, loop);
}
public function loop(_arg1:Event){
x = (x + dx);
y = (y + dy);
alpha = (alpha - 0.001);
if (alpha <= 0.6){
if (this.parent){
parent.removeChild(this);
};
};
}
}
}//package
Section 129
//ParticleSnow (ParticleSnow)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
public class ParticleSnow extends Sprite {
private var frameCount;// = 0
public function ParticleSnow(_arg1:Point){
frameCount = 0;
super();
x = _arg1.x;
y = _arg1.y;
addEventListener(Event.ENTER_FRAME, down);
}
private function down(_arg1:Event):void{
y = (y + ((Math.random() * 0.8) + 1.2));
x = (x + (0.8 + ((2 / 4) * Math.sin((frameCount / 8)))));
frameCount++;
this.alpha = (this.alpha - 0.001);
if ((((alpha < 0.5)) && (this.parent))){
parent.removeChild(this);
};
}
}
}//package
Section 130
//PowerUp (PowerUp)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.filters.*;
public class PowerUp extends MovieClip {
public var mySide:Boolean;
public var shadowF:DropShadowFilter;
public var collision:Collision;
public var glowF:GlowFilter;
public var type:Number;
public var newY:Number;
public var vx:Number;
public var vy:Number;
public var blurF:BlurFilter;
public var newX:Number;
public function PowerUp(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0){
radius = (width / 2);
cacheAsBitmap = true;
blurFilter = new BlurFilter(1, 1);
shadowF = new DropShadowFilter(2);
glowF = new GlowFilter(0xFFFF00, 1, 25, 25, 1.5, 1, false, false);
filters = [glowF];
this.type = _arg5;
x = _arg1;
y = _arg2;
this.mySide = mySide;
addEventListener(Event.ADDED_TO_STAGE, addedToStage);
this.scaleX = (this.scaleY = 0.01);
this.vx = _arg3;
this.vy = _arg4;
}
public function goodCollision(_arg1:Number){
var _local2:Particle;
var _local3:Sound;
if (type == 0){
if (parent.parent.timeBar){
parent.parent.timeBar.updateW(400);
};
} else {
if (type == 1){
if (GamePlay.score){
GamePlay.score.update(300);
} else {
if (FreePlay.score){
FreePlay.score.update(50);
};
};
};
};
if (type == 2){
Hero.rotationAmount = (Hero.rotationAmount * -1);
};
if (type == 3){
trace("ENLARGR!");
Hero.enlarge();
};
if (type == 4){
trace("Slow");
if (GameData.enemiesHolder){
_arg1 = 0;
while (_arg1 < GameData.enemiesHolder.length) {
GameData.enemiesHolder[_arg1].vx = (GameData.enemiesHolder[_arg1].vx / 3);
GameData.enemiesHolder[_arg1].vy = (GameData.enemiesHolder[_arg1].vy / 3);
_arg1++;
};
_arg1 = 0;
while (_arg1 < GameData.badBallHolder.length) {
GameData.badBallHolder[_arg1].vx = (GameData.badBallHolder[_arg1].vx / 3);
GameData.badBallHolder[_arg1].vy = (GameData.badBallHolder[_arg1].vy / 3);
_arg1++;
};
_arg1 = 0;
while (_arg1 < GameData.powerUpHolder.length) {
GameData.powerUpHolder[_arg1].vx = (GameData.powerUpHolder[_arg1].vx / 3);
GameData.powerUpHolder[_arg1].vy = (GameData.powerUpHolder[_arg1].vy / 3);
_arg1++;
};
};
};
_arg1 = 0;
while (_arg1 < 20) {
_local2 = new Particle(x, y);
parent.addChild(_local2);
_arg1++;
};
remove();
if (Game.soundFlag){
_local3 = new Good();
_local3.play();
trace("played");
};
}
public function enterStage(_arg1:Event){
this.scaleX = (this.scaleX + 0.02);
this.scaleY = (this.scaleY + 0.02);
if (this.scaleX >= 0.9){
this.scaleX = 0.9;
this.scaleY = 0.9;
removeEventListener(Event.ENTER_FRAME, enterStage);
GameData.powerUpHolder.push(this);
addEventListener(Event.ENTER_FRAME, move);
};
}
public function shrink(_arg1:Event){
this.scaleX = (this.scaleX - 0.04);
this.scaleY = (this.scaleY - 0.04);
if (this.scaleX <= 0){
removeEventListener(Event.ENTER_FRAME, shrink);
remove();
};
}
public function addedToStage(_arg1:Event){
addEventListener(Event.ENTER_FRAME, enterStage);
}
public function remove(){
var _local1:*;
if (this){
if (this.parent){
trace(parent);
parent.removeChild(this);
};
};
removeEventListener(Event.ADDED_TO_STAGE, addedToStage);
_local1 = 0;
while (_local1 < GameData.powerUpHolder.length) {
if (GameData.powerUpHolder[_local1] == this){
GameData.powerUpHolder.splice(_local1, 1);
};
_local1++;
};
}
public function removeAnim(){
removeEventListener(Event.ENTER_FRAME, move);
addEventListener(Event.ENTER_FRAME, shrink);
}
public function move(_arg1:Event){
var _local2:*;
var _local3:Point;
var _local4:*;
var _local5:*;
var _local6:*;
newX = (x + vx);
newY = (y + vy);
_local2 = 0;
while (_local2 < GameData.unitHolder.length) {
_local3 = new Point(GameData.unitHolder[_local2].x, GameData.unitHolder[_local2].y);
_local4 = GameData.unitHolder[_local2].parent.localToGlobal(_local3);
_local5 = GameData.unitHolder[_local2].x;
_local6 = GameData.unitHolder[_local2].y;
GameData.unitHolder[_local2].x = _local4.x;
GameData.unitHolder[_local2].y = _local4.y;
if (GameData.unitHolder[_local2].isColliding(this)){
GameData.unitHolder[_local2].x = _local5;
GameData.unitHolder[_local2].y = _local6;
removeEventListener(Event.ENTER_FRAME, move);
goodCollision(_local2);
return;
};
GameData.unitHolder[_local2].x = _local5;
GameData.unitHolder[_local2].y = _local6;
_local2++;
};
if ((newX + radius) > 600){
vx = (vx * -1);
newX = (600 - radius);
} else {
if ((newX - radius) < 0){
vx = (vx * -1);
newX = radius;
};
};
if ((newY + radius) > 500){
vy = (vy * -1);
newY = (500 - radius);
} else {
if ((newY - radius) < 0){
vy = (vy * -1);
newY = radius;
};
};
x = newX;
y = newY;
}
}
}//package
Section 131
//Preloader (Preloader)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class Preloader extends Sprite {
private var counter:Number;// = 160
public var splash:FrosmoSplash;
public function Preloader(_arg1:DisplayObjectContainer){
counter = 160;
super();
_arg1.addChild(this);
splash.addEventListener(MouseEvent.CLICK, splashClicked);
addEventListener(Event.ENTER_FRAME, onEnterFrame);
alpha = 0.1;
}
private function onEnterFrame(_arg1:Event):void{
counter--;
alpha = (alpha + 0.05);
if (counter < 0){
if (parent){
parent.removeChild(this);
};
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
dispatchEvent(new NavigationEvent(NavigationEvent.STARTGAME));
};
}
private function splashClicked(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.frosmo.com/uk/ui/?ref=spinmatch2");
navigateToURL(_local2);
}
}
}//package
Section 132
//RestartCampaign (RestartCampaign)
package {
import flash.display.*;
public dynamic class RestartCampaign extends SimpleButton {
}
}//package
Section 133
//RestartScreen (RestartScreen)
package {
import flash.display.*;
import flash.events.*;
public class RestartScreen extends MovieClip {
public var restart:SimpleButton;
private var startTweenY:Number;
private var goalY:Number;
public var options:SimpleButton;
public var inGameMenu:InGameMenu;
public function RestartScreen(_arg1:Number, _arg2:Number){
x = _arg1;
y = _arg2;
alpha = 0.1;
goalY = _arg2;
y = (startTweenY = (goalY + 100));
addEventListener(Event.ENTER_FRAME, enterStage);
this.visible = false;
addEventListener(Event.ENTER_FRAME, chkGameData);
restart.addEventListener(MouseEvent.CLICK, restartClicked);
restart.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
options.addEventListener(MouseEvent.CLICK, optionsClicked);
options.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
}
private function enterStage(_arg1:Event):void{
if (visible){
if (y > goalY){
y = (y - (1 + ((100 - (startTweenY - y)) / 16)));
} else {
y = goalY;
removeEventListener(Event.ENTER_FRAME, enterStage);
};
if ((alpha + 0.05) < 1){
alpha = (alpha + 0.05);
} else {
alpha = 1;
};
};
}
public function restartClicked(_arg1:MouseEvent){
restart.removeEventListener(MouseEvent.CLICK, restartClicked);
dispatchEvent(new NavigationEvent(NavigationEvent.RESTARTLEVEL));
}
public function chkGameData(_arg1:Event){
if (GameData.enemiesHolder.length == 0){
this.visible = true;
removeEventListener(Event.ENTER_FRAME, chkGameData);
};
}
public function optionsClicked(_arg1:MouseEvent){
InGameMenu.levelPassedFlag = false;
dispatchEvent(new NavigationEvent(NavigationEvent.OPTIONS));
if (parent){
parent.removeChild(this);
};
}
}
}//package
Section 134
//Score (Score)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.filters.*;
public class Score extends MovieClip {
public var tempAmount;// = 0
public var score:TextField;
var frameCount;
public static var amount = 0;
public function Score(_arg1:Number, _arg2:Number){
tempAmount = 0;
super();
this.x = _arg1;
this.y = _arg2;
this.score.text = ("Score: " + tempAmount);
}
private function onEnterFrame(_arg1:Event):void{
var _local2:GlowFilter;
frameCount--;
_local2 = new GlowFilter();
_local2.strength = (2 * Math.sin((frameCount / 5)));
_local2.alpha = 0.8;
_local2.color = 0xFF00;
this.filters = [_local2];
if (frameCount <= 0){
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
};
}
public function update(_arg1:Number){
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
addEventListener(Event.ENTER_FRAME, onEnterFrame);
frameCount = 10;
tempAmount = (tempAmount + _arg1);
this.score.text = ("Score: " + tempAmount);
}
}
}//package
Section 135
//ScoreBall (ScoreBall)
package {
public class ScoreBall extends PowerUp {
public function ScoreBall(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
}
}
}//package
Section 136
//SizeBall (SizeBall)
package {
public class SizeBall extends PowerUp {
public function SizeBall(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=3){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
}
}
}//package
Section 137
//SlowBall (SlowBall)
package {
public class SlowBall extends PowerUp {
public function SlowBall(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=4){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
}
}
}//package
Section 138
//TimeBall (TimeBall)
package {
public class TimeBall extends PowerUp {
public function TimeBall(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
}
}
}//package
Section 139
//TimeBar (TimeBar)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class TimeBar extends MovieClip {
public var prepareCounter;// = 45
public var bar:MovieClip;
public var maxW;// = 500
public function TimeBar(){
maxW = 500;
prepareCounter = 45;
super();
bar.width = 0;
addEventListener(Event.ENTER_FRAME, expand);
}
public function fastExpand(_arg1:Event){
var _local2:*;
var _local3:SharedObject;
if ((parent.levelNum % 12) != 0){
_local2 = (-1620 + ((parent.levelNum % 12) * 120));
} else {
_local2 = (-1620 + (12 * 120));
};
newY = (_local2 + 130);
if (GamePlay.levelBG.y < newY){
GamePlay.levelBG.y = (GamePlay.levelBG.y + 3);
} else {
GamePlay.levelBG.y = newY;
};
if (bar.width <= (maxW / 1.18)){
bar.width = (bar.width + 7);
} else {
bar.width = (bar.width + (((maxW - bar.width) / 8) + 0.5));
};
GamePlay.score.update(Math.round((GamePlay.score.tempAmount * 0.01)));
if ((((bar.width >= maxW)) && ((GamePlay.levelBG.y >= newY)))){
bar.width = maxW;
removeEventListener(Event.ENTER_FRAME, fastExpand);
parent.levelPassedScreen.start.visible = true;
parent.levelPassedScreen.score.visible = true;
parent.levelPassedScreen.best.visible = true;
parent.levelPassedScreen.totalBest.visible = true;
parent.levelPassedScreen.options.visible = true;
Score.amount = (Score.amount + GamePlay.score.tempAmount);
parent.levelPassedScreen.score.text = ("Total score: " + Score.amount);
_local3 = SharedObject.getLocal("userData");
if ((((_local3.data.levelScore == null)) || ((_local3.data.levelScore == undefined)))){
trace("Created!");
_local3.data.levelScore = new Array();
};
if ((((_local3.data.totalScore == null)) || ((_local3.data.totalScore == undefined)))){
trace("Created!");
_local3.data.totalScore = new Array();
};
if ((((GamePlay.score.tempAmount > _local3.data.levelScore[Game.level])) || ((_local3.data.levelScore[Game.level] == null)))){
_local3.data.levelScore[Game.level] = GamePlay.score.tempAmount;
_local3.flush();
};
trace(Score.amount);
trace(_local3.data.totalScore[Game.level]);
if ((((Score.amount >= _local3.data.totalScore[Game.level])) || ((_local3.data.totalScore[Game.level] == null)))){
_local3.data.totalScore[Game.level] = Score.amount;
_local3.flush();
};
parent.levelPassedScreen.best.text = ("Personal best: " + _local3.data.levelScore[Game.level]);
if ((Game.level % 12) != 0){
parent.levelPassedScreen.totalBest.text = ((("Personal total best at level " + (Game.level % 12)) + ": ") + _local3.data.totalScore[Game.level]);
} else {
parent.levelPassedScreen.totalBest.text = ("Personal total best at level 12: " + _local3.data.totalScore[Game.level]);
};
trace(Game.level++);
};
}
public function fastExpandPrepare(_arg1:Event){
prepareCounter--;
if (prepareCounter <= 0){
addEventListener(Event.ENTER_FRAME, fastExpand);
removeEventListener(Event.ENTER_FRAME, fastExpandPrepare);
};
}
public function expand(_arg1:Event){
if (GameData.gameFlag){
bar.width = (bar.width + 0.6);
};
if (bar.width >= maxW){
bar.width = maxW;
removeEventListener(Event.ENTER_FRAME, expand);
GameData.removeAnim();
dispatchEvent(new NavigationEvent(NavigationEvent.LOSS));
};
}
public function updateW(_arg1:Number){
if ((bar.width - _arg1) > 0){
bar.width = (bar.width - _arg1);
} else {
bar.width = 0;
};
}
}
}//package