Section 1
//amandaHead_32 (DOT2_fla.amandaHead_32)
package DOT2_fla {
import flash.display.*;
public dynamic class amandaHead_32 extends MovieClip {
public function amandaHead_32(){
addFrameScript(0, frame1, 9, frame10);
}
function frame1(){
stop();
}
function frame10(){
gotoAndPlay(6);
}
}
}//package DOT2_fla
Section 2
//bodyAmanda_31 (DOT2_fla.bodyAmanda_31)
package DOT2_fla {
import flash.display.*;
public dynamic class bodyAmanda_31 extends MovieClip {
public function bodyAmanda_31(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package DOT2_fla
Section 3
//bodyClaire_35 (DOT2_fla.bodyClaire_35)
package DOT2_fla {
import flash.display.*;
public dynamic class bodyClaire_35 extends MovieClip {
public function bodyClaire_35(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package DOT2_fla
Section 4
//bodyJen_26 (DOT2_fla.bodyJen_26)
package DOT2_fla {
import flash.display.*;
public dynamic class bodyJen_26 extends MovieClip {
public function bodyJen_26(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package DOT2_fla
Section 5
//bodyKelsey_39 (DOT2_fla.bodyKelsey_39)
package DOT2_fla {
import flash.display.*;
public dynamic class bodyKelsey_39 extends MovieClip {
public function bodyKelsey_39(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package DOT2_fla
Section 6
//btnChangeChars_14 (DOT2_fla.btnChangeChars_14)
package DOT2_fla {
import flash.display.*;
public dynamic class btnChangeChars_14 extends MovieClip {
public function btnChangeChars_14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package DOT2_fla
Section 7
//btnSet4_11 (DOT2_fla.btnSet4_11)
package DOT2_fla {
import flash.display.*;
public dynamic class btnSet4_11 extends MovieClip {
public function btnSet4_11(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package DOT2_fla
Section 8
//btnSet5_12 (DOT2_fla.btnSet5_12)
package DOT2_fla {
import flash.display.*;
public dynamic class btnSet5_12 extends MovieClip {
public function btnSet5_12(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package DOT2_fla
Section 9
//btnSet6_13 (DOT2_fla.btnSet6_13)
package DOT2_fla {
import flash.display.*;
public dynamic class btnSet6_13 extends MovieClip {
public function btnSet6_13(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package DOT2_fla
Section 10
//claireHead_36 (DOT2_fla.claireHead_36)
package DOT2_fla {
import flash.display.*;
public dynamic class claireHead_36 extends MovieClip {
public function claireHead_36(){
addFrameScript(0, frame1, 9, frame10);
}
function frame1(){
stop();
}
function frame10(){
gotoAndPlay(6);
}
}
}//package DOT2_fla
Section 11
//dotBig_5 (DOT2_fla.dotBig_5)
package DOT2_fla {
import flash.display.*;
public dynamic class dotBig_5 extends MovieClip {
public function dotBig_5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package DOT2_fla
Section 12
//dotSelection_77 (DOT2_fla.dotSelection_77)
package DOT2_fla {
import flash.display.*;
public dynamic class dotSelection_77 extends MovieClip {
public function dotSelection_77(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package DOT2_fla
Section 13
//handle_23 (DOT2_fla.handle_23)
package DOT2_fla {
import flash.display.*;
public dynamic class handle_23 extends MovieClip {
public function handle_23(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package DOT2_fla
Section 14
//jenHead_28 (DOT2_fla.jenHead_28)
package DOT2_fla {
import flash.display.*;
public dynamic class jenHead_28 extends MovieClip {
public function jenHead_28(){
addFrameScript(0, frame1, 9, frame10);
}
function frame1(){
stop();
}
function frame10(){
gotoAndPlay(6);
}
}
}//package DOT2_fla
Section 15
//kelseyHead_40 (DOT2_fla.kelseyHead_40)
package DOT2_fla {
import flash.display.*;
public dynamic class kelseyHead_40 extends MovieClip {
public function kelseyHead_40(){
addFrameScript(0, frame1, 9, frame10);
}
function frame1(){
stop();
}
function frame10(){
gotoAndPlay(6);
}
}
}//package DOT2_fla
Section 16
//LegsAmanda_30 (DOT2_fla.LegsAmanda_30)
package DOT2_fla {
import flash.display.*;
public dynamic class LegsAmanda_30 extends MovieClip {
public function LegsAmanda_30(){
addFrameScript(0, frame1, 5, frame6, 10, frame11);
}
function frame1(){
stop();
}
function frame6(){
gotoAndPlay(2);
}
function frame11(){
gotoAndPlay(7);
}
}
}//package DOT2_fla
Section 17
//LegsClaire_34 (DOT2_fla.LegsClaire_34)
package DOT2_fla {
import flash.display.*;
public dynamic class LegsClaire_34 extends MovieClip {
public function LegsClaire_34(){
addFrameScript(0, frame1, 5, frame6, 10, frame11);
}
function frame1(){
stop();
}
function frame6(){
gotoAndPlay(2);
}
function frame11(){
gotoAndPlay(7);
}
}
}//package DOT2_fla
Section 18
//legsJen_25 (DOT2_fla.legsJen_25)
package DOT2_fla {
import flash.display.*;
public dynamic class legsJen_25 extends MovieClip {
public function legsJen_25(){
addFrameScript(0, frame1, 5, frame6, 10, frame11);
}
function frame1(){
stop();
}
function frame6(){
gotoAndPlay(2);
}
function frame11(){
gotoAndPlay(7);
}
}
}//package DOT2_fla
Section 19
//legsKelsey_38 (DOT2_fla.legsKelsey_38)
package DOT2_fla {
import flash.display.*;
public dynamic class legsKelsey_38 extends MovieClip {
public function legsKelsey_38(){
addFrameScript(0, frame1, 5, frame6, 10, frame11);
}
function frame1(){
stop();
}
function frame6(){
gotoAndPlay(2);
}
function frame11(){
gotoAndPlay(7);
}
}
}//package DOT2_fla
Section 20
//MainTimeline (DOT2_fla.MainTimeline)
package DOT2_fla {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var txtZoom:TextField;
public var ghostA1:MovieClip;
public var dotLogo:MovieClip;
public var transWindow:MovieClip;
public var ghostA2:MovieClip;
public var ghostB1:MovieClip;
public var introLogoSprite:introLogo;
public var ghostA3:MovieClip;
public var ghostB2:MovieClip;
public var dotAni:MovieClip;
public var ghostA4:MovieClip;
public var ghostB3:MovieClip;
public var btnIntroStart:introStartButton;
public var btnL:MovieClip;
public var btnZoomOut:MovieClip;
public var ghostA5:MovieClip;
public var ghostB4:MovieClip;
public var setChoiceWindow:MovieClip;
public var txtCode:TextField;
public var cannon1:MovieClip;
public var ghostB5:MovieClip;
public var cannon2:MovieClip;
public var loader_mc:movie_mc;
public var loaded_txt:TextField;
public var puzzleMap:MovieClip;
public var btnZoomIn:MovieClip;
public var wndIndicators:MovieClip;
public var dotWindow:MovieClip;
public var btnR:MovieClip;
public var placeholder1:MovieClip;
public var btnD:MovieClip;
public var btnU:MovieClip;
public var loadedSym:MovieClip;
public var placeholder2:MovieClip;
public var screen:MovieClip;
public var bPremium;
public var cannonIntroSpeed;
public var locJen;
public var locAmanda;
public var locKelsey;
public var locClaire;
public var myTween1:Tween;
public var myTween2:Tween;
public var myTween3:Tween;
public var iR;
public var iU;
public var iC;
public var windType;
public var sH;
public var charOut;
public var greenCounter;
public var i;
public var j;
public var k;
public var bHomingInProgress;
public var destXt;
public var destYt;
public var minAngle;
public var someCounter;
public var jenFt;
public var jenArm1;
public var jenArm2;
public var claireFt;
public var claireArm1;
public var claireArm2;
public var amandaFt;
public var amandaArm1;
public var amandaArm2;
public var kelseyFt;
public var kelseyArm1;
public var kelseyArm2;
public var jenUp;
public var claireUp;
public var amandaUp;
public var kelseyUp;
public var jenPermaLaugh;
public var clairePermaLaugh;
public var kelseyPermaLaugh;
public var amandaPermaLaugh;
public var jenPermaLegs;
public var clairePermaLegs;
public var kelseyPermaLegs;
public var amandaPermaLegs;
public var txt1;
public var txt2;
public var txt3;
public var charHit;
public var locHit;
public var locHitPrev;
public var dotType;
public var dotTrans;
public var posArray:Array;
public var iPhase;
public var bHitSuccess;
public var tweenX:Tween;
public var tweenY:Tween;
public var homingTweenX:Tween;
public var homingTweenY:Tween;
public var dropTween:Tween;
public var myPower:Number;
public var myAngle:Number;
public var mySway:Number;
public var xSpeed:Number;
public var ySpeed:Number;
public var zSpeed:Number;
public var wX:Number;
public var wY:Number;
public var windAngle:Number;
public var windSpeed:Number;
public var wind2Angle:Number;
public var wind2Speed:Number;
public var wind3Angle:Number;
public var wind3Speed:Number;
public var myInterval:uint;
public var gravity;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function onProgress(_arg1:ProgressEvent):void{
var _local2:Number = _arg1.target.bytesLoaded;
var _local3:Number = _arg1.target.bytesTotal;
var _local4:Number = (_local2 / _local3);
loader_mc.scaleX = _local4;
loaded_txt.text = (("Loading... " + Math.round((_local4 * 100))) + "%");
}
public function onComplete(_arg1:Event):void{
loaded_txt.text = "Finished loading.";
btnIntroStart.alpha = 1;
btnIntroStart.addEventListener(MouseEvent.CLICK, startGame);
}
public function startGame(_arg1:MouseEvent):void{
var _local2:* = txtCode.text;
if (_local2.substring(0, 21).toLowerCase() == "give me the treasure!"){
bPremium = true;
};
gotoAndStop(2);
}
public function onFinishAni(_arg1:TweenEvent):void{
myTween3.removeEventListener(TweenEvent.MOTION_FINISH, onFinishAni);
myTween3 = new Tween(dotLogo, "alpha", None.easeNone, 0, 1, 2, true);
myTween3.FPS = 40;
myTween3.addEventListener(TweenEvent.MOTION_FINISH, readyForSelection);
}
public function readyForSelection(_arg1:TweenEvent):void{
myTween3.removeEventListener(TweenEvent.MOTION_FINISH, readyForSelection);
dotAni.alpha = 0;
dotLogo.dotBig.gotoAndPlay(2);
setChoiceWindow.alpha = 1;
stage.addEventListener(MouseEvent.CLICK, setClicking);
}
public function setClicking(_arg1:MouseEvent):void{
var _local2:uint;
_local2 = Math.floor((Math.random() * 100));
if (bPremium == true){
if (_local2 < 50){
_local2 = 1;
} else {
_local2 = 0;
};
} else {
if (_local2 < 30){
_local2 = 1;
} else {
_local2 = 0;
};
};
if (_arg1.target.name == "btnSet1"){
iR = 0;
iU = 2;
iC = 6;
stage.removeEventListener(MouseEvent.CLICK, setClicking);
windType = 0;
gotoAndStop(3);
} else {
if (_arg1.target.name == "btnSet2"){
iR = (0 + _local2);
iU = (3 - _local2);
iC = 7;
stage.removeEventListener(MouseEvent.CLICK, setClicking);
windType = 1;
gotoAndStop(3);
} else {
if (_arg1.target.name == "btnSet3"){
iR = 1;
iU = 3;
iC = 8;
stage.removeEventListener(MouseEvent.CLICK, setClicking);
windType = 2;
gotoAndStop(3);
};
};
};
if (bPremium == true){
if (_arg1.target.name == "btnSet4"){
iR = (1 + _local2);
iU = (4 - _local2);
iC = 7;
stage.removeEventListener(MouseEvent.CLICK, setClicking);
windType = 0;
gotoAndStop(3);
} else {
if (_arg1.target.name == "btnSet5"){
iR = (2 + _local2);
iU = (5 - _local2);
iC = 8;
stage.removeEventListener(MouseEvent.CLICK, setClicking);
windType = 1;
gotoAndStop(3);
} else {
if (_arg1.target.name == "btnSet6"){
iR = (3 + _local2);
iU = (6 - _local2);
iC = 9;
stage.removeEventListener(MouseEvent.CLICK, setClicking);
windType = 2;
gotoAndStop(3);
} else {
if (_arg1.target.name == "btnChangeChars"){
switchChars();
};
};
};
};
};
}
public function randomizeChars():void{
var _local1:* = 0;
_local1 = Math.ceil((Math.random() * 4));
if (_local1 == 1){
locClaire = 99;
} else {
if (_local1 == 2){
locAmanda = 99;
} else {
if (_local1 == 2){
locKelsey = 99;
} else {
locJen = 99;
};
};
};
}
public function switchChars():void{
if (locClaire == 99){
locClaire = 0;
locKelsey = 99;
setChoiceWindow.txtFeaturedChars.text = "Jen\nClaire\nAmanda";
} else {
if (locKelsey == 99){
locKelsey = 0;
locAmanda = 99;
setChoiceWindow.txtFeaturedChars.text = "Jen\nClaire\nKelsey";
} else {
if (locAmanda == 99){
locAmanda = 0;
locJen = 99;
setChoiceWindow.txtFeaturedChars.text = "Claire\nKelsey\nAmanda";
} else {
locJen = 0;
locClaire = 99;
setChoiceWindow.txtFeaturedChars.text = "Jen\nKelsey\nAmanda";
};
};
};
}
public function launchDot():void{
var _local1:Number = 0;
_local1 = getStartingFWDspeed(myPower, myAngle);
zSpeed = getStartingZspeed(myPower, myAngle);
getSwaySpeed(_local1, mySway);
}
public function myTimer():void{
var _local1:*;
screen.d1.rotation = Math.floor((Math.random() * 360));
screen.d2.rotation = Math.floor((Math.random() * 360));
screen.d3.rotation = Math.floor((Math.random() * 360));
screen.d5.rotation = Math.floor((Math.random() * 360));
screen.d6.rotation = Math.floor((Math.random() * 360));
screen.d7.rotation = Math.floor((Math.random() * 360));
screen.d8.rotation = Math.floor((Math.random() * 360));
screen.d4_1.rotation = Math.floor((Math.random() * 360));
screen.d4_2.rotation = Math.floor((Math.random() * 360));
screen.d4_3.rotation = Math.floor((Math.random() * 360));
screen.d4_4.rotation = Math.floor((Math.random() * 360));
screen.d4_5.rotation = Math.floor((Math.random() * 360));
screen.d4_6.rotation = Math.floor((Math.random() * 360));
screen.d4_7.rotation = Math.floor((Math.random() * 360));
screen.d4_8.rotation = Math.floor((Math.random() * 360));
screen.d4_9.rotation = Math.floor((Math.random() * 360));
if (screen.jen.y > 990){
screen.jenSwim.alpha = 1;
if (Math.floor((Math.random() * 10)) == 0){
screen.jenSwim.scaleX = -(screen.jenSwim.scaleX);
};
};
if (screen.claire.y > 990){
screen.claireSwim.alpha = 1;
if (Math.floor((Math.random() * 10)) == 0){
screen.claireSwim.scaleX = -(screen.claireSwim.scaleX);
};
};
if (screen.kelsey.y > 990){
screen.kelseySwim.alpha = 1;
if (Math.floor((Math.random() * 10)) == 0){
screen.kelseySwim.scaleX = -(screen.kelseySwim.scaleX);
};
};
if (screen.amanda.y > 990){
screen.amandaSwim.alpha = 1;
if (Math.floor((Math.random() * 10)) == 0){
screen.amandaSwim.scaleX = -(screen.amandaSwim.scaleX);
};
};
if (iPhase == 2){
UpdateGhost(ghostA5, ghostA4, ghostB5, ghostB4);
UpdateGhost(ghostA4, ghostA3, ghostB4, ghostB3);
UpdateGhost(ghostA3, ghostA2, ghostB3, ghostB2);
UpdateGhost(ghostA2, ghostA1, ghostB2, ghostB1);
UpdateGhost(ghostA1, placeholder1, ghostB1, placeholder2);
if (dotType != 3){
zSpeed = (zSpeed + gravity);
};
if (dotTrans == false){
xSpeed = (xSpeed + (wX / 10));
ySpeed = (ySpeed + (wY / 10));
};
placeholder1.x = (placeholder1.x - (ySpeed / 10));
placeholder1.y = (placeholder1.y + (zSpeed / 10));
placeholder2.x = (placeholder2.x + (xSpeed / 10));
placeholder2.y = (placeholder2.y + (ySpeed / 10));
if ((((((((placeholder1.x >= 575)) && ((placeholder1.y >= 488)))) && ((placeholder2.x >= 627)))) && ((placeholder2.x <= 877)))){
placeholder1.x = 575;
placeholder2.y = 18;
bHitSuccess = true;
iPhase++;
} else {
if (placeholder1.x >= 600){
bHitSuccess = false;
screen.lastHitLoc.y = -1000;
iPhase = 7;
} else {
if (placeholder1.y > 580){
bHitSuccess = false;
screen.lastHitLoc.y = -1000;
iPhase = 7;
};
};
};
if (placeholder1.y < 400){
placeholder1.alpha = 0;
} else {
placeholder1.alpha = 1;
};
if (ghostA1.y < 400){
ghostA1.alpha = 0;
} else {
ghostA1.alpha = 0.5;
};
if (ghostA2.y < 400){
ghostA2.alpha = 0;
} else {
ghostA2.alpha = 0.4;
};
if (ghostA3.y < 400){
ghostA3.alpha = 0;
} else {
ghostA3.alpha = 0.3;
};
if (ghostA4.y < 400){
ghostA4.alpha = 0;
} else {
ghostA4.alpha = 0.2;
};
if (ghostA5.y < 400){
ghostA5.alpha = 0;
} else {
ghostA5.alpha = 0.1;
};
if (placeholder2.x < 600){
placeholder2.alpha = 0;
} else {
placeholder2.alpha = 1;
};
if (ghostB1.x < 600){
ghostB1.alpha = 0;
} else {
ghostB1.alpha = 0.5;
};
if (ghostB2.x < 600){
ghostB2.alpha = 0;
} else {
ghostB2.alpha = 0.4;
};
if (ghostB3.x < 600){
ghostB3.alpha = 0;
} else {
ghostB3.alpha = 0.3;
};
if (ghostB4.x < 600){
ghostB4.alpha = 0;
} else {
ghostB4.alpha = 0.2;
};
if (ghostB5.x < 600){
ghostB5.alpha = 0;
} else {
ghostB5.alpha = 0.1;
};
} else {
if (iPhase == 3){
hideGhostTrail();
if (dotType == 1){
screen.tmpDot = screen.d1;
} else {
if (dotType == 2){
screen.tmpDot = screen.d2;
} else {
if (dotType == 3){
screen.tmpDot = screen.d3;
} else {
if (dotType == 5){
screen.tmpDot = screen.d5;
} else {
if (dotType == 6){
screen.tmpDot = screen.d6;
} else {
if (dotType == 7){
screen.tmpDot = screen.d7;
} else {
if (dotType == 8){
screen.tmpDot = screen.d8;
} else {
if (dotType == 4){
greenCounter++;
if (greenCounter == 1){
screen.tmpDot = screen.d4_1;
} else {
if (greenCounter == 2){
screen.tmpDot = screen.d4_2;
} else {
if (greenCounter == 3){
screen.tmpDot = screen.d4_3;
} else {
if (greenCounter == 4){
screen.tmpDot = screen.d4_4;
} else {
if (greenCounter == 5){
screen.tmpDot = screen.d4_5;
} else {
if (greenCounter == 6){
screen.tmpDot = screen.d4_6;
} else {
if (greenCounter == 7){
screen.tmpDot = screen.d4_7;
} else {
if (greenCounter == 8){
screen.tmpDot = screen.d4_8;
} else {
if (greenCounter == 9){
screen.tmpDot = screen.d4_9;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
screen.tmpDot.x = ((1000 / 150) * (placeholder2.x - 627));
screen.tmpDot.y = ((600 / 90) * (placeholder1.y - 488));
screen.lastHitLoc.x = screen.tmpDot.x;
screen.lastHitLoc.y = screen.tmpDot.y;
if (bHitSuccess == true){
zoomSnapToDot(screen.tmpDot.x, screen.tmpDot.y);
};
iPhase++;
} else {
if (iPhase == 4){
charHit = 0;
locHit = 0;
checkSkinHit();
if (charHit != 0){
iPhase++;
} else {
if (dotType == 7){
if (bHomingInProgress == false){
bHomingInProgress = true;
findClosestHomingPoint(screen.tmpDot.x, screen.tmpDot.y);
homingTweenX = new Tween(screen.tmpDot, "x", Regular.easeOut, screen.tmpDot.x, destXt, 2, true);
homingTweenX.FPS = 40;
homingTweenY = new Tween(screen.tmpDot, "y", Regular.easeOut, screen.tmpDot.y, destYt, 2, true);
homingTweenY.FPS = 40;
};
} else {
if (dotType == 8){
if (stage.mouseX < 300){
screen.tmpDot.x = (screen.tmpDot.x - (Math.ceil((Math.random() * 3)) + 1));
} else {
if (stage.mouseX < 601){
screen.tmpDot.x = (screen.tmpDot.x + (Math.ceil((Math.random() * 3)) + 1));
};
};
if (stage.mouseY < 200){
screen.tmpDot.y = (screen.tmpDot.y - (Math.ceil((Math.random() * 3)) + 1));
} else {
if (stage.mouseY < 401){
screen.tmpDot.y = (screen.tmpDot.y + (Math.ceil((Math.random() * 3)) + 1));
};
};
} else {
iPhase++;
};
};
};
} else {
if (iPhase == 5){
if (dotType == 4){
gameOverCheck();
placeholder1.x = 19.4;
placeholder1.y = 564;
placeholder2.x = 703.85;
placeholder2.y = 579.85;
wndIndicators.alpha = 1;
showDotWindow(true);
} else {
_local1 = 1;
if (dotType == 2){
_local1 = 2;
};
if (dotType == 5){
screen.tmpDot.x = (screen.tmpDot.x + (Math.floor((Math.random() * 11)) - 5));
screen.tmpDot.y = (screen.tmpDot.y + (Math.floor((Math.random() * 5)) - 2));
};
if (charHit == 1){
if (screen.tmpDot.x < screen.jen.x){
screen.tmpDot.x = (screen.tmpDot.x - (((Math.random() * 5) - 2) / _local1));
screen.tmpDot.y = (screen.tmpDot.y - (((Math.random() * 3) - 2) / _local1));
someCounter++;
if (someCounter == 6){
someCounter = 0;
checkSkinHit();
};
if (screen.tmpDot.x < (screen.jen.x - 80)){
iPhase++;
};
} else {
screen.tmpDot.x = (screen.tmpDot.x + (((Math.random() * 5) - 2) / _local1));
screen.tmpDot.y = (screen.tmpDot.y + (((Math.random() * 3) - 2) / _local1));
someCounter++;
if (someCounter == 6){
someCounter = 0;
checkSkinHit();
};
if (screen.tmpDot.x > (screen.jen.x + 80)){
iPhase++;
};
};
} else {
if (charHit == 2){
if (screen.tmpDot.x < screen.claire.x){
screen.tmpDot.x = (screen.tmpDot.x - (((Math.random() * 5) - 2) / _local1));
screen.tmpDot.y = (screen.tmpDot.y - (((Math.random() * 3) - 2) / _local1));
someCounter++;
if (someCounter == 6){
someCounter = 0;
checkSkinHit();
};
if (screen.tmpDot.x < (screen.claire.x - 80)){
iPhase++;
};
} else {
screen.tmpDot.x = (screen.tmpDot.x + (((Math.random() * 5) - 2) / _local1));
screen.tmpDot.y = (screen.tmpDot.y + (((Math.random() * 3) - 2) / _local1));
someCounter++;
if (someCounter == 6){
someCounter = 0;
checkSkinHit();
};
if (screen.tmpDot.x > (screen.claire.x + 80)){
iPhase++;
};
};
} else {
if (charHit == 3){
if (screen.tmpDot.x < screen.kelsey.x){
screen.tmpDot.x = (screen.tmpDot.x - (((Math.random() * 5) - 2) / _local1));
screen.tmpDot.y = (screen.tmpDot.y - (((Math.random() * 3) - 2) / _local1));
someCounter++;
if (someCounter == 6){
someCounter = 0;
checkSkinHit();
};
if (screen.tmpDot.x < (screen.kelsey.x - 80)){
iPhase++;
};
} else {
screen.tmpDot.x = (screen.tmpDot.x + (((Math.random() * 5) - 2) / _local1));
screen.tmpDot.y = (screen.tmpDot.y + (((Math.random() * 3) - 2) / _local1));
someCounter++;
if (someCounter == 6){
someCounter = 0;
checkSkinHit();
};
if (screen.tmpDot.x > (screen.kelsey.x + 80)){
iPhase++;
};
};
} else {
if (charHit == 4){
if (screen.tmpDot.x < screen.amanda.x){
screen.tmpDot.x = (screen.tmpDot.x - (((Math.random() * 5) - 2) / _local1));
screen.tmpDot.y = (screen.tmpDot.y - (((Math.random() * 3) - 2) / _local1));
someCounter++;
if (someCounter == 6){
someCounter = 0;
checkSkinHit();
};
if (screen.tmpDot.x < (screen.amanda.x - 80)){
iPhase++;
};
} else {
screen.tmpDot.x = (screen.tmpDot.x + (((Math.random() * 5) - 2) / _local1));
screen.tmpDot.y = (screen.tmpDot.y + (((Math.random() * 3) - 2) / _local1));
someCounter++;
if (someCounter == 6){
someCounter = 0;
checkSkinHit();
};
if (screen.tmpDot.x > (screen.amanda.x + 80)){
iPhase++;
};
};
} else {
iPhase++;
};
};
};
};
};
} else {
if (iPhase == 6){
if (screen.tmpDot.y < 660){
screen.tmpDot.y = (screen.tmpDot.y + ((Math.random() * 10) + 5));
} else {
gameOverCheck();
placeholder1.x = 19.4;
placeholder1.y = 564;
placeholder2.x = 703.85;
placeholder2.y = 579.85;
wndIndicators.alpha = 1;
showDotWindow(true);
};
} else {
if (iPhase == 7){
gameOverCheck();
placeholder1.x = 19.4;
placeholder1.y = 564;
placeholder2.x = 703.85;
placeholder2.y = 579.85;
wndIndicators.alpha = 1;
showDotWindow(true);
};
};
};
};
};
};
}
public function screenForceBorder():void{
if (screen.scaleX > 0.5){
if (screen.x > 0){
screen.x = 0;
};
if (screen.y > 0){
screen.y = 0;
};
if ((screen.x + (1000 * screen.scaleX)) < 600){
screen.x = (600 - (1000 * screen.scaleX));
};
if ((screen.y + (sH * screen.scaleY)) < 400){
screen.y = (400 - (sH * screen.scaleY));
};
} else {
screen.x = 50;
screen.y = 50;
};
}
public function zoomSnapToDot(_arg1, _arg2):void{
var _local3:*;
var _local4:*;
if (screen.scaleX > 0.5){
_local3 = (300 - (_arg1 * screen.scaleX));
_local4 = (200 - (_arg2 * screen.scaleY));
if (_local3 > 0){
_local3 = 0;
};
if (_local4 > 0){
_local4 = 0;
};
if ((_local3 + (1000 * screen.scaleX)) < 600){
_local3 = (600 - (1000 * screen.scaleX));
};
if ((_local4 + (sH * screen.scaleY)) < 400){
_local4 = (400 - (sH * screen.scaleY));
};
tweenX = new Tween(screen, "x", Strong.easeOut, screen.x, _local3, 1, true);
tweenX.FPS = 40;
tweenY = new Tween(screen, "y", Strong.easeOut, screen.y, _local4, 1, true);
tweenY.FPS = 40;
};
}
public function mouseClicked(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
if (_arg1.target.name == "btnZoomIn"){
_local2 = screen.width;
if (screen.scaleX < 3){
screen.scaleX = (screen.scaleX + 0.25);
screen.scaleY = (screen.scaleY + 0.25);
} else {
screen.scaleX = 3;
screen.scaleY = 3;
};
_local3 = screen.width;
screen.x = (screen.x - ((_local3 - _local2) / 4));
screen.y = (screen.y - ((_local3 - _local2) / 4));
txtZoom.text = ("Zoom: " + screen.scaleX);
screenForceBorder();
} else {
if (_arg1.target.name == "btnZoomOut"){
_local2 = screen.width;
if (screen.scaleX > 0.5){
screen.scaleX = (screen.scaleX - 0.25);
screen.scaleY = (screen.scaleY - 0.25);
if (screen.scaleX < 0.5){
screen.scaleX = 0.5;
};
if (screen.scaleY < 0.5){
screen.scaleY = 0.5;
};
} else {
screen.scaleX = 0.5;
screen.scaleY = 0.5;
};
_local3 = screen.width;
screen.x = (screen.x - ((_local3 - _local2) / 4));
screen.y = (screen.y - ((_local3 - _local2) / 4));
txtZoom.text = ("Zoom: " + screen.scaleX);
screenForceBorder();
} else {
if (_arg1.target.name == "btnD"){
if (screen.scaleX > 0.5){
screen.y = (screen.y - 100);
screenForceBorder();
};
} else {
if (_arg1.target.name == "btnU"){
if (screen.scaleX > 0.5){
screen.y = (screen.y + 100);
screenForceBorder();
};
} else {
if (_arg1.target.name == "btnR"){
if (screen.scaleX > 0.5){
screen.x = (screen.x - 100);
screenForceBorder();
};
} else {
if (_arg1.target.name == "btnL"){
if (screen.scaleX > 0.5){
screen.x = (screen.x + 100);
screenForceBorder();
};
};
};
};
};
};
};
if (iPhase == 0){
if (_arg1.target.name == "btnSolidify"){
dotWindow.btnSolidify.alpha = 0;
dotWindow.dot1.alpha = 1;
dotWindow.dot2.alpha = 1;
dotWindow.dot3.alpha = 1;
dotWindow.dot4.alpha = 1;
dotWindow.dot5.alpha = 1;
dotWindow.dot6.alpha = 1;
dotWindow.dot7.alpha = 1;
dotWindow.dot8.alpha = 1;
dotWindow.dot9.alpha = 1;
dotWindow.dot10.alpha = 1;
dotWindow.dot11.alpha = 1;
dotWindow.dot12.alpha = 1;
dotWindow.dot13.alpha = 1;
dotWindow.dot14.alpha = 1;
dotWindow.dot15.alpha = 1;
dotWindow.dot16.alpha = 1;
dotWindow.dot17.alpha = 1;
dotWindow.dot18.alpha = 1;
};
if (_arg1.target.name == "dot1"){
if (dotWindow.dot1.currentFrame < 10){
dotWindow.dot1.alpha = 1;
showDotWindow(false);
if (dotWindow.dot1.currentFrame == 9){
dotWindow.dot1.gotoAndStop(10);
showTransWindow(true);
} else {
dotWindow.dot1.gotoAndStop(10);
loadedSym.alpha = 1;
iPhase++;
};
};
} else {
if (_arg1.target.name == "dot2"){
if (dotWindow.dot2.currentFrame < 10){
dotWindow.dot2.alpha = 1;
showDotWindow(false);
if (dotWindow.dot2.currentFrame == 9){
dotWindow.dot2.gotoAndStop(10);
showTransWindow(true);
} else {
dotWindow.dot2.gotoAndStop(10);
loadedSym.alpha = 1;
iPhase++;
};
};
} else {
if (_arg1.target.name == "dot3"){
if (dotWindow.dot3.currentFrame < 10){
dotWindow.dot3.alpha = 1;
showDotWindow(false);
if (dotWindow.dot3.currentFrame == 9){
dotWindow.dot3.gotoAndStop(10);
showTransWindow(true);
} else {
dotWindow.dot3.gotoAndStop(10);
loadedSym.alpha = 1;
iPhase++;
};
};
} else {
if (_arg1.target.name == "dot4"){
if (dotWindow.dot4.currentFrame < 10){
dotWindow.dot4.alpha = 1;
showDotWindow(false);
if (dotWindow.dot4.currentFrame == 9){
dotWindow.dot4.gotoAndStop(10);
showTransWindow(true);
} else {
dotWindow.dot4.gotoAndStop(10);
loadedSym.alpha = 1;
iPhase++;
};
};
} else {
if (_arg1.target.name == "dot5"){
if (dotWindow.dot5.currentFrame < 10){
dotWindow.dot5.alpha = 1;
showDotWindow(false);
if (dotWindow.dot5.currentFrame == 9){
dotWindow.dot5.gotoAndStop(10);
showTransWindow(true);
} else {
dotWindow.dot5.gotoAndStop(10);
loadedSym.alpha = 1;
iPhase++;
};
};
} else {
if (_arg1.target.name == "dot6"){
if (dotWindow.dot6.currentFrame < 10){
dotWindow.dot6.alpha = 1;
showDotWindow(false);
if (dotWindow.dot6.currentFrame == 9){
dotWindow.dot6.gotoAndStop(10);
showTransWindow(true);
} else {
dotWindow.dot6.gotoAndStop(10);
loadedSym.alpha = 1;
iPhase++;
};
};
} else {
if (_arg1.target.name == "dot7"){
if (dotWindow.dot7.currentFrame < 10){
dotWindow.dot7.alpha = 1;
showDotWindow(false);
if (dotWindow.dot7.currentFrame == 9){
dotWindow.dot7.gotoAndStop(10);
showTransWindow(true);
} else {
dotWindow.dot7.gotoAndStop(10);
loadedSym.alpha = 1;
iPhase++;
};
};
} else {
if (_arg1.target.name == "dot8"){
if (dotWindow.dot8.currentFrame < 10){
dotWindow.dot8.alpha = 1;
showDotWindow(false);
if (dotWindow.dot8.currentFrame == 9){
dotWindow.dot8.gotoAndStop(10);
showTransWindow(true);
} else {
dotWindow.dot8.gotoAndStop(10);
loadedSym.alpha = 1;
iPhase++;
};
};
} else {
if (_arg1.target.name == "dot9"){
if (dotWindow.dot9.currentFrame < 10){
dotWindow.dot9.alpha = 1;
showDotWindow(false);
if (dotWindow.dot9.currentFrame == 9){
dotWindow.dot9.gotoAndStop(10);
showTransWindow(true);
} else {
dotWindow.dot9.gotoAndStop(10);
loadedSym.alpha = 1;
iPhase++;
};
};
} else {
if (_arg1.target.name == "dot10"){
if (dotWindow.dot10.currentFrame < 10){
dotWindow.dot10.alpha = 1;
showDotWindow(false);
if (dotWindow.dot10.currentFrame == 9){
dotWindow.dot10.gotoAndStop(10);
showTransWindow(true);
} else {
dotWindow.dot10.gotoAndStop(10);
loadedSym.alpha = 1;
iPhase++;
};
};
} else {
if (_arg1.target.name == "dot11"){
if (dotWindow.dot11.currentFrame < 10){
dotWindow.dot11.alpha = 1;
showDotWindow(false);
if (dotWindow.dot11.currentFrame == 9){
dotWindow.dot11.gotoAndStop(10);
showTransWindow(true);
} else {
dotWindow.dot11.gotoAndStop(10);
loadedSym.alpha = 1;
iPhase++;
};
};
} else {
if (_arg1.target.name == "dot12"){
if (dotWindow.dot12.currentFrame < 10){
dotWindow.dot12.alpha = 1;
showDotWindow(false);
if (dotWindow.dot12.currentFrame == 9){
dotWindow.dot12.gotoAndStop(10);
showTransWindow(true);
} else {
dotWindow.dot12.gotoAndStop(10);
loadedSym.alpha = 1;
iPhase++;
};
};
} else {
if (_arg1.target.name == "dot13"){
if (dotWindow.dot13.currentFrame < 10){
dotWindow.dot13.alpha = 1;
showDotWindow(false);
if (dotWindow.dot13.currentFrame == 9){
dotWindow.dot13.gotoAndStop(10);
showTransWindow(true);
} else {
dotWindow.dot13.gotoAndStop(10);
loadedSym.alpha = 1;
iPhase++;
};
};
} else {
if (_arg1.target.name == "dot14"){
if (dotWindow.dot14.currentFrame < 10){
dotWindow.dot14.alpha = 1;
showDotWindow(false);
if (dotWindow.dot14.currentFrame == 9){
dotWindow.dot14.gotoAndStop(10);
showTransWindow(true);
} else {
dotWindow.dot14.gotoAndStop(10);
loadedSym.alpha = 1;
iPhase++;
};
};
} else {
if (_arg1.target.name == "dot15"){
if (dotWindow.dot15.currentFrame < 10){
dotWindow.dot15.alpha = 1;
showDotWindow(false);
if (dotWindow.dot15.currentFrame == 9){
dotWindow.dot15.gotoAndStop(10);
showTransWindow(true);
} else {
dotWindow.dot15.gotoAndStop(10);
loadedSym.alpha = 1;
iPhase++;
};
};
} else {
if (_arg1.target.name == "dot16"){
if (dotWindow.dot16.currentFrame < 10){
dotWindow.dot16.alpha = 1;
showDotWindow(false);
if (dotWindow.dot16.currentFrame == 9){
dotWindow.dot16.gotoAndStop(10);
showTransWindow(true);
} else {
dotWindow.dot16.gotoAndStop(10);
loadedSym.alpha = 1;
iPhase++;
};
};
} else {
if (_arg1.target.name == "dot17"){
if (dotWindow.dot17.currentFrame < 10){
dotWindow.dot17.alpha = 1;
showDotWindow(false);
if (dotWindow.dot17.currentFrame == 9){
dotWindow.dot17.gotoAndStop(10);
showTransWindow(true);
} else {
dotWindow.dot17.gotoAndStop(10);
loadedSym.alpha = 1;
iPhase++;
};
};
} else {
if (_arg1.target.name == "dot18"){
if (dotWindow.dot18.currentFrame < 10){
dotWindow.dot18.alpha = 1;
showDotWindow(false);
if (dotWindow.dot18.currentFrame == 9){
dotWindow.dot18.gotoAndStop(10);
showTransWindow(true);
} else {
dotWindow.dot18.gotoAndStop(10);
loadedSym.alpha = 1;
iPhase++;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
if (_arg1.target.name == "col1"){
dotType = 1;
showTransWindow(false);
loadedSym.alpha = 1;
iPhase++;
} else {
if (_arg1.target.name == "col2"){
dotType = 2;
showTransWindow(false);
loadedSym.alpha = 1;
iPhase++;
} else {
if (_arg1.target.name == "col3"){
dotType = 3;
showTransWindow(false);
loadedSym.alpha = 1;
iPhase++;
} else {
if (_arg1.target.name == "col4"){
dotType = 4;
showTransWindow(false);
loadedSym.alpha = 1;
iPhase++;
} else {
if (_arg1.target.name == "col5"){
dotType = 5;
showTransWindow(false);
loadedSym.alpha = 1;
iPhase++;
} else {
if (_arg1.target.name == "col6"){
dotType = 6;
showTransWindow(false);
loadedSym.alpha = 1;
iPhase++;
} else {
if (_arg1.target.name == "col7"){
dotType = 7;
showTransWindow(false);
loadedSym.alpha = 1;
iPhase++;
} else {
if (_arg1.target.name == "col8"){
dotType = 8;
showTransWindow(false);
loadedSym.alpha = 1;
iPhase++;
};
};
};
};
};
};
};
};
} else {
if (iPhase == 1){
if (_arg1.target.name == "btnPowL3"){
myPower = (myPower - 10);
} else {
if (_arg1.target.name == "btnPowL2"){
myPower = (myPower - 1);
} else {
if (_arg1.target.name == "btnPowL1"){
myPower = (myPower - 0.1);
} else {
if (_arg1.target.name == "btnPowR1"){
myPower = (myPower + 0.1);
} else {
if (_arg1.target.name == "btnPowR2"){
myPower = (myPower + 1);
} else {
if (_arg1.target.name == "btnPowR3"){
myPower = (myPower + 10);
};
};
};
};
};
};
if (myPower < 65){
myPower = 65;
};
if (windType < 2){
if (myPower > 125){
myPower = 125;
};
} else {
if (myPower > 100){
myPower = 100;
};
};
wndIndicators.txtPower.text = myPower.toFixed(1);
wndIndicators.speedgauge.scaleX = ((myPower - 65) / 35);
if (_arg1.target.name == "btnA1dn3"){
myAngle = (myAngle - 10);
} else {
if (_arg1.target.name == "btnA1dn2"){
myAngle = (myAngle - 1);
} else {
if (_arg1.target.name == "btnA1dn1"){
myAngle = (myAngle - 0.1);
} else {
if (_arg1.target.name == "btnA1up1"){
myAngle = (myAngle + 0.1);
} else {
if (_arg1.target.name == "btnA1up2"){
myAngle = (myAngle + 1);
} else {
if (_arg1.target.name == "btnA1up3"){
myAngle = (myAngle + 10);
};
};
};
};
};
};
if (myAngle < minAngle){
myAngle = minAngle;
};
if (myAngle > 70){
myAngle = 70;
};
wndIndicators.txtAngle1.text = myAngle.toFixed(1);
cannon1.rotation = -(myAngle);
if (_arg1.target.name == "btnA2dn3"){
mySway = (mySway - 10);
} else {
if (_arg1.target.name == "btnA2dn2"){
mySway = (mySway - 1);
} else {
if (_arg1.target.name == "btnA2dn1"){
mySway = (mySway - 0.1);
} else {
if (_arg1.target.name == "btnA2up1"){
mySway = (mySway + 0.1);
} else {
if (_arg1.target.name == "btnA2up2"){
mySway = (mySway + 1);
} else {
if (_arg1.target.name == "btnA2up3"){
mySway = (mySway + 10);
};
};
};
};
};
};
if (mySway < -45){
mySway = -45;
};
if (mySway > 45){
mySway = 45;
};
wndIndicators.txtAngle2.text = mySway.toFixed(1);
cannon2.rotation = mySway;
if (_arg1.target.name == "btnLaunch"){
wndIndicators.alpha = 0.2;
bHomingInProgress = false;
loadedSym.alpha = 0;
iPhase++;
launchDot();
};
};
};
}
public function hideGhostTrail():void{
ghostA1.y = 630;
ghostB1.y = 630;
ghostA2.y = 630;
ghostB2.y = 630;
ghostA3.y = 630;
ghostB3.y = 630;
ghostA4.y = 630;
ghostB4.y = 630;
ghostA5.y = 630;
ghostB5.y = 630;
}
public function UpdateGhost(_arg1, _arg2, _arg3, _arg4):void{
_arg1.x = _arg2.x;
_arg1.y = _arg2.y;
_arg3.x = _arg4.x;
_arg3.y = _arg4.y;
}
public function updateWind(){
wndIndicators.windArrow3.rotation = 0;
wndIndicators.windArrow3.scaleY = (wind3Speed / 10);
wndIndicators.windArrow3.rotation = wind3Angle;
wndIndicators.windArrow2.rotation = 0;
wndIndicators.windArrow2.scaleY = (wind2Speed / 10);
wndIndicators.windArrow2.rotation = wind2Angle;
wndIndicators.windArrow1.rotation = 0;
wndIndicators.windArrow1.scaleY = (windSpeed / 10);
wndIndicators.windArrow1.rotation = windAngle;
wndIndicators.txtWind.text = (("Wind: " + windSpeed.toFixed(1)) + " m/s");
wndIndicators.txtAngle3.text = windAngle.toFixed(1);
calculateWindXY();
}
public function placeCharacters():void{
if (locJen == 0){
locJen = Math.ceil((Math.random() * 9));
screen.jen.x = ((100 * (locJen - 1)) + 94);
screen.jen.y = (Math.floor((Math.random() * 175)) + 210);
posArray[(locJen - 1)] = 1;
posArray[locJen] = 2;
posArray[(locJen + 1)] = 1;
} else {
screen.jen.x = 2000;
screen.jen.alpha = 0;
};
screen.jenSwim.x = screen.jen.x;
screen.jenSwim.alpha = 0;
if (locAmanda == 0){
locAmanda = Math.ceil((Math.random() * 9));
if (posArray[locAmanda] != 0){
while (posArray[locAmanda] != 0) {
locAmanda = Math.ceil((Math.random() * 9));
};
};
screen.amanda.x = ((100 * (locAmanda - 1)) + 94);
screen.amanda.y = (Math.floor((Math.random() * 175)) + 210);
posArray[(locAmanda - 1)] = 1;
posArray[locAmanda] = 2;
posArray[(locAmanda + 1)] = 1;
} else {
screen.amanda.x = 2000;
screen.amanda.alpha = 0;
};
screen.amandaSwim.x = screen.amanda.x;
screen.amandaSwim.alpha = 0;
if (locKelsey == 0){
locKelsey = Math.ceil((Math.random() * 9));
if (posArray[locKelsey] != 0){
while (posArray[locKelsey] != 0) {
locKelsey = Math.ceil((Math.random() * 9));
};
};
screen.kelsey.x = ((100 * (locKelsey - 1)) + 94);
screen.kelsey.y = (Math.floor((Math.random() * 175)) + 210);
posArray[(locKelsey - 1)] = 1;
posArray[locKelsey] = 2;
posArray[(locKelsey + 1)] = 1;
} else {
screen.kelsey.x = 2000;
screen.kelsey.alpha = 0;
};
screen.kelseySwim.x = screen.kelsey.x;
screen.kelseySwim.alpha = 0;
if (locClaire == 0){
locClaire = Math.ceil((Math.random() * 9));
if (posArray[locClaire] != 0){
while (posArray[locClaire] != 0) {
locClaire = Math.ceil((Math.random() * 9));
};
};
screen.claire.x = ((100 * (locClaire - 1)) + 94);
screen.claire.y = (Math.floor((Math.random() * 175)) + 210);
posArray[(locClaire - 1)] = 1;
posArray[locClaire] = 2;
posArray[(locClaire + 1)] = 1;
} else {
screen.claire.x = 2000;
screen.claire.alpha = 0;
};
screen.claireSwim.x = screen.claire.x;
screen.claireSwim.alpha = 0;
placeHandles(screen.jenHandleLeft, screen.jenHandleRight, screen.jenPlatform, screen.jen);
placeHandles(screen.amandaHandleLeft, screen.amandaHandleRight, screen.amandaPlatform, screen.amanda);
placeHandles(screen.claireHandleLeft, screen.claireHandleRight, screen.clairePlatform, screen.claire);
placeHandles(screen.kelseyHandleLeft, screen.kelseyHandleRight, screen.kelseyPlatform, screen.kelsey);
}
public function placeHandles(_arg1, _arg2, _arg3, _arg4):void{
_arg1.x = (_arg4.x - 69.9);
_arg1.y = (_arg4.y - 190.55);
_arg2.x = (_arg4.x + 71.35);
_arg2.y = (_arg4.y - 190.55);
_arg3.x = (_arg4.x - 9.15);
_arg3.y = (_arg4.y + 170.2);
}
public function showDotWindow(_arg1):void{
if (_arg1 == true){
dotWindow.y = 497;
dotWindow.alpha = 1;
} else {
dotWindow.alpha = 0;
dotWindow.y = -120;
if (dotType == 3){
minAngle = 0;
} else {
if (windType < 2){
minAngle = 10;
} else {
minAngle = 25;
};
if (myAngle < minAngle){
myAngle = minAngle;
};
if (myAngle > 70){
myAngle = 70;
};
wndIndicators.txtAngle1.text = myAngle.toFixed(1);
cannon1.rotation = -(myAngle);
};
};
}
public function showTransWindow(_arg1):void{
if (_arg1 == true){
transWindow.y = 497;
transWindow.alpha = 1;
} else {
transWindow.alpha = 0;
transWindow.y = -120;
};
if (dotType == 3){
minAngle = 0;
} else {
minAngle = 25;
if (myAngle < minAngle){
myAngle = minAngle;
};
if (myAngle > 70){
myAngle = 70;
};
wndIndicators.txtAngle1.text = myAngle.toFixed(1);
cannon1.rotation = -(myAngle);
};
}
public function mouseHover(_arg1:MouseEvent):void{
if (dotWindow.alpha == 1){
if (_arg1.target.name == "dot1"){
inqueryDotInfo(dotWindow.dot1);
} else {
if (_arg1.target.name == "dot2"){
inqueryDotInfo(dotWindow.dot2);
} else {
if (_arg1.target.name == "dot3"){
inqueryDotInfo(dotWindow.dot3);
} else {
if (_arg1.target.name == "dot4"){
inqueryDotInfo(dotWindow.dot4);
} else {
if (_arg1.target.name == "dot5"){
inqueryDotInfo(dotWindow.dot5);
} else {
if (_arg1.target.name == "dot6"){
inqueryDotInfo(dotWindow.dot6);
} else {
if (_arg1.target.name == "dot7"){
inqueryDotInfo(dotWindow.dot7);
} else {
if (_arg1.target.name == "dot8"){
inqueryDotInfo(dotWindow.dot8);
} else {
if (_arg1.target.name == "dot9"){
inqueryDotInfo(dotWindow.dot9);
} else {
if (_arg1.target.name == "dot10"){
inqueryDotInfo(dotWindow.dot10);
} else {
if (_arg1.target.name == "dot11"){
inqueryDotInfo(dotWindow.dot11);
} else {
if (_arg1.target.name == "dot12"){
inqueryDotInfo(dotWindow.dot12);
} else {
if (_arg1.target.name == "dot13"){
inqueryDotInfo(dotWindow.dot13);
} else {
if (_arg1.target.name == "dot14"){
inqueryDotInfo(dotWindow.dot14);
} else {
if (_arg1.target.name == "dot15"){
inqueryDotInfo(dotWindow.dot15);
} else {
if (_arg1.target.name == "dot16"){
inqueryDotInfo(dotWindow.dot16);
} else {
if (_arg1.target.name == "dot17"){
inqueryDotInfo(dotWindow.dot17);
} else {
if (_arg1.target.name == "dot18"){
inqueryDotInfo(dotWindow.dot18);
} else {
dotWindow.txtType.text = "DOT type:";
dotWindow.txtNotes.text = "Notes:";
dotWindow.txtCommon.text = "";
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function inqueryDotInfo(_arg1):void{
txt1 = "DOT type: ";
txt2 = "Notes: ";
txt3 = "";
dotType = _arg1.currentFrame;
if (dotType == 1){
txt1 = (txt1 + "Regular (blue)");
txt2 = (txt2 + "Standard 12-in-a-dozen DOT.");
txt3 = "regular";
dotWindow.txtCommon.text = "[common]";
} else {
if (dotType == 2){
txt1 = (txt1 + "'Snail' (purple)");
txt2 = (txt2 + "Moves slowly over skin.");
txt3 = "snail";
dotWindow.txtCommon.text = "[common]";
} else {
if (dotType == 3){
txt1 = (txt1 + "'Ghostly' (white)");
txt2 = (txt2 + "Not affected by gravity.");
txt3 = "ghostly";
dotWindow.txtCommon.text = "[uncommon]";
} else {
if (dotType == 4){
txt1 = (txt1 + "'Sticky' (green)");
txt2 = (txt2 + "Sticks like glue on contact.");
txt3 = "sticky";
dotWindow.txtCommon.text = "[uncommon]";
} else {
if (dotType == 5){
txt1 = (txt1 + "'Unpredictable' (yellow)");
txt2 = (txt2 + "Crawls where-ever it pleases.");
txt3 = "unpredictable";
dotWindow.txtCommon.text = "[uncommon]";
} else {
if (dotType == 6){
txt1 = (txt1 + "'Bloated' (black)");
txt2 = (txt2 + "Supersize, has bigger reach.");
txt3 = "bloated";
dotWindow.txtCommon.text = "[rare]";
} else {
if (dotType == 7){
txt1 = (txt1 + "'Homing' (red)");
txt2 = (txt2 + "Heat-seeking, finds nearby skin.");
txt3 = "homing";
dotWindow.txtCommon.text = "[rare]";
} else {
if (dotType == 8){
txt1 = (txt1 + "'Guided' (orange)");
txt2 = (txt2 + "Short duration remote control.");
txt3 = "guided";
dotWindow.txtCommon.text = "[rare]";
} else {
if (dotType == 9){
txt1 = (txt1 + "'MultiDot' (multi-colour)");
txt2 = (txt2 + "Transforms to any colour of your choice.");
txt3 = "multi-DOT";
dotWindow.txtCommon.text = "[rare]";
};
};
};
};
};
};
};
};
};
if (_arg1.alpha < 1){
txt1 = (txt1 + " - transparent");
txt2 = (txt2 + " Not affected by wind.");
txt3 = ("transparent " + txt3);
dotTrans = true;
} else {
dotTrans = false;
};
dotWindow.txtType.text = txt1;
dotWindow.txtNotes.text = txt2;
loadedSym.txtLoadedDot.text = ("Loaded DOT: " + txt3);
loadedSym.alpha = 0;
}
public function pickDots(_arg1, _arg2, _arg3):void{
var _local4:uint;
var _local5:Number;
var _local6:Array = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_local4 = ((_arg1 + _arg2) + _arg3);
dotWindow.dot1.gotoAndStop(10);
dotWindow.dot2.gotoAndStop(10);
dotWindow.dot3.gotoAndStop(10);
dotWindow.dot4.gotoAndStop(10);
dotWindow.dot5.gotoAndStop(10);
dotWindow.dot6.gotoAndStop(10);
dotWindow.dot7.gotoAndStop(10);
dotWindow.dot8.gotoAndStop(10);
dotWindow.dot9.gotoAndStop(10);
dotWindow.dot10.gotoAndStop(10);
dotWindow.dot11.gotoAndStop(10);
dotWindow.dot12.gotoAndStop(10);
dotWindow.dot13.gotoAndStop(10);
dotWindow.dot14.gotoAndStop(10);
dotWindow.dot15.gotoAndStop(10);
dotWindow.dot16.gotoAndStop(10);
dotWindow.dot17.gotoAndStop(10);
dotWindow.dot18.gotoAndStop(10);
i = 1;
while (i < (_local4 + 1)) {
j = 1;
while (j != 0) {
k = Math.floor((Math.random() * (_local4 + 1)));
j = _local6[k];
};
if (_arg1 > 0){
_arg1--;
if (bPremium == true){
j = (Math.floor((Math.random() * 4)) + 6);
} else {
j = (Math.floor((Math.random() * 3)) + 6);
};
} else {
if (_arg2 > 0){
_arg2--;
j = (Math.floor((Math.random() * 3)) + 3);
} else {
j = (Math.floor((Math.random() * 2)) + 1);
};
};
if (Math.floor((Math.random() * 100)) < 25){
_local5 = 0.4;
} else {
_local5 = 1;
};
_local6[k] = 1;
if (k == 1){
setDotSelector(dotWindow.dot1, j, _local5);
};
if (k == 2){
setDotSelector(dotWindow.dot2, j, _local5);
};
if (k == 3){
setDotSelector(dotWindow.dot3, j, _local5);
};
if (k == 4){
setDotSelector(dotWindow.dot4, j, _local5);
};
if (k == 5){
setDotSelector(dotWindow.dot5, j, _local5);
};
if (k == 6){
setDotSelector(dotWindow.dot6, j, _local5);
};
if (k == 7){
setDotSelector(dotWindow.dot7, j, _local5);
};
if (k == 8){
setDotSelector(dotWindow.dot8, j, _local5);
};
if (k == 9){
setDotSelector(dotWindow.dot9, j, _local5);
};
if (k == 10){
setDotSelector(dotWindow.dot10, j, _local5);
};
if (k == 11){
setDotSelector(dotWindow.dot11, j, _local5);
};
if (k == 12){
setDotSelector(dotWindow.dot12, j, _local5);
};
if (k == 13){
setDotSelector(dotWindow.dot13, j, _local5);
};
if (k == 14){
setDotSelector(dotWindow.dot14, j, _local5);
};
if (k == 15){
setDotSelector(dotWindow.dot15, j, _local5);
};
if (k == 16){
setDotSelector(dotWindow.dot16, j, _local5);
};
if (k == 17){
setDotSelector(dotWindow.dot17, j, _local5);
};
if (k == 18){
setDotSelector(dotWindow.dot18, j, _local5);
};
i++;
};
}
public function setDotSelector(_arg1, _arg2, _arg3):void{
_arg1.gotoAndStop(_arg2);
_arg1.alpha = _arg3;
}
public function leaveThis():void{
stage.removeEventListener(MouseEvent.CLICK, mouseClicked);
stage.removeEventListener(MouseEvent.MOUSE_OVER, mouseHover);
gotoAndStop(4);
}
public function checkSkinHit():void{
locHitPrev = locHit;
locHit = 0;
var _local1:* = screen.tmpDot.x;
var _local2:* = screen.tmpDot.y;
var _local3:* = 0;
if (windType < 2){
_local3 = 8;
};
if (dotType == 6){
_local3 = 16;
};
if ((((((((_local1 > ((screen.jen.x - 41) - _local3))) && ((_local1 < ((screen.jen.x + 23) + _local3))))) && ((_local2 > ((screen.jen.y + 166) - _local3))))) && ((_local2 < ((screen.jen.y + 202) + _local3))))){
charHit = 1;
locHit = 3;
jenFt = 0;
if (dotType == 4){
jenPermaLegs = true;
};
screen.jen.jenHead.gotoAndPlay(6);
screen.jenPlatform.gotoAndStop(2);
screen.jen.legsJen.gotoAndPlay(7);
} else {
if ((((((((_local1 > ((screen.jen.x - 33) - _local3))) && ((_local1 < ((screen.jen.x + 17) + _local3))))) && ((_local2 > ((screen.jen.y + 207) - _local3))))) && ((_local2 < ((screen.jen.y + 213) + _local3))))){
charHit = 1;
locHit = 3;
jenFt = 0;
if (dotType == 4){
jenPermaLegs = true;
};
screen.jen.jenHead.gotoAndPlay(6);
screen.jenPlatform.gotoAndStop(2);
screen.jen.legsJen.gotoAndPlay(7);
} else {
if ((((((((_local1 > ((screen.jen.x - 40) - _local3))) && ((_local1 < ((screen.jen.x - 14) + _local3))))) && ((_local2 > ((screen.jen.y - 54) - _local3))))) && ((_local2 < ((screen.jen.y - 26) + _local3))))){
charHit = 1;
locHit = 1;
jenArm1 = 0;
screen.jen.jenHead.gotoAndPlay(6);
screen.jenHandleLeft.gotoAndStop(2);
if (jenArm2 == 1){
screen.jen.bodyJen.gotoAndStop(2);
} else {
screen.jen.bodyJen.gotoAndStop(8);
};
} else {
if ((((((((_local1 > ((screen.jen.x + 6) - _local3))) && ((_local1 < ((screen.jen.x + 32) + _local3))))) && ((_local2 > ((screen.jen.y - 54) - _local3))))) && ((_local2 < ((screen.jen.y - 26) + _local3))))){
charHit = 1;
locHit = 2;
jenArm2 = 0;
screen.jen.jenHead.gotoAndPlay(6);
screen.jenHandleRight.gotoAndStop(2);
if (jenArm1 == 1){
screen.jen.bodyJen.gotoAndStop(3);
} else {
screen.jen.bodyJen.gotoAndStop(8);
};
} else {
if ((((((((_local1 > ((screen.jen.x - 48) - _local3))) && ((_local1 < ((screen.jen.x + 23) + _local3))))) && ((_local2 > ((screen.jen.y + 26) - _local3))))) && ((_local2 < ((screen.jen.y + 166) + _local3))))){
charHit = 1;
locHit = 4;
screen.jen.jenHead.gotoAndPlay(6);
screen.jen.legsJen.gotoAndPlay(2);
} else {
if ((((((((_local1 > ((screen.jen.x - 34) - _local3))) && ((_local1 < ((screen.jen.x + 28) + _local3))))) && ((_local2 > ((screen.jen.y - 113) - _local3))))) && ((_local2 < ((screen.jen.y + 26) + _local3))))){
charHit = 1;
locHit = 5;
if (_local2 > (screen.jen.y - 19)){
if ((((jenArm1 == 1)) && ((jenArm2 == 1)))){
if (Math.floor((Math.random() * 2)) == 1){
jenArm1 = 0;
screen.jen.bodyJen.gotoAndStop(4);
screen.jenHandleLeft.gotoAndStop(2);
} else {
jenArm2 = 0;
screen.jen.bodyJen.gotoAndStop(5);
screen.jenHandleRight.gotoAndStop(2);
};
} else {
if ((((jenArm1 == 0)) && ((jenArm2 == 0)))){
screen.jen.bodyJen.gotoAndStop(9);
} else {
if (jenArm1 == 0){
screen.jen.bodyJen.gotoAndStop(4);
} else {
screen.jen.bodyJen.gotoAndStop(5);
};
};
};
};
screen.jen.jenHead.gotoAndPlay(6);
};
};
};
};
};
};
if ((((((((jenFt == 0)) && ((jenArm1 == 0)))) && ((jenArm2 == 0)))) && ((jenUp == true)))){
dropChar("Jen");
};
if ((((charHit == 1)) && ((dotType == 4)))){
jenPermaLaugh = true;
};
if (((!((charHit == 1))) && ((jenPermaLaugh == false)))){
if (_local1 < screen.jen.x){
screen.jen.jenHead.gotoAndStop(4);
} else {
screen.jen.jenHead.gotoAndStop(5);
};
};
if ((((((((_local1 > ((screen.claire.x - 41) - _local3))) && ((_local1 < ((screen.claire.x + 23) + _local3))))) && ((_local2 > ((screen.claire.y + 166) - _local3))))) && ((_local2 < ((screen.claire.y + 202) + _local3))))){
charHit = 2;
locHit = 3;
claireFt = 0;
if (dotType == 4){
clairePermaLegs = true;
};
screen.claire.claireHead.gotoAndPlay(6);
screen.clairePlatform.gotoAndStop(2);
screen.claire.legsClaire.gotoAndPlay(7);
} else {
if ((((((((_local1 > ((screen.claire.x - 33) - _local3))) && ((_local1 < ((screen.claire.x + 17) + _local3))))) && ((_local2 > ((screen.claire.y + 207) - _local3))))) && ((_local2 < ((screen.claire.y + 213) + _local3))))){
charHit = 2;
locHit = 3;
claireFt = 0;
if (dotType == 4){
clairePermaLegs = true;
};
screen.claire.claireHead.gotoAndPlay(6);
screen.clairePlatform.gotoAndStop(2);
screen.claire.legsClaire.gotoAndPlay(7);
} else {
if ((((((((_local1 > ((screen.claire.x - 40) - _local3))) && ((_local1 < ((screen.claire.x - 14) + _local3))))) && ((_local2 > ((screen.claire.y - 54) - _local3))))) && ((_local2 < ((screen.claire.y - 26) + _local3))))){
charHit = 2;
locHit = 1;
claireArm1 = 0;
screen.claire.claireHead.gotoAndPlay(6);
screen.claireHandleLeft.gotoAndStop(2);
if (claireArm2 == 1){
screen.claire.bodyClaire.gotoAndStop(2);
} else {
screen.claire.bodyClaire.gotoAndStop(8);
};
} else {
if ((((((((_local1 > ((screen.claire.x + 6) - _local3))) && ((_local1 < ((screen.claire.x + 32) + _local3))))) && ((_local2 > ((screen.claire.y - 54) - _local3))))) && ((_local2 < ((screen.claire.y - 26) + _local3))))){
charHit = 2;
locHit = 2;
claireArm2 = 0;
screen.claire.claireHead.gotoAndPlay(6);
screen.claireHandleRight.gotoAndStop(2);
if (claireArm1 == 1){
screen.claire.bodyClaire.gotoAndStop(3);
} else {
screen.claire.bodyClaire.gotoAndStop(8);
};
} else {
if ((((((((_local1 > ((screen.claire.x - 48) - _local3))) && ((_local1 < ((screen.claire.x + 23) + _local3))))) && ((_local2 > ((screen.claire.y + 26) - _local3))))) && ((_local2 < ((screen.claire.y + 166) + _local3))))){
charHit = 2;
locHit = 4;
screen.claire.claireHead.gotoAndPlay(6);
screen.claire.legsClaire.gotoAndPlay(2);
} else {
if ((((((((_local1 > ((screen.claire.x - 34) - _local3))) && ((_local1 < ((screen.claire.x + 28) + _local3))))) && ((_local2 > ((screen.claire.y - 113) - _local3))))) && ((_local2 < ((screen.claire.y + 26) + _local3))))){
charHit = 2;
locHit = 5;
if (_local2 > (screen.jen.y - 19)){
if ((((claireArm1 == 1)) && ((claireArm2 == 1)))){
if (Math.floor((Math.random() * 2)) == 1){
claireArm1 = 0;
screen.claire.bodyClaire.gotoAndStop(4);
screen.claireHandleLeft.gotoAndStop(2);
} else {
claireArm2 = 0;
screen.claire.bodyClaire.gotoAndStop(5);
screen.claireHandleRight.gotoAndStop(2);
};
} else {
if ((((claireArm1 == 0)) && ((claireArm2 == 0)))){
screen.claire.bodyClaire.gotoAndStop(9);
} else {
if (claireArm1 == 0){
screen.claire.bodyClaire.gotoAndStop(4);
} else {
screen.claire.bodyClaire.gotoAndStop(5);
};
};
};
};
screen.claire.claireHead.gotoAndPlay(6);
};
};
};
};
};
};
if ((((((((claireFt == 0)) && ((claireArm1 == 0)))) && ((claireArm2 == 0)))) && ((claireUp == true)))){
dropChar("Claire");
};
if ((((charHit == 2)) && ((dotType == 4)))){
clairePermaLaugh = true;
};
if (((!((charHit == 2))) && ((clairePermaLaugh == false)))){
if (_local1 < screen.claire.x){
screen.claire.claireHead.gotoAndStop(4);
} else {
screen.claire.claireHead.gotoAndStop(5);
};
};
if ((((((((_local1 > ((screen.kelsey.x - 41) - _local3))) && ((_local1 < ((screen.kelsey.x + 23) + _local3))))) && ((_local2 > ((screen.kelsey.y + 166) - _local3))))) && ((_local2 < ((screen.kelsey.y + 202) + _local3))))){
charHit = 3;
locHit = 3;
kelseyFt = 0;
if (dotType == 4){
kelseyPermaLegs = true;
};
screen.kelsey.kelseyHead.gotoAndPlay(6);
screen.kelseyPlatform.gotoAndStop(2);
screen.kelsey.legsKelsey.gotoAndPlay(7);
} else {
if ((((((((_local1 > ((screen.kelsey.x - 33) - _local3))) && ((_local1 < ((screen.kelsey.x + 17) + _local3))))) && ((_local2 > ((screen.kelsey.y + 207) - _local3))))) && ((_local2 < ((screen.kelsey.y + 213) + _local3))))){
charHit = 3;
locHit = 3;
kelseyFt = 0;
if (dotType == 4){
kelseyPermaLegs = true;
};
screen.kelsey.kelseyHead.gotoAndPlay(6);
screen.kelseyPlatform.gotoAndStop(2);
screen.kelsey.legsKelsey.gotoAndPlay(7);
} else {
if ((((((((_local1 > ((screen.kelsey.x - 40) - _local3))) && ((_local1 < ((screen.kelsey.x - 14) + _local3))))) && ((_local2 > ((screen.kelsey.y - 54) - _local3))))) && ((_local2 < ((screen.kelsey.y - 26) + _local3))))){
charHit = 3;
locHit = 1;
kelseyArm1 = 0;
screen.kelsey.kelseyHead.gotoAndPlay(6);
screen.kelseyHandleLeft.gotoAndStop(2);
if (kelseyArm2 == 1){
screen.kelsey.bodyKelsey.gotoAndStop(2);
} else {
screen.kelsey.bodyKelsey.gotoAndStop(8);
};
} else {
if ((((((((_local1 > ((screen.kelsey.x + 6) - _local3))) && ((_local1 < ((screen.kelsey.x + 32) + _local3))))) && ((_local2 > ((screen.kelsey.y - 54) - _local3))))) && ((_local2 < ((screen.kelsey.y - 26) + _local3))))){
charHit = 3;
locHit = 2;
kelseyArm2 = 0;
screen.kelsey.kelseyHead.gotoAndPlay(6);
screen.kelseyHandleRight.gotoAndStop(2);
if (kelseyArm1 == 1){
screen.kelsey.bodyKelsey.gotoAndStop(3);
} else {
screen.kelsey.bodyKelsey.gotoAndStop(8);
};
} else {
if ((((((((_local1 > ((screen.kelsey.x - 48) - _local3))) && ((_local1 < ((screen.kelsey.x + 23) + _local3))))) && ((_local2 > ((screen.kelsey.y + 26) - _local3))))) && ((_local2 < ((screen.kelsey.y + 166) + _local3))))){
charHit = 3;
locHit = 4;
screen.kelsey.kelseyHead.gotoAndPlay(6);
screen.kelsey.legsKelsey.gotoAndPlay(2);
} else {
if ((((((((_local1 > ((screen.kelsey.x - 34) - _local3))) && ((_local1 < ((screen.kelsey.x + 28) + _local3))))) && ((_local2 > ((screen.kelsey.y - 113) - _local3))))) && ((_local2 < ((screen.kelsey.y + 26) + _local3))))){
charHit = 3;
locHit = 5;
if (_local2 > (screen.jen.y - 19)){
if ((((kelseyArm1 == 1)) && ((kelseyArm2 == 1)))){
if (Math.floor((Math.random() * 2)) == 1){
kelseyArm1 = 0;
screen.kelsey.bodyKelsey.gotoAndStop(4);
screen.kelseyHandleLeft.gotoAndStop(2);
} else {
kelseyArm2 = 0;
screen.kelsey.bodyKelsey.gotoAndStop(5);
screen.kelseyHandleRight.gotoAndStop(2);
};
} else {
if ((((kelseyArm1 == 0)) && ((kelseyArm2 == 0)))){
screen.kelsey.bodyKelsey.gotoAndStop(9);
} else {
if (kelseyArm1 == 0){
screen.kelsey.bodyKelsey.gotoAndStop(4);
} else {
screen.kelsey.bodyKelsey.gotoAndStop(5);
};
};
};
};
screen.kelsey.kelseyHead.gotoAndPlay(6);
};
};
};
};
};
};
if ((((((((kelseyFt == 0)) && ((kelseyArm1 == 0)))) && ((kelseyArm2 == 0)))) && ((kelseyUp == true)))){
dropChar("Kelsey");
};
if ((((charHit == 3)) && ((dotType == 4)))){
kelseyPermaLaugh = true;
};
if (((!((charHit == 3))) && ((kelseyPermaLaugh == false)))){
if (_local1 < screen.kelsey.x){
screen.kelsey.kelseyHead.gotoAndStop(4);
} else {
screen.kelsey.kelseyHead.gotoAndStop(5);
};
};
if ((((((((_local1 > ((screen.amanda.x - 41) - _local3))) && ((_local1 < ((screen.amanda.x + 23) + _local3))))) && ((_local2 > ((screen.amanda.y + 166) - _local3))))) && ((_local2 < ((screen.amanda.y + 202) + _local3))))){
charHit = 4;
locHit = 3;
amandaFt = 0;
if (dotType == 4){
amandaPermaLegs = true;
};
screen.amanda.amandaHead.gotoAndPlay(6);
screen.amandaPlatform.gotoAndStop(2);
screen.amanda.legsAmanda.gotoAndPlay(7);
} else {
if ((((((((_local1 > ((screen.amanda.x - 33) - _local3))) && ((_local1 < ((screen.amanda.x + 17) + _local3))))) && ((_local2 > ((screen.amanda.y + 207) - _local3))))) && ((_local2 < ((screen.amanda.y + 213) + _local3))))){
charHit = 4;
locHit = 3;
amandaFt = 0;
if (dotType == 4){
amandaPermaLegs = true;
};
screen.amanda.amandaHead.gotoAndPlay(6);
screen.amandaPlatform.gotoAndStop(2);
screen.amanda.legsAmanda.gotoAndPlay(7);
} else {
if ((((((((_local1 > ((screen.amanda.x - 40) - _local3))) && ((_local1 < ((screen.amanda.x - 14) + _local3))))) && ((_local2 > ((screen.amanda.y - 54) - _local3))))) && ((_local2 < ((screen.amanda.y - 26) + _local3))))){
charHit = 4;
locHit = 1;
amandaArm1 = 0;
screen.amanda.amandaHead.gotoAndPlay(6);
screen.amandaHandleLeft.gotoAndStop(2);
if (amandaArm2 == 1){
screen.amanda.bodyAmanda.gotoAndStop(2);
} else {
screen.amanda.bodyAmanda.gotoAndStop(8);
};
} else {
if ((((((((_local1 > ((screen.amanda.x + 6) - _local3))) && ((_local1 < ((screen.amanda.x + 32) + _local3))))) && ((_local2 > ((screen.amanda.y - 54) - _local3))))) && ((_local2 < ((screen.amanda.y - 26) + _local3))))){
charHit = 4;
locHit = 2;
amandaArm2 = 0;
screen.amanda.amandaHead.gotoAndPlay(6);
screen.amandaHandleRight.gotoAndStop(2);
if (amandaArm1 == 1){
screen.amanda.bodyAmanda.gotoAndStop(3);
} else {
screen.amanda.bodyAmanda.gotoAndStop(8);
};
} else {
if ((((((((_local1 > ((screen.amanda.x - 48) - _local3))) && ((_local1 < ((screen.amanda.x + 23) + _local3))))) && ((_local2 > ((screen.amanda.y + 26) - _local3))))) && ((_local2 < ((screen.amanda.y + 166) + _local3))))){
charHit = 4;
locHit = 4;
screen.amanda.amandaHead.gotoAndPlay(6);
screen.amanda.legsAmanda.gotoAndPlay(2);
} else {
if ((((((((_local1 > ((screen.amanda.x - 34) - _local3))) && ((_local1 < ((screen.amanda.x + 28) + _local3))))) && ((_local2 > ((screen.amanda.y - 113) - _local3))))) && ((_local2 < ((screen.amanda.y + 26) + _local3))))){
charHit = 4;
locHit = 5;
if (_local2 > (screen.jen.y - 19)){
if ((((amandaArm1 == 1)) && ((amandaArm2 == 1)))){
if (Math.floor((Math.random() * 2)) == 1){
amandaArm1 = 0;
screen.amanda.bodyAmanda.gotoAndStop(4);
screen.amandaHandleLeft.gotoAndStop(2);
} else {
amandaArm2 = 0;
screen.amanda.bodyAmanda.gotoAndStop(5);
screen.amandaHandleRight.gotoAndStop(2);
};
} else {
if ((((amandaArm1 == 0)) && ((amandaArm2 == 0)))){
screen.amanda.bodyAmanda.gotoAndStop(9);
} else {
if (amandaArm1 == 0){
screen.amanda.bodyAmanda.gotoAndStop(4);
} else {
screen.amanda.bodyAmanda.gotoAndStop(5);
};
};
};
};
screen.amanda.amandaHead.gotoAndPlay(6);
};
};
};
};
};
};
if ((((((((amandaFt == 0)) && ((amandaArm1 == 0)))) && ((amandaArm2 == 0)))) && ((amandaUp == true)))){
dropChar("Amanda");
};
if ((((charHit == 4)) && ((dotType == 4)))){
amandaPermaLaugh = true;
};
if (((!((charHit == 4))) && ((amandaPermaLaugh == false)))){
if (_local1 < screen.amanda.x){
screen.amanda.amandaHead.gotoAndStop(4);
} else {
screen.amanda.amandaHead.gotoAndStop(5);
};
};
if ((((locHitPrev > 0)) && ((locHit == 0)))){
if (charHit == 1){
if (jenPermaLaugh == false){
screen.jen.jenHead.gotoAndStop(1);
};
if ((((jenArm1 == 1)) && ((jenArm2 == 1)))){
screen.jen.bodyJen.gotoAndStop(1);
} else {
if ((((jenArm1 == 0)) && ((jenArm2 == 1)))){
screen.jen.bodyJen.gotoAndStop(6);
} else {
if ((((jenArm1 == 1)) && ((jenArm2 == 0)))){
screen.jen.bodyJen.gotoAndStop(7);
} else {
screen.jen.bodyJen.gotoAndStop(10);
};
};
};
if (jenPermaLegs == false){
screen.jen.legsJen.gotoAndStop(1);
};
if (jenPermaLaugh == false){
screen.jen.jenHead.gotoAndStop(1);
};
} else {
if (charHit == 2){
if (clairePermaLaugh == false){
screen.claire.claireHead.gotoAndStop(1);
};
if ((((claireArm1 == 1)) && ((claireArm2 == 1)))){
screen.claire.bodyClaire.gotoAndStop(1);
} else {
if ((((claireArm1 == 0)) && ((claireArm2 == 1)))){
screen.claire.bodyClaire.gotoAndStop(6);
} else {
if ((((claireArm1 == 1)) && ((claireArm2 == 0)))){
screen.claire.bodyClaire.gotoAndStop(7);
} else {
screen.claire.bodyClaire.gotoAndStop(10);
};
};
};
if (clairePermaLegs == false){
screen.claire.legsClaire.gotoAndStop(1);
};
if (clairePermaLaugh == false){
screen.claire.claireHead.gotoAndStop(1);
};
} else {
if (charHit == 3){
if (kelseyPermaLaugh == false){
screen.kelsey.kelseyHead.gotoAndStop(1);
};
if ((((kelseyArm1 == 1)) && ((kelseyArm2 == 1)))){
screen.kelsey.bodyKelsey.gotoAndStop(1);
} else {
if ((((kelseyArm1 == 0)) && ((kelseyArm2 == 1)))){
screen.kelsey.bodyKelsey.gotoAndStop(6);
} else {
if ((((kelseyArm1 == 1)) && ((kelseyArm2 == 0)))){
screen.kelsey.bodyKelsey.gotoAndStop(7);
} else {
screen.kelsey.bodyKelsey.gotoAndStop(10);
};
};
};
if (kelseyPermaLegs == false){
screen.kelsey.legsKelsey.gotoAndStop(1);
};
if (kelseyPermaLaugh == false){
screen.kelsey.kelseyHead.gotoAndStop(1);
};
} else {
if (charHit == 4){
if (amandaPermaLaugh == false){
screen.amanda.amandaHead.gotoAndStop(1);
};
if ((((amandaArm1 == 1)) && ((amandaArm2 == 1)))){
screen.amanda.bodyAmanda.gotoAndStop(1);
} else {
if ((((amandaArm1 == 0)) && ((amandaArm2 == 1)))){
screen.amanda.bodyAmanda.gotoAndStop(6);
} else {
if ((((amandaArm1 == 1)) && ((amandaArm2 == 0)))){
screen.amanda.bodyAmanda.gotoAndStop(7);
} else {
screen.amanda.bodyAmanda.gotoAndStop(10);
};
};
};
if (amandaPermaLegs == false){
screen.amanda.legsAmanda.gotoAndStop(1);
};
if (amandaPermaLaugh == false){
screen.amanda.amandaHead.gotoAndStop(1);
};
};
};
};
};
};
}
public function dropChar(_arg1:String):void{
if (_arg1 == "Jen"){
jenUp = false;
dropTween = new Tween(screen.jen, "y", Regular.easeIn, screen.jen.y, 1000, 1, true);
dropTween.FPS = 40;
locJen = 99;
};
if (_arg1 == "Claire"){
claireUp = false;
dropTween = new Tween(screen.claire, "y", Regular.easeIn, screen.claire.y, 1000, 1, true);
dropTween.FPS = 40;
locClaire = 99;
};
if (_arg1 == "Kelsey"){
kelseyUp = false;
dropTween = new Tween(screen.kelsey, "y", Regular.easeIn, screen.kelsey.y, 1000, 1, true);
dropTween.FPS = 40;
locKelsey = 99;
};
if (_arg1 == "Amanda"){
amandaUp = false;
dropTween = new Tween(screen.amanda, "y", Regular.easeIn, screen.amanda.y, 1000, 1, true);
dropTween.FPS = 40;
locAmanda = 99;
};
var _local2:* = 2;
if ((((_local2 > 0)) && ((dotWindow.dot1.currentFrame == 10)))){
dotWindow.dot1.gotoAndStop(1);
dotWindow.dot1.alpha = 1;
_local2--;
};
if ((((_local2 > 0)) && ((dotWindow.dot2.currentFrame == 10)))){
dotWindow.dot2.gotoAndStop(1);
dotWindow.dot2.alpha = 1;
_local2--;
};
if ((((_local2 > 0)) && ((dotWindow.dot3.currentFrame == 10)))){
dotWindow.dot3.gotoAndStop(1);
dotWindow.dot3.alpha = 1;
_local2--;
};
if ((((_local2 > 0)) && ((dotWindow.dot4.currentFrame == 10)))){
dotWindow.dot4.gotoAndStop(1);
dotWindow.dot4.alpha = 1;
_local2--;
};
if ((((_local2 > 0)) && ((dotWindow.dot5.currentFrame == 10)))){
dotWindow.dot5.gotoAndStop(1);
dotWindow.dot5.alpha = 1;
_local2--;
};
if ((((_local2 > 0)) && ((dotWindow.dot6.currentFrame == 10)))){
dotWindow.dot6.gotoAndStop(1);
dotWindow.dot6.alpha = 1;
_local2--;
};
if ((((_local2 > 0)) && ((dotWindow.dot7.currentFrame == 10)))){
dotWindow.dot7.gotoAndStop(1);
dotWindow.dot7.alpha = 1;
_local2--;
};
if ((((_local2 > 0)) && ((dotWindow.dot8.currentFrame == 10)))){
dotWindow.dot8.gotoAndStop(1);
dotWindow.dot8.alpha = 1;
_local2--;
};
if ((((_local2 > 0)) && ((dotWindow.dot9.currentFrame == 10)))){
dotWindow.dot9.gotoAndStop(1);
dotWindow.dot9.alpha = 1;
_local2--;
};
if ((((_local2 > 0)) && ((dotWindow.dot10.currentFrame == 10)))){
dotWindow.dot10.gotoAndStop(1);
dotWindow.dot10.alpha = 1;
_local2--;
};
if ((((_local2 > 0)) && ((dotWindow.dot11.currentFrame == 10)))){
dotWindow.dot11.gotoAndStop(1);
dotWindow.dot11.alpha = 1;
_local2--;
};
if ((((_local2 > 0)) && ((dotWindow.dot12.currentFrame == 10)))){
dotWindow.dot12.gotoAndStop(1);
dotWindow.dot12.alpha = 1;
_local2--;
};
if ((((_local2 > 0)) && ((dotWindow.dot13.currentFrame == 10)))){
dotWindow.dot13.gotoAndStop(1);
dotWindow.dot13.alpha = 1;
_local2--;
};
if ((((_local2 > 0)) && ((dotWindow.dot14.currentFrame == 10)))){
dotWindow.dot14.gotoAndStop(1);
dotWindow.dot14.alpha = 1;
_local2--;
};
if ((((_local2 > 0)) && ((dotWindow.dot15.currentFrame == 10)))){
dotWindow.dot15.gotoAndStop(1);
dotWindow.dot15.alpha = 1;
_local2--;
};
if ((((_local2 > 0)) && ((dotWindow.dot16.currentFrame == 10)))){
dotWindow.dot16.gotoAndStop(1);
dotWindow.dot16.alpha = 1;
_local2--;
};
if ((((_local2 > 0)) && ((dotWindow.dot17.currentFrame == 10)))){
dotWindow.dot17.gotoAndStop(1);
dotWindow.dot17.alpha = 1;
_local2--;
};
if ((((_local2 > 0)) && ((dotWindow.dot18.currentFrame == 10)))){
dotWindow.dot18.gotoAndStop(1);
dotWindow.dot18.alpha = 1;
_local2--;
};
}
public function findClosestHomingPoint(_arg1, _arg2):void{
var _local3:* = 10000;
var _local4:* = 0;
if (locJen != 99){
_local4 = Math.sqrt((Math.pow(((screen.jen.x - 27) - screen.tmpDot.x), 2) + Math.pow(((screen.tmpDot.y - screen.jen.y) - 40), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.jen.x - 27);
destYt = (screen.jen.y - 40);
};
_local4 = Math.sqrt((Math.pow(((screen.jen.x + 20) - screen.tmpDot.x), 2) + Math.pow(((screen.jen.y - 40) - screen.tmpDot.y), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.jen.x + 20);
destYt = (screen.jen.y - 40);
};
_local4 = Math.sqrt((Math.pow(((screen.jen.x - 13) - screen.tmpDot.x), 2) + Math.pow(((screen.jen.y + 48) - screen.tmpDot.y), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.jen.x - 13);
destYt = (screen.jen.y + 48);
};
_local4 = Math.sqrt((Math.pow(((screen.jen.x - 12) - screen.tmpDot.x), 2) + Math.pow(((screen.jen.y + 96) - screen.tmpDot.y), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.jen.x - 12);
destYt = (screen.jen.y + 96);
};
_local4 = Math.sqrt((Math.pow(((screen.jen.x - 9) - screen.tmpDot.x), 2) + Math.pow(((screen.jen.y + 184) - screen.tmpDot.y), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.jen.x - 9);
destYt = (screen.jen.y + 184);
};
};
if (locClaire != 99){
_local4 = Math.sqrt((Math.pow(((screen.claire.x - 27) - screen.tmpDot.x), 2) + Math.pow(((screen.tmpDot.y - screen.claire.y) - 40), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.claire.x - 27);
destYt = (screen.claire.y - 40);
};
_local4 = Math.sqrt((Math.pow(((screen.claire.x + 20) - screen.tmpDot.x), 2) + Math.pow(((screen.claire.y - 40) - screen.tmpDot.y), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.claire.x + 20);
destYt = (screen.claire.y - 40);
};
_local4 = Math.sqrt((Math.pow(((screen.claire.x - 13) - screen.tmpDot.x), 2) + Math.pow(((screen.claire.y + 48) - screen.tmpDot.y), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.claire.x - 13);
destYt = (screen.claire.y + 48);
};
_local4 = Math.sqrt((Math.pow(((screen.claire.x - 12) - screen.tmpDot.x), 2) + Math.pow(((screen.claire.y + 96) - screen.tmpDot.y), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.claire.x - 12);
destYt = (screen.claire.y + 96);
};
_local4 = Math.sqrt((Math.pow(((screen.claire.x - 9) - screen.tmpDot.x), 2) + Math.pow(((screen.claire.y + 184) - screen.tmpDot.y), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.claire.x - 9);
destYt = (screen.claire.y + 184);
};
};
if (locKelsey != 99){
_local4 = Math.sqrt((Math.pow(((screen.kelsey.x - 27) - screen.tmpDot.x), 2) + Math.pow(((screen.tmpDot.y - screen.kelsey.y) - 40), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.kelsey.x - 27);
destYt = (screen.kelsey.y - 40);
};
_local4 = Math.sqrt((Math.pow(((screen.kelsey.x + 20) - screen.tmpDot.x), 2) + Math.pow(((screen.kelsey.y - 40) - screen.tmpDot.y), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.kelsey.x + 20);
destYt = (screen.kelsey.y - 40);
};
_local4 = Math.sqrt((Math.pow(((screen.kelsey.x - 13) - screen.tmpDot.x), 2) + Math.pow(((screen.kelsey.y + 48) - screen.tmpDot.y), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.kelsey.x - 13);
destYt = (screen.kelsey.y + 48);
};
_local4 = Math.sqrt((Math.pow(((screen.kelsey.x - 12) - screen.tmpDot.x), 2) + Math.pow(((screen.kelsey.y + 96) - screen.tmpDot.y), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.kelsey.x - 12);
destYt = (screen.kelsey.y + 96);
};
_local4 = Math.sqrt((Math.pow(((screen.kelsey.x - 9) - screen.tmpDot.x), 2) + Math.pow(((screen.kelsey.y + 184) - screen.tmpDot.y), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.kelsey.x - 9);
destYt = (screen.kelsey.y + 184);
};
};
if (locAmanda != 99){
_local4 = Math.sqrt((Math.pow(((screen.amanda.x - 27) - screen.tmpDot.x), 2) + Math.pow(((screen.tmpDot.y - screen.amanda.y) - 40), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.amanda.x - 27);
destYt = (screen.amanda.y - 40);
};
_local4 = Math.sqrt((Math.pow(((screen.amanda.x + 20) - screen.tmpDot.x), 2) + Math.pow(((screen.amanda.y - 40) - screen.tmpDot.y), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.amanda.x + 20);
destYt = (screen.amanda.y - 40);
};
_local4 = Math.sqrt((Math.pow(((screen.amanda.x - 13) - screen.tmpDot.x), 2) + Math.pow(((screen.amanda.y + 48) - screen.tmpDot.y), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.amanda.x - 13);
destYt = (screen.amanda.y + 48);
};
_local4 = Math.sqrt((Math.pow(((screen.amanda.x - 12) - screen.tmpDot.x), 2) + Math.pow(((screen.amanda.y + 96) - screen.tmpDot.y), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.amanda.x - 12);
destYt = (screen.amanda.y + 96);
};
_local4 = Math.sqrt((Math.pow(((screen.amanda.x - 9) - screen.tmpDot.x), 2) + Math.pow(((screen.amanda.y + 184) - screen.tmpDot.y), 2)));
if (_local4 < _local3){
_local3 = _local4;
destXt = (screen.amanda.x - 9);
destYt = (screen.amanda.y + 184);
};
};
}
public function gameOverCheck(){
var _local1:* = 0;
if (dotWindow.dot1.currentFrame != 10){
_local1++;
};
if (dotWindow.dot2.currentFrame != 10){
_local1++;
};
if (dotWindow.dot3.currentFrame != 10){
_local1++;
};
if (dotWindow.dot4.currentFrame != 10){
_local1++;
};
if (dotWindow.dot5.currentFrame != 10){
_local1++;
};
if (dotWindow.dot6.currentFrame != 10){
_local1++;
};
if (dotWindow.dot7.currentFrame != 10){
_local1++;
};
if (dotWindow.dot8.currentFrame != 10){
_local1++;
};
if (dotWindow.dot9.currentFrame != 10){
_local1++;
};
if (dotWindow.dot10.currentFrame != 10){
_local1++;
};
if (dotWindow.dot11.currentFrame != 10){
_local1++;
};
if (dotWindow.dot12.currentFrame != 10){
_local1++;
};
if (dotWindow.dot13.currentFrame != 10){
_local1++;
};
if (dotWindow.dot14.currentFrame != 10){
_local1++;
};
if (dotWindow.dot15.currentFrame != 10){
_local1++;
};
if (dotWindow.dot16.currentFrame != 10){
_local1++;
};
if (dotWindow.dot17.currentFrame != 10){
_local1++;
};
if (dotWindow.dot18.currentFrame != 10){
_local1++;
};
if ((((((((locJen == 99)) && ((locClaire == 99)))) && ((locKelsey == 99)))) && ((locAmanda == 99)))){
iPhase = 99;
if (windType == 0){
clearInterval(myInterval);
stage.removeEventListener(MouseEvent.CLICK, mouseClicked);
stage.removeEventListener(MouseEvent.MOUSE_OVER, mouseHover);
gotoAndStop(2);
} else {
clearInterval(myInterval);
stage.removeEventListener(MouseEvent.CLICK, mouseClicked);
stage.removeEventListener(MouseEvent.MOUSE_OVER, mouseHover);
gotoAndStop(4);
};
} else {
if (_local1 == 0){
iPhase = 98;
if (windType == 0){
clearInterval(myInterval);
stage.addEventListener(MouseEvent.CLICK, mouseClicked);
stage.addEventListener(MouseEvent.MOUSE_OVER, mouseHover);
gotoAndStop(2);
} else {
clearInterval(myInterval);
stage.addEventListener(MouseEvent.CLICK, mouseClicked);
stage.addEventListener(MouseEvent.MOUSE_OVER, mouseHover);
gotoAndStop(4);
};
} else {
if (windType == 0){
} else {
if (windType == 1){
if (Math.floor((Math.random() * 100)) < 15){
wind3Speed = wind2Speed;
wind3Angle = wind2Angle;
wind2Speed = windSpeed;
wind2Angle = windAngle;
windAngle = (windAngle + (Math.floor((Math.random() * 61)) - 30));
if (windAngle < 0){
windAngle = (windAngle + 360);
};
if (windAngle > 360){
windAngle = (windAngle - 360);
};
windSpeed = ((Math.floor((Math.random() * 20)) + 10) / 10);
updateWind();
} else {
wind3Speed = wind2Speed;
wind3Angle = wind2Angle;
wind2Speed = windSpeed;
wind2Angle = windAngle;
updateWind();
};
} else {
if (Math.floor((Math.random() * 100)) < 30){
wind3Speed = wind2Speed;
wind3Angle = wind2Angle;
wind2Speed = windSpeed;
wind2Angle = windAngle;
windAngle = (windAngle + (Math.floor((Math.random() * 181)) - 90));
if (windAngle < 0){
windAngle = (windAngle + 360);
};
if (windAngle > 360){
windAngle = (windAngle - 360);
};
windSpeed = ((Math.floor((Math.random() * 50)) + 50) / 10);
updateWind();
} else {
wind3Speed = wind2Speed;
wind3Angle = wind2Angle;
wind2Speed = windSpeed;
wind2Angle = windAngle;
updateWind();
};
};
};
iPhase = 0;
};
};
}
public function getStartingFWDspeed(_arg1, _arg2):Number{
return ((_arg1 * Math.cos(((_arg2 * Math.PI) / 180))));
}
public function getStartingZspeed(_arg1, _arg2):Number{
return ((-(_arg1) * Math.sin(((_arg2 * Math.PI) / 180))));
}
public function getSwaySpeed(_arg1, _arg2):void{
if (_arg2 < 0){
xSpeed = (_arg1 * -(Math.sin(((-(_arg2) * Math.PI) / 180))));
ySpeed = (-(_arg1) * Math.cos(((-(_arg2) * Math.PI) / 180)));
} else {
xSpeed = (_arg1 * Math.sin(((_arg2 * Math.PI) / 180)));
ySpeed = (-(_arg1) * Math.cos(((_arg2 * Math.PI) / 180)));
};
}
public function calculateWindXY():void{
var _local1:* = 0;
if (windAngle <= 90){
_local1 = windAngle;
wX = (windSpeed * Math.sin(((_local1 * Math.PI) / 180)));
wY = (-(windSpeed) * Math.cos(((_local1 * Math.PI) / 180)));
} else {
if (windAngle <= 180){
_local1 = (windAngle - 90);
wX = (windSpeed * Math.cos(((_local1 * Math.PI) / 180)));
wY = (windSpeed * Math.sin(((_local1 * Math.PI) / 180)));
} else {
if (windAngle <= 270){
_local1 = (windAngle - 180);
wX = (-(windSpeed) * Math.sin(((_local1 * Math.PI) / 180)));
wY = (windSpeed * Math.cos(((_local1 * Math.PI) / 180)));
} else {
_local1 = (windAngle - 270);
wX = (-(windSpeed) * Math.cos(((_local1 * Math.PI) / 180)));
wY = (-(windSpeed) * Math.sin(((_local1 * Math.PI) / 180)));
};
};
};
}
public function mouseClicked2(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.CLICK, mouseClicked2);
gotoAndStop(2);
}
function frame1(){
bPremium = false;
cannonIntroSpeed = 3;
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
function frame2(){
stop();
locJen = 0;
locAmanda = 0;
locKelsey = 0;
locClaire = 0;
windType = 0;
randomizeChars();
setChoiceWindow.alpha = 0;
dotLogo.alpha = 0;
dotAni.alpha = 1;
if (bPremium == true){
setChoiceWindow.btnSet4.alpha = 1;
setChoiceWindow.btnSet5.alpha = 1;
setChoiceWindow.btnSet6.alpha = 1;
setChoiceWindow.btnSet4.gotoAndStop(2);
setChoiceWindow.btnSet5.gotoAndStop(2);
setChoiceWindow.btnSet6.gotoAndStop(2);
switchChars();
setChoiceWindow.txtStaticChars.text = "";
} else {
setChoiceWindow.txtFeaturedChars.text = "";
setChoiceWindow.btnChangeChars.gotoAndStop(2);
};
myTween1 = new Tween(dotAni, "y", Back.easeOut, 500, 128.5, cannonIntroSpeed, true);
myTween1.FPS = 40;
myTween2 = new Tween(dotAni, "scaleX", Regular.easeOut, 2, 1, cannonIntroSpeed, true);
myTween2.FPS = 40;
myTween3 = new Tween(dotAni, "scaleY", Regular.easeOut, 2, 1, cannonIntroSpeed, true);
myTween3.FPS = 40;
myTween3.addEventListener(TweenEvent.MOTION_FINISH, onFinishAni);
}
function frame3(){
sH = 673;
charOut = "";
if (locJen == 99){
charOut = "Jen";
};
if (locClaire == 99){
charOut = "Claire";
};
if (locKelsey == 99){
charOut = "Kelsey";
};
if (locAmanda == 99){
charOut = "Amanda";
};
pickDots(iR, iU, iC);
showDotWindow(true);
greenCounter = 0;
bHomingInProgress = false;
destXt = 0;
destYt = 0;
minAngle = 25;
someCounter = 0;
jenFt = 1;
jenArm1 = 1;
jenArm2 = 1;
claireFt = 1;
claireArm1 = 1;
claireArm2 = 1;
amandaFt = 1;
amandaArm1 = 1;
amandaArm2 = 1;
kelseyFt = 1;
kelseyArm1 = 1;
kelseyArm2 = 1;
jenUp = true;
claireUp = true;
amandaUp = true;
kelseyUp = true;
jenPermaLaugh = false;
clairePermaLaugh = false;
kelseyPermaLaugh = false;
amandaPermaLaugh = false;
jenPermaLegs = false;
clairePermaLegs = false;
kelseyPermaLegs = false;
amandaPermaLegs = false;
charHit = 0;
locHit = 0;
locHitPrev = 0;
dotType = 1;
dotTrans = false;
posArray = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
iPhase = 0;
bHitSuccess = false;
myPower = 75;
myAngle = 45;
mySway = 0;
cannon1.rotation = -45;
wndIndicators.speedgauge.scaleX = ((myPower - 65) / 35);
cannon2.rotation = 0;
transWindow.alpha = 0;
xSpeed = 0;
ySpeed = 0;
zSpeed = 0;
wX = 0;
wY = 0;
windAngle = 0;
windSpeed = 0;
wind2Angle = 0;
wind2Speed = 0;
wind3Angle = 0;
wind3Speed = 0;
if (windType < 2){
minAngle = 10;
};
if (windType < 2){
screen.d1.scaleX = 1.5;
screen.d1.scaleY = 1.5;
screen.d2.scaleX = 1.5;
screen.d2.scaleY = 1.5;
screen.d3.scaleX = 1.5;
screen.d3.scaleY = 1.5;
screen.d5.scaleX = 1.5;
screen.d5.scaleY = 1.5;
screen.d7.scaleX = 1.5;
screen.d7.scaleY = 1.5;
screen.d8.scaleX = 1.5;
screen.d8.scaleY = 1.5;
screen.d4_1.scaleX = 1.5;
screen.d4_1.scaleY = 1.5;
screen.d4_2.scaleX = 1.5;
screen.d4_2.scaleY = 1.5;
screen.d4_3.scaleX = 1.5;
screen.d4_3.scaleY = 1.5;
screen.d4_4.scaleX = 1.5;
screen.d4_4.scaleY = 1.5;
screen.d4_5.scaleX = 1.5;
screen.d4_5.scaleY = 1.5;
screen.d4_6.scaleX = 1.5;
screen.d4_6.scaleY = 1.5;
screen.d4_7.scaleX = 1.5;
screen.d4_7.scaleY = 1.5;
screen.d4_8.scaleX = 1.5;
screen.d4_8.scaleY = 1.5;
screen.d4_9.scaleX = 1.5;
screen.d4_9.scaleY = 1.5;
};
myInterval = setInterval(myTimer, 75);
ghostA1.alpha = 0.5;
ghostB1.alpha = 0.5;
ghostA2.alpha = 0.4;
ghostB2.alpha = 0.4;
ghostA3.alpha = 0.3;
ghostB3.alpha = 0.3;
ghostA4.alpha = 0.2;
ghostB4.alpha = 0.2;
ghostA5.alpha = 0.1;
ghostB5.alpha = 0.1;
transWindow.col2.gotoAndStop(2);
transWindow.col3.gotoAndStop(3);
transWindow.col4.gotoAndStop(4);
transWindow.col5.gotoAndStop(5);
transWindow.col6.gotoAndStop(6);
transWindow.col7.gotoAndStop(7);
transWindow.col8.gotoAndStop(8);
windAngle = Math.floor((Math.random() * 360));
if (windType == 0){
windSpeed = 0;
} else {
if (windType == 1){
windSpeed = ((Math.floor((Math.random() * 20)) + 10) / 10);
} else {
windSpeed = ((Math.floor((Math.random() * 50)) + 50) / 10);
};
};
updateWind();
placeCharacters();
screen.scaleX = 0.5;
screen.scaleY = 0.5;
screen.x = 50;
screen.y = 50;
stage.addEventListener(MouseEvent.CLICK, mouseClicked);
stage.addEventListener(MouseEvent.MOUSE_OVER, mouseHover);
gravity = (9.14 / 10);
stop();
}
function frame4(){
puzzleMap.alpha = 1;
puzzleMap.puzzleJen.alpha = 1;
puzzleMap.puzzleClaire.alpha = 1;
puzzleMap.puzzleKelsey.alpha = 1;
puzzleMap.puzzleAmanda.alpha = 1;
if (windType != 0){
if ((((((((locJen == 99)) && ((locClaire == 99)))) && ((locKelsey == 99)))) && ((locClaire == 99)))){
puzzleMap.alpha = 0;
} else {
if ((((locJen == 99)) && (!((charOut == "Jen"))))){
puzzleMap.puzzleJen.alpha = 0;
};
if ((((locClaire == 99)) && (!((charOut == "Claire"))))){
puzzleMap.puzzleClaire.alpha = 0;
};
if ((((locKelsey == 99)) && (!((charOut == "Kelsey"))))){
puzzleMap.puzzleKelsey.alpha = 0;
};
if ((((locAmanda == 99)) && (!((charOut == "Amanda"))))){
puzzleMap.puzzleAmanda.alpha = 0;
};
};
};
stage.addEventListener(MouseEvent.CLICK, mouseClicked2);
}
}
}//package DOT2_fla
Section 21
//placeholder_ghost_56 (DOT2_fla.placeholder_ghost_56)
package DOT2_fla {
import flash.display.*;
public dynamic class placeholder_ghost_56 extends MovieClip {
public function placeholder_ghost_56(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package DOT2_fla
Section 22
//platform_22 (DOT2_fla.platform_22)
package DOT2_fla {
import flash.display.*;
public dynamic class platform_22 extends MovieClip {
public function platform_22(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package DOT2_fla
Section 23
//Back (fl.transitions.easing.Back)
package fl.transitions.easing {
public class Back {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0):Number{
if (!_arg5){
_arg5 = 1.70158;
};
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0):Number{
if (!_arg5){
_arg5 = 1.70158;
};
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0):Number{
if (!_arg5){
_arg5 = 1.70158;
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2));
};
_arg1 = (_arg1 - 2);
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 24
//None (fl.transitions.easing.None)
package fl.transitions.easing {
public class None {
public static function easeNone(_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 easeOut(_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));
}
}
}//package fl.transitions.easing
Section 25
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
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 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 26
//Strong (fl.transitions.easing.Strong)
package fl.transitions.easing {
public class Strong {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _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) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 27
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
public class Tween extends EventDispatcher {
public var isPlaying:Boolean;// = false
public var obj:Object;// = null
public var prop:String;// = ""
public var func:Function;
public var begin:Number;// = NAN
public var change:Number;// = NAN
public var useSeconds:Boolean;// = false
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var looping:Boolean;// = false
private var _duration:Number;// = NAN
private var _time:Number;// = NAN
private var _fps:Number;// = NAN
private var _position:Number;// = NAN
private var _startTime:Number;// = NAN
private var _intervalID:uint;// = 0
private var _finish:Number;// = NAN
private var _timer:Timer;// = null
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){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
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 get time():Number{
return (this._time);
}
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();
};
};
}
public function get duration():Number{
return (this._duration);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function get FPS():Number{
return (this._fps);
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
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 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 get finish():Number{
return ((this.begin + this.change));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
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 yoyo():void{
this.continueTo(this.begin, this.time);
}
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;
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, 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 rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
}
}//package fl.transitions
Section 28
//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_FINISH:String = "motionFinish";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_RESUME:String = "motionResume";
public static const MOTION_LOOP:String = "motionLoop";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
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 29
//dot1 (dot1)
package {
import flash.display.*;
public dynamic class dot1 extends MovieClip {
}
}//package
Section 30
//dot2 (dot2)
package {
import flash.display.*;
public dynamic class dot2 extends MovieClip {
}
}//package
Section 31
//dot3 (dot3)
package {
import flash.display.*;
public dynamic class dot3 extends MovieClip {
}
}//package
Section 32
//dot4 (dot4)
package {
import flash.display.*;
public dynamic class dot4 extends MovieClip {
}
}//package
Section 33
//dot5 (dot5)
package {
import flash.display.*;
public dynamic class dot5 extends MovieClip {
}
}//package
Section 34
//dot6 (dot6)
package {
import flash.display.*;
public dynamic class dot6 extends MovieClip {
}
}//package
Section 35
//dot7 (dot7)
package {
import flash.display.*;
public dynamic class dot7 extends MovieClip {
}
}//package
Section 36
//dot8 (dot8)
package {
import flash.display.*;
public dynamic class dot8 extends MovieClip {
}
}//package
Section 37
//dot9 (dot9)
package {
import flash.display.*;
public dynamic class dot9 extends MovieClip {
}
}//package
Section 38
//introLogo (introLogo)
package {
import flash.display.*;
public dynamic class introLogo extends MovieClip {
}
}//package
Section 39
//introStartButton (introStartButton)
package {
import flash.display.*;
public dynamic class introStartButton extends MovieClip {
}
}//package
Section 40
//movie_mc (movie_mc)
package {
import flash.display.*;
public dynamic class movie_mc extends MovieClip {
}
}//package