Section 1
//KongregateEvent (com.kongregate.as3.client.events.KongregateEvent)
package com.kongregate.as3.client.events {
import flash.events.*;
public class KongregateEvent extends Event {
public static const COMPLETE:String = "component_api_available";
public function KongregateEvent(_arg1:String){
super(_arg1);
}
}
}//package com.kongregate.as3.client.events
Section 2
//AbstractShadowService (com.kongregate.as3.client.services.AbstractShadowService)
package com.kongregate.as3.client.services {
import flash.events.*;
public class AbstractShadowService extends EventDispatcher {
protected function alert(_arg1:String, _arg2:String, _arg3="", _arg4:String=""):void{
trace(((((((("Kongregate API: " + _arg1) + ".") + _arg2) + "(") + _arg3) + ") ") + _arg4));
}
}
}//package com.kongregate.as3.client.services
Section 3
//HighScoreServiceShadow (com.kongregate.as3.client.services.HighScoreServiceShadow)
package com.kongregate.as3.client.services {
public class HighScoreServiceShadow extends AbstractShadowService implements IHighScoreServices {
private var mode:String;
public function HighScoreServiceShadow(){
mode = "";
}
public function submit(_arg1:Number, _arg2:String=null):void{
alert("IHighScoreServices", "submit", arguments);
}
public function connect():Boolean{
alert("IKongregateServices", "connect");
return (true);
}
public function requestList(_arg1:Function):void{
alert("IHighScoreServices", "requestList", "", (("[Mode: " + mode) + "]"));
_arg1({success:false});
}
public function setMode(_arg1:String):void{
alert("IHighScoreServices", "setMode", arguments);
this.mode = _arg1;
}
}
}//package com.kongregate.as3.client.services
Section 4
//IHighScoreServices (com.kongregate.as3.client.services.IHighScoreServices)
package com.kongregate.as3.client.services {
public interface IHighScoreServices {
function setMode(_arg1:String):void;
function submit(_arg1:Number, _arg2:String=null):void;
function requestList(_arg1:Function):void;
}
}//package com.kongregate.as3.client.services
Section 5
//IKongregateServices (com.kongregate.as3.client.services.IKongregateServices)
package com.kongregate.as3.client.services {
import flash.events.*;
public interface IKongregateServices extends IEventDispatcher {
function getPlayerInfo(_arg1:Function):void;
function connect(_arg1:Number=-1):Boolean;
}
}//package com.kongregate.as3.client.services
Section 6
//IStatServices (com.kongregate.as3.client.services.IStatServices)
package com.kongregate.as3.client.services {
public interface IStatServices {
function submitArray(_arg1:Array):void;
function submit(_arg1:String, _arg2:Number):void;
}
}//package com.kongregate.as3.client.services
Section 7
//IUserServices (com.kongregate.as3.client.services.IUserServices)
package com.kongregate.as3.client.services {
public interface IUserServices {
function getName():String;
function getPlayerInfo(_arg1:Function):void;
}
}//package com.kongregate.as3.client.services
Section 8
//KongregateServiceShadow (com.kongregate.as3.client.services.KongregateServiceShadow)
package com.kongregate.as3.client.services {
public class KongregateServiceShadow extends AbstractShadowService implements IKongregateServices {
public function getName():String{
alert("IKongregateServices", "getName");
return ("Guest");
}
public function connect(_arg1:Number=-1):Boolean{
alert("IKongregateServices", "connect", arguments);
return (true);
}
public function getPlayerInfo(_arg1:Function):void{
alert("IKongregateServices", "getPlayerInfo");
_arg1(new Object());
}
}
}//package com.kongregate.as3.client.services
Section 9
//StatServiceShadow (com.kongregate.as3.client.services.StatServiceShadow)
package com.kongregate.as3.client.services {
public class StatServiceShadow extends AbstractShadowService implements IStatServices {
public function submitArray(_arg1:Array):void{
alert("IStatServices", "submitArray", arguments);
}
public function submit(_arg1:String, _arg2:Number):void{
alert("IStatServices", "submitStat", arguments);
}
}
}//package com.kongregate.as3.client.services
Section 10
//UserServiceShadow (com.kongregate.as3.client.services.UserServiceShadow)
package com.kongregate.as3.client.services {
public class UserServiceShadow extends AbstractShadowService implements IUserServices {
public function getName():String{
alert("UserService", "getName");
return ("Guest");
}
public function getPlayerInfo(_arg1:Function):void{
alert("UserService", "getPlayerInfo");
_arg1({isGuest:true, name:"Guest", points:0, level:0, isMode:false, isAdmin:false, isDeveloper:false, avatarPath:"", chatAvatarPath:""});
}
}
}//package com.kongregate.as3.client.services
Section 11
//IAPIBootstrap (com.kongregate.as3.client.IAPIBootstrap)
package com.kongregate.as3.client {
import flash.events.*;
import flash.display.*;
public interface IAPIBootstrap {
function init(_arg1:Event=null, _arg2:Stage=null):void;
function hideLog():void;
function showLog(_arg1:int=0):void;
}
}//package com.kongregate.as3.client
Section 12
//KongregateAPI (com.kongregate.as3.client.KongregateAPI)
package com.kongregate.as3.client {
import flash.events.*;
import flash.display.*;
import com.kongregate.as3.client.services.*;
import com.kongregate.as3.client.events.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
public class KongregateAPI extends Sprite {
private const VERSION:Number = 1;
private var loader:Loader;
private var loadedDomain:ApplicationDomain;
private static const CLASS_USER:String = "com.kongregate.as3.client.services.UserServices";
private static const CLASS_STATS:String = "com.kongregate.as3.client.services.StatServices";
private static const CLASS_SERVICES:String = "com.kongregate.as3.client.services.KongregateServices";
private static const CLASS_SCORES:String = "com.kongregate.as3.client.services.HighScoreServices";
private static const DEBUG_API_URL:String = "//Linuxpc/kongregate/public/flash/API_AS3.swf";
private static var _connected:Boolean;
private static var kUser:IUserServices;
private static var _loaded:Boolean;
private static var kServices:IKongregateServices;
private static var kScores:IHighScoreServices;
private static var mInstance:KongregateAPI;
private static var kStats:IStatServices;
private static var kAPI:IAPIBootstrap;
public function KongregateAPI(){
if (mInstance != null){
throw (new Error("Warning: KongregateAPI has been added to stage more than once or accessed improperly. Use getInstance() or a stage reference to access."));
};
mInstance = this;
this.addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true);
}
public function get loaded():Boolean{
return (_loaded);
}
public function get connected():Boolean{
return (_connected);
}
private function alertConnected(_arg1:TimerEvent=null):void{
var _local2:KongregateEvent;
var _local3:Boolean;
_local2 = new KongregateEvent(KongregateEvent.COMPLETE);
_local3 = this.dispatchEvent(_local2);
}
private function init(_arg1:Event):void{
var _local2:Object;
var _local3:String;
var _local4:URLRequest;
var _local5:LoaderContext;
this.removeEventListener(Event.ADDED_TO_STAGE, init);
_loaded = false;
_connected = false;
_local2 = LoaderInfo(root.loaderInfo).parameters;
_local3 = _local2.api_path;
if (_local3 == null){
trace("Alert: Kongregate API could not be loaded, due to local testing. API will load when the game is uploaded.");
createShadowServices();
return;
};
Security.allowDomain("*.kongregate.com");
Security.allowDomain("kongregatetrunk.com");
_local4 = new URLRequest(_local3);
_local5 = new LoaderContext(false);
_local5.applicationDomain = ApplicationDomain.currentDomain;
_local5.securityDomain = SecurityDomain.currentDomain;
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
loader.load(_local4, _local5);
}
public function get api():IAPIBootstrap{
return (kAPI);
}
private function loadComplete(_arg1:Event):void{
getServices();
}
public function get scores():IHighScoreServices{
return (kScores);
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
throw (new IOError(("API file not found. " + _arg1)));
}
public function get services():IKongregateServices{
return (kServices);
}
public function get stats():IStatServices{
return (kStats);
}
private function createShadowServices():void{
var _local1:Timer;
trace(">>> Kongregate Shadow Services instantiated for local development..");
kServices = new KongregateServiceShadow();
kScores = new HighScoreServiceShadow();
kStats = new StatServiceShadow();
kUser = new UserServiceShadow();
_local1 = new Timer(200, 1);
_local1.addEventListener(TimerEvent.TIMER_COMPLETE, alertConnected);
_local1.start();
_connected = true;
}
public function get user():IUserServices{
return (kUser);
}
private function getServices():void{
var _local1:ApplicationDomain;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = ApplicationDomain.currentDomain;
kAPI = IAPIBootstrap(loader.getChildAt(0));
this.addChild(loader);
_local2 = _local1.getDefinition(CLASS_SERVICES);
trace(_local2);
kServices = _local2.getInstance();
_local3 = _local1.getDefinition(CLASS_SCORES);
kScores = _local3.getInstance();
_local4 = _local1.getDefinition(CLASS_STATS);
kStats = _local4.getInstance();
_local5 = _local1.getDefinition(CLASS_USER);
kUser = _local5.getInstance();
kServices.connect(VERSION);
_loaded = true;
_connected = true;
alertConnected();
}
public static function getInstance():KongregateAPI{
if (!mInstance){
throw (new IllegalOperationError("You must add the Kongregate API component to the stage before attempting to access it."));
};
return (mInstance);
}
}
}//package com.kongregate.as3.client
Section 13
//Main (com.midasplayer.particle.Main)
package com.midasplayer.particle {
import flash.events.*;
import flash.display.*;
public class Main extends Sprite {
private var minAlpha:Number;// = 0.01
private var maxAlpha:Number;// = 0.02
private var emitter;
private var minXVel:Number;// = -1
private var minSize:Number;// = 12
private var maxXVel:Number;// = 1
private var maxSize:Number;// = 29
private var particles:Array;
private var numParticles:int;// = 20
private var minYVel:Number;// = -1
private var maxYVel:Number;// = 1
public function Main(){
numParticles = 20;
minXVel = -1;
maxXVel = 1;
minYVel = -1;
maxYVel = 1;
minSize = 12;
maxSize = 29;
minAlpha = 0.01;
maxAlpha = 0.02;
particles = new Array();
super();
addEventListener(Event.ENTER_FRAME, enterFrame);
}
public function setEmitterClip(_arg1):void{
emitter = _arg1;
}
private function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
private function enterFrame(_arg1:Event){
createNewParticle();
}
public function kill():void{
var _local1:Number;
removeEventListener(Event.ENTER_FRAME, enterFrame);
_local1 = 0;
while (_local1 < particles.length) {
particles[_local1].destroy();
_local1++;
};
}
private function createNewParticle():void{
var _local1:*;
var _local2:Number;
_local1 = new Particle(spark, emitter, -10, -7, stage.stageWidth, stage.stageHeight);
_local1.setVel(randRange(minXVel, maxXVel), randRange(minYVel, maxYVel));
_local1.setSize(randRange(minSize, maxSize));
particles.push(_local1);
while (particles.length > numParticles) {
_local1 = particles.shift();
_local1.destroy();
};
_local2 = 0;
while (_local2 < particles.length) {
particles[_local2].update();
_local2++;
};
}
}
}//package com.midasplayer.particle
Section 14
//DragonLoader (com.midasplayer.DragonLoader)
package com.midasplayer {
import flash.events.*;
import flash.display.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.utils.*;
import flash.media.*;
public class DragonLoader extends MovieClip {
public var fireLogoHolder:MovieClip;
public var mcPlayBtn:MovieClip;
public var m_dragonClip:MovieClip;
public var m_bannedSign:MovieClip;
private var m_glimmerTween:Tween;
private var m_bg:Sprite;
private var m_playBtnTween:Tween;
public var bannedSign:MovieClip;
public var m_fireLogoClip:MovieClip;
private var oldFrameRate:int;
private var m_fireLogoTween:Tween;
private var m_sndBell:Sound;
public var dragonHolder:MovieClip;
private var m_glimmer:MovieClip;
public var m_playBtn:MovieClip;
public static var LAUNCH_GAME:String = "launchGame";
public function DragonLoader(){
this.x = (this.y = 0);
m_bannedSign = bannedSign;
m_bannedSign.bg.width = stage.stageWidth;
m_bannedSign.bg.height = stage.stageHeight;
m_bannedSign.alpha = 0;
m_bannedSign.addEventListener(MouseEvent.CLICK, onMainMovie);
m_bannedSign.buttonMode = true;
m_fireLogoClip = fireLogoHolder;
m_fireLogoClip.x = ((m_bannedSign.bg.width - m_fireLogoClip.width) - 90);
m_fireLogoClip.y = (((m_bannedSign.bg.height / 2) - (m_fireLogoClip.height / 2)) - 60);
m_fireLogoClip.visible = false;
m_fireLogoClip.stop();
m_dragonClip = dragonHolder;
m_dragonClip.x = (m_bannedSign.bg.width - m_dragonClip.width);
m_dragonClip.y = ((m_bannedSign.bg.height / 2) - (m_dragonClip.height / 2));
m_dragonClip.stop();
m_playBtn = mcPlayBtn;
m_playBtn.buttonMode = true;
m_playBtn.alpha = 0;
m_sndBell = new sfxBell();
}
public function destroy():void{
var _local1:Sprite;
m_playBtn.removeEventListener(MouseEvent.ROLL_OVER, btnOver);
m_playBtn.removeEventListener(MouseEvent.ROLL_OUT, btnOut);
m_playBtn.removeEventListener(MouseEvent.MOUSE_DOWN, btnDown);
m_playBtn.removeEventListener(MouseEvent.MOUSE_UP, launchGame);
if (m_fireLogoTween != null){
m_fireLogoTween.removeEventListener(TweenEvent.MOTION_FINISH, logoInPlace);
m_fireLogoTween = null;
};
_local1 = (this.parent.getChildByName("clickBg") as Sprite);
this.parent.removeChild(_local1);
this.parent.removeChild(this);
}
public function onMainMovie(_arg1:MouseEvent):void{
KingAPI.openLoaderMovieLink();
}
public function playLoaderMovie():void{
m_dragonClip.addEventListener(Event.ENTER_FRAME, animationDone);
m_dragonClip.play();
}
public function init(_arg1:String, _arg2:String=""):void{
if (_arg2 != ""){
MochiBot.track(this, _arg2);
};
oldFrameRate = root.stage.frameRate;
root.stage.frameRate = 30;
if (KingAPI.banned){
showBannedScreen();
} else {
if (KingAPI.isHome){
launchGame(null);
} else {
playLoaderMovie();
};
};
}
private function btnDown(_arg1:MouseEvent):void{
m_playBtn.gotoAndStop("down");
}
public function animationDone(_arg1:Event):void{
if (m_dragonClip.currentFrame == 80){
m_fireLogoClip.visible = true;
m_fireLogoClip.play();
m_fireLogoTween = new Tween(m_fireLogoClip, "x", Regular.easeOut, m_fireLogoClip.x, (((stage.width / 2) - (m_dragonClip.width / 2)) - 51), 1, true);
m_fireLogoTween.addEventListener(TweenEvent.MOTION_FINISH, logoInPlace);
};
if (m_dragonClip.currentFrame == m_dragonClip.totalFrames){
m_dragonClip.removeEventListener(Event.ENTER_FRAME, animationDone);
m_dragonClip.stop();
m_playBtn.x = ((stage.width / 2) - (m_playBtn.width / 2));
m_playBtn.y = (m_fireLogoClip.y + 210);
m_playBtn.addEventListener(MouseEvent.ROLL_OVER, btnOver);
m_playBtn.addEventListener(MouseEvent.ROLL_OUT, btnOut);
m_playBtn.addEventListener(MouseEvent.MOUSE_DOWN, btnDown);
m_playBtn.addEventListener(MouseEvent.MOUSE_UP, launchGame);
};
}
private function onGlimmerTmr(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
_local2 = (m_fireLogoClip.x - m_glimmer.width);
_local3 = ((m_fireLogoClip.x + m_fireLogoClip.width) - 80);
m_glimmerTween = new Tween(m_glimmer, "x", None.easeNone, _local2, _local3, 0.5, true);
m_glimmerTween.addEventListener(TweenEvent.MOTION_FINISH, glimmerDone);
m_sndBell.play();
}
public function launchGame(_arg1:Event):void{
root.stage.frameRate = oldFrameRate;
trace(LAUNCH_GAME);
this.dispatchEvent(new Event(LAUNCH_GAME));
}
private function btnOver(_arg1:MouseEvent):void{
m_playBtn.gotoAndStop("over");
}
private function logoVisible(_arg1:Event):void{
if (m_fireLogoClip.currentFrame == m_fireLogoClip.totalFrames){
m_fireLogoClip.removeEventListener(Event.ENTER_FRAME, logoVisible);
m_playBtnTween = new Tween(m_playBtn, "alpha", None.easeNone, 0, 1, 0.5, true);
m_glimmer = new mcGlimmer();
m_glimmer.x = (m_fireLogoClip.x - m_glimmer.width);
m_glimmer.y = (m_fireLogoClip.y + 112);
this.addChild(m_glimmer);
setTimeout(onGlimmerTmr, 1000, null);
};
}
private function btnOut(_arg1:MouseEvent):void{
m_playBtn.gotoAndStop("idle");
}
private function glimmerDone(_arg1:Event):void{
m_glimmerTween.removeEventListener(TweenEvent.MOTION_FINISH, glimmerDone);
this.removeChild(m_glimmer);
}
private function logoInPlace(_arg1:Event):void{
m_fireLogoClip.addEventListener(Event.ENTER_FRAME, logoVisible);
}
public function showBannedScreen():void{
m_bannedSign.alpha = 1;
}
}
}//package com.midasplayer
Section 15
//KingAPI (com.midasplayer.KingAPI)
package com.midasplayer {
import flash.events.*;
import flash.net.*;
import flash.external.*;
public class KingAPI {
public static const LINK_TYPE_RIGHT_CLICK:String = "rightclick";
public static const USER_TYPE_SUBSCRIPTION:int = 3;
public static const LINK_TYPE_HIGHSCORES:String = "highscores";
public static const LINK_TYPE_SIGN:String = "sign";
public static const INITIALIZED_EVENT:String = "initialized";
public static const LINK_TYPE_OTHER_GAMES:String = "other_games";
public static const USER_TYPE_REGISTERED:int = 1;
private static const SAK:String = "ggfd7sday923mdsfd8csfds34";
private static const loadHomeParametersURL:String = "http://www.king.com/servlet/FreeGameServlet?action=load";
public static const LINK_TYPE_LOADER_MOVIE:String = "loader_movie";
private static const bounceURL:String = "http://www.mygame.com/king/bounce.jsp";
public static const LINK_TYPE_PROTECT:String = "protect";
public static const LINK_TYPE_ADD_GAME:String = "add_game";
public static const USER_TYPE_GOLD:int = 2;
public static const USER_TYPE_UNREGISTERED:int = 0;
public static const HOST_BANNED_EVENT:String = "hostBanned";
private static const SK:String = "vf78hxcsjak77cxzhjkwad87s";
private static const loadCountURL:String = "http://www.mygame.com/king/loadcount.jsp";
public static const LINK_TYPE_LOADER_PROGRESS:String = "loader_progress";
private static var check:String = null;
public static var gameName:String;
public static var banned:Boolean = false;
protected static var dispatcher:EventDispatcher;
public static var isHome:Boolean = false;
private static var sessionID:String;
private static var iscore:int = 123;
public static var fromURL:String;
private static var SSK:String = "ng43ui54hy35tdsnd6f54rews";
private static function loadUrlErrorHandler(_arg1:Event):void{
trace(("Unable to load url: " + _arg1));
}
public static function resetScore():void{
iscore = 123;
check = null;
}
public static function openOfflineProtectionLink():void{
openKingPage(LINK_TYPE_PROTECT);
}
public static function init(_arg1:String, _arg2:String):void{
var loadCounter:URLLoader;
var reqvars:URLVariables;
var request:URLRequest;
var so:SharedObject;
var rnd1:Number;
var rnd2:Number;
var name = _arg1;
var from = _arg2;
gameName = name;
fromURL = from;
loadCounter = new URLLoader();
reqvars = new URLVariables();
reqvars.game = gameName;
reqvars.from = fromURL;
try {
so = SharedObject.getLocal("sessionId");
if (so.data.sessionID == null){
rnd1 = Math.abs(Math.floor((Math.random() * 4294967295)));
rnd2 = Math.abs(Math.floor((Math.random() * 4294967295)));
so.data.sessionID = (rnd1.toString(16) + rnd2.toString(16));
so.flush();
};
sessionID = so.data.sessionID;
} catch(e:Error) {
sessionID = "error";
};
reqvars.session = sessionID;
request = new URLRequest(((loadCountURL + "?") + reqvars.toString()));
loadCounter.addEventListener(Event.COMPLETE, loadCountHandler);
loadCounter.addEventListener(IOErrorEvent.IO_ERROR, loadUrlErrorHandler);
loadCounter.addEventListener(SecurityErrorEvent.SECURITY_ERROR, loadUrlErrorHandler);
try {
loadCounter.load(request);
} catch(error:Error) {
trace(("Unable to load loadcount url: " + loadCountURL));
trace(error.message);
};
}
private static function loadHomeParametersHandler(_arg1:Event):void{
var _local2:URLLoader;
_local2 = URLLoader(_arg1.target);
trace(("loadCounter.data" + _local2.data));
}
public static function submitInternalScore():void{
var _local1:int;
checkScore();
_local1 = ((iscore - 123) / 2);
submitScore(_local1);
}
public static function openOtherGamesLink():void{
openKingPage(LINK_TYPE_OTHER_GAMES);
}
public static function openKingPage(_arg1:String, _arg2:String=null):void{
var _local3:URLVariables;
var _local4:String;
_local3 = new URLVariables();
_local3.game = gameName;
_local3.from = fromURL;
_local3.type = _arg1;
_local3.session = sessionID;
if (_arg2 != null){
_local3.redirect = _arg2;
};
_local4 = "_blank";
if (isHome){
_local4 = "_top";
};
navigateToURL(new URLRequest(((bounceURL + "?") + _local3.toString())), _local4);
}
private static function loadCountHandler(_arg1:Event):void{
var loadCounter:URLLoader;
var vars:URLVariables;
var event = _arg1;
loadCounter = URLLoader(event.target);
trace(("loadCounter.data :" + loadCounter.data));
try {
vars = new URLVariables(loadCounter.data);
if (vars.h == "true"){
isHome = true;
};
if (vars.b == "true"){
banned = true;
dispatcher.dispatchEvent(new Event(HOST_BANNED_EVENT));
} else {
dispatcher.dispatchEvent(new Event(INITIALIZED_EVENT));
};
trace((("::" + vars.h) + "::"));
trace((("::" + vars.b) + "::"));
} catch(e:Error) {
trace(("Error reading data from loadcount url: " + e));
};
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
if (dispatcher == null){
dispatcher = new EventDispatcher();
};
dispatcher.addEventListener(_arg1, _arg2);
}
public static function openLoaderMovieLink():void{
openKingPage(LINK_TYPE_LOADER_MOVIE);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
if (dispatcher == null){
return;
};
dispatcher.removeEventListener(_arg1, _arg2);
}
public static function submitScore(_arg1:int):void{
var hash:String;
var score = _arg1;
hash = md5.encrypt(((((score + ":") + gameName) + ":") + SSK));
try {
if (isHome){
ExternalInterface.call("submitScore", score, hash);
} else {
openKingPage(LINK_TYPE_HIGHSCORES, ((((("game/" + gameName) + "/submit/") + score) + ":") + hash));
};
} catch(e:Error) {
trace(e);
};
}
public static function submitLevel(_arg1:int):void{
var hash:String;
var level = _arg1;
hash = md5.encrypt(((((level + ":") + gameName) + ":") + SSK));
try {
if (isHome){
ExternalInterface.call("submitLevel", level, hash);
};
} catch(e:Error) {
trace(e);
};
}
public static function openHighscoresLink():void{
openKingPage(LINK_TYPE_HIGHSCORES, (("game/" + gameName) + "/highscores"));
}
public static function openSignLink():void{
if (!isHome){
openKingPage(LINK_TYPE_SIGN);
};
}
public static function openRightClickLink():void{
openKingPage(LINK_TYPE_RIGHT_CLICK);
}
private static function checkScore():void{
if (check != null){
if (check != md5.encrypt(((((iscore + ":") + gameName) + ":") + SK))){
SSK = "ng41ui54hy35tdsnd6f54rews";
};
};
}
public static function addScore(_arg1:int):int{
var _local2:int;
checkScore();
_local2 = ((iscore - 123) / 2);
_local2 = (_local2 + _arg1);
iscore = ((_local2 * 2) + 123);
check = md5.encrypt(((((iscore + ":") + gameName) + ":") + SK));
return (_local2);
}
public static function openLoaderProgressLink():void{
openKingPage(LINK_TYPE_LOADER_PROGRESS);
}
public static function openAddToWebsiteLink():void{
openKingPage(LINK_TYPE_ADD_GAME, "website_content.jsp");
}
public static function submitAchievement(_arg1:String):void{
var hash:String;
var achievement = _arg1;
hash = md5.encrypt(((((achievement + ":") + gameName) + ":") + SAK));
try {
if (isHome){
ExternalInterface.call("submitAchievement", achievement, hash);
};
} catch(e:Error) {
trace(e);
};
}
}
}//package com.midasplayer
Section 16
//md5 (com.midasplayer.md5)
package com.midasplayer {
public class md5 {
public static const HEX_FORMAT_LOWERCASE:uint = 0;
public static const HEX_FORMAT_UPPERCASE:uint = 1;
public static const BASE64_PAD_CHARACTER_DEFAULT_COMPLIANCE:String = "";
public static const BASE64_PAD_CHARACTER_RFC_COMPLIANCE:String = "=";
public static var hexcase:uint = 0;
public static var b64pad:String = "";
public static function md5_gg(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn(((_arg2 & _arg4) | (_arg3 & ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function md5_cmn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Number{
return (safe_add(bit_rol(safe_add(safe_add(_arg2, _arg1), safe_add(_arg4, _arg6)), _arg5), _arg3));
}
public static function binl_md5(_arg1:Array, _arg2:Number):Array{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
_arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (_arg2 % 32)));
_arg1[((((_arg2 + 64) >>> 9) << 4) + 14)] = _arg2;
_local3 = 1732584193;
_local4 = -271733879;
_local5 = -1732584194;
_local6 = 271733878;
_local7 = 0;
while (_local7 < _arg1.length) {
_local8 = _local3;
_local9 = _local4;
_local10 = _local5;
_local11 = _local6;
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 7, -680876936);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 1)], 12, -389564586);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 17, 606105819);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 3)], 22, -1044525330);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 7, -176418897);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 5)], 12, 1200080426);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 17, -1473231341);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 7)], 22, -45705983);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 7, 1770035416);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 9)], 12, -1958414417);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 17, -42063);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 11)], 22, -1990404162);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 7, 1804603682);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 13)], 12, -40341101);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 17, -1502002290);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 15)], 22, 1236535329);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 5, -165796510);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 6)], 9, -1069501632);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 14, 643717713);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 0)], 20, -373897302);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 5, -701558691);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 10)], 9, 38016083);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 14, -660478335);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 4)], 20, -405537848);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 5, 568446438);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 14)], 9, -1019803690);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 14, -187363961);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 8)], 20, 1163531501);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 5, -1444681467);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 2)], 9, -51403784);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 14, 1735328473);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 12)], 20, -1926607734);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 4, -378558);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 8)], 11, -2022574463);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 16, 1839030562);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 14)], 23, -35309556);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 4, -1530992060);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 4)], 11, 1272893353);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 16, -155497632);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 10)], 23, -1094730640);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 4, 681279174);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 0)], 11, -358537222);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 16, -722521979);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 6)], 23, 76029189);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 4, -640364487);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 12)], 11, -421815835);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 16, 530742520);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 2)], 23, -995338651);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 6, -198630844);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 7)], 10, 1126891415);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 15, -1416354905);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 5)], 21, -57434055);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 6, 1700485571);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 3)], 10, -1894986606);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 15, -1051523);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 1)], 21, -2054922799);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 6, 1873313359);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 15)], 10, -30611744);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 15, -1560198380);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 13)], 21, 1309151649);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 6, -145523070);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 11)], 10, -1120210379);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 15, 718787259);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 9)], 21, -343485551);
_local3 = safe_add(_local3, _local8);
_local4 = safe_add(_local4, _local9);
_local5 = safe_add(_local5, _local10);
_local6 = safe_add(_local6, _local11);
_local7 = (_local7 + 16);
};
return ([_local3, _local4, _local5, _local6]);
}
public static function str2rstr_utf16le(_arg1:String):String{
var _local2:String;
var _local3:Number;
_local2 = "";
_local3 = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode((_arg1.charCodeAt(_local3) & 0xFF), ((_arg1.charCodeAt(_local3) >>> 8) & 0xFF)));
_local3++;
};
return (_local2);
}
public static function hex_hmac_md5(_arg1:String, _arg2:String):String{
return (rstr2hex(rstr_hmac_md5(str2rstr_utf8(_arg1), str2rstr_utf8(_arg2))));
}
public static function binl2rstr(_arg1:Array):String{
var _local2:String;
var _local3:Number;
_local2 = "";
_local3 = 0;
while (_local3 < (_arg1.length * 32)) {
_local2 = (_local2 + String.fromCharCode(((_arg1[(_local3 >> 5)] >>> (_local3 % 32)) & 0xFF)));
_local3 = (_local3 + 8);
};
return (_local2);
}
public static function md5_ff(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn(((_arg2 & _arg3) | (~(_arg2) & _arg4)), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function md5_ii(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn((_arg3 ^ (_arg2 | ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function rstr2binl(_arg1:String):Array{
var _local2:Array;
var _local3:Number;
_local2 = Array((_arg1.length >> 2));
_local3 = 0;
while (_local3 < _local2.length) {
_local2[_local3] = 0;
_local3++;
};
_local3 = 0;
while (_local3 < (_arg1.length * 8)) {
_local2[(_local3 >> 5)] = (_local2[(_local3 >> 5)] | ((_arg1.charCodeAt((_local3 / 8)) & 0xFF) << (_local3 % 32)));
_local3 = (_local3 + 8);
};
return (_local2);
}
public static function md5_vm_test():Boolean{
return ((hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72"));
}
public static function b64_md5(_arg1:String):String{
return (rstr2b64(rstr_md5(str2rstr_utf8(_arg1))));
}
public static function any_hmac_md5(_arg1:String, _arg2:String, _arg3:String):String{
return (rstr2any(rstr_hmac_md5(str2rstr_utf8(_arg1), str2rstr_utf8(_arg2)), _arg3));
}
public static function hex_md5(_arg1:String):String{
return (rstr2hex(rstr_md5(str2rstr_utf8(_arg1))));
}
public static function bit_rol(_arg1:Number, _arg2:Number):Number{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
public static function encrypt(_arg1:String):String{
return (hex_md5(_arg1));
}
public static function md5_hh(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn(((_arg2 ^ _arg3) ^ _arg4), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function rstr2hex(_arg1:String):String{
var _local2:String;
var _local3:String;
var _local4:Number;
var _local5:Number;
_local2 = (hexcase) ? "0123456789ABCDEF" : "0123456789abcdef";
_local3 = "";
_local5 = 0;
while (_local5 < _arg1.length) {
_local4 = _arg1.charCodeAt(_local5);
_local3 = (_local3 + (_local2.charAt(((_local4 >>> 4) & 15)) + _local2.charAt((_local4 & 15))));
_local5++;
};
return (_local3);
}
public static function any_md5(_arg1:String, _arg2:String):String{
return (rstr2any(rstr_md5(str2rstr_utf8(_arg1)), _arg2));
}
public static function b64_hmac_md5(_arg1:String, _arg2:String):String{
return (rstr2b64(rstr_hmac_md5(str2rstr_utf8(_arg1), str2rstr_utf8(_arg2))));
}
public static function rstr2b64(_arg1:String):String{
var _local2:String;
var _local3:String;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
_local2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
_local3 = "";
_local4 = _arg1.length;
_local5 = 0;
while (_local5 < _local4) {
_local6 = (((_arg1.charCodeAt(_local5) << 16) | (((_local5 + 1) < _local4)) ? (_arg1.charCodeAt((_local5 + 1)) << 8) : 0) | (((_local5 + 2) < _local4)) ? _arg1.charCodeAt((_local5 + 2)) : 0);
_local7 = 0;
while (_local7 < 4) {
if (((_local5 * 8) + (_local7 * 6)) > (_arg1.length * 8)){
_local3 = (_local3 + b64pad);
} else {
_local3 = (_local3 + _local2.charAt(((_local6 >>> (6 * (3 - _local7))) & 63)));
};
_local7++;
};
_local5 = (_local5 + 3);
};
return (_local3);
}
public static function safe_add(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
var _local4:Number;
_local3 = ((_arg1 & 0xFFFF) + (_arg2 & 0xFFFF));
_local4 = (((_arg1 >> 16) + (_arg2 >> 16)) + (_local3 >> 16));
return (((_local4 << 16) | (_local3 & 0xFFFF)));
}
public static function str2rstr_utf8(_arg1:String):String{
var _local2:String;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local2 = "";
_local3 = -1;
while (++_local3 < _arg1.length) {
_local4 = _arg1.charCodeAt(_local3);
_local5 = (((_local3 + 1) < _arg1.length)) ? _arg1.charCodeAt((_local3 + 1)) : 0;
if ((((((((0xD800 <= _local4)) && ((_local4 <= 56319)))) && ((0xDC00 <= _local5)))) && ((_local5 <= 57343)))){
_local4 = ((65536 + ((_local4 & 1023) << 10)) + (_local5 & 1023));
_local3++;
};
if (_local4 <= 127){
_local2 = (_local2 + String.fromCharCode(_local4));
} else {
if (_local4 <= 2047){
_local2 = (_local2 + String.fromCharCode((192 | ((_local4 >>> 6) & 31)), (128 | (_local4 & 63))));
} else {
if (_local4 <= 0xFFFF){
_local2 = (_local2 + String.fromCharCode((224 | ((_local4 >>> 12) & 15)), (128 | ((_local4 >>> 6) & 63)), (128 | (_local4 & 63))));
} else {
if (_local4 <= 2097151){
_local2 = (_local2 + String.fromCharCode((240 | ((_local4 >>> 18) & 7)), (128 | ((_local4 >>> 12) & 63)), (128 | ((_local4 >>> 6) & 63)), (128 | (_local4 & 63))));
};
};
};
};
};
return (_local2);
}
public static function rstr_hmac_md5(_arg1:String, _arg2:String):String{
var _local3:Array;
var _local4:Array;
var _local5:Array;
var _local6:Number;
var _local7:Array;
_local3 = rstr2binl(_arg1);
if (_local3.length > 16){
_local3 = binl_md5(_local3, (_arg1.length * 8));
};
_local4 = Array(16);
_local5 = Array(16);
_local6 = 0;
while (_local6 < 16) {
_local4[_local6] = (_local3[_local6] ^ 909522486);
_local5[_local6] = (_local3[_local6] ^ 1549556828);
_local6++;
};
_local7 = binl_md5(_local4.concat(rstr2binl(_arg2)), (0x0200 + (_arg2.length * 8)));
return (binl2rstr(binl_md5(_local5.concat(_local7), (0x0200 + 128))));
}
public static function str2rstr_utf16be(_arg1:String):String{
var _local2:String;
var _local3:Number;
_local2 = "";
_local3 = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode(((_arg1.charCodeAt(_local3) >>> 8) & 0xFF), (_arg1.charCodeAt(_local3) & 0xFF)));
_local3++;
};
return (_local2);
}
public static function rstr2any(_arg1:String, _arg2:String):String{
var _local3:Number;
var _local4:Array;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Array;
var _local9:Array;
var _local10:String;
_local3 = _arg2.length;
_local4 = [];
_local9 = Array((_arg1.length / 2));
_local5 = 0;
while (_local5 < _local9.length) {
_local9[_local5] = ((_arg1.charCodeAt((_local5 * 2)) << 8) | _arg1.charCodeAt(((_local5 * 2) + 1)));
_local5++;
};
while (_local9.length > 0) {
_local8 = [];
_local7 = 0;
_local5 = 0;
while (_local5 < _local9.length) {
_local7 = ((_local7 << 16) + _local9[_local5]);
_local6 = Math.floor((_local7 / _local3));
_local7 = (_local7 - (_local6 * _local3));
if ((((_local8.length > 0)) || ((_local6 > 0)))){
_local8[_local8.length] = _local6;
};
_local5++;
};
_local4[_local4.length] = _local7;
_local9 = _local8;
};
_local10 = "";
_local5 = (_local4.length - 1);
while (_local5 >= 0) {
_local10 = (_local10 + _arg2.charAt(_local4[_local5]));
_local5--;
};
return (_local10);
}
public static function rstr_md5(_arg1:String):String{
return (binl2rstr(binl_md5(rstr2binl(_arg1), (_arg1.length * 8))));
}
}
}//package com.midasplayer
Section 17
//None (fl.transitions.easing.None)
package fl.transitions.easing {
public class None {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package fl.transitions.easing
Section 18
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package fl.transitions.easing
Section 19
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
public var begin:Number;// = NAN
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var change:Number;// = NAN
private var _finish:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
isPlaying = false;
obj = null;
prop = "";
func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
begin = NaN;
change = NaN;
useSeconds = false;
prevTime = NaN;
prevPos = NaN;
looping = false;
_duration = NaN;
_time = NaN;
_fps = NaN;
_position = NaN;
_startTime = NaN;
_intervalID = 0;
_finish = NaN;
_timer = null;
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean;
_local2 = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 20
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
time = NaN;
position = NaN;
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 21
//MainTimeline (SpinMatchKong_fla.MainTimeline)
package SpinMatchKong_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import com.midasplayer.*;
import flash.utils.*;
import flash.media.*;
import flash.system.*;
import flash.filters.*;
import com.midasplayer.particle.*;
import flash.text.*;
import flash.net.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
import flash.ui.*;
public dynamic class MainTimeline extends MovieClip {
public var bar:Sprite;
public var mcLoadLogoBg:MovieClip;
public var bg:Sprite;
public var holder:Sprite;
public var particles:Main;
public var mochi:String;
public var mcKingLoader:DragonLoader;
public var game_name:String;
public var game:Game;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function preload(_arg1:Event):void{
bg = new Sprite();
bg.buttonMode = true;
bg.name = "clickBg";
bg.graphics.beginFill(0, 0);
bg.graphics.lineTo(stage.stageWidth, 0);
bg.graphics.lineTo(stage.stageWidth, stage.stageHeight);
bg.graphics.lineTo(0, stage.stageHeight);
bg.graphics.lineTo(0, 0);
bg.graphics.endFill();
bg.addEventListener(MouseEvent.CLICK, openKingPage);
this.addChildAt(bg, this.getChildIndex(mcLoadLogoBg));
mcLoadLogoBg.x = ((stage.stageWidth / 2) - (mcLoadLogoBg.width / 2));
mcLoadLogoBg.y = ((stage.stageHeight / 2) - (mcLoadLogoBg.height / 2));
bar = new Sprite();
bar.graphics.beginFill(0xFFFFFF, 0);
bar.x = (mcLoadLogoBg.x + 5);
bar.y = (mcLoadLogoBg.y + 34);
bar.graphics.drawRect(0, 0, 96, 5);
bar.graphics.endFill();
this.addChild(bar);
holder = new Sprite();
this.addChild(holder);
holder.x = bar.x;
holder.y = bar.y;
particles = new Main();
particles.setEmitterClip(holder);
this.addChild(particles);
addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
public function openKingPage(_arg1:Event):void{
KingAPI.openLoaderProgressLink();
}
public function launchGame(_arg1):void{
mcKingLoader.destroy();
gotoAndStop(3);
}
function frame3(){
game = new Game();
addChild(game);
}
function frame1(){
stop();
game_name = "spinmatch";
mochi = "4626c1bf";
stage.scaleMode = StageScaleMode.NO_SCALE;
MochiBot.track(this, "4626c1bf");
KingAPI.addEventListener(KingAPI.INITIALIZED_EVENT, preload);
KingAPI.addEventListener(KingAPI.HOST_BANNED_EVENT, preload);
KingAPI.init(game_name, root.loaderInfo.url);
}
function frame2(){
mcKingLoader.addEventListener(DragonLoader.LAUNCH_GAME, launchGame);
mcKingLoader.init(game_name, mochi);
}
public function onEnterFrame(_arg1:Event):void{
holder.x = (bar.x + bar.width);
if (framesLoaded == totalFrames){
particles.kill();
this.removeChild(particles);
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
bg.removeEventListener(MouseEvent.CLICK, openKingPage);
this.removeChild(bar);
if (!KingAPI.isHome){
gotoAndStop(2);
} else {
gotoAndStop(3);
};
} else {
bar.scaleX = (stage.loaderInfo.bytesLoaded / stage.loaderInfo.bytesTotal);
mcLoadLogoBg.bar.scaleX = (1 - (stage.loaderInfo.bytesLoaded / stage.loaderInfo.bytesTotal));
};
}
}
}//package SpinMatchKong_fla
Section 22
//mcBannedSign_6 (SpinMatchKong_fla.mcBannedSign_6)
package SpinMatchKong_fla {
import flash.display.*;
public dynamic class mcBannedSign_6 extends MovieClip {
public var bg:MovieClip;
}
}//package SpinMatchKong_fla
Section 23
//mcFireLogo_5 (SpinMatchKong_fla.mcFireLogo_5)
package SpinMatchKong_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.system.*;
import flash.filters.*;
import flash.text.*;
import flash.net.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
import flash.ui.*;
public dynamic class mcFireLogo_5 extends MovieClip {
public function mcFireLogo_5(){
addFrameScript(72, frame73);
}
function frame73(){
stop();
}
}
}//package SpinMatchKong_fla
Section 24
//mcLoadLogo_1 (SpinMatchKong_fla.mcLoadLogo_1)
package SpinMatchKong_fla {
import flash.display.*;
public dynamic class mcLoadLogo_1 extends MovieClip {
public var bar:MovieClip;
}
}//package SpinMatchKong_fla
Section 25
//mcPlayBtn_8 (SpinMatchKong_fla.mcPlayBtn_8)
package SpinMatchKong_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.system.*;
import flash.filters.*;
import flash.text.*;
import flash.net.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
import flash.ui.*;
public dynamic class mcPlayBtn_8 extends MovieClip {
public function mcPlayBtn_8(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SpinMatchKong_fla
Section 26
//Achievements (Achievements)
package {
import flash.events.*;
import flash.display.*;
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 27
//AchievementsBack (AchievementsBack)
package {
import flash.display.*;
public dynamic class AchievementsBack extends SimpleButton {
}
}//package
Section 28
//addTo (addTo)
package {
import flash.display.*;
public dynamic class addTo extends MovieClip {
}
}//package
Section 29
//alert_30 (alert_30)
package {
import flash.media.*;
public dynamic class alert_30 extends Sound {
}
}//package
Section 30
//Ball (Ball)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
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);
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 / 1.6);
this.vy = (_arg5 / 1.6);
} else {
addEventListener(Event.ADDED_TO_STAGE, addedToStage);
};
}
public function goodCollision(_arg1:Number){
var _local2:Particle;
var _local3:Sound;
if (parent.parent.parent.timeBar){
parent.parent.parent.timeBar.updateW((5 * Math.round((Game.level / 12))));
};
GamePlay.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.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)))){
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.unitHolder.length) {
if (GameData.unitHolder[_local1] == this){
GameData.unitHolder.splice(_local1, 1);
};
_local1++;
};
}
public function badCollision(){
dispatchEvent(new NavigationEvent(NavigationEvent.LOSS));
GameData.removeAnim();
}
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) > stage.stageWidth){
vx = (vx * -1);
newX = (stage.stageWidth - radius);
} else {
if ((newX - radius) < 0){
vx = (vx * -1);
newX = radius;
};
};
if ((newY + radius) > stage.stageHeight){
vy = (vy * -1);
newY = (stage.stageHeight - radius);
} else {
if ((newY - radius) < 0){
vy = (vy * -1);
newY = radius;
};
};
x = newX;
y = newY;
}
}
}//package
Section 31
//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 32
//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 33
//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 34
//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 35
//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 36
//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 37
//Button (Button)
package {
import flash.media.*;
public dynamic class Button extends Sound {
}
}//package
Section 38
//Campaign (Campaign)
package {
import flash.media.*;
public dynamic class Campaign extends Sound {
}
}//package
Section 39
//CampaignCompleted (CampaignCompleted)
package {
import flash.events.*;
import flash.display.*;
import com.kongregate.as3.client.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
public class CampaignCompleted extends MovieClip {
public var best:TextField;
public var ok:OkButton;
public var next:SimpleButton;
public var campaign:TextField;
public var campaignNumber:Number;
public var score:TextField;
public var campaignName:String;
public function CampaignCompleted(_arg1:Number, _arg2:Number){
var _local3:KongregateAPI;
var _local4:SharedObject;
var _local5:Sound;
super();
_local3 = KongregateAPI.getInstance();
this.addChild(_local3);
_local3.scores.submit(Score.amount);
if (Game.soundFlag){
_local5 = new Campaign();
_local5.play();
trace("played");
};
x = _arg1;
y = _arg2;
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";
break;
case 1:
campaignName = "Normal";
break;
case 2:
campaignName = "Hard";
break;
case 3:
campaignName = "Expert";
break;
case 4:
campaignName = "Insane";
break;
};
this.campaign.text = (("Campaign " + campaignName) + " completed");
_local4 = SharedObject.getLocal("userData");
if ((((_local4.data.campScore == null)) || ((_local4.data.campScore == undefined)))){
trace("Created!");
_local4.data.campScore = new Array();
};
if ((((Score.amount >= _local4.data.campScore[Math.round((Game.level / 12))])) || ((_local4.data.campScore[Math.round((Game.level / 12))] == null)))){
_local4.data.campScore[Math.round((Game.level / 12))] = Score.amount;
_local4.flush();
};
this.score.text = ("Campaign score: " + Score.amount);
this.best.text = ("Personal best:" + _local4.data.campScore[Math.round((Game.level / 12))]);
}
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){
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 40
//CampaignScreen (CampaignScreen)
package {
import flash.events.*;
import flash.display.*;
public class CampaignScreen extends MovieClip {
public var hard:HardBut;
public var expert:ExpertBut;
public var impossible:SimpleButton;
public var novice:NoviceBut;
public var normal:SimpleButton;
public function CampaignScreen(_arg1:Number, _arg2:Number){
x = _arg1;
y = _arg2;
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);
}
public function hardStart(_arg1:MouseEvent){
Game.level = 24;
dispatchEvent(new NavigationEvent(NavigationEvent.NEXTLEVELPLAY));
remove();
}
public function expertStart(_arg1:MouseEvent){
Game.level = 36;
dispatchEvent(new NavigationEvent(NavigationEvent.NEXTLEVELPLAY));
remove();
}
public function noviceStart(_arg1:MouseEvent){
Game.level = 0;
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 = 12;
dispatchEvent(new NavigationEvent(NavigationEvent.NEXTLEVELPLAY));
remove();
}
public function impossibleStart(_arg1:MouseEvent){
Game.level = 48;
dispatchEvent(new NavigationEvent(NavigationEvent.NEXTLEVELPLAY));
remove();
}
}
}//package
Section 41
//Collision (Collision)
package {
import flash.display.*;
import flash.geom.*;
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 42
//ContinueButton (ContinueButton)
package {
import flash.display.*;
public dynamic class ContinueButton extends SimpleButton {
}
}//package
Section 43
//Credits (Credits)
package {
import flash.events.*;
import flash.display.*;
public class Credits extends MovieClip {
public var back:AchievementsBack;
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);
}
public function backToMainScreen(_arg1:MouseEvent){
parent.removeChild(this);
dispatchEvent(new NavigationEvent(NavigationEvent.INTROSCREEN));
}
}
}//package
Section 44
//ExpertBut (ExpertBut)
package {
import flash.display.*;
public dynamic class ExpertBut extends SimpleButton {
}
}//package
Section 45
//Game (Game)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.media.*;
public class Game extends MovieClip {
public var campaignCompleted:CampaignCompleted;
private var sTransform:SoundTransform;
public var instructionsScreen:Instructions;
public var gamePlay:GamePlay;
public var gameTimer:Timer;
public var army:Array;
public var creditsScreen:Credits;
public var campaignScreen:CampaignScreen;
public var introScreen:IntroScreen;
public static var level = 0;
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(){
stageRef = stage;
army = new Array();
introScreen = new IntroScreen(stageRef, 0, 0);
addChild(introScreen);
sTransform = new SoundTransform(0.3);
myMusic = new MusicJazz();
musicChannel = myMusic.play(0, 1000);
musicChannel.soundTransform = sTransform;
addEventListener(NavigationEvent.MUSIC, musicHandler);
introScreen.addEventListener(NavigationEvent.START, displayCampaign);
introScreen.addEventListener(NavigationEvent.CREDITS, displayCredits);
introScreen.addEventListener(NavigationEvent.INSTRUCTIONS, displayInstructions);
addEventListener(NavigationEvent.RESTARTLEVEL, restartLevel);
addEventListener(NavigationEvent.NEXTLEVELPLAY, startGame);
addEventListener(NavigationEvent.START, displayCampaign);
addEventListener(NavigationEvent.RESTARTGAME, restartGame);
}
public function displayAchievements(_arg1:NavigationEvent){
achievementsScreen = new Achievements(stageRef, 100, 100);
achievementsScreen.addEventListener(NavigationEvent.INTROSCREEN, displayIntroScreen);
addChild(achievementsScreen);
}
public function endGameLoss(_arg1:NavigationEvent){
trace("Loss");
}
public function startGame(_arg1:NavigationEvent){
Game.level++;
trace(("Game level: " + Game.level));
if (gamePlay){
if (gamePlay.parent){
removeChild(gamePlay);
};
};
trace("Level 12...");
gamePlay = new GamePlay(stageRef, 0, 0, Game.level);
addEventListener(NavigationEvent.NEXTLEVELPLAY, startGame);
addChild(gamePlay);
}
public function musicHandler(_arg1:NavigationEvent){
if (musicFlag == true){
musicFlag = false;
musicChannel.stop();
} else {
musicFlag = true;
musicChannel = myMusic.play(0, 1000);
musicChannel.soundTransform = sTransform;
};
}
public function displayCredits(_arg1:NavigationEvent){
if (gamePlay){
if (gamePlay.parent){
removeChild(gamePlay);
};
};
creditsScreen = new Credits(stageRef, 0, 0);
creditsScreen.addEventListener(NavigationEvent.INTROSCREEN, displayIntroScreen);
addChild(creditsScreen);
}
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){
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);
addEventListener(NavigationEvent.RESTARTLEVEL, restartLevel);
addEventListener(NavigationEvent.NEXTLEVELPLAY, startGame);
addEventListener(NavigationEvent.START, displayCampaign);
}
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 46
//GameData (GameData)
package {
import flash.events.*;
public class GameData {
public static var unitHolder:Array;
public static var enemiesHolder:Array;
public function GameData(){
unitHolder = new Array();
enemiesHolder = new Array();
}
public static function removeAnim(){
var _local1:*;
_local1 = 0;
while (_local1 < enemiesHolder.length) {
enemiesHolder[_local1].removeAnim();
_local1++;
};
_local1 = 0;
while (_local1 < unitHolder.length) {
unitHolder[_local1].removeAnim();
_local1++;
};
}
}
}//package
Section 47
//GamePlay (GamePlay)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.ui.*;
public class GamePlay extends MovieClip {
public var timeBar:TimeBar;
public var levelNum:Number;
public var levelPassedScreen:LevelPassedScreen;
public var stageRef:Stage;
public var gameData:GameData;
public static var score:Score;
public static var level:Level;
public function GamePlay(_arg1:Stage, _arg2:Number, _arg3:Number, _arg4:Number){
x = _arg2;
y = _arg3;
Mouse.hide();
this.levelNum = _arg4;
this.stageRef = _arg1;
gameData = new GameData();
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);
timeBar = new TimeBar();
addChild(timeBar);
score = new Score(10, 10);
addChild(score);
}
public function levelPassed(_arg1:NavigationEvent){
Mouse.show();
timeBar.removeEventListener(Event.ENTER_FRAME, timeBar.expand);
levelPassedScreen = new LevelPassedScreen(0, 0);
addChild(levelPassedScreen);
}
public function nextLevelPlay(_arg1:MouseEvent){
}
public function nextLevelScreen(_arg1:NavigationEvent){
trace("next level");
}
public function levelLost(_arg1:NavigationEvent){
var _local2:RestartScreen;
var _local3:Sound;
if (Game.soundFlag){
_local3 = new alert_30();
_local3.play();
trace("played");
};
Mouse.show();
timeBar.removeEventListener(Event.ENTER_FRAME, timeBar.expand);
removeEventListener(NavigationEvent.VICTORY, levelPassed);
removeEventListener(NavigationEvent.LOSS, levelLost);
_local2 = new RestartScreen(0, 0);
addChild(_local2);
}
}
}//package
Section 48
//Good (Good)
package {
import flash.media.*;
public dynamic class Good extends Sound {
}
}//package
Section 49
//HardBut (HardBut)
package {
import flash.display.*;
public dynamic class HardBut extends SimpleButton {
}
}//package
Section 50
//Hero (Hero)
package {
import flash.events.*;
import flash.display.*;
public class Hero extends MovieClip {
public var type;// = 1
public static var globalX:Number;
public static var globalY:Number;
public static var globalR: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);
}
public function rotate(_arg1:Event){
rotation = (rotation + 3);
}
public function spawnParticles(_arg1:Event){
var _local2:Particle;
if (Math.random() < 0.2){
_local2 = new Particle(x, y);
parent.addChild(_local2);
};
}
public function move(_arg1:Event){
this.x = parent.mouseX;
this.y = parent.mouseY;
globalR = rotation;
globalX = parent.mouseX;
globalY = parent.mouseY;
}
}
}//package
Section 51
//InGameMainMenu (InGameMainMenu)
package {
import flash.events.*;
import flash.display.*;
public class InGameMainMenu extends MovieClip {
public var no:NoButton;
public var yes:YesButton;
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);
parent.addChild(parent.levelPassedScreen.inGameMenu);
if (this.parent){
parent.removeChild(this);
};
}
}
}//package
Section 52
//InGameMenu (InGameMenu)
package {
import flash.events.*;
import flash.display.*;
public class InGameMenu extends MovieClip {
public var musicOn:OnButton;
public var onBut:OnButton;
public var musicOff:OffButton;
public var start:ContinueButton;
public var offBut:OffButton;
public var inGameMainMenu:InGameMainMenu;
public var main:OkButton;
public function InGameMenu(_arg1:Number, _arg2:Number){
start.addEventListener(MouseEvent.CLICK, startClicked);
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, musicOffHandler);
musicOff.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
musicOn.addEventListener(MouseEvent.CLICK, musicOnHandler);
musicOn.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
}
public function onClicked(_arg1:MouseEvent){
Game.soundFlag = true;
}
public function startClicked(_arg1:MouseEvent){
start.removeEventListener(MouseEvent.CLICK, startClicked);
if ((Game.level % 12) != 0){
dispatchEvent(new NavigationEvent(NavigationEvent.NEXTLEVELPLAY));
} else {
trace("Level 13...");
campaignCompleted = new CampaignCompleted(0, 0);
addChild(campaignCompleted);
};
}
public function musicOnHandler(_arg1:MouseEvent){
if (Game.musicFlag == false){
Game.musicFlag = true;
Game.musicChannel = Game.myMusic.play(0, 1000);
};
}
public function offClicked(_arg1:MouseEvent){
Game.soundFlag = false;
}
public function menuClicked(_arg1:MouseEvent){
inGameMainMenu = new InGameMainMenu(0, 0);
parent.addChild(inGameMainMenu);
parent.removeChild(this);
}
public function musicOffHandler(_arg1:MouseEvent){
Game.musicFlag = false;
Game.musicChannel.stop();
}
}
}//package
Section 53
//Instructions (Instructions)
package {
import flash.events.*;
import flash.display.*;
public class Instructions extends MovieClip {
public var startB:SimpleButton;
public var back:AchievementsBack;
public function Instructions(_arg1:Stage, _arg2:Number, _arg3:Number){
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);
}
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 54
//IntroScreen (IntroScreen)
package {
import flash.events.*;
import flash.display.*;
import com.midasplayer.*;
public class IntroScreen extends MovieClip {
public var addTo:SimpleButton;
public var moreGames:SimpleButton;
public var creditsBut:SimpleButton;
public var king:SimpleButton;
public var instructionsBut:SimpleButton;
public var startBut:SimpleButton;
public function IntroScreen(_arg1:Stage, _arg2:Number, _arg3:Number){
x = _arg2;
y = _arg3;
trace(Game.level);
startBut.addEventListener(MouseEvent.CLICK, dispatchStart);
creditsBut.addEventListener(MouseEvent.CLICK, dispatchCredits);
instructionsBut.addEventListener(MouseEvent.CLICK, dispatchInstructions);
moreGames.addEventListener(MouseEvent.CLICK, moreGamesHandler);
addTo.addEventListener(MouseEvent.CLICK, addToSite);
startBut.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
creditsBut.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
instructionsBut.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
moreGames.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
addTo.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
king.addEventListener(MouseEvent.CLICK, kingOpen);
}
public function dispatchStart(_arg1:MouseEvent){
trace("clicked");
parent.removeChild(this);
dispatchEvent(new NavigationEvent(NavigationEvent.START));
}
private function moreGamesHandler(_arg1:MouseEvent):void{
KingAPI.openOtherGamesLink();
}
public function dispatchInstructions(_arg1:MouseEvent){
trace("clicked");
parent.removeChild(this);
dispatchEvent(new NavigationEvent(NavigationEvent.INSTRUCTIONS));
}
private function addToSite(_arg1:MouseEvent):void{
KingAPI.openAddToWebsiteLink();
}
private function kingOpen(_arg1:MouseEvent):void{
KingAPI.openOtherGamesLink();
}
public function dispatchAchievements(_arg1:MouseEvent){
trace("clicked");
parent.removeChild(this);
dispatchEvent(new NavigationEvent(NavigationEvent.ACHIEVEMENTS));
}
public function dispatchCredits(_arg1:MouseEvent){
trace("clicked");
parent.removeChild(this);
dispatchEvent(new NavigationEvent(NavigationEvent.CREDITS));
}
}
}//package
Section 55
//Level (Level)
package {
import flash.events.*;
import flash.display.*;
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);
this.stageRef = _arg1;
}
public function removeListeners(){
removeEventListener(Event.ENTER_FRAME, loop);
}
}
}//package
Section 56
//Level1 (Level1)
package {
import flash.events.*;
import flash.display.*;
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, 300, 400, -10, -4, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 100, 100, 0, 0, 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 Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local7);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 57
//Level10 (Level10)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local9:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
_local4 = new Ball1(_arg1, 300, 100, -10, -4, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 150, 100, 18, -8, false);
addChild(_local5);
_local6 = new Ball3(_arg1, 300, 400, 1, 1, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 100, 400, -10, 1, false);
addChild(_local7);
_local8 = new Ball4(_arg1, 30, 550, 13, 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);
_local11 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local11);
_local12 = new Ball4(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local12);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 58
//Level11 (Level11)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local10:Ball;
var _local11:Ball;
_local4 = new Ball2(_arg1, 350, 100, -2, -6, false);
addChild(_local4);
_local5 = new Ball4(_arg1, 550, 100, 2, -4, false);
addChild(_local5);
_local6 = new Ball4(_arg1, 150, 100, 4, -2, false);
addChild(_local6);
_local7 = new Ball6(_arg1, 300, 400, 1, 1, false);
addChild(_local7);
_local8 = new Ball6(_arg1, 30, 400, 3, 3, false);
addChild(_local8);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local9 = new Ball2(_arg1, 60, 0, -10, -4, true);
hero.addChild(_local9);
_local10 = new Ball4(_arg1, -60, 0, -10, -4, true);
hero.addChild(_local10);
_local11 = new Ball6(_arg1, 0, 60, 0, 0, true);
hero.addChild(_local11);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 59
//Level12 (Level12)
package {
import flash.events.*;
import flash.display.*;
public class Level12 extends Level {
public var hero:Hero;
public function Level12(_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;
_local4 = new Ball1(_arg1, 300, 100, -10, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 500, 50, -10, -4, false);
addChild(_local5);
_local6 = new Ball1(_arg1, 550, 450, -10, -14, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 150, 100, 0, 0, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 300, 400, 1, 1, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 30, 400, 3, 3, false);
addChild(_local9);
_local10 = new Ball2(_arg1, 30, 40, 5, 3, false);
addChild(_local10);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local11 = new Ball1(_arg1, 100, 0, -10, -4, true);
hero.addChild(_local11);
_local12 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local12);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 60
//Level13 (Level13)
package {
import flash.events.*;
import flash.display.*;
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;
_local4 = new Ball1(_arg1, 400, 50, -9, -3, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 150, 100, 9, -4, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 550, 100, 1, -8, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 350, 400, 1, 1, false);
addChild(_local7);
_local8 = new Ball1(_arg1, 30, 400, 3, 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);
_local11 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local11);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 61
//Level14 (Level14)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local11:Ball;
var _local12: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);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local10 = new Ball2(_arg1, 0, 50, -10, -4, true);
hero.addChild(_local10);
_local11 = new Ball4(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local11);
_local12 = new Ball5(_arg1, 50, 0, 0, 0, true);
hero.addChild(_local12);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 62
//Level15 (Level15)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local10:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
_local4 = new Ball1(_arg1, 300, 100, -5, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 430, 530, -1, -4, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 550, 100, 1, -8, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 300, 400, 1, 1, false);
addChild(_local7);
_local8 = new Ball3(_arg1, 30, 400, 3, 3, false);
addChild(_local8);
_local9 = new Ball4(_arg1, 430, 100, 4, 3, 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);
_local13 = new Ball4(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local13);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 63
//Level16 (Level16)
package {
import flash.events.*;
import flash.display.*;
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, 300, 100, -6, -4, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 550, 100, 1, -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, -5, 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 64
//Level17 (Level17)
package {
import flash.events.*;
import flash.display.*;
public class Level17 extends Level {
public var hero:Hero;
public function Level17(_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;
_local4 = new Ball1(_arg1, 300, 100, -3, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 550, 50, -6, -4, false);
addChild(_local5);
_local6 = new Ball1(_arg1, 50, 450, 4, -4, false);
addChild(_local6);
_local7 = new Ball1(_arg1, 550, 450, -3, -4, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 550, 550, 1, 2, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 30, 400, 1, 4, false);
addChild(_local9);
_local10 = new Ball2(_arg1, 30, 40, 6, 3, false);
addChild(_local10);
_local11 = new Ball2(_arg1, 100, 100, 3, 12, false);
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);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 65
//Level18 (Level18)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local10:Ball;
var _local11:Ball;
_local4 = new Ball1(_arg1, 300, 100, -5, -2, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 150, 100, 9, -4, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 550, 100, 5, -8, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 300, 400, 1, 7, false);
addChild(_local7);
_local8 = new Ball3(_arg1, 30, 400, 8, 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);
_local11 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local11);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 66
//Level19 (Level19)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local12:Ball;
var _local13:Ball;
_local4 = new Ball4(_arg1, 300, 100, -5, -4, false);
addChild(_local4);
_local5 = new Ball4(_arg1, 300, 500, -6, -4, false);
addChild(_local5);
_local6 = new Ball4(_arg1, 300, 50, -7, -5, false);
addChild(_local6);
_local7 = new Ball5(_arg1, 150, 100, 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);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local11 = new Ball4(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local11);
_local12 = new Ball6(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local12);
_local13 = new Ball5(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local13);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 67
//Level2 (Level2)
package {
import flash.events.*;
import flash.display.*;
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 Ball3(_arg1, 300, 100, -10, -4, false);
addChild(_local4);
_local5 = new Ball5(_arg1, 300, 400, 1, 1, false);
addChild(_local5);
_local6 = new Ball5(_arg1, 30, 400, 3, 3, false);
addChild(_local6);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local7 = new Ball3(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local7);
_local8 = new Ball5(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local8);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 68
//Level20 (Level20)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14: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, 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, 430, 400, -5, 8, 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);
_local13 = new Ball4(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local13);
_local14 = new Ball5(_arg1, 60, 60, 0, 0, true);
hero.addChild(_local14);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 69
//Level21 (Level21)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local13: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);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local12 = new Ball3(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local12);
_local13 = new Ball4(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local13);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 70
//Level22 (Level22)
package {
import flash.events.*;
import flash.display.*;
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;
_local4 = new Ball1(_arg1, 300, 100, -5, -4, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 150, 100, 9, -4, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 550, 100, 10, -8, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 50, 100, 7, -5, false);
addChild(_local7);
_local8 = new Ball6(_arg1, 300, 400, 1, 9, false);
addChild(_local8);
_local9 = new Ball6(_arg1, 30, 400, 8, 3, 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 Ball6(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local12);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 71
//Level23 (Level23)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local13:Ball;
var _local14: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);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local12 = new Ball1(_arg1, 70, 0, -10, -4, true);
hero.addChild(_local12);
_local13 = new Ball2(_arg1, -70, 0, -10, -4, true);
hero.addChild(_local13);
_local14 = new Ball3(_arg1, 0, 70, 0, 0, true);
hero.addChild(_local14);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 72
//Level24 (Level24)
package {
import flash.events.*;
import flash.display.*;
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: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, -5, -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, 5, -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 Ball4(_arg1, 430, 100, 5, 3, false);
addChild(_local10);
_local11 = new Ball5(_arg1, 430, 400, -5, 2, false);
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 73
//Level25 (Level25)
package {
import flash.events.*;
import flash.display.*;
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;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
_local4 = new Ball1(_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 Ball1(_arg1, 550, 400, -4, -2, false);
addChild(_local7);
_local8 = new Ball1(_arg1, 550, 50, 6, -4, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 150, 100, 3, 3, false);
addChild(_local9);
_local10 = new Ball1(_arg1, 300, 400, 1, 1, false);
addChild(_local10);
_local11 = new Ball2(_arg1, 30, 400, 3, 3, false);
addChild(_local11);
_local12 = new Ball2(_arg1, 30, 40, 5, 3, false);
addChild(_local12);
_local13 = new Ball2(_arg1, 100, 100, 3, 6, false);
addChild(_local13);
_local14 = new Ball2(_arg1, 100, 400, 3, 6, false);
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);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 74
//Level26 (Level26)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local12:Ball;
var _local13:Ball;
_local4 = new Ball1(_arg1, 300, 100, -10, -4, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 150, 100, 18, -8, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 550, 100, 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);
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);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 75
//Level27 (Level27)
package {
import flash.events.*;
import flash.display.*;
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;
var _local14:Ball;
var _local15:Ball;
_local4 = new Ball1(_arg1, 300, 100, 6, 6, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 300, 500, -12, -4, false);
addChild(_local5);
_local6 = new Ball1(_arg1, 300, 50, -5, -4, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 150, 100, 15, -6, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 550, 100, 1, -8, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 50, 100, 1, -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, 13, 3, false);
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 76
//Level28 (Level28)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17: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, 18, -8, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 100, 10, -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, -5, 8, false);
addChild(_local11);
_local12 = new Ball5(_arg1, 430, 400, -5, 8, false);
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 77
//Level29 (Level29)
package {
import flash.events.*;
import flash.display.*;
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: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, -5, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 300, 500, -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, 430, 400, -5, 8, false);
addChild(_local9);
_local10 = new Ball6(_arg1, 20, 400, -3, 5, false);
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);
_local15 = new Ball5(_arg1, 60, 60, 0, 0, true);
hero.addChild(_local15);
_local16 = new Ball6(_arg1, -60, -60, 0, 0, true);
hero.addChild(_local16);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 78
//Level3 (Level3)
package {
import flash.events.*;
import flash.display.*;
public class Level3 extends Level {
public var hero:Hero;
public function Level3(_arg1:Stage, _arg2:Number, _arg3:Number){
var _local4:Ball;
var _local5:Ball;
var _local6:Ball;
var _local7:Ball;
var _local8:Ball;
var _local9:Ball;
_local4 = new Ball4(_arg1, 300, 100, -10, -4, false);
addChild(_local4);
_local5 = new Ball6(_arg1, 150, 100, 2, 2, false);
addChild(_local5);
_local6 = new Ball6(_arg1, 300, 400, 1, 1, false);
addChild(_local6);
_local7 = new Ball6(_arg1, 30, 400, 3, 3, false);
addChild(_local7);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local8 = new Ball4(_arg1, 100, 0, -10, -4, true);
hero.addChild(_local8);
_local9 = new Ball6(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local9);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 79
//Level30 (Level30)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local11:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
_local4 = new Ball4(_arg1, 100, 100, -1, -4, false);
addChild(_local4);
_local5 = new Ball5(_arg1, 500, 50, -3, 4, false);
addChild(_local5);
_local6 = new Ball4(_arg1, 50, 400, -2, -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 Ball5(_arg1, 150, 100, 3, 3, false);
addChild(_local9);
_local10 = new Ball4(_arg1, 300, 400, 1, 1, false);
addChild(_local10);
_local11 = new Ball4(_arg1, 30, 400, 3, 3, false);
addChild(_local11);
_local12 = new Ball5(_arg1, 30, 40, 5, 3, false);
addChild(_local12);
_local13 = new Ball4(_arg1, 100, 100, 3, 6, false);
addChild(_local13);
_local14 = new Ball5(_arg1, 100, 400, 3, 4, false);
addChild(_local14);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local15 = new Ball4(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local15);
_local16 = new Ball5(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local16);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 80
//Level31 (Level31)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local14:Ball;
_local4 = new Ball1(_arg1, 200, 100, -7, 3, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 500, 500, -5, -2, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 100, 1, -8, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 100, 4, -8, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 50, 100, 3, -2, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 200, 100, 3, -6, false);
addChild(_local9);
_local10 = new Ball3(_arg1, 300, 400, 1, 9, false);
addChild(_local10);
_local11 = new Ball3(_arg1, 30, 400, 8, 3, false);
addChild(_local11);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local12 = new Ball1(_arg1, 70, 0, -10, -4, true);
hero.addChild(_local12);
_local13 = new Ball2(_arg1, -70, 0, -10, -4, true);
hero.addChild(_local13);
_local14 = new Ball3(_arg1, 0, 70, 0, 0, true);
hero.addChild(_local14);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 81
//Level32 (Level32)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local16:Ball;
_local4 = new Ball5(_arg1, 300, 100, -5, -4, false);
addChild(_local4);
_local5 = new Ball5(_arg1, 300, 500, -2, -6, false);
addChild(_local5);
_local6 = new Ball5(_arg1, 300, 50, 6, -4, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 150, 100, 4, -8, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 550, 100, 3, -6, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 50, 100, 3, -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, 8, 3, false);
addChild(_local12);
_local13 = new Ball3(_arg1, 30, 40, 3, -7, false);
addChild(_local13);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local14 = new Ball5(_arg1, 70, 0, -10, -4, true);
hero.addChild(_local14);
_local15 = new Ball2(_arg1, -70, 0, -10, -4, true);
hero.addChild(_local15);
_local16 = new Ball3(_arg1, 0, 70, 0, 0, true);
hero.addChild(_local16);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 82
//Level33 (Level33)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17:Ball;
var _local18:Ball;
_local4 = new Ball5(_arg1, 400, 10, -2, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 100, 550, -1, -2, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 10, 2, -2, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 20, 2, -3, false);
addChild(_local7);
_local8 = new Ball4(_arg1, 520, 580, 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, 5, 3, false);
addChild(_local11);
_local12 = new Ball5(_arg1, 430, 480, -5, 8, false);
addChild(_local12);
_local13 = new Ball1(_arg1, 430, 430, -1, 1, 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);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 83
//Level34 (Level34)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local14:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17: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, 18, -8, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 100, 10, -8, false);
addChild(_local7);
_local8 = new Ball3(_arg1, 30, 400, 3, 3, false);
addChild(_local8);
_local9 = new Ball4(_arg1, 430, 100, 5, 3, false);
addChild(_local9);
_local10 = new Ball5(_arg1, 430, 400, -5, 8, false);
addChild(_local10);
_local11 = new Ball6(_arg1, 20, 400, -3, 5, false);
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);
_local17 = new Ball6(_arg1, -60, -60, 0, 0, true);
hero.addChild(_local17);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 84
//Level35 (Level35)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local17: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 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 Ball3(_arg1, 100, 100, 3, 12, false);
addChild(_local14);
_local15 = new Ball2(_arg1, 100, 400, 3, 12, false);
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);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 85
//Level36 (Level36)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local17:Ball;
_local4 = new Ball5(_arg1, 300, 100, -7, -5, false);
addChild(_local4);
_local5 = new Ball5(_arg1, 300, 500, -2, -4, false);
addChild(_local5);
_local6 = new Ball5(_arg1, 300, 50, -8, -6, false);
addChild(_local6);
_local7 = new Ball1(_arg1, 150, 100, 15, -4, false);
addChild(_local7);
_local8 = new Ball1(_arg1, 550, 100, 3, -8, false);
addChild(_local8);
_local9 = new Ball1(_arg1, 50, 100, 3, -4, false);
addChild(_local9);
_local10 = new Ball1(_arg1, 50, 100, 8, -4, false);
addChild(_local10);
_local11 = new Ball3(_arg1, 300, 400, 5, 1, false);
addChild(_local11);
_local12 = new Ball3(_arg1, 30, 400, 3, 7, false);
addChild(_local12);
_local13 = new Ball3(_arg1, 30, 40, 13, 3, false);
addChild(_local13);
_local14 = new Ball3(_arg1, 30, 40, 3, -7, false);
addChild(_local14);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local15 = new Ball5(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local15);
_local16 = new Ball1(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local16);
_local17 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local17);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 86
//Level37 (Level37)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local18: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 Ball1(_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 Ball2(_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);
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, -10, -4, true);
hero.addChild(_local18);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 87
//Level38 (Level38)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17:Ball;
_local4 = new Ball1(_arg1, 300, 100, -10, -4, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 300, 100, -2, -14, false);
addChild(_local5);
_local6 = new Ball4(_arg1, 500, 100, -6, -4, false);
addChild(_local6);
_local7 = new Ball4(_arg1, 350, 100, 2, -4, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 150, 100, 5, -8, false);
addChild(_local8);
_local9 = new Ball3(_arg1, 550, 100, 2, -8, false);
addChild(_local9);
_local10 = new Ball1(_arg1, 50, 100, -10, -8, false);
addChild(_local10);
_local11 = new Ball2(_arg1, 200, 100, 5, -8, false);
addChild(_local11);
_local12 = new Ball3(_arg1, 300, 400, 1, 9, false);
addChild(_local12);
_local13 = new Ball3(_arg1, 30, 400, 8, 3, false);
addChild(_local13);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local14 = new Ball1(_arg1, 30, 0, -10, -4, true);
hero.addChild(_local14);
_local15 = new Ball2(_arg1, -30, 0, -10, -4, true);
hero.addChild(_local15);
_local16 = new Ball3(_arg1, 0, 30, 0, 0, true);
hero.addChild(_local16);
_local17 = new Ball4(_arg1, 0, -30, 0, 0, true);
hero.addChild(_local17);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 88
//Level39 (Level39)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local17:Ball;
_local4 = new Ball1(_arg1, 400, 100, -3, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 120, 500, -2, -2, false);
addChild(_local5);
_local6 = new Ball1(_arg1, 500, 50, -1, -4, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 550, 50, -9, -4, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 150, 100, 9, -3, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 550, 100, 1, -8, 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, 400, 1, 1, false);
addChild(_local12);
_local13 = new Ball3(_arg1, 30, 400, 3, 3, false);
addChild(_local13);
_local14 = new Ball3(_arg1, 30, 40, 13, 3, false);
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 89
//Level4 (Level4)
package {
import flash.events.*;
import flash.display.*;
public class Level4 extends Level {
public var hero:Hero;
public function Level4(_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 Ball1(_arg1, 300, 100, -10, -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 Ball3(_arg1, 30, 400, 5, 3, false);
addChild(_local7);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local8 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local8);
_local9 = new Ball2(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local9);
_local10 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local10);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 90
//Level40 (Level40)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local16:Ball;
var _local17:Ball;
var _local18:Ball;
_local4 = new Ball1(_arg1, 300, 100, -2, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 300, 500, -1, -4, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 100, 8, -8, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 100, 5, -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 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, 8, 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);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 91
//Level41 (Level41)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17: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, 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);
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);
_local17 = new Ball6(_arg1, -60, -60, 0, 0, true);
hero.addChild(_local17);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 92
//Level42 (Level42)
package {
import flash.events.*;
import flash.display.*;
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;
_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, 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, 16, -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, 9, 7, false);
addChild(_local16);
_local17 = new Ball5(_arg1, 10, 40, 13, 14, false);
addChild(_local17);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local18 = new Ball4(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local18);
_local19 = new Ball5(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local19);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 93
//Level43 (Level43)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local12:Ball;
var _local13:Ball;
var _local14:Ball;
_local4 = new Ball1(_arg1, 200, 100, -7, 3, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 500, 500, -5, -2, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 100, 1, -8, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 100, 4, -8, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 50, 100, 3, -2, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 200, 100, 3, -6, false);
addChild(_local9);
_local10 = new Ball3(_arg1, 300, 400, 1, 9, false);
addChild(_local10);
_local11 = new Ball3(_arg1, 30, 400, 8, 3, false);
addChild(_local11);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local12 = new Ball1(_arg1, 70, 0, -10, -4, true);
hero.addChild(_local12);
_local13 = new Ball2(_arg1, -70, 0, -10, -4, true);
hero.addChild(_local13);
_local14 = new Ball3(_arg1, 0, 70, 0, 0, true);
hero.addChild(_local14);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 94
//Level44 (Level44)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local16:Ball;
var _local17:Ball;
_local4 = new Ball5(_arg1, 100, 100, -5, -2, false);
addChild(_local4);
_local5 = new Ball5(_arg1, 500, 500, -2, -5, false);
addChild(_local5);
_local6 = new Ball5(_arg1, 300, 50, 5, -4, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 150, 100, 3, -8, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 550, 100, 2, -6, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 50, 100, 3, -4, false);
addChild(_local9);
_local10 = new Ball2(_arg1, 250, 200, 6, -4, false);
addChild(_local10);
_local11 = new Ball3(_arg1, 300, 400, 6, 6, false);
addChild(_local11);
_local12 = new Ball3(_arg1, 30, 400, 3, 8, false);
addChild(_local12);
_local13 = new Ball3(_arg1, 30, 40, 8, 3, false);
addChild(_local13);
_local14 = new Ball3(_arg1, 30, 40, 9, -7, false);
addChild(_local14);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local15 = new Ball5(_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 95
//Level45 (Level45)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local18:Ball;
var _local19:Ball;
var _local20:Ball;
_local4 = new Ball5(_arg1, 400, 10, -2, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 100, 550, -1, -2, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 10, 2, -2, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 20, 2, -3, false);
addChild(_local7);
_local8 = new Ball4(_arg1, 520, 580, 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, 5, 3, false);
addChild(_local11);
_local12 = new Ball5(_arg1, 430, 480, -5, 8, false);
addChild(_local12);
_local13 = new Ball1(_arg1, 430, 430, -1, 1, false);
addChild(_local13);
_local14 = new Ball5(_arg1, 30, 580, -12, 8, false);
addChild(_local14);
_local15 = new Ball5(_arg1, 530, 80, -7, 8, false);
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 96
//Level46 (Level46)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local17:Ball;
var _local18:Ball;
var _local19:Ball;
_local4 = new Ball1(_arg1, 300, 100, -7, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 300, 550, -1, -6, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 100, 5, -6, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 100, 10, -8, false);
addChild(_local7);
_local8 = new Ball3(_arg1, 300, 400, 1, 1, false);
addChild(_local8);
_local9 = new Ball3(_arg1, 30, 400, 5, 3, false);
addChild(_local9);
_local10 = new Ball4(_arg1, 430, 100, 5, 1, false);
addChild(_local10);
_local11 = new Ball5(_arg1, 430, 400, -5, 2, false);
addChild(_local11);
_local12 = new Ball5(_arg1, 430, 400, -5, 3, false);
addChild(_local12);
_local13 = new Ball6(_arg1, 20, 400, -3, 5, false);
addChild(_local13);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local14 = new Ball1(_arg1, 40, 0, -10, -4, true);
hero.addChild(_local14);
_local15 = new Ball2(_arg1, -40, 0, -10, -4, true);
hero.addChild(_local15);
_local16 = new Ball3(_arg1, 0, 40, 0, 0, true);
hero.addChild(_local16);
_local17 = new Ball4(_arg1, 0, -40, 0, 0, true);
hero.addChild(_local17);
_local18 = new Ball5(_arg1, 50, 50, 0, 0, true);
hero.addChild(_local18);
_local19 = new Ball6(_arg1, -50, -50, 0, 0, true);
hero.addChild(_local19);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 97
//Level47 (Level47)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17: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, 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 Ball2(_arg1, 100, 400, 3, 11, false);
addChild(_local14);
_local15 = new Ball3(_arg1, 500, 550, 2, 5, false);
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);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 98
//Level48 (Level48)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local19: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);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local17 = new Ball4(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local17);
_local18 = new Ball1(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local18);
_local19 = new Ball3(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local19);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 99
//Level49 (Level49)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local19:Ball;
var _local20:Ball;
_local4 = new Ball1(_arg1, 500, 100, -3, -6, false);
addChild(_local4);
_local5 = new Ball5(_arg1, 100, 50, -4, -6, false);
addChild(_local5);
_local6 = new Ball4(_arg1, 50, 450, -5, -8, false);
addChild(_local6);
_local7 = new Ball1(_arg1, 550, 400, -4, -2, false);
addChild(_local7);
_local8 = new Ball5(_arg1, 550, 50, 6, -4, false);
addChild(_local8);
_local9 = new Ball4(_arg1, 150, 100, 3, 3, false);
addChild(_local9);
_local10 = new Ball1(_arg1, 590, 400, 1, 1, false);
addChild(_local10);
_local11 = new Ball5(_arg1, 30, 400, 3, 3, false);
addChild(_local11);
_local12 = new Ball4(_arg1, 30, 40, 5, 3, false);
addChild(_local12);
_local13 = new Ball1(_arg1, 100, 100, 3, 6, false);
addChild(_local13);
_local14 = new Ball4(_arg1, 100, 400, 3, 6, false);
addChild(_local14);
_local15 = new Ball5(_arg1, 10, 10, 5, 6, false);
addChild(_local15);
_local16 = new Ball5(_arg1, 200, 10, 3, 2, false);
addChild(_local16);
_local17 = new Ball5(_arg1, 10, 480, 4, 6, false);
addChild(_local17);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local18 = new Ball1(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local18);
_local19 = new Ball4(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local19);
_local20 = new Ball5(_arg1, 0, 50, -10, -4, true);
hero.addChild(_local20);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 100
//Level5 (Level5)
package {
import flash.events.*;
import flash.display.*;
public class Level5 extends Level {
public var hero:Hero;
public function Level5(_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 Ball5(_arg1, 300, 100, -10, -4, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 150, 100, -1, 3, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 300, 400, 1, 1, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 30, 400, 3, 3, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 30, 40, 5, 3, false);
addChild(_local8);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local9 = new Ball5(_arg1, 100, 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 101
//Level50 (Level50)
package {
import flash.events.*;
import flash.display.*;
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;
var _local17:Ball;
var _local18:Ball;
var _local19:Ball;
_local4 = new Ball1(_arg1, 300, 100, -10, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 500, 100, -2, -6, false);
addChild(_local5);
_local6 = new Ball1(_arg1, 300, 100, 5, 3, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 300, 100, -2, -14, false);
addChild(_local7);
_local8 = new Ball4(_arg1, 500, 100, -6, -4, false);
addChild(_local8);
_local9 = new Ball4(_arg1, 350, 100, 2, -4, false);
addChild(_local9);
_local10 = new Ball2(_arg1, 150, 100, 5, -8, false);
addChild(_local10);
_local11 = new Ball3(_arg1, 550, 100, 2, -8, false);
addChild(_local11);
_local12 = new Ball1(_arg1, 50, 100, -10, -8, false);
addChild(_local12);
_local13 = new Ball2(_arg1, 200, 100, 5, -8, false);
addChild(_local13);
_local14 = new Ball3(_arg1, 300, 400, 1, 9, false);
addChild(_local14);
_local15 = new Ball3(_arg1, 30, 400, 8, 3, false);
addChild(_local15);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local16 = new Ball4(_arg1, 30, 0, -10, -4, true);
hero.addChild(_local16);
_local17 = new Ball1(_arg1, -30, 0, -10, -4, true);
hero.addChild(_local17);
_local18 = new Ball3(_arg1, 0, 30, 0, 0, true);
hero.addChild(_local18);
_local19 = new Ball2(_arg1, 0, -30, 0, 0, true);
hero.addChild(_local19);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 102
//Level51 (Level51)
package {
import flash.events.*;
import flash.display.*;
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: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;
_local4 = new Ball4(_arg1, 450, 120, -5, -4, false);
addChild(_local4);
_local5 = new Ball4(_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 Ball5(_arg1, 150, 100, 7, -2, false);
addChild(_local10);
_local11 = new Ball6(_arg1, 550, 100, 8, -1, false);
addChild(_local11);
_local12 = new Ball4(_arg1, 50, 100, 1, -4, false);
addChild(_local12);
_local13 = new Ball5(_arg1, 30, 10, 3, -4, false);
addChild(_local13);
_local14 = new Ball6(_arg1, 300, 400, 1, 5, false);
addChild(_local14);
_local15 = new Ball4(_arg1, 30, 400, 3, 3, false);
addChild(_local15);
_local16 = new Ball5(_arg1, 30, 40, 5, 3, false);
addChild(_local16);
_local17 = new Ball5(_arg1, 420, 500, 2, 2, false);
addChild(_local17);
_local18 = new Ball5(_arg1, 150, 130, 4, 7, false);
addChild(_local18);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local19 = new Ball4(_arg1, 70, 0, -10, -4, true);
hero.addChild(_local19);
_local20 = new Ball5(_arg1, -70, 0, -10, -4, true);
hero.addChild(_local20);
_local21 = new Ball6(_arg1, 0, 70, 0, 0, true);
hero.addChild(_local21);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 103
//Level52 (Level52)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local15:Ball;
var _local16:Ball;
var _local17:Ball;
var _local18:Ball;
var _local19:Ball;
_local4 = new Ball1(_arg1, 300, 100, -2, -4, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 300, 500, -1, -4, false);
addChild(_local5);
_local6 = new Ball1(_arg1, 150, 100, 8, -8, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 100, 5, -8, false);
addChild(_local7);
_local8 = new Ball4(_arg1, 300, 400, 1, 1, false);
addChild(_local8);
_local9 = new Ball3(_arg1, 30, 400, 3, 3, false);
addChild(_local9);
_local10 = new Ball1(_arg1, 30, 590, 1, 2, false);
addChild(_local10);
_local11 = new Ball4(_arg1, 430, 100, 5, 3, false);
addChild(_local11);
_local12 = new Ball3(_arg1, 430, 400, -5, 8, false);
addChild(_local12);
_local13 = new Ball5(_arg1, 530, 400, -5, 8, false);
addChild(_local13);
_local14 = new Ball5(_arg1, 380, 450, 3, 6, false);
addChild(_local14);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local15 = new Ball2(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local15);
_local16 = new Ball1(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local16);
_local17 = new Ball5(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local17);
_local18 = new Ball3(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local18);
_local19 = new Ball4(_arg1, 60, 60, 0, 0, true);
hero.addChild(_local19);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 104
//Level53 (Level53)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local19:Ball;
var _local20:Ball;
var _local21:Ball;
var _local22: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, 5, -8, false);
addChild(_local7);
_local8 = new Ball3(_arg1, 300, 400, 2, 7, false);
addChild(_local8);
_local9 = new Ball3(_arg1, 30, 400, 3, 5, false);
addChild(_local9);
_local10 = new Ball4(_arg1, 430, 100, 5, 3, false);
addChild(_local10);
_local11 = new Ball5(_arg1, 530, 450, -5, 4, false);
addChild(_local11);
_local12 = new Ball5(_arg1, 30, 80, -5, 2, false);
addChild(_local12);
_local13 = new Ball6(_arg1, 20, 400, -5, 5, false);
addChild(_local13);
_local14 = new Ball6(_arg1, 120, 370, 3, 1, false);
addChild(_local14);
_local15 = new Ball6(_arg1, 220, 430, 2, 4, false);
addChild(_local15);
_local16 = new Ball6(_arg1, 520, 460, -3, 6, false);
addChild(_local16);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local17 = new Ball1(_arg1, 35, 0, -10, -4, true);
hero.addChild(_local17);
_local18 = new Ball2(_arg1, -35, 0, -10, -4, true);
hero.addChild(_local18);
_local19 = new Ball3(_arg1, 0, 35, 0, 0, true);
hero.addChild(_local19);
_local20 = new Ball4(_arg1, 0, -35, 0, 0, true);
hero.addChild(_local20);
_local21 = new Ball5(_arg1, 40, 40, 0, 0, true);
hero.addChild(_local21);
_local22 = new Ball6(_arg1, -40, -40, 0, 0, true);
hero.addChild(_local22);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 105
//Level54 (Level54)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local21: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, 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, 16, -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, 9, 7, false);
addChild(_local16);
_local17 = new Ball5(_arg1, 10, 40, 13, 14, false);
addChild(_local17);
_local18 = new Ball6(_arg1, 140, 40, 3, 4, false);
addChild(_local18);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local19 = new Ball4(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local19);
_local20 = new Ball5(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local20);
_local21 = new Ball6(_arg1, 0, 35, -10, -4, true);
hero.addChild(_local21);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 106
//Level55 (Level55)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local17:Ball;
var _local18:Ball;
_local4 = new Ball1(_arg1, 200, 100, -7, 3, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 100, 100, -6, 3, false);
addChild(_local5);
_local6 = new Ball1(_arg1, 500, 500, -5, -2, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 150, 100, 1, -8, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 550, 100, 4, -8, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 50, 100, 3, -2, false);
addChild(_local9);
_local10 = new Ball2(_arg1, 200, 100, 3, -6, false);
addChild(_local10);
_local11 = new Ball2(_arg1, 200, 100, 3, 5, false);
addChild(_local11);
_local12 = new Ball3(_arg1, 300, 400, 1, 9, false);
addChild(_local12);
_local13 = new Ball3(_arg1, 30, 400, 8, 3, false);
addChild(_local13);
_local14 = new Ball3(_arg1, 30, 400, 8, 7, false);
addChild(_local14);
_local15 = new Ball3(_arg1, 530, 400, 2, 2, false);
addChild(_local15);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local16 = new Ball1(_arg1, 70, 0, -10, -4, true);
hero.addChild(_local16);
_local17 = new Ball2(_arg1, -70, 0, -10, -4, true);
hero.addChild(_local17);
_local18 = new Ball3(_arg1, 0, 70, 0, 0, true);
hero.addChild(_local18);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 107
//Level56 (Level56)
package {
import flash.events.*;
import flash.display.*;
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: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;
var _local23:Ball;
_local4 = new Ball5(_arg1, 100, 100, -5, -2, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 500, 500, -2, -5, false);
addChild(_local5);
_local6 = new Ball3(_arg1, 300, 50, 5, -4, false);
addChild(_local6);
_local7 = new Ball5(_arg1, 390, 50, 3, -5, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 150, 100, 3, -8, false);
addChild(_local8);
_local9 = new Ball3(_arg1, 550, 100, 2, -6, false);
addChild(_local9);
_local10 = new Ball5(_arg1, 50, 100, 3, -4, false);
addChild(_local10);
_local11 = new Ball2(_arg1, 250, 200, 6, -4, false);
addChild(_local11);
_local12 = new Ball3(_arg1, 300, 400, 6, 6, false);
addChild(_local12);
_local13 = new Ball5(_arg1, 30, 400, 3, 8, false);
addChild(_local13);
_local14 = new Ball3(_arg1, 30, 40, 8, 3, false);
addChild(_local14);
_local15 = new Ball2(_arg1, 30, 40, 9, -7, false);
addChild(_local15);
_local16 = new Ball3(_arg1, 80, 40, 4, -9, false);
addChild(_local16);
_local17 = new Ball2(_arg1, 180, 40, 4, -3, false);
addChild(_local17);
_local18 = new Ball3(_arg1, 580, 40, 4, 5, false);
addChild(_local18);
_local19 = new Ball5(_arg1, 80, 540, 3, 7, false);
addChild(_local18);
_local20 = new Ball2(_arg1, 80, 590, 1, 2, false);
addChild(_local20);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local21 = new Ball5(_arg1, 70, 0, -10, -4, true);
hero.addChild(_local21);
_local22 = new Ball2(_arg1, -70, 0, -10, -4, true);
hero.addChild(_local22);
_local23 = new Ball3(_arg1, 0, 70, 0, 0, true);
hero.addChild(_local23);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 108
//Level57 (Level57)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local20:Ball;
var _local21:Ball;
var _local22:Ball;
var _local23:Ball;
var _local24:Ball;
_local4 = new Ball1(_arg1, 450, 10, -3, -4, false);
addChild(_local4);
_local5 = new Ball5(_arg1, 100, 550, -3, -2, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 150, 10, 2, -2, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 550, 20, 2, -3, false);
addChild(_local7);
_local8 = new Ball4(_arg1, 520, 580, 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, 5, 3, false);
addChild(_local11);
_local12 = new Ball5(_arg1, 430, 480, -5, 8, false);
addChild(_local12);
_local13 = new Ball1(_arg1, 430, 430, -1, 1, false);
addChild(_local13);
_local14 = new Ball5(_arg1, 30, 580, -12, 8, false);
addChild(_local14);
_local15 = new Ball5(_arg1, 530, 80, -7, 8, false);
addChild(_local15);
_local16 = new Ball2(_arg1, 530, 80, -1, 1, false);
addChild(_local16);
_local17 = new Ball3(_arg1, 130, 130, -9, 6, false);
addChild(_local17);
_local18 = new Ball4(_arg1, 180, 20, -4, 5, false);
addChild(_local18);
_local19 = new Ball1(_arg1, 530, 450, -3, 2, false);
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);
_local23 = new Ball4(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local23);
_local24 = new Ball5(_arg1, 60, 60, 0, 0, true);
hero.addChild(_local24);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 109
//Level58 (Level58)
package {
import flash.events.*;
import flash.display.*;
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:Ball;
var _local17:Ball;
var _local18:Ball;
var _local19:Ball;
var _local20:Ball;
var _local21:Ball;
var _local22:Ball;
var _local23:Ball;
_local4 = new Ball1(_arg1, 300, 100, -7, -4, false);
addChild(_local4);
_local5 = new Ball1(_arg1, 500, 500, -3, -2, false);
addChild(_local5);
_local6 = new Ball1(_arg1, 300, 550, -1, -6, false);
addChild(_local6);
_local7 = new Ball2(_arg1, 150, 100, 5, -6, false);
addChild(_local7);
_local8 = new Ball2(_arg1, 550, 100, 10, -8, false);
addChild(_local8);
_local9 = new Ball2(_arg1, 580, 100, 3, -4, false);
addChild(_local9);
_local10 = new Ball3(_arg1, 300, 400, 1, 1, false);
addChild(_local10);
_local11 = new Ball3(_arg1, 30, 400, 5, 3, false);
addChild(_local11);
_local12 = new Ball3(_arg1, 30, 480, 7, 1, false);
addChild(_local12);
_local13 = new Ball4(_arg1, 430, 100, 5, 1, false);
addChild(_local13);
_local14 = new Ball5(_arg1, 430, 400, -5, 2, false);
addChild(_local14);
_local15 = new Ball5(_arg1, 430, 400, -5, 3, false);
addChild(_local15);
_local16 = new Ball6(_arg1, 20, 400, 5, 5, false);
addChild(_local16);
_local17 = new Ball6(_arg1, 20, 550, 6, 5, false);
addChild(_local17);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local18 = new Ball1(_arg1, 40, 0, -10, -4, true);
hero.addChild(_local18);
_local19 = new Ball2(_arg1, -40, 0, -10, -4, true);
hero.addChild(_local19);
_local20 = new Ball3(_arg1, 0, 40, 0, 0, true);
hero.addChild(_local20);
_local21 = new Ball4(_arg1, 0, -40, 0, 0, true);
hero.addChild(_local21);
_local22 = new Ball5(_arg1, 50, 50, 0, 0, true);
hero.addChild(_local22);
_local23 = new Ball6(_arg1, -50, -50, 0, 0, true);
hero.addChild(_local23);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 110
//Level59 (Level59)
package {
import flash.events.*;
import flash.display.*;
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
//Level6 (Level6)
package {
import flash.events.*;
import flash.display.*;
public class Level6 extends Level {
public var hero:Hero;
public function Level6(_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, 300, 100, -10, -4, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 150, 100, 4, -8, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 50, 10, 5, -2, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 300, 400, 1, 1, false);
addChild(_local7);
_local8 = new Ball4(_arg1, 30, 400, 3, 3, false);
addChild(_local8);
_local9 = new Ball4(_arg1, 30, 40, 3, 3, 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);
_local13 = new Ball4(_arg1, 0, -50, 0, 0, true);
hero.addChild(_local13);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 112
//Level60 (Level60)
package {
import flash.events.*;
import flash.display.*;
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 113
//Level7 (Level7)
package {
import flash.events.*;
import flash.display.*;
public class Level7 extends Level {
public var hero:Hero;
public function Level7(_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;
_local4 = new Ball1(_arg1, 500, 100, -6, -4, false);
addChild(_local4);
_local5 = new Ball2(_arg1, 50, 10, 2, -8, false);
addChild(_local5);
_local6 = new Ball2(_arg1, 450, 390, 3, -6, false);
addChild(_local6);
_local7 = new Ball3(_arg1, 550, 400, 1, 1, false);
addChild(_local7);
_local8 = new Ball3(_arg1, 30, 450, 3, 3, false);
addChild(_local8);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local9 = new Ball1(_arg1, 100, 0, -10, -4, true);
hero.addChild(_local9);
_local10 = new Ball2(_arg1, -100, 0, -10, -4, true);
hero.addChild(_local10);
_local11 = new Ball3(_arg1, 0, 100, 0, 0, true);
hero.addChild(_local11);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 114
//Level8 (Level8)
package {
import flash.events.*;
import flash.display.*;
public class Level8 extends Level {
public var hero:Hero;
public function Level8(_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;
_local4 = new Ball4(_arg1, 300, 100, -1, -4, false);
addChild(_local4);
_local5 = new Ball5(_arg1, 150, 100, 1, -5, false);
addChild(_local5);
_local6 = new Ball6(_arg1, 550, 100, 12, -5, false);
addChild(_local6);
_local7 = new Ball4(_arg1, 300, 400, 1, 1, false);
addChild(_local7);
_local8 = new Ball5(_arg1, 30, 400, 3, 3, false);
addChild(_local8);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local9 = new Ball4(_arg1, 50, 0, -10, -4, true);
hero.addChild(_local9);
_local10 = new Ball5(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local10);
_local11 = new Ball6(_arg1, 0, 50, 0, 0, true);
hero.addChild(_local11);
super(_arg1, _arg2, _arg3);
trace("placed");
}
}
}//package
Section 115
//Level9 (Level9)
package {
import flash.events.*;
import flash.display.*;
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;
var _local11:Ball;
_local4 = new Ball3(_arg1, 300, 100, -10, -4, false);
addChild(_local4);
_local5 = new Ball3(_arg1, 50, 400, -1, -4, false);
addChild(_local5);
_local6 = new Ball5(_arg1, 150, 100, 1, 5, false);
addChild(_local6);
_local7 = new Ball5(_arg1, 300, 400, 1, 1, false);
addChild(_local7);
_local8 = new Ball5(_arg1, 30, 400, 3, 3, false);
addChild(_local8);
_local9 = new Ball5(_arg1, 30, 40, 5, 3, false);
addChild(_local9);
hero = new Hero(_arg1, 400, 400);
addChild(hero);
_local10 = new Ball3(_arg1, 100, 0, -10, -4, true);
hero.addChild(_local10);
_local11 = new Ball5(_arg1, -50, 0, -10, -4, true);
hero.addChild(_local11);
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 116
//LevelPassedScreen (LevelPassedScreen)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
public class LevelPassedScreen extends MovieClip {
public var best:TextField;
public var totalBest:TextField;
public var start:ContinueButton;
public var passed:TextField;
public var score:TextField;
public var options:OptionsButton;
public var inGameMenu:InGameMenu;
public function LevelPassedScreen(_arg1:Number, _arg2:Number){
x = _arg1;
y = _arg2;
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();
}
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);
if ((Game.level % 12) != 0){
dispatchEvent(new NavigationEvent(NavigationEvent.NEXTLEVELPLAY));
} else {
trace("Level 13...");
campaignCompleted = new CampaignCompleted(0, 0);
addChild(campaignCompleted);
};
}
public function optionsClicked(_arg1:MouseEvent){
inGameMenu = new InGameMenu(0, 0);
if (parent){
parent.addChild(inGameMenu);
parent.removeChild(this);
};
}
}
}//package
Section 117
//libGlow (libGlow)
package {
import flash.display.*;
public dynamic class libGlow extends MovieClip {
}
}//package
Section 118
//mallert006 (mallert006)
package {
import flash.media.*;
public dynamic class mallert006 extends Sound {
}
}//package
Section 119
//mcGlimmer (mcGlimmer)
package {
import flash.display.*;
public dynamic class mcGlimmer extends MovieClip {
}
}//package
Section 120
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.system.*;
import flash.net.*;
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 121
//moreGames (moreGames)
package {
import flash.display.*;
public dynamic class moreGames extends MovieClip {
}
}//package
Section 122
//MusicButton (MusicButton)
package {
import flash.events.*;
import flash.display.*;
public class MusicButton extends SimpleButton {
public function MusicButton(){
addEventListener(MouseEvent.CLICK, onClick);
}
public function onClick(_arg1:MouseEvent){
dispatchEvent(new NavigationEvent(NavigationEvent.MUSIC));
}
}
}//package
Section 123
//MusicJazz (MusicJazz)
package {
import flash.media.*;
public dynamic class MusicJazz extends Sound {
}
}//package
Section 124
//NavigationEvent (NavigationEvent)
package {
import flash.events.*;
public class NavigationEvent extends Event {
public static const START:String = "start";
public static const STARTNEXTLEVELPLAY:String = "startnextlevelplay";
public static const NEXTLEVELPLAY:String = "nextlevelplay";
public static const MUSIC:String = "music";
public static const RESTARTLEVEL:String = "restartlevel";
public static const RESTARTGAME:String = "restartgame";
public static const LOSS:String = "loss";
public static const ACHIEVEMENTS:String = "achievements";
public static const INSTRUCTIONS:String = "instructions";
public static const RESTART:String = "restart";
public static const CREATEUNIT1:String = "createunit1";
public static const VICTORY:String = "victory";
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 CREDITS:String = "credits";
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 125
//NoButton (NoButton)
package {
import flash.display.*;
public dynamic class NoButton extends SimpleButton {
}
}//package
Section 126
//NoviceBut (NoviceBut)
package {
import flash.display.*;
public dynamic class NoviceBut extends SimpleButton {
}
}//package
Section 127
//OffButton (OffButton)
package {
import flash.display.*;
public dynamic class OffButton extends SimpleButton {
}
}//package
Section 128
//OkButton (OkButton)
package {
import flash.display.*;
public dynamic class OkButton extends SimpleButton {
}
}//package
Section 129
//OnButton (OnButton)
package {
import flash.display.*;
public dynamic class OnButton extends SimpleButton {
}
}//package
Section 130
//OptionsButton (OptionsButton)
package {
import flash.display.*;
public dynamic class OptionsButton extends SimpleButton {
}
}//package
Section 131
//Particle (Particle)
package {
import flash.events.*;
import flash.display.*;
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.6;
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.01);
if (alpha <= 0){
if (this.parent){
parent.removeChild(this);
};
};
}
}
}//package
Section 132
//PlayMoreButton (PlayMoreButton)
package {
import flash.display.*;
public dynamic class PlayMoreButton extends SimpleButton {
}
}//package
Section 133
//RestartCampaign (RestartCampaign)
package {
import flash.display.*;
public dynamic class RestartCampaign extends SimpleButton {
}
}//package
Section 134
//RestartScreen (RestartScreen)
package {
import flash.events.*;
import flash.display.*;
public class RestartScreen extends MovieClip {
public var restart:SimpleButton;
public function RestartScreen(_arg1:Number, _arg2:Number){
x = _arg1;
y = _arg2;
this.visible = false;
addEventListener(Event.ENTER_FRAME, chkGameData);
restart.addEventListener(MouseEvent.CLICK, restartClicked);
restart.addEventListener(MouseEvent.MOUSE_OVER, Game.buttonSound);
}
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 = new InGameMenu(0, 0);
if (parent){
parent.addChild(inGameMenu);
parent.removeChild(this);
};
}
}
}//package
Section 135
//Score (Score)
package {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
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 136
//sfxBell (sfxBell)
package {
import flash.media.*;
public dynamic class sfxBell extends Sound {
}
}//package
Section 137
//spark (spark)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.system.*;
import flash.filters.*;
import flash.text.*;
import flash.net.*;
import flash.external.*;
import flash.errors.*;
import flash.accessibility.*;
import flash.ui.*;
public dynamic class spark extends MovieClip {
public function spark(){
addFrameScript(22, frame23);
}
function frame23(){
gotoAndStop("loop");
}
}
}//package
Section 138
//TimeBar (TimeBar)
package {
import flash.events.*;
import flash.display.*;
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:SharedObject;
if (bar.width <= (maxW / 1.18)){
bar.width = (bar.width + 7);
} else {
bar.width = (bar.width + (((maxW - bar.width) / 10) + 1));
};
GamePlay.score.update(Math.round((GamePlay.score.tempAmount * 0.01)));
if (bar.width >= maxW){
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);
_local2 = SharedObject.getLocal("userData");
if ((((_local2.data.levelScore == null)) || ((_local2.data.levelScore == undefined)))){
trace("Created!");
_local2.data.levelScore = new Array();
};
if ((((_local2.data.totalScore == null)) || ((_local2.data.totalScore == undefined)))){
trace("Created!");
_local2.data.totalScore = new Array();
};
if ((((GamePlay.score.tempAmount > _local2.data.levelScore[Game.level])) || ((_local2.data.levelScore[Game.level] == null)))){
_local2.data.levelScore[Game.level] = GamePlay.score.tempAmount;
_local2.flush();
};
trace(Score.amount);
trace(_local2.data.totalScore[Game.level]);
if ((((Score.amount >= _local2.data.totalScore[Game.level])) || ((_local2.data.totalScore[Game.level] == null)))){
_local2.data.totalScore[Game.level] = Score.amount;
_local2.flush();
};
parent.levelPassedScreen.best.text = ("Personal best: " + _local2.data.levelScore[Game.level]);
if ((Game.level % 12) != 0){
parent.levelPassedScreen.totalBest.text = ((("Personal total best at level " + (Game.level % 12)) + ": ") + _local2.data.totalScore[Game.level]);
} else {
parent.levelPassedScreen.totalBest.text = ("Personal total best at level 12: " + _local2.data.totalScore[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){
bar.width++;
if (bar.width >= maxW){
bar.width = maxW;
removeEventListener(Event.ENTER_FRAME, expand);
};
}
public function updateW(_arg1:Number){
if ((bar.width - _arg1) > 0){
bar.width = (bar.width - _arg1);
} else {
bar.width = 0;
};
}
}
}//package
Section 139
//yellow (yellow)
package {
import flash.display.*;
public dynamic class yellow extends BitmapData {
public function yellow(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 140
//YesButton (YesButton)
package {
import flash.display.*;
public dynamic class YesButton extends SimpleButton {
}
}//package