Section 1
//circleMaze18_157 (MazeFL_fla.circleMaze18_157)
package MazeFL_fla {
import flash.display.*;
public dynamic class circleMaze18_157 extends MovieClip {
public var c1:MovieClip;
public var c3:MovieClip;
public var c2:MovieClip;
public var fan2:MovieClip;
public var fan3:MovieClip;
public var fan1:MovieClip;
}
}//package MazeFL_fla
Section 2
//circleMaze24_153 (MazeFL_fla.circleMaze24_153)
package MazeFL_fla {
import flash.display.*;
public dynamic class circleMaze24_153 extends MovieClip {
public var c1:MovieClip;
public var c3:MovieClip;
public var c4:MovieClip;
public var c2:MovieClip;
public var fan2:MovieClip;
public var fan6:MovieClip;
public var fan3:MovieClip;
public var fan4:MovieClip;
public var fan5:MovieClip;
public var fan1:MovieClip;
}
}//package MazeFL_fla
Section 3
//circularMaze23_141 (MazeFL_fla.circularMaze23_141)
package MazeFL_fla {
import flash.display.*;
public dynamic class circularMaze23_141 extends MovieClip {
public var c1:MovieClip;
public var c3:MovieClip;
public var c4:MovieClip;
public var c5:MovieClip;
public var c6:MovieClip;
public var c2:MovieClip;
}
}//package MazeFL_fla
Section 4
//gate_105 (MazeFL_fla.gate_105)
package MazeFL_fla {
import flash.display.*;
public dynamic class gate_105 extends MovieClip {
public function gate_105(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package MazeFL_fla
Section 5
//level1Logo_10 (MazeFL_fla.level1Logo_10)
package MazeFL_fla {
import flash.display.*;
import flash.text.*;
public dynamic class level1Logo_10 extends MovieClip {
public var levelTxt:TextField;
public var playMore:SimpleButton;
}
}//package MazeFL_fla
Section 6
//MainTimeline (MazeFL_fla.MainTimeline)
package MazeFL_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var bulletsArray6:Array;
public var bulletsArray8:Array;
public var className:String;
public var c1:MovieClip;
public var c3:MovieClip;
public var c4:MovieClip;
public var isClicked2:Boolean;
public var c2:MovieClip;
public var isClicked4:Boolean;
public var isClicked6:Boolean;
public var isClicked8:Boolean;
public var isClicked3:Boolean;
public var isClicked5:Boolean;
public var bg:MovieClip;
public var speed;
public var isFirstLeftBullet:Boolean;
public var maze1:MovieClip;
public var maze6:MovieClip;
public var maze8:MovieClip;
public var maze2:MovieClip;
public var maze3:MovieClip;
public var maze5:MovieClip;
public var outLine:MovieClip;
public var c:MovieClip;
public var maze4:MovieClip;
public var crossLine:MovieClip;
public var m:Music;
public var isCrossed:Boolean;
public var outer:MovieClip;
public var red:MovieClip;
public var time152;
public var time151;
public var playMore:SimpleButton;
public var circleMaze:MovieClip;
public var guide3:MovieClip;
public var guide4:MovieClip;
public var guide5:MovieClip;
public var guide0:MovieClip;
public var guide2:MovieClip;
public var guide8:MovieClip;
public var gate1:MovieClip;
public var gate2:MovieClip;
public var gate3:MovieClip;
public var gate4:MovieClip;
public var h2:MovieClip;
public var gate:MovieClip;
public var h4:MovieClip;
public var h1:MovieClip;
public var guide6:MovieClip;
public var angle;
public var end:MovieClip;
public var isFirstBullet:Boolean;
public var h3:MovieClip;
public var time153:Timer;
public var isRed3Pressed:Boolean;
public var speedX;
public var speedY;
public var progressText:TextField;
public var count;
public var channel:SoundChannel;
public var redArray:Array;
public var dots2:MovieClip;
public var dots3:MovieClip;
public var dots4:MovieClip;
public var myBall11:MovieClip;
public var myBall12:MovieClip;
public var myBall13:MovieClip;
public var dots1:MovieClip;
public var myBall15:MyBall;
public var myBall16:MovieClip;
public var myBall17:MovieClip;
public var myBall18:MovieClip;
public var myBall19:MyBall;
public var myBall14:MovieClip;
public var isCrossed17:Boolean;
public var isCrossed14:Boolean;
public var isCrossed16:Boolean;
public var isCrossed18:Boolean;
public var fanSpeed;
public var myBall20:MyBall;
public var myBall21:MovieClip;
public var myBall23:MovieClip;
public var myBall24:MovieClip;
public var bulletsArray15:Array;
public var isCrossed21:Boolean;
public var bulletsArray:Array;
public var isCrossed24:Boolean;
public var isCrossed23:Boolean;
public var url:String;
public var delay:Number;
public var isFirstTopBullet:Boolean;
public var tri:MovieClip;
public var logo:MovieClip;
public var red1:MovieClip;
public var red2:MovieClip;
public var red3:MovieClip;
public var isRed241:Boolean;
public var isRed242:Boolean;
public var isFirstMiddleBullet:Boolean;
public var myBall:MyBall;
public var isFirstBottomBullet:Boolean;
public var isDone1:Boolean;
public var isDone2:Boolean;
public var outLine14:MovieClip;
public var isRed2:Boolean;
public var isRed3:Boolean;
public var guide11:MovieClip;
public var guide12:MovieClip;
public var guide13:MovieClip;
public var maze12:MovieClip;
public var maze13:MovieClip;
public var maze14:MovieClip;
public var maze15:MovieClip;
public var guide19:MovieClip;
public var maze17:MovieClip;
public var maze19:MovieClip;
public var guide16:MovieClip;
public var guide17:MovieClip;
public var guide18:MovieClip;
public var maze16:MovieClip;
public var isRed1:Boolean;
public var maze18:MovieClip;
public var maze11:MovieClip;
public var guide15:MovieClip;
public var guide14:MovieClip;
public var guide21:MovieClip;
public var guide24:MovieClip;
public var maze20:MovieClip;
public var maze24:MovieClip;
public var guide20:MovieClip;
public var InstBut:SimpleButton;
public var guide23:MovieClip;
public var maze23:MovieClip;
public var isWin:Boolean;
public var crossLine1:MovieClip;
public var crossLine2:MovieClip;
public var isFirstmiddleBullet1515:Boolean;
public var isClicked12:Boolean;
public var isClicked13:Boolean;
public var isClicked14:Boolean;
public var isClicked15:Boolean;
public var isClicked17:Boolean;
public var isClicked11:Boolean;
public var isClicked19:Boolean;
public var request:URLRequest;
public var isClicked16:Boolean;
public var isClicked20:Boolean;
public var isClicked21:Boolean;
public var isClicked23:Boolean;
public var playBut:SimpleButton;
public var isClicked24:Boolean;
public var isClicked18:Boolean;
public var mainMenu:SimpleButton;
public var isFirstRightBullet:Boolean;
public var time:Timer;
public var isRed1Pressed:Boolean;
public var cirSpeed;
public var isDone15:Boolean;
public var layerNo:int;
public var time1;
public var guide:MovieClip;
public var time2;
public var time3:Timer;
public var fan:MovieClip;
public var stopMusic:Boolean;
public var introTime:Timer;
public var bigRed:MovieClip;
public var distX;
public var distY;
public var longStick:MovieClip;
public var fan2:MovieClip;
public var fan4:MovieClip;
public var fan1:MovieClip;
public var fan3:MovieClip;
public var rotCircle1:MovieClip;
public var rotCircle2:MovieClip;
public var isRed2Pressed:Boolean;
public var isClicked:Boolean;
public var tag:SimpleButton;
public var myBall2:MyBall;
public var myBall3:MyBall;
public var myBall4:MyBall;
public var myBall5:MyBall;
public var myBall6:MyBall;
public var backInst:SimpleButton;
public var isDone:Boolean;
public var myBall8:MovieClip;
public var nextInst:SimpleButton;
public var tri1:MovieClip;
public var tri2:MovieClip;
public var tri3:MovieClip;
public var introGuide:MovieClip;
public var distance:Number;
public function MainTimeline(){
addFrameScript(0, frame1, 60, frame61, 164, frame165, 166, frame167, 167, frame168, 168, frame169, 169, frame170, 170, frame171, 171, frame172, 172, frame173, 173, frame174, 174, frame175, 175, frame176, 176, frame177, 177, frame178, 178, frame179, 179, frame180, 180, frame181, 181, frame182, 182, frame183, 183, frame184, 184, frame185, 185, frame186, 186, frame187, 187, frame188, 188, frame189, 189, frame190, 190, frame191, 191, frame192, 192, frame193);
}
public function moveMyBall12(_arg1:Event){
guide12.x = mouseX;
guide12.y = mouseY;
distX = (mouseX - myBall12.x);
distY = (mouseY - myBall12.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall12.x = (myBall12.x + speedX);
myBall12.y = (myBall12.y + speedY);
myBall12.rotation = ((angle * 180) / Math.PI);
}
public function moveMyBall13(_arg1:Event){
guide13.x = mouseX;
guide13.y = mouseY;
distX = (mouseX - myBall13.x);
distY = (mouseY - myBall13.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall13.x = (myBall13.x + speedX);
myBall13.y = (myBall13.y + speedY);
myBall13.rotation = ((angle * 180) / Math.PI);
}
public function moveMyBall14(_arg1:Event){
guide14.x = mouseX;
guide14.y = mouseY;
distX = (mouseX - myBall14.x);
distY = (mouseY - myBall14.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall14.x = (myBall14.x + speedX);
myBall14.y = (myBall14.y + speedY);
myBall14.rotation = ((angle * 180) / Math.PI);
}
public function moveMyBall16(_arg1:Event){
guide16.x = mouseX;
guide16.y = mouseY;
distX = (mouseX - myBall16.x);
distY = (mouseY - myBall16.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall16.x = (myBall16.x + speedX);
myBall16.y = (myBall16.y + speedY);
myBall16.rotation = ((angle * 180) / Math.PI);
}
public function moveMyBall17(_arg1:Event){
guide17.x = mouseX;
guide17.y = mouseY;
distX = (mouseX - myBall17.x);
distY = (mouseY - myBall17.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall17.x = (myBall17.x + speedX);
myBall17.y = (myBall17.y + speedY);
myBall17.rotation = ((angle * 180) / Math.PI);
}
public function moveMyBall19(_arg1:Event){
guide19.x = mouseX;
guide19.y = mouseY;
distX = (mouseX - myBall19.x);
distY = (mouseY - myBall19.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall19.x = (myBall19.x + speedX);
myBall19.y = (myBall19.y + speedY);
myBall19.rotation = ((angle * 180) / Math.PI);
}
public function playFunc(_arg1:MouseEvent){
stopRotInst();
gotoAndStop("instructions2");
}
public function moveMyBall11(_arg1:Event){
guide11.x = mouseX;
guide11.y = mouseY;
distX = (mouseX - myBall11.x);
distY = (mouseY - myBall11.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall11.x = (myBall11.x + speedX);
myBall11.y = (myBall11.y + speedY);
myBall11.rotation = ((angle * 180) / Math.PI);
}
public function moveMyBall18(_arg1:Event){
guide18.x = mouseX;
guide18.y = mouseY;
distX = (mouseX - myBall18.x);
distY = (mouseY - myBall18.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall18.x = (myBall18.x + speedX);
myBall18.y = (myBall18.y + speedY);
myBall18.rotation = ((angle * 180) / Math.PI);
}
public function moveBullet(){
if (isFirstBullet == false){
isFirstBullet = true;
time = new Timer(100, 1);
time.addEventListener(TimerEvent.TIMER_COMPLETE, newBullet);
time.start();
} else {
time = new Timer(3500, 1);
time.addEventListener(TimerEvent.TIMER_COMPLETE, newBullet);
time.start();
};
}
public function moveMyBall20(_arg1:Event){
guide20.x = mouseX;
guide20.y = mouseY;
distX = (mouseX - myBall20.x);
distY = (mouseY - myBall20.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall20.x = (myBall20.x + speedX);
myBall20.y = (myBall20.y + speedY);
myBall20.rotation = ((angle * 180) / Math.PI);
}
public function stopRot4(){
c1.rotation = 0;
c2.rotation = 0;
removeChild(c1);
removeChild(c2);
removeEventListener(Event.ENTER_FRAME, rotLine4);
}
public function stopRot5(){
c1.rotation = 0;
c2.rotation = 0;
c3.rotation = 0;
c4.rotation = 0;
fan1.rotation = 0;
fan2.rotation = 0;
fan3.rotation = 0;
fan4.rotation = 0;
removeChild(c1);
removeChild(c2);
removeChild(c3);
removeChild(c4);
removeChild(fan1);
removeChild(fan2);
removeChild(fan3);
removeChild(fan4);
removeEventListener(Event.ENTER_FRAME, rotLine5);
}
public function stopRot2(){
c1.rotation = 0;
c2.rotation = 0;
fan1.rotation = 0;
fan2.rotation = 0;
removeChild(c1);
removeChild(c2);
removeChild(fan1);
removeChild(fan2);
removeEventListener(Event.ENTER_FRAME, rotLine22);
}
public function moveMyBall23(_arg1:Event){
guide23.x = mouseX;
guide23.y = mouseY;
distX = (mouseX - myBall23.x);
distY = (mouseY - myBall23.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall23.x = (myBall23.x + speedX);
myBall23.y = (myBall23.y + speedY);
myBall23.rotation = ((angle * 180) / Math.PI);
}
public function moveMyBall24(_arg1:Event){
guide24.x = mouseX;
guide24.y = mouseY;
distX = (mouseX - myBall24.x);
distY = (mouseY - myBall24.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall24.x = (myBall24.x + speedX);
myBall24.y = (myBall24.y + speedY);
myBall24.rotation = ((angle * 240) / Math.PI);
}
function frame1(){
nielsen("game_intro");
introTime = new Timer(5000, 1);
introTime.addEventListener(TimerEvent.TIMER_COMPLETE, jumpToLoading);
introTime.start();
}
public function stopRot3(){
c1.rotation = (c1.rotation + cirSpeed);
c2.rotation = (c2.rotation + cirSpeed);
c3.rotation = (c3.rotation + cirSpeed);
c4.rotation = (c4.rotation + cirSpeed);
fan1.rotation = (fan1.rotation + fanSpeed);
fan2.rotation = (fan2.rotation + fanSpeed);
fan3.rotation = (fan3.rotation + fanSpeed);
fan4.rotation = (fan4.rotation + fanSpeed);
removeChild(c1);
removeChild(c2);
removeChild(c3);
removeChild(c4);
removeChild(fan1);
removeChild(fan2);
removeChild(fan3);
removeChild(fan4);
removeEventListener(Event.ENTER_FRAME, rotLine3);
}
public function moveMyBall21(_arg1:Event){
guide21.x = mouseX;
guide21.y = mouseY;
distX = (mouseX - myBall21.x);
distY = (mouseY - myBall21.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall21.x = (myBall21.x + speedX);
myBall21.y = (myBall21.y + speedY);
myBall21.rotation = ((angle * 210) / Math.PI);
}
public function instruction(_arg1:MouseEvent){
gotoAndStop("instructions");
}
public function startGame13(){
Mouse.hide();
addEventListener(Event.ENTER_FRAME, collideChecker13);
addEventListener(Event.ENTER_FRAME, moveMyBall13);
}
public function startGame15(){
Mouse.hide();
addEventListener(Event.ENTER_FRAME, collideChecker15);
addEventListener(Event.ENTER_FRAME, movemyBall1515);
middleBullet15();
rightBullet();
leftBullet();
}
public function startGame16(){
Mouse.hide();
addEventListener(Event.ENTER_FRAME, collideChecker16);
addEventListener(Event.ENTER_FRAME, moveMyBall16);
}
public function startGame17(){
Mouse.hide();
addEventListener(Event.ENTER_FRAME, collideChecker17);
addEventListener(Event.ENTER_FRAME, moveMyBall17);
}
public function startGame11(){
Mouse.hide();
addEventListener(Event.ENTER_FRAME, collideChecker11);
addEventListener(Event.ENTER_FRAME, moveMyBall11);
addEventListener(Event.ENTER_FRAME, rotLine11);
}
public function backFunc(_arg1:MouseEvent){
gotoAndStop("instructions");
}
public function startGame19(){
Mouse.hide();
addEventListener(KeyboardEvent.KEY_DOWN, stopSound);
addEventListener(Event.ENTER_FRAME, moveMyBall19);
addEventListener(Event.ENTER_FRAME, collideChecker19);
}
public function newrightBullet(_arg1:TimerEvent){
var _local2:Bullet;
_local2 = new Bullet("right", className);
bulletsArray15.push(_local2);
addChild(_local2);
rightBullet();
}
public function startGame12(){
Mouse.hide();
addEventListener(Event.ENTER_FRAME, rotLine12);
addEventListener(Event.ENTER_FRAME, collideChecker12);
addEventListener(Event.ENTER_FRAME, moveMyBall12);
}
public function isDoneFunc(){
isDone2 = isDone;
}
public function startGame21(){
Mouse.hide();
addEventListener(Event.ENTER_FRAME, collideChecker21);
addEventListener(Event.ENTER_FRAME, moveMyBall21);
}
public function startGame23(){
Mouse.hide();
addEventListener(Event.ENTER_FRAME, collideChecker23);
addEventListener(Event.ENTER_FRAME, moveMyBall23);
}
public function newMiddleBullet(_arg1:TimerEvent){
var _local2:Bullet;
_local2 = new Bullet("middle", className);
bulletsArray.push(_local2);
addChild(_local2);
middleBullet();
}
public function enableMyBall3(_arg1:MouseEvent){
isClicked3 = true;
startGame3();
removeChild(logo);
myBall3.removeEventListener(MouseEvent.CLICK, enableMyBall3);
}
public function enableMyBall5(_arg1:MouseEvent){
isClicked5 = true;
startGame5();
removeChild(logo);
myBall5.removeEventListener(MouseEvent.CLICK, enableMyBall5);
}
public function enableMyBall6(_arg1:MouseEvent){
isClicked6 = true;
startGame6();
removeChild(logo);
removeEventListener(MouseEvent.CLICK, enableMyBall6);
}
public function startGame20(){
Mouse.hide();
addEventListener(KeyboardEvent.KEY_DOWN, stopSound);
addEventListener(Event.ENTER_FRAME, rotLine20);
addEventListener(Event.ENTER_FRAME, moveMyBall20);
addEventListener(Event.ENTER_FRAME, collideChecker20);
}
public function enableMyBall4(_arg1:MouseEvent){
isClicked4 = true;
removeChild(logo);
startGame4();
myBall4.removeEventListener(MouseEvent.CLICK, enableMyBall4);
}
public function startGame24(){
Mouse.hide();
addEventListener(Event.ENTER_FRAME, collideChecker24);
addEventListener(Event.ENTER_FRAME, moveMyBall24);
}
public function newBottomBullet(_arg1:TimerEvent){
var _local2:Bullet;
_local2 = new Bullet("bottom", className);
bulletsArray.push(_local2);
addChild(_local2);
bottomBullet();
}
public function startGame14(){
Mouse.hide();
addEventListener(Event.ENTER_FRAME, collideChecker14);
addEventListener(Event.ENTER_FRAME, moveMyBall14);
}
public function startGame18(){
Mouse.hide();
addEventListener(Event.ENTER_FRAME, collideChecker18);
addEventListener(Event.ENTER_FRAME, moveMyBall18);
}
public function enableMyBall8(_arg1:MouseEvent){
isClicked8 = true;
isDone = false;
isDoneFunc();
startGame8();
myBall8.removeEventListener(MouseEvent.CLICK, enableMyBall8);
removeChild(logo);
}
function frame61(){
tag.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
url = "http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com";
request = new URLRequest(url);
}
public function newTopBullet(_arg1:TimerEvent){
var _local2:Bullet;
_local2 = new Bullet("top", className);
bulletsArray.push(_local2);
addChild(_local2);
topBullet();
}
public function moveMyBall(_arg1:Event){
guide2.x = mouseX;
guide2.y = mouseY;
distX = (mouseX - myBall2.x);
distY = (mouseY - myBall2.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall2.x = (myBall2.x + speedX);
myBall2.y = (myBall2.y + speedY);
myBall2.rotation = ((angle * 180) / Math.PI);
}
public function newHitTest(_arg1:MovieClip, _arg2:MovieClip):Boolean{
var _local3:Boolean;
if (_arg2.hitTestPoint(_arg1.x, (_arg1.y + 8), true)){
_local3 = true;
} else {
if (_arg2.hitTestPoint(_arg1.x, (_arg1.y - 8), true)){
_local3 = true;
} else {
if (_arg2.hitTestPoint((_arg1.x - 8), _arg1.y, true)){
_local3 = true;
} else {
if (_arg2.hitTestPoint((_arg1.x + 8), _arg1.y, true)){
_local3 = true;
};
};
};
};
return (_local3);
}
public function newmiddleBullet15(_arg1:TimerEvent){
var _local2:Bullet;
_local2 = new Bullet("middle", className);
bulletsArray15.push(_local2);
addChild(_local2);
middleBullet15();
}
public function levelWriter(){
logo.levelTxt.text = (layerNo - 168);
logo.playMore.addEventListener(MouseEvent.CLICK, goToUGO);
}
public function loadProgress(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = this.root.loaderInfo.bytesLoaded;
_local3 = this.root.loaderInfo.bytesTotal;
_local4 = (_local2 / 0x0400);
_local5 = (_local3 / 0x0400);
progressText.text = (((("Loading: " + _local4) + "K/") + _local5) + "K");
if (_local2 >= _local3){
removeEventListener(Event.ENTER_FRAME, loadProgress);
gotoAndStop("intro");
};
}
public function enableMyBall(_arg1:MouseEvent){
isClicked = true;
startGame();
removeChild(logo);
myBall.removeEventListener(MouseEvent.CLICK, enableMyBall);
}
public function playGame(_arg1:MouseEvent){
gotoAndStop("redirect");
isWin = true;
}
public function enablemyBall1515(_arg1:MouseEvent){
isClicked15 = true;
startGame15();
removeChild(logo);
myBall15.removeEventListener(MouseEvent.CLICK, enablemyBall1515);
}
public function nielsen(_arg1){
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:URLRequest;
var _local6:Loader;
_local2 = "us-ugo";
_local3 = "ugoplayer_flashgames";
_local4 = escape(_arg1);
_local5 = new URLRequest(((((((("http://secure-us.imrworldwide.com/cgi-bin/m?ci=" + _local2) + "&cg=") + _local3) + "&si=") + _local4) + "&rnd=") + Math.ceil((Math.random() * 100000000))));
_local6 = new Loader();
_local6.load(_local5);
addChild(_local6);
}
public function collideChecker2(_arg1:Event){
if (myBall2.hitTestObject(end)){
isWin = true;
endLevel2();
} else {
if (newHitTest(myBall2, maze2)){
isWin = false;
endLevel2();
} else {
if (newHitTest(myBall2, c1)){
isWin = false;
endLevel2();
} else {
if (newHitTest(myBall2, c2)){
isWin = false;
endLevel2();
} else {
if (newHitTest(myBall2, fan1)){
isWin = false;
endLevel2();
} else {
if (newHitTest(myBall2, fan2)){
isWin = false;
endLevel2();
};
};
};
};
};
};
if (myBall2.y > 397){
myBall2.y = 397;
};
}
public function collideChecker3(_arg1:Event){
if (myBall3.hitTestObject(end)){
isWin = true;
endLevel3();
} else {
if (newHitTest(myBall3, maze3)){
isWin = false;
endLevel3();
} else {
if (newHitTest(myBall3, c1)){
isWin = false;
endLevel3();
} else {
if (newHitTest(myBall3, c2)){
isWin = false;
endLevel3();
} else {
if (newHitTest(myBall3, c3)){
isWin = false;
endLevel3();
} else {
if (newHitTest(myBall3, c4)){
isWin = false;
endLevel3();
} else {
if (newHitTest(myBall3, fan1)){
isWin = false;
endLevel3();
} else {
if (newHitTest(myBall3, fan2)){
isWin = false;
endLevel3();
} else {
if (newHitTest(myBall3, fan3)){
isWin = false;
endLevel3();
} else {
if (newHitTest(myBall3, fan4)){
isWin = false;
endLevel3();
} else {
if (newHitTest(myBall3, h1)){
isWin = false;
endLevel3();
} else {
if (newHitTest(myBall3, h2)){
isWin = false;
endLevel3();
} else {
if (newHitTest(myBall3, h3)){
isWin = false;
endLevel3();
} else {
if (newHitTest(myBall3, h4)){
isWin = false;
endLevel3();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
if (myBall3.y > 397){
myBall3.y = 397;
};
}
public function collideChecker4(_arg1:Event){
if (myBall4.hitTestObject(end)){
isWin = true;
endLevel4();
} else {
if (newHitTest(myBall4, maze4)){
isWin = false;
endLevel4();
} else {
if (newHitTest(myBall4, c1)){
isWin = false;
endLevel4();
} else {
if (newHitTest(myBall4, c2)){
isWin = false;
endLevel4();
} else {
if (myBall4.y > 397){
myBall4.y = 397;
};
};
};
};
};
}
public function collideChecker5(_arg1:Event){
if (myBall5.hitTestObject(end)){
isWin = true;
endLevel5();
} else {
if (newHitTest(myBall5, maze5)){
isWin = false;
endLevel5();
} else {
if (newHitTest(myBall5, c1)){
isWin = false;
endLevel5();
} else {
if (newHitTest(myBall5, c2)){
isWin = false;
endLevel5();
} else {
if (newHitTest(myBall5, c3)){
isWin = false;
endLevel5();
} else {
if (newHitTest(myBall5, c4)){
isWin = false;
endLevel5();
} else {
if (newHitTest(myBall5, fan1)){
isWin = false;
endLevel5();
} else {
if (newHitTest(myBall5, fan2)){
isWin = false;
endLevel5();
} else {
if (newHitTest(myBall5, fan3)){
isWin = false;
endLevel5();
} else {
if (newHitTest(myBall5, fan4)){
isWin = false;
endLevel5();
};
};
};
};
};
};
};
};
};
};
if (myBall5.y > 397){
myBall5.y = 397;
};
}
public function collideChecker6(_arg1:Event){
var _local2:int;
if (myBall6.hitTestObject(end)){
isWin = true;
endLevel6();
} else {
if (red.hitTestObject(myBall6)){
red.gotoAndStop("2");
tri.gotoAndStop("2");
time.stop();
} else {
if (newHitTest(myBall6, maze6)){
isWin = false;
endLevel6();
} else {
if (myBall6.y > 397){
myBall6.y = 397;
};
};
};
};
_local2 = 0;
while (_local2 < bulletsArray6.length) {
if (myBall6.hitTestObject(bulletsArray6[_local2])){
isWin = false;
endLevel6();
break;
};
_local2++;
};
}
public function collideChecker8(_arg1:Event){
var _local2:int;
if (myBall8.hitTestObject(end)){
isWin = true;
endLevel8();
} else {
if (red1.hitTestObject(myBall8)){
red1.gotoAndStop("2");
gate1.gotoAndStop("2");
} else {
if (red2.hitTestObject(myBall8)){
red2.gotoAndStop("2");
gate2.gotoAndStop("2");
} else {
if (red3.hitTestObject(myBall8)){
red3.gotoAndStop("2");
tri.gotoAndStop("2");
isDone = true;
gate3.gotoAndStop("2");
} else {
if (bigRed.hitTestObject(myBall8)){
bigRed.gotoAndStop("2");
gate4.gotoAndStop("2");
} else {
if (newHitTest(myBall8, gate1)){
isWin = false;
endLevel8();
} else {
if (newHitTest(myBall8, gate2)){
isWin = false;
endLevel8();
} else {
if (newHitTest(myBall8, gate3)){
isWin = false;
endLevel8();
} else {
if (newHitTest(myBall8, gate4)){
isWin = false;
endLevel8();
} else {
if (newHitTest(myBall8, maze8)){
isWin = false;
endLevel8();
} else {
if (newHitTest(myBall8, fan1)){
isWin = false;
endLevel8();
} else {
if (newHitTest(myBall8, fan2)){
isWin = false;
endLevel8();
} else {
if (newHitTest(myBall8, fan3)){
isWin = false;
endLevel8();
} else {
if (newHitTest(myBall8, c1)){
isWin = false;
endLevel8();
} else {
if (myBall8.y > 397){
myBall8.y = 397;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
_local2 = 0;
while (_local2 < bulletsArray8.length) {
if (myBall8.hitTestObject(bulletsArray8[_local2])){
isWin = false;
endLevel8();
break;
};
_local2++;
};
}
public function newleftBullet(_arg1:TimerEvent){
var _local2:Bullet;
_local2 = new Bullet("left", className);
bulletsArray15.push(_local2);
addChild(_local2);
leftBullet();
}
public function collideChecker(_arg1:Event){
var _local2:int;
if (myBall.hitTestObject(end)){
isWin = true;
endLevel();
} else {
if (myBall.hitTestObject(red1)){
red1.gotoAndStop("2");
tri1.gotoAndStop("2");
time1.stop();
} else {
if (myBall.hitTestObject(red2)){
red2.gotoAndStop("2");
tri2.gotoAndStop("2");
time2.stop();
} else {
if (myBall.hitTestObject(red3)){
red3.gotoAndStop("2");
tri3.gotoAndStop("2");
time3.stop();
} else {
if (newHitTest(myBall, maze1)){
isWin = false;
endLevel();
};
};
};
};
};
_local2 = 0;
while (_local2 < bulletsArray.length) {
if (myBall.hitTestObject(bulletsArray[_local2])){
isWin = false;
endLevel();
};
_local2++;
};
if (myBall.y > 399){
myBall.y = 399;
};
}
public function jumpToLoading(_arg1:TimerEvent){
gotoAndStop("loading");
}
public function newBullet8(){
var _local1:Bullet;
_local1 = new Bullet("", "level8");
bulletsArray8.push(_local1);
addChild(_local1);
}
public function rotLine13(_arg1:Event){
maze13.rotation = (maze13.rotation + 0.36);
}
public function rotLine14(_arg1:Event){
maze14.rotation = (maze14.rotation + 0.33);
}
public function rotLine16(_arg1:Event){
maze16.rotation = (maze16.rotation + 0.33);
}
public function rotLine17(_arg1:Event){
maze17.rotation = (maze17.rotation + 0.25);
maze17.c1.rotation = (maze17.c1.rotation + cirSpeed);
maze17.c2.rotation = (maze17.c2.rotation + cirSpeed);
maze17.c3.rotation = (maze17.c3.rotation + cirSpeed);
}
public function rotLine18(_arg1:Event){
maze18.rotation = (maze18.rotation + 0.34);
maze18.circleMaze18.c1.rotation = (maze18.circleMaze18.c1.rotation + cirSpeed);
maze18.circleMaze18.c2.rotation = (maze18.circleMaze18.c2.rotation + cirSpeed);
maze18.circleMaze18.c3.rotation = (maze18.circleMaze18.c3.rotation + cirSpeed);
maze18.circleMaze18.fan1.rotation = (maze18.circleMaze18.fan1.rotation + fanSpeed);
maze18.circleMaze18.fan2.rotation = (maze18.circleMaze18.fan2.rotation + fanSpeed);
maze18.circleMaze18.fan3.rotation = (maze18.circleMaze18.fan3.rotation + fanSpeed);
}
public function rotLine11(_arg1:Event){
fan1.rotation = (fan1.rotation + fanSpeed);
fan2.rotation = (fan2.rotation + fanSpeed);
fan3.rotation = (fan3.rotation + fanSpeed);
rotCircle1.rotation = (rotCircle1.rotation + cirSpeed);
rotCircle2.rotation = (rotCircle2.rotation + cirSpeed);
longStick.rotation = (longStick.rotation + 1);
dots1.rotation = (dots1.rotation + 0.75);
dots2.rotation = (dots2.rotation + 0.95);
dots3.rotation = (dots3.rotation + 1.05);
dots4.rotation = (dots4.rotation + 1.15);
}
public function rotLine12(_arg1:Event){
fan1.rotation = (fan1.rotation + fanSpeed);
fan2.rotation = (fan2.rotation + fanSpeed);
c1.rotation = (c1.rotation + cirSpeed);
c2.rotation = (c2.rotation + cirSpeed);
longStick.rotation = (longStick.rotation + 0.85);
}
public function rotLine20(_arg1:Event){
c1.rotation = (c1.rotation + cirSpeed);
}
public function endLevel3(){
stopRot3();
removeChild(myBall3);
removeChild(guide3);
removeEventListener(Event.ENTER_FRAME, collideChecker3);
removeEventListener(Event.ENTER_FRAME, moveMyBall3);
gotoAndStop("redirect");
}
public function endLevel6(){
removeChild(guide6);
removeChild(myBall6);
removeEventListener(Event.ENTER_FRAME, moveMyBall6);
removeEventListener(Event.ENTER_FRAME, collideChecker6);
time.stop();
gotoAndStop("redirect");
}
public function endLevel8(){
stopRot();
removeChild(guide8);
removeChild(myBall8);
removeEventListener(Event.ENTER_FRAME, collideChecker8);
removeEventListener(Event.ENTER_FRAME, moveMyBall8);
isDone = true;
isDoneFunc();
gotoAndStop("redirect");
}
public function endLevel2(){
stopRot2();
removeChild(myBall2);
removeChild(guide2);
removeEventListener(Event.ENTER_FRAME, collideChecker2);
removeEventListener(Event.ENTER_FRAME, moveMyBall);
gotoAndStop("redirect");
}
public function rotLine21(_arg1:Event){
c1.rotation = (c1.rotation + 0.6);
c2.rotation = (c2.rotation + 0.65);
c3.rotation = (c3.rotation + 0.75);
c4.rotation = (c4.rotation + 0.85);
}
public function endLevel4(){
stopRot4();
removeChild(myBall4);
removeChild(guide4);
removeEventListener(Event.ENTER_FRAME, collideChecker4);
removeEventListener(Event.ENTER_FRAME, moveMyBall4);
gotoAndStop("redirect");
}
public function endLevel5(){
stopRot5();
removeChild(myBall5);
removeChild(guide5);
removeEventListener(Event.ENTER_FRAME, collideChecker5);
removeEventListener(Event.ENTER_FRAME, moveMyBall5);
gotoAndStop("redirect");
}
public function collideChecker11(_arg1:Event){
if (newHitTest(myBall11, maze11)){
isWin = false;
endLevel11();
} else {
if (newHitTest(myBall11, rotCircle1)){
isWin = false;
endLevel11();
} else {
if (newHitTest(myBall11, rotCircle2)){
isWin = false;
endLevel11();
} else {
if (newHitTest(myBall11, dots1)){
isWin = false;
endLevel11();
} else {
if (newHitTest(myBall11, dots2)){
isWin = false;
endLevel11();
} else {
if (newHitTest(myBall11, dots3)){
isWin = false;
endLevel11();
} else {
if (newHitTest(myBall11, dots4)){
isWin = false;
endLevel11();
} else {
if (newHitTest(myBall11, fan1)){
isWin = false;
endLevel11();
} else {
if (newHitTest(myBall11, fan2)){
isWin = false;
endLevel11();
} else {
if (newHitTest(myBall11, fan3)){
isWin = false;
endLevel11();
} else {
if (newHitTest(myBall11, longStick)){
isWin = false;
endLevel11();
} else {
if (((((newHitTest(myBall11, h1)) || (newHitTest(myBall11, h2)))) || (newHitTest(myBall11, h3)))){
isWin = false;
endLevel11();
} else {
if (newHitTest(myBall11, end)){
isWin = true;
endLevel11();
} else {
if (myBall11.y > 397){
myBall11.y = 397;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function collideChecker13(_arg1:Event){
if (newHitTest(myBall13, maze13.end)){
isWin = true;
endLevel13();
} else {
if (newHitTest(myBall13, maze13.circleMaze)){
isWin = false;
endLevel13();
} else {
if (newHitTest(myBall13, outLine)){
isWin = false;
endLevel13();
} else {
if (((myBall13.hitTestObject(crossLine)) && ((isCrossed == false)))){
addEventListener(Event.ENTER_FRAME, rotLine13);
isCrossed = true;
} else {
if (myBall13.y > 397){
myBall13.y = 397;
};
};
};
};
};
}
public function rotLine22(_arg1:Event){
c1.rotation = (c1.rotation + cirSpeed);
c2.rotation = (c2.rotation + cirSpeed);
fan1.rotation = (fan1.rotation + fanSpeed);
fan2.rotation = (fan2.rotation + fanSpeed);
}
public function collideChecker15(_arg1:Event){
var _local2:int;
if (myBall15.hitTestObject(end)){
isWin = true;
endlevel155();
} else {
if (myBall15.hitTestObject(red1)){
red1.gotoAndStop("2");
tri1.gotoAndStop("2");
time151.stop();
} else {
if (myBall15.hitTestObject(red2)){
red2.gotoAndStop("2");
tri2.gotoAndStop("2");
time152.stop();
} else {
if (myBall15.hitTestObject(red3)){
red3.gotoAndStop("2");
tri3.gotoAndStop("2");
time153.stop();
} else {
if (newHitTest(myBall15, maze15)){
isWin = false;
endlevel155();
};
};
};
};
};
_local2 = 0;
while (_local2 < bulletsArray15.length) {
if (myBall15.hitTestObject(bulletsArray15[_local2])){
isWin = false;
endlevel155();
};
_local2++;
};
if (myBall15.y > 399){
myBall15.y = 399;
};
}
public function collideChecker16(_arg1:Event){
if (newHitTest(myBall16, maze16.end)){
isWin = true;
endLevel16();
} else {
if (newHitTest(myBall16, maze16.circleMaze16)){
isWin = false;
endLevel16();
} else {
if (newHitTest(myBall16, outer)){
isWin = false;
endLevel16();
} else {
if (((myBall16.hitTestObject(crossLine)) && ((isCrossed16 == false)))){
addEventListener(Event.ENTER_FRAME, rotLine16);
isCrossed16 = true;
} else {
if (myBall16.y > 397){
myBall16.y = 397;
};
};
};
};
};
}
public function collideChecker17(_arg1:Event){
if (newHitTest(myBall17, end)){
isWin = true;
endLevel17();
} else {
if (newHitTest(myBall17, maze17.circleMaze17)){
isWin = false;
endLevel17();
} else {
if (((((newHitTest(myBall17, maze17.c1)) || (newHitTest(myBall17, maze17.c2)))) || (newHitTest(myBall17, maze17.c3)))){
isWin = false;
endLevel17();
} else {
if (newHitTest(myBall17, outer)){
isWin = false;
endLevel17();
} else {
if (((myBall17.hitTestObject(crossLine)) && ((isCrossed17 == false)))){
addEventListener(Event.ENTER_FRAME, rotLine17);
isCrossed17 = true;
} else {
if (((newHitTest(myBall17, maze17.red1)) && ((isRed1Pressed == false)))){
isRed1Pressed = true;
maze17.red1.gotoAndStop(2);
} else {
if (((newHitTest(myBall17, maze17.red2)) && ((isRed2Pressed == false)))){
isRed2Pressed = true;
maze17.red2.gotoAndStop(2);
} else {
if (((newHitTest(myBall17, maze17.red3)) && ((isRed3Pressed == false)))){
isRed3Pressed = true;
maze17.red3.gotoAndStop(2);
} else {
if (newHitTest(myBall17, gate)){
isWin = false;
endLevel17();
} else {
if ((((((isRed1Pressed == true)) && ((isRed2Pressed == true)))) && ((isRed3Pressed == true)))){
gate.gotoAndStop(2);
} else {
if (myBall17.y > 397){
myBall17.y = 397;
};
};
};
};
};
};
};
};
};
};
};
}
public function collideChecker18(_arg1:Event){
if (myBall18.hitTestObject(end)){
isWin = true;
endLevel18();
} else {
if (newHitTest(myBall18, maze18.circleMaze18)){
isWin = false;
endLevel18();
} else {
if (newHitTest(myBall18, outer)){
isWin = false;
endLevel18();
} else {
if (((myBall18.hitTestObject(crossLine)) && ((isCrossed18 == false)))){
addEventListener(Event.ENTER_FRAME, rotLine18);
isCrossed18 = true;
} else {
if (newHitTest(myBall18, gate)){
isWin = false;
endLevel18();
} else {
if (((myBall18.hitTestObject(maze18.red1)) && ((isRed1 == false)))){
maze18.red1.gotoAndStop(2);
isRed1 = true;
} else {
if (((myBall18.hitTestObject(maze18.red2)) && ((isRed2 == false)))){
maze18.red2.gotoAndStop(2);
isRed2 = true;
} else {
if (((myBall18.hitTestObject(maze18.red3)) && ((isRed3 == false)))){
maze18.red3.gotoAndStop(2);
isRed3 = true;
} else {
if ((((((isRed1 == true)) && ((isRed2 == true)))) && ((isRed3 == true)))){
gate.gotoAndStop(2);
} else {
if (myBall18.y > 397){
myBall18.y = 397;
};
};
};
};
};
};
};
};
};
};
}
public function collideChecker19(_arg1:Event){
if (myBall19.hitTestObject(end)){
isWin = true;
endLevel19();
} else {
if (newHitTest(myBall19, maze19)){
isWin = false;
endLevel19();
} else {
if (myBall19.y > 397){
myBall19.y = 397;
};
};
};
}
public function collideChecker14(_arg1:Event){
if (newHitTest(myBall14, end)){
isWin = true;
endLevel14();
} else {
if (newHitTest(myBall14, maze14.circleMaze14)){
isWin = false;
endLevel14();
} else {
if (newHitTest(myBall14, outLine14)){
isWin = false;
endLevel14();
} else {
if (myBall14.hitTestObject(maze14.red)){
gate.gotoAndStop(2);
maze14.red.gotoAndStop(2);
} else {
if (newHitTest(myBall14, gate)){
isWin = false;
endLevel14();
} else {
if (((((myBall14.hitTestObject(crossLine1)) || (myBall14.hitTestObject(crossLine2)))) && ((isCrossed14 == false)))){
addEventListener(Event.ENTER_FRAME, rotLine14);
isCrossed14 = true;
} else {
if (myBall14.y > 397){
myBall14.y = 397;
};
};
};
};
};
};
};
}
public function rotLine23(_arg1:Event){
maze23.rotation = (maze23.rotation + 0.35);
maze23.circularMaze23.c1.rotation = (maze23.circularMaze23.c1.rotation + cirSpeed);
maze23.circularMaze23.c2.rotation = (maze23.circularMaze23.c2.rotation + cirSpeed);
maze23.circularMaze23.c3.rotation = (maze23.circularMaze23.c3.rotation + cirSpeed);
maze23.circularMaze23.c4.rotation = (maze23.circularMaze23.c4.rotation + cirSpeed);
maze23.circularMaze23.c5.rotation = (maze23.circularMaze23.c5.rotation + cirSpeed);
maze23.circularMaze23.c6.rotation = (maze23.circularMaze23.c6.rotation + cirSpeed);
}
public function collideChecker12(_arg1:Event){
if (newHitTest(myBall12, end)){
isWin = true;
endLevel12();
} else {
if (newHitTest(myBall12, h1)){
isWin = false;
endLevel12();
} else {
if (newHitTest(myBall12, h2)){
isWin = false;
endLevel12();
} else {
if (newHitTest(myBall12, h3)){
isWin = false;
endLevel12();
} else {
if (newHitTest(myBall12, h4)){
isWin = false;
endLevel12();
} else {
if (newHitTest(myBall12, c1)){
isWin = false;
endLevel12();
} else {
if (newHitTest(myBall12, c2)){
isWin = false;
endLevel12();
} else {
if (newHitTest(myBall12, fan1)){
isWin = false;
endLevel12();
} else {
if (newHitTest(myBall12, fan2)){
isWin = false;
endLevel12();
} else {
if (newHitTest(myBall12, maze12)){
isWin = false;
endLevel12();
} else {
if (myBall12.y > 397){
myBall12.y = 397;
};
};
};
};
};
};
};
};
};
};
};
}
public function rotLine24(_arg1:Event){
maze24.rotation = (maze24.rotation + 0.3);
maze24.circleMaze24.c1.rotation = (maze24.circleMaze24.c1.rotation + cirSpeed);
maze24.circleMaze24.c2.rotation = (maze24.circleMaze24.c2.rotation + cirSpeed);
maze24.circleMaze24.c3.rotation = (maze24.circleMaze24.c3.rotation + cirSpeed);
maze24.circleMaze24.c4.rotation = (maze24.circleMaze24.c4.rotation + cirSpeed);
maze24.circleMaze24.fan1.rotation = (maze24.circleMaze24.fan1.rotation + fanSpeed);
maze24.circleMaze24.fan2.rotation = (maze24.circleMaze24.fan2.rotation + fanSpeed);
maze24.circleMaze24.fan3.rotation = (maze24.circleMaze24.fan3.rotation + fanSpeed);
maze24.circleMaze24.fan4.rotation = (maze24.circleMaze24.fan4.rotation + fanSpeed);
maze24.circleMaze24.fan5.rotation = (maze24.circleMaze24.fan5.rotation + fanSpeed);
maze24.circleMaze24.fan6.rotation = (maze24.circleMaze24.fan6.rotation + fanSpeed);
}
public function collideChecker20(_arg1:Event){
if (myBall20.hitTestObject(end)){
isWin = true;
endLevel20();
} else {
if (newHitTest(myBall20, maze20)){
isWin = false;
endLevel20();
} else {
if (newHitTest(myBall20, c1)){
isWin = false;
endLevel20();
} else {
if (myBall20.y > 397){
myBall20.y = 397;
};
};
};
};
}
public function collideChecker21(_arg1:Event){
if (myBall21.hitTestObject(end)){
isWin = true;
endLevel21();
} else {
if (((((((newHitTest(myBall21, c1)) || (newHitTest(myBall21, c2)))) || (newHitTest(myBall21, c3)))) || (newHitTest(myBall21, c4)))){
isWin = false;
endLevel21();
} else {
if (newHitTest(myBall21, outer)){
isWin = false;
endLevel21();
} else {
if (newHitTest(myBall21, gate)){
isWin = false;
endLevel21();
} else {
if (newHitTest(myBall21, crossLine)){
addEventListener(Event.ENTER_FRAME, rotLine21);
isCrossed21 = true;
} else {
if (myBall21.hitTestObject(red)){
red.gotoAndStop(2);
gate.gotoAndStop(2);
removeEventListener(Event.ENTER_FRAME, rotLine21);
} else {
if (myBall21.y > 397){
myBall21.y = 397;
};
};
};
};
};
};
};
}
public function collideChecker23(_arg1:Event){
if (newHitTest(myBall23, maze23.end)){
isWin = true;
endLevel23();
} else {
if (newHitTest(myBall23, maze23.circularMaze23)){
isWin = false;
endLevel23();
} else {
if (newHitTest(myBall23, outer)){
isWin = false;
endLevel23();
} else {
if (myBall23.hitTestObject(crossLine)){
addEventListener(Event.ENTER_FRAME, rotLine23);
isCrossed23 = true;
} else {
if (myBall23.y > 397){
myBall23.y = 397;
};
};
};
};
};
}
public function collideChecker24(_arg1:Event){
if (myBall24.hitTestObject(end)){
isWin = true;
endLevel24();
} else {
if (newHitTest(myBall24, maze24.circleMaze24)){
isWin = false;
endLevel24();
} else {
if (newHitTest(myBall24, outer)){
isWin = false;
endLevel24();
} else {
if (((myBall24.hitTestObject(crossLine)) && ((isCrossed24 == false)))){
addEventListener(Event.ENTER_FRAME, rotLine24);
isCrossed24 = true;
} else {
if (newHitTest(myBall24, gate)){
isWin = false;
endLevel24();
} else {
if (((myBall24.hitTestObject(maze24.red1)) && ((isRed241 == false)))){
maze24.red1.gotoAndStop(2);
isRed241 = true;
} else {
if (((myBall24.hitTestObject(maze24.red2)) && ((isRed242 == false)))){
maze24.red2.gotoAndStop(2);
isRed242 = true;
} else {
if ((((isRed241 == true)) && ((isRed242 == true)))){
gate.gotoAndStop(2);
} else {
if (myBall24.y > 397){
myBall24.y = 397;
};
};
};
};
};
};
};
};
};
}
function frame165(){
stop();
}
public function movemyBall1515(_arg1:Event){
guide15.x = mouseX;
guide15.y = mouseY;
distX = (mouseX - myBall15.x);
distY = (mouseY - myBall15.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall15.x = (myBall15.x + speedX);
myBall15.y = (myBall15.y + speedY);
myBall15.rotation = ((angle * 180) / Math.PI);
}
public function stopSound(_arg1:KeyboardEvent){
if ((((_arg1.keyCode == 32)) && ((stopMusic == false)))){
channel.stop();
stopMusic = true;
} else {
if ((((_arg1.keyCode == 32)) && ((stopMusic == true)))){
channel = m.play(0, int.MAX_VALUE);
stopMusic = false;
};
};
}
function frame168(){
stop();
cirSpeed = 1.2;
fanSpeed = 1.6;
playBut.addEventListener(MouseEvent.CLICK, playGame);
InstBut.addEventListener(MouseEvent.CLICK, instruction);
playMore.addEventListener(MouseEvent.CLICK, goToUGO);
stage.addEventListener(KeyboardEvent.KEY_DOWN, stopSound);
stopMusic = false;
channel = new SoundChannel();
m = new Music();
channel = m.play(0, int.MAX_VALUE);
layerNo = 168;
isWin = false;
delay = 10;
}
function frame169(){
stop();
isClicked19 = false;
levelWriter();
if (isClicked19 == false){
myBall19.addEventListener(MouseEvent.CLICK, enableMyBall19);
};
}
function frame176(){
stop();
className = "level1";
isClicked = false;
isDone1 = false;
levelWriter();
if (isClicked == false){
myBall.addEventListener(MouseEvent.CLICK, enableMyBall);
};
redArray = new Array();
bulletsArray = new Array();
isFirstBottomBullet = false;
isFirstMiddleBullet = false;
isFirstTopBullet = false;
count = 0;
}
public function rightBullet(){
if (isFirstRightBullet == false){
isFirstRightBullet = true;
time151 = new Timer(100, 1);
time151.addEventListener(TimerEvent.TIMER_COMPLETE, newrightBullet);
time151.start();
} else {
time151 = new Timer(2300, 1);
time151.addEventListener(TimerEvent.TIMER_COMPLETE, newrightBullet);
time151.start();
};
}
function frame172(){
stop();
isClicked2 = false;
levelWriter();
if (isClicked2 == false){
myBall2.addEventListener(MouseEvent.CLICK, enablemyBall22);
};
}
function frame177(){
stop();
className = "level15";
isClicked15 = false;
isDone15 = false;
levelWriter();
if (isClicked15 == false){
myBall15.addEventListener(MouseEvent.CLICK, enablemyBall1515);
};
bulletsArray15 = new Array();
isFirstRightBullet = false;
isFirstmiddleBullet1515 = false;
isFirstLeftBullet = false;
}
public function removeBullet6(_arg1:Bullet){
var _local2:*;
for (_local2 in bulletsArray6) {
if (bulletsArray6[_local2] == _arg1){
bulletsArray6.splice(_local2, 1);
break;
};
};
}
function frame174(){
stop();
isClicked3 = false;
levelWriter();
if (isClicked3 == false){
myBall3.addEventListener(MouseEvent.CLICK, enableMyBall3);
};
}
function frame178(){
stop();
bulletsArray8 = new Array();
className = "level7";
isClicked8 = false;
myBall8.addEventListener(MouseEvent.CLICK, enableMyBall8);
levelWriter();
if (isClicked8 == false){
myBall8.addEventListener(MouseEvent.CLICK, enableMyBall8);
};
}
public function endlevel155(){
var _local1:int;
isDone15 = true;
removeEventListener(Event.ENTER_FRAME, movemyBall1515);
removeChild(guide15);
removeChild(myBall15);
_local1 = 0;
while (_local1 < bulletsArray15.length) {
bulletsArray15.splice(_local1, 1);
removeBullet15(bulletsArray15[_local1]);
_local1++;
};
time151.stop();
time152.stop();
time153.stop();
removeEventListener(Event.ENTER_FRAME, collideChecker15);
gotoAndStop("redirect");
}
function frame186(){
stop();
isClicked16 = false;
myBall16.addEventListener(MouseEvent.CLICK, enableMyBall16);
isCrossed16 = false;
levelWriter();
if (isClicked16 == false){
myBall16.addEventListener(MouseEvent.CLICK, enableMyBall16);
};
}
public function removeBullet8(_arg1:Bullet){
var _local2:*;
for (_local2 in bulletsArray8) {
if (bulletsArray8[_local2] == _arg1){
bulletsArray8.splice(_local2, 1);
break;
};
};
}
function frame173(){
stop();
isClicked5 = false;
levelWriter();
if (isClicked5 == false){
myBall5.addEventListener(MouseEvent.CLICK, enableMyBall5);
};
}
function frame183(){
stop();
isClicked17 = false;
myBall17.addEventListener(MouseEvent.CLICK, enableMyBall17);
isCrossed17 = false;
isRed1Pressed = false;
isRed2Pressed = false;
isRed3Pressed = false;
levelWriter();
if (isClicked17 == false){
myBall17.addEventListener(MouseEvent.CLICK, enableMyBall17);
};
}
function frame175(){
className = "level6";
isClicked6 = false;
levelWriter();
if (isClicked6 == false){
addEventListener(MouseEvent.CLICK, enableMyBall6);
};
isFirstBullet = false;
bulletsArray6 = new Array();
}
public function rotLine(_arg1:Event){
c1.rotation = (c1.rotation + cirSpeed);
fan1.rotation = (fan1.rotation + fanSpeed);
fan2.rotation = (fan2.rotation + fanSpeed);
fan3.rotation = (fan3.rotation + fanSpeed);
}
public function stopRotInst(){
c.rotation = 0;
fan.rotation = 0;
removeChild(c);
removeChild(fan);
removeEventListener(Event.ENTER_FRAME, rotLineInst);
}
public function stopRot(){
fan1.rotation = 0;
fan2.rotation = 0;
fan3.rotation = 0;
c1.rotation = 0;
removeChild(fan1);
removeChild(fan2);
removeChild(fan3);
removeChild(c1);
removeEventListener(Event.ENTER_FRAME, rotLine);
}
function frame171(){
stop();
isClicked4 = false;
levelWriter();
if (isClicked4 == false){
myBall4.addEventListener(MouseEvent.CLICK, enableMyBall4);
};
}
function frame167(){
stop();
addEventListener(Event.ENTER_FRAME, loadProgress);
}
function frame188(){
stop();
isClicked18 = false;
myBall18.addEventListener(MouseEvent.CLICK, enableMyBall18);
isCrossed18 = false;
isRed1 = false;
isRed2 = false;
isRed3 = false;
levelWriter();
if (isClicked18 == false){
myBall18.addEventListener(MouseEvent.CLICK, enableMyBall18);
};
}
function frame189(){
stop();
Mouse.show();
gotoAndStop("gameOver");
}
function frame181(){
stop();
isClicked21 = false;
myBall21.addEventListener(MouseEvent.CLICK, enableMyBall21);
isCrossed21 = false;
levelWriter();
if (isClicked21 == false){
myBall21.addEventListener(MouseEvent.CLICK, enableMyBall21);
};
}
function frame179(){
stop();
levelWriter();
isClicked11 = false;
myBall11.addEventListener(MouseEvent.CLICK, enableMyBall11);
if (isClicked11 == false){
myBall11.addEventListener(MouseEvent.CLICK, enableMyBall11);
};
}
function frame184(){
stop();
isClicked23 = false;
myBall23.addEventListener(MouseEvent.CLICK, enableMyBall23);
isCrossed23 = false;
levelWriter();
if (isClicked23 == false){
myBall23.addEventListener(MouseEvent.CLICK, enableMyBall23);
};
}
function frame187(){
stop();
isClicked24 = false;
myBall24.addEventListener(MouseEvent.CLICK, enableMyBall24);
isCrossed24 = false;
isRed241 = false;
isRed242 = false;
levelWriter();
if (isClicked24 == false){
myBall24.addEventListener(MouseEvent.CLICK, enableMyBall24);
};
}
function frame180(){
stop();
isClicked12 = false;
myBall12.addEventListener(MouseEvent.CLICK, enableMyBall12);
levelWriter();
if (isClicked12 == false){
myBall12.addEventListener(MouseEvent.CLICK, enableMyBall12);
};
}
function frame193(){
stop();
mainMenu.addEventListener(MouseEvent.CLICK, mainMenuFun);
}
function frame182(){
stop();
isClicked14 = false;
myBall14.addEventListener(MouseEvent.CLICK, enableMyBall14);
isCrossed14 = false;
levelWriter();
if (isClicked14 == false){
myBall14.addEventListener(MouseEvent.CLICK, enableMyBall14);
};
}
function frame190(){
stop();
if (isWin == false){
gotoAndStop(layerNo);
isWin = false;
} else {
if (isWin == true){
if (layerNo == 22){
gotoAndStop("congrats");
} else {
gotoAndStop(++layerNo);
isWin = false;
};
};
};
}
function frame170(){
stop();
isClicked20 = false;
levelWriter();
if (isClicked20 == false){
myBall20.addEventListener(MouseEvent.CLICK, enableMyBall20);
};
}
public function removeBullet(_arg1:Bullet){
var _local2:*;
for (_local2 in bulletsArray) {
if (bulletsArray[_local2] == _arg1){
bulletsArray.splice(_local2, 1);
break;
};
};
}
function frame185(){
stop();
isClicked13 = false;
myBall13.addEventListener(MouseEvent.CLICK, enableMyBall13);
isCrossed = false;
levelWriter();
if (isClicked13 == false){
myBall13.addEventListener(MouseEvent.CLICK, enableMyBall13);
};
}
function frame191(){
stop();
addEventListener(Event.ENTER_FRAME, rotLineInst);
nextInst.addEventListener(MouseEvent.CLICK, playFunc);
}
function frame192(){
stop();
playBut.addEventListener(MouseEvent.CLICK, playFunc2);
backInst.addEventListener(MouseEvent.CLICK, backFunc);
}
public function moveMyBall2(_arg1:Event){
guide.x = mouseX;
guide.y = mouseY;
distX = (mouseX - myBall.x);
distY = (mouseY - myBall.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall.x = (myBall.x + speedX);
myBall.y = (myBall.y + speedY);
myBall.rotation = ((angle * 180) / Math.PI);
}
public function moveMyBall3(_arg1:Event){
guide3.x = mouseX;
guide3.y = mouseY;
distX = (mouseX - myBall3.x);
distY = (mouseY - myBall3.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall3.x = (myBall3.x + speedX);
myBall3.y = (myBall3.y + speedY);
myBall3.rotation = ((angle * 180) / Math.PI);
}
public function moveMyBall5(_arg1:Event){
guide5.x = mouseX;
guide5.y = mouseY;
distX = (mouseX - myBall5.x);
distY = (mouseY - myBall5.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall5.x = (myBall5.x + speedX);
myBall5.y = (myBall5.y + speedY);
myBall5.rotation = ((angle * 180) / Math.PI);
}
public function moveMyBall6(_arg1:Event){
guide6.x = mouseX;
guide6.y = mouseY;
distX = (mouseX - myBall6.x);
distY = (mouseY - myBall6.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall6.x = (myBall6.x + speedX);
myBall6.y = (myBall6.y + speedY);
myBall6.rotation = ((angle * 180) / Math.PI);
}
public function topBullet(){
if (isFirstTopBullet == false){
isFirstTopBullet = true;
time3 = new Timer(100, 1);
time3.addEventListener(TimerEvent.TIMER_COMPLETE, newTopBullet);
time3.start();
} else {
time3 = new Timer(3000, 1);
time3.addEventListener(TimerEvent.TIMER_COMPLETE, newTopBullet);
time3.start();
};
}
public function moveMyBall4(_arg1:Event){
guide4.x = mouseX;
guide4.y = mouseY;
distX = (mouseX - myBall4.x);
distY = (mouseY - myBall4.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall4.x = (myBall4.x + speedX);
myBall4.y = (myBall4.y + speedY);
myBall4.rotation = ((angle * 180) / Math.PI);
}
public function newBullet(_arg1:TimerEvent){
var _local2:Bullet;
_local2 = new Bullet("", "level6");
bulletsArray6.push(_local2);
addChild(_local2);
moveBullet();
}
public function moveMyBall8(_arg1:Event){
guide8.x = mouseX;
guide8.y = mouseY;
distX = (mouseX - myBall8.x);
distY = (mouseY - myBall8.y);
distance = Math.sqrt(((distX * distX) + (distY * distY)));
speed = (distance / delay);
angle = Math.atan2(distY, distX);
speedX = (speed * Math.cos(angle));
speedY = (speed * Math.sin(angle));
myBall8.x = (myBall8.x + speedX);
myBall8.y = (myBall8.y + speedY);
myBall8.rotation = ((angle * 180) / Math.PI);
}
public function mouseDown(_arg1:MouseEvent):void{
navigateToURL(request, "_blank");
}
public function middleBullet(){
if (isFirstMiddleBullet == false){
isFirstMiddleBullet = true;
time2 = new Timer(100, 1);
time2.addEventListener(TimerEvent.TIMER_COMPLETE, newMiddleBullet);
time2.start();
} else {
time2 = new Timer(2700, 1);
time2.addEventListener(TimerEvent.TIMER_COMPLETE, newMiddleBullet);
time2.start();
};
}
public function playFunc2(_arg1:MouseEvent){
gotoAndStop("redirect");
isWin = true;
}
public function bottomBullet(){
if (isFirstBottomBullet == false){
isFirstBottomBullet = true;
time1 = new Timer(100, 1);
time1.addEventListener(TimerEvent.TIMER_COMPLETE, newBottomBullet);
time1.start();
} else {
time1 = new Timer(1800, 1);
time1.addEventListener(TimerEvent.TIMER_COMPLETE, newBottomBullet);
time1.start();
};
}
public function rotLine4(_arg1:Event){
c1.rotation = (c1.rotation + cirSpeed);
c2.rotation = (c2.rotation + cirSpeed);
}
public function rotLine5(_arg1:Event){
c1.rotation = (c1.rotation + cirSpeed);
c2.rotation = (c2.rotation + cirSpeed);
c3.rotation = (c3.rotation + cirSpeed);
c4.rotation = (c4.rotation + cirSpeed);
fan1.rotation = (fan1.rotation + fanSpeed);
fan2.rotation = (fan2.rotation + fanSpeed);
fan3.rotation = (fan3.rotation + fanSpeed);
fan4.rotation = (fan4.rotation + fanSpeed);
}
public function rotLine3(_arg1:Event){
c1.rotation = (c1.rotation + 0.75);
c2.rotation = (c2.rotation + 0.75);
c3.rotation = (c3.rotation + 0.75);
c4.rotation = (c4.rotation + 0.75);
fan1.rotation = (fan1.rotation + 1);
fan2.rotation = (fan2.rotation + 1);
fan3.rotation = (fan3.rotation + 1);
fan4.rotation = (fan4.rotation + 1);
}
public function startGame2(){
Mouse.hide();
addEventListener(Event.ENTER_FRAME, moveMyBall);
addEventListener(Event.ENTER_FRAME, collideChecker2);
addEventListener(Event.ENTER_FRAME, rotLine22);
}
public function startGame3(){
Mouse.hide();
addEventListener(Event.ENTER_FRAME, collideChecker3);
addEventListener(Event.ENTER_FRAME, moveMyBall3);
addEventListener(Event.ENTER_FRAME, rotLine3);
}
public function startGame4(){
Mouse.hide();
addEventListener(KeyboardEvent.KEY_DOWN, stopSound);
addEventListener(Event.ENTER_FRAME, rotLine4);
addEventListener(Event.ENTER_FRAME, moveMyBall4);
addEventListener(Event.ENTER_FRAME, collideChecker4);
}
public function startGame6(){
Mouse.hide();
addEventListener(Event.ENTER_FRAME, collideChecker6);
addEventListener(Event.ENTER_FRAME, moveMyBall6);
moveBullet();
}
public function startGame8(){
Mouse.hide();
addEventListener(Event.ENTER_FRAME, collideChecker8);
addEventListener(Event.ENTER_FRAME, moveMyBall8);
addEventListener(Event.ENTER_FRAME, rotLine);
newBullet8();
}
public function startGame5(){
Mouse.hide();
addEventListener(Event.ENTER_FRAME, moveMyBall5);
addEventListener(Event.ENTER_FRAME, collideChecker5);
addEventListener(Event.ENTER_FRAME, rotLine5);
}
public function endLevel11(){
removeChild(guide11);
removeChild(myBall11);
removeEventListener(Event.ENTER_FRAME, moveMyBall11);
removeEventListener(Event.ENTER_FRAME, collideChecker11);
stopRot11();
gotoAndStop("redirect");
}
public function endLevel13(){
stopRot13();
removeChild(guide13);
removeChild(myBall13);
removeEventListener(Event.ENTER_FRAME, moveMyBall13);
removeEventListener(Event.ENTER_FRAME, collideChecker13);
gotoAndStop("redirect");
}
public function endLevel14(){
stopRot14();
removeChild(guide14);
removeChild(myBall14);
removeEventListener(Event.ENTER_FRAME, moveMyBall14);
removeEventListener(Event.ENTER_FRAME, collideChecker14);
gotoAndStop("redirect");
}
public function endLevel16(){
stopRot16();
removeChild(guide16);
removeChild(myBall16);
removeEventListener(Event.ENTER_FRAME, moveMyBall16);
removeEventListener(Event.ENTER_FRAME, collideChecker16);
gotoAndStop("redirect");
}
public function endLevel17(){
stopRot17();
removeChild(guide17);
removeChild(myBall17);
removeEventListener(Event.ENTER_FRAME, moveMyBall17);
removeEventListener(Event.ENTER_FRAME, collideChecker17);
gotoAndStop("redirect");
}
public function endLevel18(){
stopRot18();
removeChild(guide18);
removeChild(myBall18);
removeEventListener(Event.ENTER_FRAME, moveMyBall18);
removeEventListener(Event.ENTER_FRAME, collideChecker18);
gotoAndStop("redirect");
}
public function stopRot11(){
fan1.rotation = 0;
fan2.rotation = 0;
fan3.rotation = 0;
rotCircle1.rotation = 0;
rotCircle2.rotation = 0;
longStick.rotation = 0;
dots1.rotation = 0;
dots2.rotation = 0;
dots3.rotation = 0;
dots4.rotation = 0;
removeChild(fan1);
removeChild(fan2);
removeChild(fan3);
removeChild(rotCircle1);
removeChild(rotCircle2);
removeChild(longStick);
removeChild(dots1);
removeChild(dots2);
removeChild(dots3);
removeChild(dots4);
removeEventListener(Event.ENTER_FRAME, rotLine11);
}
public function stopRot13(){
maze13.rotation = 0;
removeChild(maze13);
removeEventListener(Event.ENTER_FRAME, rotLine13);
}
public function endLevel19(){
removeChild(myBall19);
removeChild(guide19);
removeEventListener(Event.ENTER_FRAME, collideChecker19);
removeEventListener(Event.ENTER_FRAME, moveMyBall19);
gotoAndStop("redirect");
}
public function stopRot16(){
maze16.rotation = 0;
removeChild(maze16);
removeEventListener(Event.ENTER_FRAME, rotLine16);
}
public function middleBullet15(){
if (isFirstmiddleBullet1515 == false){
isFirstmiddleBullet1515 = true;
time152 = new Timer(100, 1);
time152.addEventListener(TimerEvent.TIMER_COMPLETE, newmiddleBullet15);
time152.start();
} else {
time152 = new Timer(3200, 1);
time152.addEventListener(TimerEvent.TIMER_COMPLETE, newmiddleBullet15);
time152.start();
};
}
public function stopRot14(){
maze14.rotation = 0;
removeChild(maze14);
removeEventListener(Event.ENTER_FRAME, rotLine14);
}
public function rotLineInst(_arg1:Event){
c.rotation = (c.rotation + 0.75);
fan.rotation = (fan.rotation + 1);
}
public function stopRot18(){
maze18.rotation = 0;
maze18.circleMaze18.c1.rotation = 0;
maze18.circleMaze18.c2.rotation = 0;
maze18.circleMaze18.c3.rotation = 0;
maze18.circleMaze18.fan1.rotation = 0;
maze18.circleMaze18.fan2.rotation = 0;
maze18.circleMaze18.fan3.rotation = 0;
removeChild(maze18);
removeEventListener(Event.ENTER_FRAME, rotLine18);
}
public function stopRot12(){
fan1.rotation = 0;
fan2.rotation = 0;
c1.rotation = 0;
c2.rotation = 0;
longStick.rotation = 0;
removeChild(fan1);
removeChild(fan2);
removeChild(c1);
removeChild(c2);
removeChild(longStick);
removeEventListener(Event.ENTER_FRAME, rotLine12);
}
public function endLevel20(){
stopRot20();
removeChild(myBall20);
removeChild(guide20);
removeEventListener(Event.ENTER_FRAME, collideChecker20);
removeEventListener(Event.ENTER_FRAME, moveMyBall20);
gotoAndStop("redirect");
}
public function endLevel21(){
stopRot21();
removeChild(guide21);
removeChild(myBall21);
removeEventListener(Event.ENTER_FRAME, moveMyBall21);
removeEventListener(Event.ENTER_FRAME, collideChecker21);
gotoAndStop("redirect");
}
public function endLevel(){
var _local1:int;
isDone1 = true;
removeEventListener(Event.ENTER_FRAME, moveMyBall2);
removeChild(guide);
removeChild(myBall);
_local1 = 0;
while (_local1 < bulletsArray.length) {
removeBullet(bulletsArray[_local1]);
_local1++;
};
time1.stop();
time2.stop();
time3.stop();
removeEventListener(Event.ENTER_FRAME, collideChecker);
gotoAndStop("redirect");
}
public function stopRot17(){
maze17.rotation = 0;
maze17.c1.rotation = 0;
maze17.c2.rotation = 0;
maze17.c3.rotation = 0;
removeChild(maze17);
removeEventListener(Event.ENTER_FRAME, rotLine17);
}
public function endLevel24(){
stopRot24();
removeChild(guide24);
removeChild(myBall24);
removeEventListener(Event.ENTER_FRAME, moveMyBall24);
removeEventListener(Event.ENTER_FRAME, collideChecker24);
gotoAndStop("redirect");
}
public function stopRot23(){
maze23.rotation = 0;
maze23.circularMaze23.c1.rotation = 0;
maze23.circularMaze23.c2.rotation = 0;
maze23.circularMaze23.c3.rotation = 0;
maze23.circularMaze23.c4.rotation = 0;
maze23.circularMaze23.c5.rotation = 0;
maze23.circularMaze23.c6.rotation = 0;
removeChild(maze23);
removeEventListener(Event.ENTER_FRAME, rotLine23);
}
public function removeBullet15(_arg1:Bullet){
var _local2:*;
for (_local2 in bulletsArray15) {
if (bulletsArray15[_local2] == _arg1){
bulletsArray15.splice(_local2, 1);
break;
};
};
}
public function endLevel23(){
stopRot23();
removeChild(guide23);
removeChild(myBall23);
removeEventListener(Event.ENTER_FRAME, moveMyBall23);
removeEventListener(Event.ENTER_FRAME, collideChecker23);
gotoAndStop("redirect");
}
public function stopRot20(){
c1.rotation = 0;
removeChild(c1);
removeEventListener(Event.ENTER_FRAME, rotLine20);
}
public function startGame(){
Mouse.hide();
addEventListener(Event.ENTER_FRAME, collideChecker);
addEventListener(Event.ENTER_FRAME, moveMyBall2);
middleBullet();
bottomBullet();
topBullet();
}
public function stopRot24(){
maze24.rotation = 0;
maze24.circleMaze24.c1.rotation = 0;
maze24.circleMaze24.c2.rotation = 0;
maze24.circleMaze24.c3.rotation = 0;
maze24.circleMaze24.c4.rotation = 0;
maze24.circleMaze24.fan1.rotation = 0;
maze24.circleMaze24.fan2.rotation = 0;
maze24.circleMaze24.fan3.rotation = 0;
maze24.circleMaze24.fan4.rotation = 0;
maze24.circleMaze24.fan5.rotation = 0;
maze24.circleMaze24.fan6.rotation = 0;
removeChild(maze24);
removeEventListener(Event.ENTER_FRAME, rotLine24);
}
public function endLevel12(){
stopRot12();
removeChild(guide12);
removeChild(myBall12);
removeEventListener(Event.ENTER_FRAME, moveMyBall12);
removeEventListener(Event.ENTER_FRAME, collideChecker12);
gotoAndStop("redirect");
}
public function mainMenuFun(_arg1:MouseEvent){
stopMusic = true;
channel.stop();
gotoAndStop("intro");
}
public function stopRot21(){
c1.rotation = 0;
c2.rotation = 0;
c3.rotation = 0;
c4.rotation = 0;
removeChild(c1);
removeChild(c2);
removeChild(c3);
removeChild(c4);
removeEventListener(Event.ENTER_FRAME, rotLine21);
}
public function goToUGO(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com ");
navigateToURL(_local2);
}
public function enableMyBall12(_arg1:MouseEvent){
removeChild(logo);
isClicked12 = true;
myBall12.removeEventListener(MouseEvent.CLICK, enableMyBall12);
startGame12();
}
public function enablemyBall22(_arg1:MouseEvent){
isClicked2 = true;
startGame2();
removeChild(logo);
myBall2.removeEventListener(MouseEvent.CLICK, enablemyBall22);
}
public function enableMyBall19(_arg1:MouseEvent){
isClicked19 = true;
removeChild(logo);
startGame19();
myBall19.removeEventListener(MouseEvent.CLICK, enableMyBall19);
}
public function enableMyBall13(_arg1:MouseEvent){
isClicked13 = true;
myBall13.removeEventListener(MouseEvent.CLICK, enableMyBall13);
removeChild(logo);
startGame13();
}
public function enableMyBall16(_arg1:MouseEvent){
isClicked16 = true;
myBall16.removeEventListener(MouseEvent.CLICK, enableMyBall16);
removeChild(logo);
startGame16();
}
public function enableMyBall18(_arg1:MouseEvent){
isClicked18 = true;
myBall18.removeEventListener(MouseEvent.CLICK, enableMyBall18);
removeChild(logo);
startGame18();
}
public function enableMyBall11(_arg1:MouseEvent){
isClicked11 = true;
myBall11.removeEventListener(MouseEvent.CLICK, enableMyBall11);
startGame11();
removeChild(logo);
}
public function enableMyBall17(_arg1:MouseEvent){
isClicked17 = true;
myBall17.removeEventListener(MouseEvent.CLICK, enableMyBall17);
removeChild(logo);
startGame17();
}
public function leftBullet(){
if (isFirstLeftBullet == false){
isFirstLeftBullet = true;
time153 = new Timer(100, 1);
time153.addEventListener(TimerEvent.TIMER_COMPLETE, newleftBullet);
time153.start();
} else {
time153 = new Timer(3200, 1);
time153.addEventListener(TimerEvent.TIMER_COMPLETE, newleftBullet);
time153.start();
};
}
public function enableMyBall20(_arg1:MouseEvent){
isClicked20 = true;
removeChild(logo);
startGame20();
myBall20.removeEventListener(MouseEvent.CLICK, enableMyBall20);
}
public function enableMyBall21(_arg1:MouseEvent){
isClicked21 = true;
myBall21.removeEventListener(MouseEvent.CLICK, enableMyBall21);
removeChild(logo);
startGame21();
}
public function enableMyBall23(_arg1:MouseEvent){
isClicked23 = true;
myBall23.removeEventListener(MouseEvent.CLICK, enableMyBall23);
removeChild(logo);
startGame23();
}
public function enableMyBall14(_arg1:MouseEvent){
isClicked14 = true;
myBall14.removeEventListener(MouseEvent.CLICK, enableMyBall14);
removeChild(logo);
startGame14();
}
public function enableMyBall24(_arg1:MouseEvent){
isClicked24 = true;
myBall24.removeEventListener(MouseEvent.CLICK, enableMyBall24);
removeChild(logo);
startGame24();
}
}
}//package MazeFL_fla
Section 7
//maze13_142 (MazeFL_fla.maze13_142)
package MazeFL_fla {
import flash.display.*;
public dynamic class maze13_142 extends MovieClip {
public var bg:MovieClip;
public var circleMaze:MovieClip;
public var end:MovieClip;
}
}//package MazeFL_fla
Section 8
//maze14_130 (MazeFL_fla.maze14_130)
package MazeFL_fla {
import flash.display.*;
public dynamic class maze14_130 extends MovieClip {
public var circleMaze14:MovieClip;
public var bg:MovieClip;
public var red:MovieClip;
}
}//package MazeFL_fla
Section 9
//maze16_146 (MazeFL_fla.maze16_146)
package MazeFL_fla {
import flash.display.*;
public dynamic class maze16_146 extends MovieClip {
public var circleMaze16:MovieClip;
public var bg:MovieClip;
public var end:MovieClip;
}
}//package MazeFL_fla
Section 10
//maze17_134 (MazeFL_fla.maze17_134)
package MazeFL_fla {
import flash.display.*;
public dynamic class maze17_134 extends MovieClip {
public var circleMaze17:MovieClip;
public var c1:MovieClip;
public var c3:MovieClip;
public var c2:MovieClip;
public var bg:MovieClip;
public var red2:MovieClip;
public var red3:MovieClip;
public var red1:MovieClip;
}
}//package MazeFL_fla
Section 11
//maze18_155 (MazeFL_fla.maze18_155)
package MazeFL_fla {
import flash.display.*;
public dynamic class maze18_155 extends MovieClip {
public var circleMaze18:MovieClip;
public var bg:MovieClip;
public var red2:MovieClip;
public var red3:MovieClip;
public var red1:MovieClip;
}
}//package MazeFL_fla
Section 12
//maze23_139 (MazeFL_fla.maze23_139)
package MazeFL_fla {
import flash.display.*;
public dynamic class maze23_139 extends MovieClip {
public var circularMaze23:MovieClip;
public var end:MovieClip;
}
}//package MazeFL_fla
Section 13
//maze24_151 (MazeFL_fla.maze24_151)
package MazeFL_fla {
import flash.display.*;
public dynamic class maze24_151 extends MovieClip {
public var circleMaze24:MovieClip;
public var bg:MovieClip;
public var red2:MovieClip;
public var red1:MovieClip;
}
}//package MazeFL_fla
Section 14
//maze6_19 (MazeFL_fla.maze6_19)
package MazeFL_fla {
import flash.display.*;
public dynamic class maze6_19 extends MovieClip {
public var l1:MovieClip;
public var l3:MovieClip;
public var l4:MovieClip;
public var l5:MovieClip;
public var l8:MovieClip;
public var l2:MovieClip;
public var l7:MovieClip;
public var l6:MovieClip;
public var l9:MovieClip;
public var l10:MovieClip;
public var l13:MovieClip;
public var l14:MovieClip;
public var l15:MovieClip;
public var l16:MovieClip;
public var l17:MovieClip;
public var l12:MovieClip;
public var l11:MovieClip;
public var l20:MovieClip;
public var l22:MovieClip;
public var l23:MovieClip;
public var l25:MovieClip;
public var l26:MovieClip;
public var l21:MovieClip;
public var l29:MovieClip;
public var l24:MovieClip;
public var l19:MovieClip;
public var l28:MovieClip;
public var l30:MovieClip;
public var l31:MovieClip;
public var l33:MovieClip;
public var l34:MovieClip;
public var l35:MovieClip;
public var l36:MovieClip;
public var l38:MovieClip;
public var l39:MovieClip;
public var l37:MovieClip;
public var l32:MovieClip;
public var l40:MovieClip;
public var l41:MovieClip;
public var l43:MovieClip;
public var l42:MovieClip;
}
}//package MazeFL_fla
Section 15
//maze8_66 (MazeFL_fla.maze8_66)
package MazeFL_fla {
import flash.display.*;
public dynamic class maze8_66 extends MovieClip {
public var l1:MovieClip;
public var l3:MovieClip;
public var l4:MovieClip;
public var l5:MovieClip;
public var l8:MovieClip;
public var l2:MovieClip;
public var l7:MovieClip;
public var l9:MovieClip;
public var l6:MovieClip;
public var l10:MovieClip;
public var l13:MovieClip;
public var l14:MovieClip;
public var l15:MovieClip;
public var l16:MovieClip;
public var l17:MovieClip;
public var l12:MovieClip;
public var l18:MovieClip;
public var l11:MovieClip;
public var l20:MovieClip;
public var l22:MovieClip;
public var l23:MovieClip;
public var l25:MovieClip;
public var l26:MovieClip;
public var l27:MovieClip;
public var l21:MovieClip;
public var l29:MovieClip;
public var l24:MovieClip;
public var l19:MovieClip;
public var l28:MovieClip;
public var l30:MovieClip;
public var l31:MovieClip;
public var l33:MovieClip;
public var l34:MovieClip;
public var l35:MovieClip;
public var l32:MovieClip;
public var l47:MovieClip;
public var l48:MovieClip;
public var bigCircle:MovieClip;
}
}//package MazeFL_fla
Section 16
//RedButton_61 (MazeFL_fla.RedButton_61)
package MazeFL_fla {
import flash.display.*;
public dynamic class RedButton_61 extends MovieClip {
public function RedButton_61(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package MazeFL_fla
Section 17
//triEnemy_62 (MazeFL_fla.triEnemy_62)
package MazeFL_fla {
import flash.display.*;
public dynamic class triEnemy_62 extends MovieClip {
public function triEnemy_62(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package MazeFL_fla
Section 18
//Bullet (Bullet)
package {
import flash.events.*;
import flash.display.*;
public class Bullet extends MovieClip {
private var className:String;
private var bulletSpeed:int;// = 7
private var bulletDirection:String;
public function Bullet(_arg1:String, _arg2:String){
bulletSpeed = 7;
super();
bulletDirection = _arg1;
className = _arg2;
if (_arg2 == "level1"){
if (_arg1 == "bottom"){
this.x = 21;
this.y = 353;
};
if (_arg1 == "middle"){
this.x = 526;
this.y = 273;
};
if (_arg1 == "top"){
this.x = 48;
this.y = 157;
};
};
if (_arg2 == "level15"){
if (_arg1 == "right"){
this.x = 412;
this.y = 11.3;
};
if (_arg1 == "middle"){
this.x = 261;
this.y = 386.8;
};
if (_arg1 == "left"){
this.x = 115;
this.y = 33;
};
};
if (_arg2 == "level7"){
if (_arg1 == "bottom"){
this.x = 42.3;
this.y = 338.5;
};
if (_arg1 == "middle"){
this.x = 468;
this.y = 277.5;
};
if (_arg1 == "top"){
this.x = 42.3;
this.y = 160.5;
};
};
if (_arg2 == "level6"){
this.x = 24;
this.y = 329;
};
if (_arg2 == "level8"){
this.x = 58;
this.y = 17;
};
addEventListener(Event.ENTER_FRAME, moveBullet);
}
public function moveBullet(_arg1:Event){
if (className == "level1"){
if (bulletDirection == "bottom"){
this.x = (this.x + bulletSpeed);
if ((((x > 470)) || ((MovieClip(parent).isDone1 == true)))){
deleteBullet();
};
} else {
if (bulletDirection == "middle"){
this.x = (this.x - bulletSpeed);
if ((((x < 7)) || ((MovieClip(parent).isDone1 == true)))){
deleteBullet();
};
} else {
if (bulletDirection == "top"){
this.x = (this.x + bulletSpeed);
if ((((x > 490)) || ((MovieClip(parent).isDone1 == true)))){
deleteBullet();
};
};
};
};
};
if (className == "level15"){
if (bulletDirection == "right"){
this.y = (this.y + 4);
if ((((y >= 334.9)) || ((MovieClip(parent).isDone15 == true)))){
deleteBullet();
};
} else {
if (bulletDirection == "middle"){
this.y = (this.y - 4);
if ((((y <= 8)) || ((MovieClip(parent).isDone15 == true)))){
deleteBullet();
};
} else {
if (bulletDirection == "left"){
this.y = (this.y + 4);
if ((((y >= 390)) || ((MovieClip(parent).isDone15 == true)))){
deleteBullet();
};
};
};
};
};
if (className == "level7"){
if (bulletDirection == "bottom"){
this.x = (this.x + bulletSpeed);
if (x > 470){
deleteBullet();
};
} else {
if (bulletDirection == "middle"){
this.x = (this.x - bulletSpeed);
if (x < 7){
deleteBullet();
};
} else {
if (bulletDirection == "top"){
this.x = (this.x + bulletSpeed);
if (x > 490){
deleteBullet();
};
};
};
};
};
if (className == "level6"){
this.x = (this.x + bulletSpeed);
if (x > 490){
deleteBullet();
};
};
if (className == "level8"){
this.y = (this.y + 4);
if ((((y >= 388)) || ((MovieClip(parent).isDone == true)))){
deleteBullet();
};
};
}
public function deleteBullet(){
if (className == "level1"){
MovieClip(parent).removeBullet(this);
};
if (className == "level15"){
MovieClip(parent).removeBullet15(this);
};
if (className == "level7"){
MovieClip(parent).removeBullet7(this);
};
if (className == "level6"){
MovieClip(parent).removeBullet6(this);
};
if (className == "level8"){
MovieClip(parent).isDoneFunc();
if (MovieClip(parent).isDone2 == false){
MovieClip(parent).newBullet8();
};
MovieClip(parent).removeBullet8(this);
};
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveBullet);
}
}
}//package
Section 19
//gameIntro01 (gameIntro01)
package {
import flash.display.*;
public dynamic class gameIntro01 extends MovieClip {
}
}//package
Section 20
//Music (Music)
package {
import flash.media.*;
public dynamic class Music extends Sound {
}
}//package
Section 21
//MyBall (MyBall)
package {
import flash.display.*;
public dynamic class MyBall extends MovieClip {
}
}//package