Frame 2
function goSite(menu, obj) {
if (_level0.cs) {
_level0.cs.track.url.open("http://www.cityofember.com/");
} else {
getURL ("http://www.cityofember.com/", "_blank");
}
}
function goSoap(menu, obj) {
if (_level0.cs) {
_level0.cs.track.url.open("http://www.soap.com.au");
} else {
getURL ("http://www.soap.com.au", "_blank");
}
}
function qualityHigh() {
_quality = "high";
}
function qualityLow() {
_quality = "low";
}
System.security.allowDomain("*");
System.security.allowInsecureDomain("*");
vNum = "1.02";
gameQuality = "AUTO";
_quality = "HIGH";
authorsSite = "http://www.terrypaton.com";
var menu_cm = new ContextMenu();
menu_cm.customItems.push(new ContextMenuItem("Visit site", goSite));
menu_cm.customItems.push(new ContextMenuItem("Made by Soap", goSoap));
menu_cm.customItems.push(new ContextMenuItem("HIGH Quality", qualityHigh));
menu_cm.customItems.push(new ContextMenuItem("LOW Quality", qualityLow));
menu_cm.hideBuiltInItems();
_root.menu = menu_cm;
this.scrollRect = new flash.geom.Rectangle(0, 0, 450, 360);
firstRun = true;
Frame 3
gameLoadingName = "flipit";
loadingClip.onEnterFrame = function () {
pL = Math.floor((this._parent.getBytesLoaded() / this._parent.getBytesTotal()) * 100);
if (pL < 100) {
this.loaderText.textBox.text = ((pL / 100) * 100) + "%";
this.mask._xscale = (pL / 100) * 100;
this._parent.stop();
} else {
this._parent.play();
}
};
stringLength = gameLoadingName.length;
wordOffset = (stringLength * 20) / 2;
this.createEmptyMovieClip("loadingHolder", 1);
loadingHolder._x = (320 - wordOffset) + 10;
loadingHolder._y = 160;
i = 0;
while (i < stringLength) {
t = loadingHolder.attachMovie("letter", "l" + i, i);
t._x = i * 20;
t.angle = i;
t.Lvar.text = gameLoadingName.charAt(i);
t._xscale = (t._yscale = 200);
i++;
}
stop();
Frame 5
function disableButtons() {
_global.allowButtonAction = false;
}
function enableButtons() {
_global.allowButtonAction = true;
}
function goGame() {
trace("GO TO THE GAME SCENE");
gotoAndPlay (24);
}
function goHelp() {
gs.TweenMax.killTweensOf(trailerClip);
_level0.cs.track.event("view_help");
gotoAndPlay (14);
}
function goChoose() {
gs.TweenMax.killTweensOf(trailerClip);
gotoAndPlay (23);
}
function goHighscores() {
gs.TweenMax.killTweensOf(trailerClip);
_level0.cs.track.event("view_highscores");
gotoAndPlay (28);
}
function goIntro() {
gs.TweenMax.killTweensOf(trailerClip);
gotoAndPlay (7);
}
function evalMusicState() {
trace("soundState = " + soundState);
if (soundState) {
globalS.setVolume(100);
_soundControlsRef.sfxBtn.gotoAndStop(1);
flippingSequence.introPanel.soundControls2.sfxBtn.gotoAndStop(1);
mySound.setVolume(100);
} else {
globalS.setVolume(0);
mySound.setVolume(0);
_soundControlsRef.sfxBtn.gotoAndStop(2);
flippingSequence.introPanel.soundControls2.sfxBtn.gotoAndStop(2);
}
if (musicState) {
_soundControlsRef.musicBtn.gotoAndStop(1);
flippingSequence.introPanel.soundControls2.musicBtn.gotoAndStop(1);
} else {
_soundControlsRef.musicBtn.gotoAndStop(2);
flippingSequence.introPanel.soundControls2.musicBtn.gotoAndStop(2);
}
}
function evaluateNonGameHUD() {
_nonGameHUDRef.playBtn2.enabled = true;
_nonGameHUDRef.stfClip.enabled = true;
_nonGameHUDRef.howToPlay.enabled = true;
_nonGameHUDRef.highscoresBtnClip.enabled = true;
_nonGameHUDRef.mainMenuBtn.enabled = true;
_nonGameHUDRef.highscoresBtnClip._alpha = 100;
_nonGameHUDRef.stfClip._alpha = 100;
_nonGameHUDRef.playBtn2._alpha = 100;
_nonGameHUDRef.howToPlay._alpha = 100;
trace("currentGamePage:" + currentGamePage);
switch (currentGamePage) {
case "INTRO" :
hideNonGameHUD();
break;
case "HIGHSCORES" :
_nonGameHUDRef.highscoresBtnClip.enabled = false;
_nonGameHUDRef.highscoresBtnClip._alpha = 40;
break;
case "STF" :
_nonGameHUDRef.stfClip.enabled = false;
_nonGameHUDRef.stfClip._alpha = 40;
break;
case "HOWTOPLAY" :
_nonGameHUDRef.howToPlay.enabled = false;
_nonGameHUDRef.howToPlay._alpha = 40;
break;
case "CHOOSE" :
_nonGameHUDRef.playBtn2.enabled = false;
_nonGameHUDRef.playBtn2._alpha = 40;
}
trace(_nonGameHUDRef.playBtn2);
}
function hideNonGameHUD() {
gs.TweenMax.to(_nonGameHUDRef, 0.25, {_alpha:0, onComplete:nonGameHUDInvs});
if (currentGamePage != "GAME") {
gs.TweenMax.to(_soundControlsRef, 0.25, {_alpha:0});
}
}
function showNonGameHUD() {
gs.TweenMax.killTweensOf(_soundControlsRef);
gs.TweenMax.killTweensOf(_nonGameHUDRef);
_nonGameHUDRef._visible = true;
gs.TweenMax.to(_nonGameHUDRef, 0.5, {_alpha:100, delay:0.5});
_soundControlsRef._visible = true;
gs.TweenMax.to(_soundControlsRef, 0.5, {_alpha:100, delay:0.5});
evaluateNonGameHUD();
}
function nonGameHUDInvs() {
_nonGameHUDRef._visible = false;
}
function openDoors() {
gs.TweenMax.to(doorsClip.door1Clip, doorSpeed * 0.2, {_y:82});
gs.TweenMax.to(doorsClip.door1Clip, doorSpeed * 0.5, {_x:-194, delay:doorSpeed * 0.2, overwrite:false});
gs.TweenMax.to(doorsClip.door2Clip, doorSpeed * 0.2, {_y:58});
gs.TweenMax.to(doorsClip.door2Clip, doorSpeed * 0.5, {_x:314, delay:doorSpeed * 0.2, overwrite:false});
}
function closeDoors() {
playSound("closingDoors.wav");
gs.TweenMax.to(doorsClip.door1Clip, doorSpeed * 0.5, {_x:-35.6});
gs.TweenMax.to(doorsClip.door1Clip, doorSpeed * 0.2, {_y:70, delay:doorSpeed * 0.5, overwrite:false});
gs.TweenMax.to(doorsClip.door2Clip, doorSpeed * 0.5, {_x:156});
gs.TweenMax.to(doorsClip.door2Clip, doorSpeed * 0.2, {_y:70, delay:doorSpeed * 0.5, overwrite:false});
gs.TweenMax.to(doorsClip, doorSpeed * 0.7, {onComplete:createDoorSmoke});
}
function manageParticles() {
manageEmmiters();
n = particleArray.length;
while (n--) {
_particleRef = particleArray[n];
_particleRef.manageParticle();
if (_particleRef.getRemove()) {
removeMovieClip(_particleRef.getClip());
particleArray.splice(n, 1);
}
}
}
function removeClip(_clip) {
removeMovieClip(_clip);
}
function manageEmmiters() {
var _local1 = emmiterArray.length;
while (_local1--) {
_tempEmmiterClip = emmiterArray[_local1];
_type = _tempEmmiterClip.num;
if (_type == undefined) {
_type = 1;
}
createparticleSpray(_tempEmmiterClip._x, _tempEmmiterClip._y, _type);
if (_tempEmmiterClip.kill) {
removeMovieClip(_tempEmmiterClip);
emmiterArray.splice(_local1, 1);
}
}
}
function createparticleSpray(_px, _py, type) {
rot = Math.random() * 360;
speed = 4;
switch (type) {
case 1 :
speed = (Math.random() * 1) + 1;
createparticle(_px, _py, type, speed, rot);
break;
case 2 :
var _local4 = 10;
while (_local4--) {
speed = (Math.random() * 1) + 3;
rot = Math.random() * 360;
createparticle((_px + (Math.random() * 10)) - 5, (_py + (Math.random() * 10)) - 5, type, speed, rot);
}
break;
case 3 :
speed = 2;
_local4 = 10;
while (_local4--) {
speed = (2 + (Math.random() * 1)) - 0.5;
rot = Math.random() * 360;
createparticle(_px, _py, type, speed, rot);
}
break;
case 4 :
speed = 0.25;
rot = Math.random() * 360;
createparticle(_px, _py, type, speed, rot);
break;
case 5 :
if (Math.random() < 0.5) {
rot = (Math.random() * 20) - 90;
speed = (Math.random() * 0.5) + 0.5;
createparticle(_px, _py, type, speed, rot);
}
break;
case 6 :
if (Math.random() < 0.5) {
speed = (Math.random() * 1) + 1;
createparticle(_px, _py, 1, speed, rot);
}
break;
case 7 :
if (Math.random() >= 0.5) {
break;
}
rot = (Math.random() * 20) - 180;
speed = (Math.random() * 0.5) + 0.5;
createparticle(_px, _py, type, speed, rot);
}
}
function createparticle(_ptx, _pty, _ptype, _speed, _direction) {
_clip = particleHolder.attachMovie("particle", "p" + particleNum, particleNum);
particleNum++;
_clip.gotoAndStop(_ptype);
_particleRef = new particleClass(_ptx, _pty, _ptype, _speed, _direction, _clip);
particleArray.push(_particleRef);
_clip.cacheAsBitmap = true;
}
function flipClip(_clip) {
_clip.play();
}
_global.storage = SharedObject.getLocal("pipeWorks_storage");
soundClipRef = this.createEmptyMovieClip("soundClip", 9801);
soundManager.setClip(soundClipRef);
mySound = new Sound(soundClipRef);
_global.globalS = new Sound();
musicClipRef = this.createEmptyMovieClip("musicClip", 9901);
musicSound = new Sound(musicClipRef);
musicSound.attachSound("music.wav");
_global.drawLightning = function (point1, point2) {
if (random(10) < 9) {
dx = point1.x - point2.x;
dy = point1.y - point2.y;
dist = Math.floor(Math.sqrt((dx * dx) + (dy * dy)));
radians = Math.atan2(dy, dx);
theAngle = (radians * 180) / Math.PI;
line.clear();
line.lineStyle(5, 16777215, 100);
line.moveTo(point1.x, point1.y);
clipLevel = 10;
traveled = 0;
lineThickness = 5;
while (traveled < (dist - 30)) {
speed = random(2) + 20;
tmpAngle = (theAngle * Math.PI) / 180;
bx = traveled * Math.cos(tmpAngle);
by = traveled * Math.sin(tmpAngle);
traveled = traveled + speed;
theX = ((point1.x - bx) + random(30)) - 15;
theY = ((point1.y - by) + random(30)) - 15;
lineThickness = ((traveled / dist) * 10) + 1;
line.lineStyle(lineThickness, 16777215, 70);
line.lineTo(theX, theY);
createparticleSpray(theX, theY, 6);
clipLevel++;
}
line.lineTo(point2.x, point2.y);
}
};
_global.setupBtn = function (_clip) {
_clip.onRollOver = function () {
if (_global.allowButtonAction) {
playSound("mouseOver.wav");
gs.TweenMax.to(_clip, 0.5, {glowFilter:{color:16755714, blurX:5, blurY:5, alpha:1, inner:true}});
}
};
_clip.onRollOut = (_clip.onReleaseOutside = function () {
if (_global.allowButtonAction) {
gs.TweenMax.to(_clip, 0.25, {glowFilter:{color:16755714, blurX:0, blurY:0, alpha:0, inner:true}});
}
});
};
musicState = storage.data.musicState;
trace("musicState = " + musicState);
if (musicState == undefined) {
storage.data.musicState = true;
musicState = true;
}
soundState = storage.data.soundState;
if (soundState == undefined) {
storage.data.soundState = true;
soundState = true;
}
_soundControlsRef = attachMovie("soundControls", "soundControls", 9997);
_soundControlsRef._x = 322;
_soundControlsRef._y = 212;
_soundControlsRef._alpha = 0;
evalMusicState();
if (musicState) {
musicSound.setVolume(100);
musicSound.stop();
musicSound.start(0, 9999);
_soundControlsRef.musicBtn.gotoAndStop(1);
} else {
musicSound.stop();
_soundControlsRef.musicBtn.gotoAndStop(2);
}
_soundControlsRef.sfxBtn._alpha = 0;
gs.TweenMax.to(_soundControlsRef.sfxBtn, 0.5, {_alpha:100, delay:0.2});
setupBaseButton(_soundControlsRef.sfxBtn);
setupBaseButton(_soundControlsRef.musicBtn);
_soundControlsRef.sfxBtn.onPress = function () {
soundState = !soundState;
storage.data.soundState = soundState;
evalMusicState();
};
_soundControlsRef.musicBtn.onPress = function () {
musicState = !musicState;
storage.data.musicState = musicState;
if (musicState) {
musicSound.setVolume(100);
_soundControlsRef.musicBtn.gotoAndStop(1);
} else {
musicSound.setVolume(0);
_soundControlsRef.musicBtn.gotoAndStop(2);
}
};
currentGamePage = "INTRO";
_nonGameHUDRef = attachMovie("nonGameHUD", "nonGameHUD", 9998);
_nonGameHUDRef._visible = false;
_nonGameHUDRef.playBtn2.onRelease = function () {
hideNonGameHUD();
playSound("mouseDown.wav");
if (levelsUnlocked > 1) {
closeDoors();
gs.TweenMax.to(doorsClip, 1.5, {onComplete:goChoose});
} else {
closeDoors();
gs.TweenMax.to(doorsClip, 1.5, {onComplete:goGame});
}
};
_nonGameHUDRef.highscoresBtnClip.onRelease = function () {
closeDoors();
gs.TweenMax.to(doorsClip, 1.5, {onComplete:goHighscores});
};
_nonGameHUDRef.howToPlay.onRelease = function () {
closeDoors();
gs.TweenMax.to(doorsClip, 1.5, {onComplete:goHelp});
};
_nonGameHUDRef.mainMenuBtn.onRelease = function () {
hideNonGameHUD();
closeDoors();
gs.TweenMax.to(doorsClip, 1.5, {onComplete:goIntro});
};
_nonGameHUDRef.stfClip.onRelease = function () {
closeDoors();
gs.TweenMax.to(doorsClip, 1.5, {onComplete:goSTF});
};
setupBtn(_nonGameHUDRef.playBtn2);
setupBtn(_nonGameHUDRef.stfClip);
setupBtn(_nonGameHUDRef.howToPlay);
setupBtn(_nonGameHUDRef.highscoresBtnClip);
setupBtn(_nonGameHUDRef.mainMenuBtn);
yourhigh = storage.data.myhighscore;
if (yourhigh == undefined) {
storage.data.myhighscore = 0;
yourhigh = 0;
}
levelsUnlocked = storage.data.levelsUnlocked;
if (levelsUnlocked == undefined) {
storage.data.levelsUnlocked = 1;
levelsUnlocked = 1;
}
_global.playSound = function (_string) {
trace("Sound stats biutch" + soundState);
if (soundState) {
soundManager.playSound(_string);
}
};
_global.showSubmitSc = function () {
trace("GAME.showSubmitSc ();");
gotoAndPlay (29);
};
particleArray = new Array();
currentParticleType = 1;
particleNum = 1;
particleHolder = this.createEmptyMovieClip("particleHolder", 10000);
particleHolder.cacheAsBitmap = true;
emmiterArray = new Array();
emmiterNum = 1;
particleInt = setInterval(manageParticles, 20);
Frame 6
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("934c51a3", this, 10301, true);
Frame 7
function showIntroClip() {
flippingSequence._visible = true;
flippingToIntroSequence._visible = false;
}
function closeIntro() {
flippingSequence.gotoAndPlay(2);
}
function createDoorSmoke() {
playSound("doorClunk.wav");
var _local1 = 0;
while (_local1 < 30) {
if (Math.random() < 0.5) {
createparticleSpray(156, ((57 + (_local1 * 9.4)) + (Math.random() * 20)) - 10, 1);
}
if (Math.random() < 0.5) {
createparticleSpray(174, ((57 + (_local1 * 9.4)) + (Math.random() * 20)) - 10, 2);
}
if (_local1 < 16) {
createparticleSpray(156, 57 + (_local1 * 9.4), 4);
} else {
createparticleSpray(174, 57 + (_local1 * 9.4), 4);
}
_local1++;
}
}
function genSteam() {
if (this.delayStart > 0) {
this.delayStart--;
} else {
createparticleSpray(282, 184, 7);
}
}
function setupIntroButtons() {
setupBtn(flippingSequence.introPanel.howToPlay);
setupBtn(flippingSequence.introPanel.playBtnClip);
setupBtn(flippingSequence.introPanel.highscoresBtnClip);
setupBtn(flippingSequence.introPanel.visitOfficialSiteBtn);
setupBtn(flippingSequence.introPanel.embedBtn);
}
flippingSequence.gotoAndStop(1);
if (firstRun) {
firstRun = false;
flippingToIntroSequence.gotoAndStop(1);
flippingToIntroSequence._visible = false;
} else {
flippingSequence._visible = false;
flippingToIntroSequence._visible = true;
gs.TweenMax.to(flippingToIntroSequence, 0.5, {onComplete:showIntroClip});
}
currentGamePage = "INTRO";
hideNonGameHUD();
doorSpeed = 1;
doorsClip.door1Clip._x = 24;
doorsClip.door1Clip._y = 92;
doorsClip.door2Clip._x = 216;
doorsClip.door2Clip._y = 92;
_quality = "HIGH";
flippingSequence.introPanel.playBtnClip.onRelease = function () {
flippingSequence.onEnterFrame = null;
playSound("mouseDown.wav");
if (levelsUnlocked > 1) {
closeIntro();
gs.TweenMax.to(flippingSequence, 1.5, {onComplete:goChoose});
} else {
closeIntro();
gs.TweenMax.to(flippingSequence, 1.5, {onComplete:goChoose});
}
};
flippingSequence.onEnterFrame = genSteam;
flippingSequence.delayStart = 60;
yourHighTextBox.text = yourhigh;
flippingSequence.introPanel.highscoresBtnClip.onRelease = function () {
flippingSequence.onEnterFrame = null;
playSound("mouseDown.wav");
closeIntro();
gs.TweenMax.to(flippingSequence, 1.5, {onComplete:goHighscores});
};
flippingSequence.introPanel.howToPlay.onRelease = function () {
flippingSequence.onEnterFrame = null;
playSound("mouseDown.wav");
closeIntro();
gs.TweenMax.to(flippingSequence, 1.5, {onComplete:goHelp});
};
flippingSequence.introPanel.visitOfficialSiteBtn.onRelease = function () {
flippingSequence.onEnterFrame = null;
playSound("mouseDown.wav");
if (_level0.cs) {
_level0.cs.track.url.open("http://www.cityofember.com");
}
};
flippingSequence.introPanel.embedBtn.onRelease = function () {
playSound("mouseDown.wav");
trace("embed game");
if (_level0.cs) {
_level0.cs.menu.show();
} else {
getURL ("http://www.cityofember.com/games.html", "_blank");
}
};
setupIntroButtons();
enableButtons();
highscoresBtnClip._x = 589;
flippingSequence.introPanel.soundControls2.sfxBtn.onPress = function () {
soundState = !soundState;
storage.data.soundState = soundState;
evalMusicState();
};
flippingSequence.introPanel.soundControls2.musicBtn.onPress = function () {
musicState = !musicState;
storage.data.musicState = musicState;
if (musicState) {
musicSound.setVolume(100);
} else {
musicSound.setVolume(0);
}
evalMusicState();
};
evalMusicState();
Frame 13
stop();
Frame 14
function evaluateHelpPage() {
helpClip.gotoAndStop(currentHelpPage);
helpClip._alpha = 0;
gs.TweenMax.to(helpClip, 0.5, {_alpha:100});
if (currentHelpPage < 2) {
_leftBtn._visible = false;
} else {
_leftBtn._visible = true;
}
if (currentHelpPage > 10) {
_rightBtn._visible = false;
} else {
_rightBtn._visible = true;
}
}
stop();
currentGamePage = "HOWTOPLAY";
showNonGameHUD();
openDoors();
setupBtn(_rightBtn);
setupBtn(_leftBtn);
currentHelpPage = 1;
evaluateHelpPage();
_leftBtn.onRelease = function () {
if (currentHelpPage > 1) {
currentHelpPage--;
evaluateHelpPage();
}
};
_rightBtn.onRelease = function () {
if (currentHelpPage < 11) {
currentHelpPage++;
evaluateHelpPage();
}
};
Frame 23
function setupChooseBtn(_clip) {
_clip.btn.onRollOver = function () {
if (_global.allowButtonAction) {
playSound("mouseOver.wav");
gs.TweenMax.to(_clip.btn, 0.5, {glowFilter:{color:16755714, blurX:5, blurY:5, alpha:1, inner:true}});
}
};
_clip.btn.onRollOut = (_clip.btn.onReleaseOutside = function () {
if (_global.allowButtonAction) {
gs.TweenMax.to(_clip.btn, 0.25, {glowFilter:{color:16755714, blurX:0, blurY:0, alpha:0, inner:true}});
}
});
_clip.btn.onPress = function () {
if (_global.allowButtonAction) {
playSound("mouseDown.wav");
}
};
}
function removeClip(_clip) {
removeMovieClip(_clip);
}
function exitChoose(temp) {
gameLevel = temp;
i = 0;
while (i < 51) {
_t = eval ("tileHolder.l" + i);
ty = Math.floor(i / 6);
tx = i - (ty * 6);
var delayTime = ((1 - (ty / 10)) - (tx / 10));
delayTime = 0;
_t.onRollOver = null;
_t.btn.onRelease = null;
i++;
}
currentGamePage = "GAME";
hideNonGameHUD();
closeDoors();
gs.TweenMax.to(tileHolder, 1, {onComplete:goPlay, overwrite:false});
}
function goPlay() {
gotoAndPlay (23);
}
stop();
currentGamePage = "CHOOSE";
showNonGameHUD();
openDoors();
trace("CHOOSE SCENE");
if (levelsUnlocked == 1) {
gameLevel = 1;
trace("GOING TO GAME");
gotoAndPlay (24);
} else {
trace("SETTING UP CHOICE");
gs.TweenMax.to(chooseLevelClip, 0.5, {_x:-130, delay:2.2});
i = 0;
while (i < 20) {
ty = Math.floor(i / 5);
tx = i - (ty * 5);
_t = tileHolder.attachMovie("lvlBtn", "l" + i, i);
_t._x = -40;
gs.TweenMax.to(_t, 0.5, {_x:(56 + (tx * 43.5)) + 22, delay:(3 - ((ty + tx) / 7)) + 1});
_t._y = (93 + (ty * 37.5)) + 36;
_t.num = i + 1;
if (i >= levelsUnlocked) {
_t.gotoAndStop("black");
} else {
_t.gotoAndStop("white");
setupChooseBtn(_t);
_t.btn.onRelease = function () {
k = 0;
while (k < 5) {
createparticleSpray(this._parent._x, this._parent._y, 7);
createparticleSpray((this._parent._x + (Math.random() * 20)) - 10, (this._parent._y + (Math.random() * 20)) - 10, 2);
k++;
}
exitChoose(this._parent.num);
};
}
if (i != (gameLevel - 1)) {
_t.ind._visible = false;
}
i++;
}
disableButtons();
gs.TweenMax.to(tileHolder, 3, {onComplete:enableButtons});
}
Frame 24
function startTheGame() {
gotoAndPlay ("beginGame");
}
stop();
openDoors();
hideNonGameHUD();
currentGamePage = "GAME";
gotoAndPlay ("beginGame");
Frame 26
UI._alpha = 0;
trashMC._alpha = 0;
gs.TweenMax.to(UI, 1, {_alpha:100});
gs.TweenMax.to(trashMC, 1, {_alpha:100});
levelArtwork.gotoAndStop(gameLevel);
topArtwork.gotoAndStop(gameLevel);
Frame 27
function getpage(u, w, h) {
getURL (((((("javascript:poppage('" + u) + "',") + w) + ",") + h) + ")");
}
function nextPipe() {
}
function makeSqueak() {
if (soundState) {
playSound("squeak_1" + random(2));
}
}
function initGame() {
if (gameLevel == undefined) {
gameLevel = 1;
}
gameMode = "easy";
storage.data.lastMode = "easy";
}
function show_challenge() {
trackSite("challenge");
show_highscores("chall");
}
function setArtwork() {
levelArtwork.gotoAndStop(gameLevel);
topArtwork.gotoAndStop(gameLevel);
switch (gameLevel) {
case 1 :
bowlA = new Array(levelArtwork.waterBowl);
levelA[1].startX = 4;
levelA[1].startY = 0;
levelA[1][4][0] = "block";
levelA[1][4][3] = topArtwork.bonus_tank1;
topArtwork.bonus_tank1.reset();
levelA[1][5][4] = "block";
levelA[1][6][4] = "block";
levelA[1][7][4] = "block";
levelArtwork.bonus_1.gotoAndStop(1);
levelA[1][3][5] = levelArtwork.bonus_1;
levelA[1][4][5] = bowlA[0];
return;
case 2 :
bowlA = new Array(levelArtwork.waterBowl);
levelA[2].startX = 7;
levelA[2].startY = 2;
levelA[2][0][0] = "block";
levelA[2][1][0] = "block";
levelA[2][7][2] = "block";
levelArtwork.bonus_1.gotoAndStop(1);
levelA[2][0][1] = levelArtwork.bonus_1;
levelA[2][2][4] = topArtwork.bonus_tank1;
topArtwork.bonus_tank1.reset();
levelA[2][5][5] = "block";
levelA[2][6][5] = "block";
levelA[2][7][5] = "block";
levelA[2][7][0] = "block";
levelA[2][6][7] = bowlA[0];
return;
case 3 :
bowlA = new Array(levelArtwork.waterBowl, levelArtwork.waterBowl2);
levelA[3].startX = 0;
levelA[3].startY = 2;
levelA[3][0][1] = "block";
levelA[3][0][2] = "block";
levelA[3][1][1] = "block";
levelA[3][0][7] = "block";
levelA[3][4][4] = "block";
levelA[3][4][5] = "block";
levelA[3][4][6] = "block";
levelArtwork.bonus_1.gotoAndStop(1);
levelA[3][3][3] = levelArtwork.bonus_1;
levelA[3][4][2] = bowlA[0];
levelA[3][4][3] = bowlA[1];
return;
case 4 :
bowlA = new Array(levelArtwork.waterBowl, levelArtwork.waterBowl2);
levelA[4].startX = 0;
levelA[4].startY = 2;
levelA[4][0][1] = "block";
levelA[4][0][2] = "block";
levelA[4][2][2] = "block";
levelA[4][2][3] = "block";
levelA[4][3][2] = "block";
levelA[4][3][3] = "block";
levelA[4][5][5] = "block";
levelA[4][6][5] = "block";
levelArtwork.bonus_1.gotoAndStop(1);
levelArtwork.bonus_2.gotoAndStop(1);
levelA[4][5][2] = levelArtwork.bonus_1;
levelA[4][6][6] = levelArtwork.bonus_2;
levelA[4][0][3] = bowlA[1];
levelA[4][4][3] = bowlA[0];
return;
case 5 :
bowlA = new Array(levelArtwork.waterBowl, levelArtwork.waterBowl2);
levelA[5].startX = 1;
levelA[5].startY = 0;
levelA[5][1][6] = "block";
levelA[5][1][0] = "block";
levelA[5][0][5] = "block";
levelA[5][0][6] = "block";
levelA[5][3][2] = "block";
levelA[5][4][4] = "block";
levelA[5][5][4] = "block";
levelA[5][6][4] = "block";
levelA[5][4][5] = "block";
levelA[5][5][5] = "block";
levelA[5][6][5] = "block";
levelArtwork.bonus_1.gotoAndStop(1);
levelArtwork.bonus_2.gotoAndStop(1);
levelArtwork.bonus_3.gotoAndStop(1);
levelA[5][7][0] = levelArtwork.bonus_1;
levelA[5][3][3] = levelArtwork.bonus_3;
levelA[5][0][7] = levelArtwork.bonus_2;
levelA[5][4][6] = bowlA[1];
levelA[5][6][6] = bowlA[0];
return;
case 6 :
bowlA = new Array(levelArtwork.waterBowl, levelArtwork.waterBowl2);
levelA[6].startX = 3;
levelA[6].startY = 4;
levelA[6][3][4] = "block";
levelA[6][3][6] = topArtwork.bonus_tank1;
topArtwork.bonus_tank1.reset();
levelA[6][0][0] = "block";
levelA[6][1][0] = "block";
levelA[6][0][2] = "block";
levelA[6][0][3] = "block";
levelA[6][5][1] = "block";
levelA[6][6][1] = "block";
levelA[6][7][1] = "block";
levelA[6][6][2] = "block";
levelA[6][7][2] = "block";
levelA[6][3][2] = "block";
levelA[6][4][2] = "block";
levelArtwork.bonus_1.gotoAndStop(1);
levelArtwork.bonus_2.gotoAndStop(1);
levelArtwork.bonus_3.gotoAndStop(1);
levelArtwork.bonus_4.gotoAndStop(1);
levelA[6][2][3] = levelArtwork.bonus_1;
levelA[6][4][3] = levelArtwork.bonus_2;
levelA[6][0][6] = levelArtwork.bonus_3;
levelA[6][1][6] = levelArtwork.bonus_4;
levelA[6][7][0] = bowlA[1];
levelA[6][3][3] = bowlA[0];
return;
case 7 :
bowlA = new Array(levelArtwork.waterBowl, levelArtwork.waterBowl2);
levelA[7].startX = 3;
levelA[7].startY = 0;
levelA[7][3][0] = "block";
levelA[7][2][0] = "block";
levelA[7][3][0] = "block";
levelA[7][4][0] = "block";
levelA[7][4][1] = "block";
levelA[7][4][2] = "block";
levelA[7][1][5] = "block";
levelA[7][1][6] = "block";
levelA[7][3][5] = "block";
levelArtwork.bonus_1.gotoAndStop(1);
levelArtwork.bonus_2.gotoAndStop(1);
levelArtwork.bonus_3.gotoAndStop(1);
levelArtwork.bonus_4.gotoAndStop(1);
levelA[7][4][3] = levelArtwork.bonus_1;
levelA[7][6][6] = levelArtwork.bonus_2;
levelA[7][7][6] = levelArtwork.bonus_3;
levelA[7][6][7] = levelArtwork.bonus_4;
levelA[7][7][7] = bowlA[1];
levelA[7][3][3] = bowlA[0];
return;
case 8 :
bowlA = new Array(levelArtwork.waterBowl, levelArtwork.waterBowl2, levelArtwork.waterBowl3);
levelA[8].startX = 1;
levelA[8].startY = 5;
levelA[8][1][5] = "block";
levelA[8][0][4] = "block";
levelA[8][1][4] = "block";
levelA[8][2][4] = "block";
levelA[8][2][0] = "block";
levelA[8][3][0] = "block";
levelA[8][4][0] = "block";
levelA[8][3][1] = "block";
levelA[8][4][1] = "block";
levelArtwork.bonus_1.gotoAndStop(1);
levelArtwork.bonus_2.gotoAndStop(1);
levelArtwork.bonus_3.gotoAndStop(1);
levelA[8][0][3] = levelArtwork.bonus_1;
levelA[8][1][3] = levelArtwork.bonus_2;
levelA[8][2][3] = levelArtwork.bonus_3;
levelA[8][6][2] = topArtwork.bonus_tank1;
levelA[8][6][4] = topArtwork.bonus_tank2;
topArtwork.bonus_tank1.reset();
topArtwork.bonus_tank2.reset();
levelA[8][5][3] = bowlA[0];
levelA[8][6][3] = bowlA[1];
levelA[8][7][3] = bowlA[2];
return;
case 9 :
bowlA = new Array(levelArtwork.waterBowl, levelArtwork.waterBowl2);
levelA[9].startX = 0;
levelA[9].startY = 6;
levelA[9][0][6] = "block";
levelA[9][2][6] = "block";
levelA[9][3][6] = "block";
levelA[9][4][6] = "block";
levelA[9][5][3] = "block";
levelA[9][5][4] = "block";
levelA[9][5][5] = "block";
levelA[9][5][6] = "block";
levelArtwork.bonus_1.gotoAndStop(1);
levelArtwork.bonus_2.gotoAndStop(1);
levelArtwork.bonus_3.gotoAndStop(1);
levelArtwork.bonus_4.gotoAndStop(1);
levelArtwork.bonus_5.gotoAndStop(1);
levelA[9][5][0] = "block";
levelA[9][6][0] = "block";
levelA[9][1][4] = levelArtwork.bonus_1;
levelA[9][4][2] = levelArtwork.bonus_2;
levelA[9][5][2] = levelArtwork.bonus_3;
levelA[9][6][2] = levelArtwork.bonus_4;
levelA[9][7][6] = levelArtwork.bonus_5;
levelA[9][1][7] = bowlA[0];
levelA[9][2][7] = bowlA[1];
return;
case 10 :
bowlA = new Array(levelArtwork.waterBowl, levelArtwork.waterBowl2, levelArtwork.waterBowl3);
levelA[10].startX = 6;
levelA[10].startY = 0;
levelA[10][0][6] = "block";
levelA[10][5][0] = "block";
levelA[10][6][0] = "block";
levelA[10][2][2] = "block";
levelA[10][6][2] = "block";
levelA[10][7][2] = "block";
levelA[10][3][2] = "block";
levelA[10][4][2] = "block";
levelA[10][5][2] = "block";
levelArtwork.bonus_1.gotoAndStop(1);
levelArtwork.bonus_2.gotoAndStop(1);
levelArtwork.bonus_3.gotoAndStop(1);
levelArtwork.bonus_4.gotoAndStop(1);
levelA[10][0][2] = levelArtwork.bonus_1;
levelA[10][1][2] = levelArtwork.bonus_2;
levelA[10][0][7] = levelArtwork.bonus_3;
levelA[10][6][5] = levelArtwork.bonus_4;
levelA[10][0][5] = bowlA[0];
levelA[10][4][3] = bowlA[1];
levelA[10][7][5] = bowlA[2];
return;
case 11 :
bowlA = new Array(levelArtwork.waterBowl, levelArtwork.waterBowl2, levelArtwork.waterBowl3, levelArtwork.waterBowl4);
levelA[11].startX = 3;
levelA[11].startY = 0;
levelA[11][3][0] = "block";
levelA[11][4][0] = "block";
levelA[11][4][1] = "block";
levelA[11][4][2] = "block";
levelA[11][4][3] = "block";
levelA[11][4][4] = "block";
levelA[11][6][2] = "block";
levelA[11][5][4] = "block";
levelArtwork.bonus_1.gotoAndStop(1);
levelArtwork.bonus_2.gotoAndStop(1);
levelArtwork.bonus_3.gotoAndStop(1);
levelArtwork.bonus_4.gotoAndStop(1);
levelArtwork.bonus_5.gotoAndStop(1);
levelArtwork.bonus_6.gotoAndStop(1);
levelArtwork.bonus_7.gotoAndStop(1);
levelArtwork.bonus_8.gotoAndStop(1);
levelArtwork.bonus_9.gotoAndStop(1);
levelA[11][3][1] = levelArtwork.bonus_1;
levelA[11][7][0] = levelArtwork.bonus_2;
levelA[11][7][1] = levelArtwork.bonus_3;
levelA[11][7][2] = levelArtwork.bonus_4;
levelA[11][7][3] = levelArtwork.bonus_5;
levelA[11][7][4] = levelArtwork.bonus_6;
levelA[11][7][5] = levelArtwork.bonus_7;
levelA[11][7][6] = levelArtwork.bonus_8;
levelA[11][7][7] = levelArtwork.bonus_9;
levelA[11][2][4] = topArtwork.bonus_tank1;
topArtwork.bonus_tank1.reset();
levelA[11][5][6] = "block";
levelA[11][6][6] = "block";
levelA[11][5][7] = "block";
levelA[11][6][7] = "block";
levelA[11][0][3] = bowlA[0];
levelA[11][2][5] = bowlA[1];
levelA[11][6][0] = bowlA[2];
levelA[11][6][1] = bowlA[3];
return;
case 12 :
bowlA = new Array(levelArtwork.waterBowl, levelArtwork.waterBowl2, levelArtwork.waterBowl3);
levelA[12].startX = 5;
levelA[12].startY = 3;
levelA[12][5][3] = "block";
levelA[12][4][2] = "block";
levelA[12][5][2] = "block";
levelA[12][4][5] = "block";
levelA[12][4][6] = "block";
levelA[12][2][4] = "block";
levelA[12][3][4] = "block";
levelA[12][4][4] = "block";
levelA[12][2][5] = "block";
levelA[12][3][2] = "block";
levelA[12][1][1] = levelArtwork.bonus_1;
levelA[12][2][1] = levelArtwork.bonus_2;
levelA[12][5][4] = levelArtwork.bonus_3;
levelA[12][6][4] = levelArtwork.bonus_4;
levelA[12][4][7] = levelArtwork.bonus_5;
levelArtwork.bonus_1.gotoAndStop(1);
levelArtwork.bonus_2.gotoAndStop(1);
levelArtwork.bonus_3.gotoAndStop(1);
levelArtwork.bonus_4.gotoAndStop(1);
levelArtwork.bonus_5.gotoAndStop(1);
levelA[12][0][1] = bowlA[0];
levelA[12][3][5] = bowlA[1];
levelA[12][6][3] = bowlA[2];
return;
case 13 :
bowlA = new Array(levelArtwork.waterBowl, levelArtwork.waterBowl2, levelArtwork.waterBowl3);
levelA[13].startX = 0;
levelA[13].startY = 2;
levelA[13][0][2] = "block";
levelA[13][0][0] = "block";
levelA[13][1][0] = "block";
levelA[13][0][1] = "block";
levelA[13][3][0] = "block";
levelA[13][4][0] = "block";
levelA[13][3][1] = "block";
levelA[13][4][1] = "block";
levelA[13][6][0] = "block";
levelA[13][7][0] = "block";
levelA[13][6][1] = "block";
levelA[13][7][1] = "block";
levelA[13][1][3] = "block";
levelA[13][2][3] = "block";
levelA[13][6][4] = "block";
levelA[13][7][4] = "block";
levelA[13][2][4] = "block";
levelA[13][3][4] = "block";
levelA[13][4][4] = "block";
levelA[13][0][6] = "block";
levelA[13][0][7] = "block";
levelA[13][1][7] = "block";
levelA[13][4][7] = "block";
levelA[13][5][7] = "block";
levelA[13][6][7] = "block";
levelA[13][7][7] = "block";
levelA[13][7][5] = "block";
levelA[13][4][2] = "block";
levelA[13][4][6] = "block";
levelA[13][5][6] = "block";
levelArtwork.bonus_1.gotoAndStop(1);
levelArtwork.bonus_2.gotoAndStop(1);
levelArtwork.bonus_3.gotoAndStop(1);
levelArtwork.bonus_4.gotoAndStop(1);
levelArtwork.bonus_5.gotoAndStop(1);
levelArtwork.bonus_6.gotoAndStop(1);
levelArtwork.bonus_7.gotoAndStop(1);
levelArtwork.bonus_8.gotoAndStop(1);
levelArtwork.bonus_9.gotoAndStop(1);
levelArtwork.bonus_10.gotoAndStop(1);
levelA[13][0][3] = levelArtwork.bonus_1;
levelA[13][1][2] = levelArtwork.bonus_2;
levelA[13][1][4] = levelArtwork.bonus_3;
levelA[13][2][0] = levelArtwork.bonus_4;
levelA[13][2][1] = levelArtwork.bonus_5;
levelA[13][2][5] = levelArtwork.bonus_6;
levelA[13][5][0] = levelArtwork.bonus_7;
levelA[13][6][2] = levelArtwork.bonus_8;
levelA[13][6][6] = levelArtwork.bonus_9;
levelA[13][3][7] = levelArtwork.bonus_10;
levelA[13][0][5] = bowlA[0];
levelA[13][7][3] = bowlA[1];
levelA[13][7][6] = bowlA[2];
return;
case 14 :
bowlA = new Array(levelArtwork.waterBowl, levelArtwork.waterBowl2, levelArtwork.waterBowl3, levelArtwork.waterBowl4);
levelA[14].startX = 4;
levelA[14].startY = 0;
levelA[14][3][0] = "block";
levelA[14][4][0] = "block";
levelA[14][3][2] = "block";
levelA[14][4][2] = "block";
levelA[14][5][2] = "block";
levelA[14][0][4] = "block";
levelA[14][1][4] = "block";
levelA[14][2][4] = "block";
levelA[14][5][4] = "block";
levelA[14][6][4] = "block";
levelA[14][7][4] = "block";
levelA[14][3][6] = "block";
levelA[14][4][6] = "block";
levelA[14][5][6] = "block";
levelA[14][5][3] = "block";
levelA[14][6][3] = "block";
levelA[14][4][5] = topArtwork.bonus_tank1;
topArtwork.bonus_tank1.reset();
levelA[14][2][0] = "block";
levelA[14][4][7] = "block";
levelArtwork.bonus_1.gotoAndStop(1);
levelA[14][0][3] = levelArtwork.bonus_1;
levelArtwork.bonus_2.gotoAndStop(1);
levelA[14][4][4] = levelArtwork.bonus_2;
levelArtwork.bonus_3.gotoAndStop(1);
levelA[14][0][6] = levelArtwork.bonus_3;
levelArtwork.bonus_4.gotoAndStop(1);
levelA[14][3][4] = levelArtwork.bonus_4;
levelArtwork.bonus_5.gotoAndStop(1);
levelA[14][7][6] = levelArtwork.bonus_5;
levelA[14][0][3] = bowlA[0];
levelA[14][3][7] = bowlA[1];
levelA[14][5][7] = bowlA[2];
levelA[14][7][3] = bowlA[3];
return;
case 15 :
bowlA = new Array(levelArtwork.waterBowl, levelArtwork.waterBowl2, levelArtwork.waterBowl3, levelArtwork.waterBowl4, levelArtwork.waterBowl5);
levelA[15].startX = 1;
levelA[15].startY = 0;
levelA[15][0][0] = "block";
levelA[15][1][0] = "block";
levelA[15][5][4] = topArtwork.bonus_tank1;
topArtwork.bonus_tank1.reset();
levelA[15][5][0] = "block";
levelA[15][5][1] = "block";
levelA[15][5][2] = "block";
levelA[15][5][5] = "block";
levelA[15][5][6] = "block";
levelA[15][5][7] = "block";
levelA[15][3][3] = "block";
levelA[15][4][3] = "block";
levelArtwork.bonus_1.gotoAndStop(1);
levelArtwork.bonus_2.gotoAndStop(1);
levelArtwork.bonus_3.gotoAndStop(1);
levelArtwork.bonus_4.gotoAndStop(1);
levelArtwork.bonus_5.gotoAndStop(1);
levelA[15][0][1] = levelArtwork.bonus_1;
levelA[15][1][1] = levelArtwork.bonus_2;
levelA[15][3][0] = levelArtwork.bonus_3;
levelA[15][4][0] = levelArtwork.bonus_4;
levelA[15][4][4] = levelArtwork.bonus_5;
levelA[15][1][7] = bowlA[0];
levelA[15][2][0] = bowlA[1];
levelA[15][5][3] = bowlA[2];
levelA[15][7][0] = bowlA[3];
levelA[15][7][7] = bowlA[4];
return;
case 16 :
bowlA = new Array(levelArtwork.waterBowl, levelArtwork.waterBowl2, levelArtwork.waterBowl3);
levelA[16].startX = 7;
levelA[16].startY = 1;
levelA[16][7][1] = "block";
levelA[16][1][0] = "block";
levelA[16][2][0] = "block";
levelA[16][2][6] = "block";
levelA[16][5][2] = "block";
levelA[16][6][2] = "block";
levelA[16][7][2] = "block";
levelA[16][4][3] = "block";
levelA[16][4][4] = "block";
levelA[16][4][5] = "block";
levelA[16][1][2] = "block";
levelA[16][2][2] = "block";
levelA[16][3][2] = "block";
levelA[16][4][2] = "block";
levelA[16][0][5] = "block";
levelA[16][6][4] = "block";
levelA[16][7][4] = "block";
levelA[16][2][4] = "block";
levelA[16][2][5] = "block";
levelArtwork.bonus_1.gotoAndStop(1);
levelArtwork.bonus_2.gotoAndStop(1);
levelArtwork.bonus_3.gotoAndStop(1);
levelArtwork.bonus_4.gotoAndStop(1);
levelArtwork.bonus_5.gotoAndStop(1);
levelA[16][0][0] = levelArtwork.bonus_1;
levelA[16][0][7] = levelArtwork.bonus_2;
levelA[16][7][5] = levelArtwork.bonus_3;
levelA[16][7][6] = levelArtwork.bonus_4;
levelA[16][7][7] = levelArtwork.bonus_5;
levelA[16][3][3] = bowlA[0];
levelA[16][3][4] = bowlA[1];
levelA[16][7][3] = bowlA[2];
return;
case 17 :
bowlA = new Array(levelArtwork.waterBowl, levelArtwork.waterBowl2, levelArtwork.waterBowl3, levelArtwork.waterBowl4);
levelA[17].startX = 6;
levelA[17].startY = 0;
levelA[17][4][0] = "block";
levelA[17][5][0] = "block";
levelA[17][6][0] = "block";
levelA[17][4][5] = "block";
levelA[17][0][6] = "block";
levelA[17][0][7] = "block";
levelA[17][2][4] = "block";
levelA[17][2][5] = "block";
levelA[17][2][6] = "block";
levelA[17][2][7] = "block";
levelA[17][4][6] = "block";
levelA[17][4][7] = "block";
levelA[17][6][6] = "block";
levelA[17][6][7] = "block";
levelA[17][6][5] = "block";
levelA[17][3][2] = "block";
levelA[17][1][3] = "block";
levelA[17][2][3] = "block";
levelA[17][5][3] = "block";
levelA[17][6][3] = "block";
levelArtwork.bonus_1.gotoAndStop(1);
levelArtwork.bonus_2.gotoAndStop(1);
levelArtwork.bonus_3.gotoAndStop(1);
levelArtwork.bonus_4.gotoAndStop(1);
levelA[17][1][6] = levelArtwork.bonus_1;
levelA[17][3][6] = levelArtwork.bonus_2;
levelA[17][5][6] = levelArtwork.bonus_3;
levelA[17][7][6] = levelArtwork.bonus_4;
levelA[17][1][7] = bowlA[0];
levelA[17][3][7] = bowlA[1];
levelA[17][5][7] = bowlA[2];
levelA[17][7][7] = bowlA[3];
return;
case 18 :
bowlA = new Array(levelArtwork.waterBowl, levelArtwork.waterBowl2, levelArtwork.waterBowl3, levelArtwork.waterBowl4);
levelA[18].startX = 7;
levelA[18].startY = 3;
levelA[18][7][3] = "block";
levelA[18][4][1] = "block";
levelA[18][4][2] = "block";
levelA[18][4][3] = "block";
levelA[18][4][4] = "block";
levelA[18][4][5] = "block";
levelA[18][4][6] = "block";
levelA[18][0][0] = "block";
levelA[18][7][0] = "block";
levelA[18][0][7] = "block";
levelA[18][7][7] = "block";
levelA[18][3][1] = "block";
levelA[18][5][6] = "block";
levelArtwork.bonus_1.gotoAndStop(1);
levelArtwork.bonus_2.gotoAndStop(1);
levelArtwork.bonus_3.gotoAndStop(1);
levelArtwork.bonus_4.gotoAndStop(1);
levelArtwork.bonus_5.gotoAndStop(1);
levelArtwork.bonus_6.gotoAndStop(1);
levelArtwork.bonus_7.gotoAndStop(1);
levelArtwork.bonus_8.gotoAndStop(1);
levelArtwork.bonus_9.gotoAndStop(1);
levelArtwork.bonus_10.gotoAndStop(1);
levelArtwork.bonus_11.gotoAndStop(1);
levelArtwork.bonus_12.gotoAndStop(1);
levelArtwork.bonus_13.gotoAndStop(1);
levelArtwork.bonus_14.gotoAndStop(1);
levelArtwork.bonus_15.gotoAndStop(1);
levelArtwork.bonus_16.gotoAndStop(1);
levelA[18][2][2] = levelArtwork.bonus_1;
levelA[18][2][3] = levelArtwork.bonus_2;
levelA[18][2][4] = levelArtwork.bonus_3;
levelA[18][2][5] = levelArtwork.bonus_4;
levelA[18][3][2] = levelArtwork.bonus_5;
levelA[18][3][3] = levelArtwork.bonus_6;
levelA[18][3][4] = levelArtwork.bonus_7;
levelA[18][3][5] = levelArtwork.bonus_8;
levelA[18][5][2] = levelArtwork.bonus_9;
levelA[18][5][3] = levelArtwork.bonus_10;
levelA[18][5][4] = levelArtwork.bonus_11;
levelA[18][5][5] = levelArtwork.bonus_12;
levelA[18][6][2] = levelArtwork.bonus_13;
levelA[18][6][3] = levelArtwork.bonus_14;
levelA[18][6][4] = levelArtwork.bonus_15;
levelA[18][6][5] = levelArtwork.bonus_16;
levelA[18][0][2] = bowlA[0];
levelA[18][0][3] = bowlA[1];
levelA[18][0][4] = bowlA[2];
levelA[18][0][5] = bowlA[3];
return;
case 19 :
bowlA = new Array(levelArtwork.waterBowl, levelArtwork.waterBowl2, levelArtwork.waterBowl3, levelArtwork.waterBowl4);
levelA[19].startX = 0;
levelA[19].startY = 6;
levelA[19][0][6] = "block";
levelA[19][3][4] = "block";
levelA[19][4][4] = "block";
levelA[19][5][4] = "block";
levelA[19][1][1] = "block";
levelA[19][7][5] = "block";
levelA[19][1][3] = "block";
levelA[19][2][3] = "block";
levelA[19][3][2] = "block";
levelA[19][4][2] = "block";
levelA[19][5][1] = "block";
levelA[19][6][3] = "block";
levelA[19][2][5] = "block";
levelA[19][2][6] = "block";
levelA[19][4][6] = "block";
levelA[19][5][6] = "block";
levelA[19][6][0] = "block";
levelA[19][7][0] = "block";
levelA[19][0][3] = topArtwork.bonus_tank1;
topArtwork.bonus_tank1.reset();
levelA[19][7][3] = topArtwork.bonus_tank2;
topArtwork.bonus_tank2.reset();
levelArtwork.bonus_1.gotoAndStop(1);
levelArtwork.bonus_2.gotoAndStop(1);
levelArtwork.bonus_3.gotoAndStop(1);
levelArtwork.bonus_4.gotoAndStop(1);
levelArtwork.bonus_5.gotoAndStop(1);
levelArtwork.bonus_6.gotoAndStop(1);
levelArtwork.bonus_7.gotoAndStop(1);
levelArtwork.bonus_8.gotoAndStop(1);
levelArtwork.bonus_9.gotoAndStop(1);
levelArtwork.bonus_10.gotoAndStop(1);
levelArtwork.bonus_11.gotoAndStop(1);
levelArtwork.bonus_12.gotoAndStop(1);
levelArtwork.bonus_13.gotoAndStop(1);
levelArtwork.bonus_14.gotoAndStop(1);
levelArtwork.bonus_15.gotoAndStop(1);
levelA[19][0][4] = levelArtwork.bonus_1;
levelA[19][1][4] = levelArtwork.bonus_2;
levelA[19][0][5] = levelArtwork.bonus_3;
levelA[19][1][5] = levelArtwork.bonus_4;
levelA[19][2][0] = levelArtwork.bonus_5;
levelA[19][3][0] = levelArtwork.bonus_6;
levelA[19][2][1] = levelArtwork.bonus_7;
levelA[19][3][1] = levelArtwork.bonus_8;
levelA[19][6][1] = levelArtwork.bonus_9;
levelA[19][7][1] = levelArtwork.bonus_10;
levelA[19][6][2] = levelArtwork.bonus_11;
levelA[19][7][2] = levelArtwork.bonus_12;
levelA[19][6][6] = levelArtwork.bonus_13;
levelA[19][7][6] = levelArtwork.bonus_14;
levelA[19][6][7] = levelArtwork.bonus_15;
levelA[19][3][3] = bowlA[0];
levelA[19][3][5] = bowlA[1];
levelA[19][5][0] = bowlA[2];
levelA[19][7][7] = bowlA[3];
return;
case 20 :
bowlA = new Array(levelArtwork.waterBowl, levelArtwork.waterBowl1, levelArtwork.waterBowl2, levelArtwork.waterBowl3, levelArtwork.waterBowl4, levelArtwork.waterBowl5);
levelA[20].startX = 7;
levelA[20].startY = 1;
levelA[20][7][1] = "block";
levelA[20][1][2] = "block";
levelA[20][2][2] = "block";
levelA[20][3][2] = "block";
levelA[20][5][2] = "block";
levelA[20][6][2] = "block";
levelA[20][7][2] = "block";
levelA[20][5][3] = "block";
levelA[20][0][2] = "block";
levelA[20][4][0] = "block";
levelA[20][1][6] = "block";
levelA[20][4][7] = "block";
levelA[20][6][7] = "block";
levelA[20][6][1] = topArtwork.bonus_tank1;
levelA[20][0][3] = topArtwork.bonus_tank2;
levelA[20][2][3] = topArtwork.bonus_tank3;
levelA[20][6][4] = topArtwork.bonus_tank4;
levelA[20][4][5] = topArtwork.bonus_tank5;
levelA[20][5][5] = topArtwork.bonus_tank6;
levelA[20][4][6] = topArtwork.bonus_tank7;
levelA[20][5][6] = topArtwork.bonus_tank8;
levelA[20][0][0] = levelArtwork.bonus_1;
levelA[20][7][7] = levelArtwork.bonus_2;
levelA[20][1][3] = bowlA[0];
levelA[20][1][7] = bowlA[1];
levelA[20][5][7] = bowlA[2];
levelA[20][6][5] = bowlA[3];
levelA[20][6][6] = bowlA[4];
levelA[20][7][0] = bowlA[5];
return;
}
}
function getRidofMSG() {
textBox.text = textBox.text + "getRidofMSG";
trace("get rid of message");
gs.TweenMax.to(_nextLevelScreen, 1, {_y:-200, onComplete:removeClip, onCompleteParams:[_nextLevelScreen]});
}
function quitGame(typ) {
textBox.text = textBox.text + "quitGame";
getRidofMSG();
resetUserVars();
resetGameVars();
endGame("quit");
gs.TweenMax.to(UI, 1, {_alpha:0});
gs.TweenMax.to(trashMC, 1, {_alpha:0});
nextPipe = null;
clearInterval(pressureInt);
clearInterval(pressureInt2);
clearInterval(checkRedundantInt);
closeDoors();
gs.TweenMax.to(doorsClip, 1.5, {onComplete:goIntro});
}
function NXTLV() {
nextLevel();
}
function PRVLV() {
runningScore = 0;
gameLevel--;
nextLevelMC.gotoAndStop(1);
topArtwork.zipperOnBlanket.gotoAndStop(1);
startGame();
}
function resetUserVars() {
oldPipeW = undefined;
lockedInScore = 0;
userScore = 0;
moves = 0;
runningScore = 0;
dpC = 5000;
updateTextBoxes();
}
function updateTextBoxes() {
UI.scoreTXT.setNum(userScore);
UI.levelTXT.setNum(gameLevel);
UI.skipsTXT.setNum(skips);
}
function resetGameVars() {
trashClear = true;
if (gameMode == "easy") {
pressureSpeed = 1400 + (60 * gameLevel);
skips = 99;
} else if (gameMode == "med") {
pressureSpeed = 800;
skips = 25;
} else {
pressureSpeed = 1100 + (35 * gameLevel);
skips = 15;
}
alreadyFilledBowls = false;
pressure = 0;
multi = 1;
UI.multiMC.gotoAndStop(1);
pipeC = 0;
pipeCTMP = 0;
gx = THEGRID._x;
gy = THEGRID._y;
pipePath = new Array();
pipePathL = 1;
pipePathC = 1;
makeRandPipes();
updateTextBoxes();
}
function startGame() {
nextLevelClipStarted = false;
resetLevel();
setPipes();
pressureInt = setInterval(buildPressure, pressureSpeed);
GAMEON = true;
setArtwork();
waterBowlsLimit = bowlA.length;
}
function endGame(typ) {
stopWaterLoop();
clearInterval(pressureInt);
clearInterval(pressureInt2);
clearInterval(checkRedundantInt);
delete pipeTMP[0].onPress;
delete pipeTMP[1].onPress;
delete pipeTMP[2].onPress;
GAMEON = false;
if ((((typ == "bad") || (typ == "good")) || (typ == "miss_bowl")) || (typ == "too_much")) {
gameResult = typ;
lockedInScore = lockedInScore + runningScore;
if (lockedInScore > storage.data.bestA[gameMode].score) {
storage.data.bestA[gameMode].score = lockedInScore;
}
if (typ == "good") {
if (soundState) {
playSound("end_level_good");
}
} else {
_level0.cs.track.event("game_over");
if (soundState) {
playSound("end_level_bad");
}
}
if (!nextLevelClipStarted) {
nextLevelClipStarted = true;
nextLevelMC.gotoAndPlay(2);
}
}
}
function endLevel(typ) {
alterScore("endLevel");
endGame("level");
GAME.nextLevelCheck("good");
}
function nextLevel() {
getRidofMSG();
runningScore = 0;
gameLevel++;
levelsUnlocked = (storage.data.levelsUnlocked = gameLevel);
nextLevelMC.gotoAndStop(1);
topArtwork.zipperOnBlanket.gotoAndStop(1);
startGame();
updateTextBoxes();
}
function nextLevelShow() {
endGame("good");
}
function checkRedundant() {
var _local1 = gridA[checkRedX][checkRedY];
checkRedY++;
if (checkRedY > (gridY - 1)) {
checkRedX++;
checkRedY = 0;
}
if (checkRedX == gridX) {
clearInterval(checkRedundantInt);
if (gameResult == "bad") {
endGame("bad");
} else if (gameResult == "miss_bowl") {
endGame("miss_bowl");
} else if (gameResult == "too_much") {
endGame("too_much");
} else {
nextLevelShow();
}
} else if ((_local1 != 0) && (!_local1.filled)) {
if (_local1 != undefined) {
var _local2 = new flash.geom.Transform(clip);
_local2.colorTransform = colorTrans_ERROR;
alterScore("unUsedPipe");
penaltyShow(_local1, "unUsedPipe");
}
} else {
var _local2 = new flash.geom.Transform(clip);
_local2.colorTransform = colorTrans_NORMAL;
checkRedundant();
}
}
function nextLevelCheck(typ) {
if (typ == "waterbowl") {
if (waterBowlsFilled == waterBowlsLimit) {
if (pipePathC == 0) {
endLevel("good");
} else {
alreadyFilledBowls = true;
}
} else if (pipePathC == 0) {
nextLevelCheck("miss_bowl");
}
} else {
endAllPipes();
GAMEON = false;
checkRedX = 0;
checkRedY = 0;
clearInterval(checkRedundantInt);
checkRedundantInt = setInterval(checkRedundant, 200);
if (typ != undefined) {
gameResult = typ;
}
}
}
function alterScore(typ, num) {
var _local1 = scoreA[typ];
if ((_local1 == undefined) || (isNaN(_local1))) {
_local1 = 0;
}
if (currentPipeW.tank && (_local1 > 0)) {
_local1 = _local1 + scoreA.tankBonus;
}
if (num != undefined) {
_local1 = _local1 * num;
}
if (_local1 > 0) {
runningScore = runningScore + (_local1 * multi);
penaltyVar = _local1 * multi;
} else {
if ((runningScore == 0) && (lockedInScore > 0)) {
lockedInScore = lockedInScore + _local1;
} else {
runningScore = runningScore + _local1;
}
penaltyVar = _local1;
}
if (runningScore < 0) {
runningScore = 0;
}
if (lockedInScore < 0) {
lockedInScore = 0;
}
userScore = makeKash(lockedInScore + runningScore);
updateTextBoxes();
}
function resetArtwork(target) {
for (var _local3 in target) {
var _local1 = target[_local3];
_local1.reset();
}
}
function resetWaterBowls() {
var _local1 = 0;
while (_local1 < bowlA.length) {
var _local2 = bowlA[_local1];
_local2.gotoAndStop(1);
_local2.filled = false;
_local1++;
}
waterBowlsFilled = 0;
}
function resetLevel(typ) {
stopWaterLoop();
resetWaterBowls();
removePipes();
resetGameVars();
resetGrid();
resetArtwork(topArtwork);
resetArtwork(levelArtwork);
levelArtwork.pipeTap.gotoAndStop(1);
pressureMC.gotoAndStop(1);
pressureMC.tap.gotoAndStop(1);
clearInterval(pressureInt);
clearInterval(pressureInt2);
clearInterval(checkRedundantInt);
if (typ == "user") {
startGame();
} else if (typ == "user_fail") {
lockedInScore = lockedInScore - runningScore;
startGame();
}
runningScore = 0;
userScore = makeKash(lockedInScore);
updateTextBoxes();
}
function resetGrid() {
gridA = new Array();
var _local4 = 0;
var _local2 = 0;
while (_local2 < gridX) {
gridA[_local2] = new Array();
var _local1 = 0;
while (_local1 < gridY) {
gridA[_local2][_local1] = 0;
_local4++;
var _local3 = THEGRID.gridP.duplicateMovieClip((("gp_" + _local2) + "_") + _local1, _local4);
_local3._x = gridH * _local2;
_local3._y = gridW * _local1;
_local1++;
}
_local2++;
}
}
function removePipes() {
var _local1 = 0;
while (_local1 < (pipeC + 1)) {
var _local2 = pipeH["pipe_" + _local1];
_local2.removeMovieClip();
_local1++;
}
_local1 = 0;
while (_local1 < pipeTMP.length) {
var _local2 = pipeTMP[_local1];
_local2.removeMovieClip();
_local1++;
}
}
function checkGridHL() {
var _local7 = currentPipe._x - gx;
var _local6 = currentPipe._y - gy;
var _local3 = Math.round(_local7 / gridW);
var _local2 = Math.round(_local6 / gridH);
currentGridMC.gotoAndStop(1);
currentGridMC = THEGRID[(("gp_" + _local3) + "_") + _local2];
var _local1 = levelA[gameLevel][_local3][_local2];
if (isInBowlA(_local1)) {
_local1 = "waterBowl";
}
var _local4 = gridA[_local3][_local2];
if ((((_local1 != "block") && (!_local1.tank)) && (_local1 != "waterBowl")) && (!_local4.filled)) {
currentGridMC.gotoAndStop(2);
currentPipe.pipeAni.gotoAndStop(1);
var _local5 = new flash.geom.Transform(clip);
_local5.colorTransform = colorTrans_NORMAL;
} else {
var _local5 = new flash.geom.Transform(clip);
_local5.colorTransform = colorTrans_ERROR;
currentGridMC.gotoAndStop(3);
}
}
function makePipe(mc) {
if (GAMEON && (trashClear)) {
pipeC++;
dropPipeS.gotoAndPlay("drop_" + random(2));
currentPipe = mc.duplicateMovieClip("pipe_" + pipeC, pipeC + 6000);
currentPipe.startDrag();
currentPipe.BG.gotoAndStop(2);
currentPipe.gotoAndStop(mc._currentframe);
currentPipe.dragging = true;
mouseL = new Object();
mouseL.onMouseUp = function () {
if (currentPipe.hitTest(trashMC)) {
deletePipe(currentPipe, "onTrash");
} else {
GAME.placePipe(currentPipe);
}
currentGridMC.gotoAndStop(1);
};
mouseL.onMouseMove = function () {
checkGridHL();
};
Mouse.addListener(mouseL);
newPipe(mc);
}
}
function deletePipe(p, typ) {
p.removeMovieClip();
if (typ == "onTrash") {
alterScore("badDropOnTrash");
} else {
alterScore("badDrop");
}
trashMCTOP.penaltyVar = penaltyVar;
trashMC.gotoAndPlay(2);
trashMCTOP.gotoAndPlay(2);
trashClear = true;
Mouse.removeListener(mouseL);
}
function trashPipe(p) {
if (soundState) {
playSound("bad_point");
}
trashClear = false;
var _local3 = new flash.geom.Transform(clip);
_local3.colorTransform = colorTrans_ERROR;
var _local2 = (trashMC._x * 1.42) - gx;
var _local1 = (trashMC._y * 1.42) - gy;
gs.TweenMax.to(p, 0.7, {_x:_local2, _y:_local1, onComplete:deletePipe, onCompleteParams:[p]});
}
function penaltyShow(p, typ) {
var _local3 = p._x;
var _local2 = p._y;
dpC++;
var _local1 = pointsHolder.attachMovie("pointsClip", "dp_" + dpC, dpC);
if ((penaltyVar > 0) || (isNaN(penaltyVar))) {
if (GAME.multi == 2) {
_local1.gotoAndStop(3);
} else {
_local1.gotoAndStop(2);
}
} else {
_local1.gotoAndStop(1);
}
_local1._x = (_local3 * 0.7) + gx;
_local1._y = (_local2 * 0.7) + gy;
_local1._yscale = (_local1._xscale = 25);
gs.TweenMax.to(_local1, 0.5, {_yscale:100, _xscale:100, ease:mx.transitions.easing.Back.easeOut});
if (penaltyVar > 0) {
if (soundState) {
playSound("good_point");
}
_local1._x = ((_local3 * 0.7) + gx) + 25;
gs.TweenMax.to(_local1, 1, {_y:_local2 - 20, _alpha:0, delay:0.8, onComplete:removeClip, onCompleteParams:[_local1], overwrite:false});
} else {
if (soundState) {
playSound("bad_point");
}
gs.TweenMax.to(_local1, 1, {_y:_local2 - 20, _alpha:0, delay:0.8, onComplete:removeClip, onCompleteParams:[_local1], overwrite:false});
}
_local1.textBox.text = penaltyVar;
}
function placePipe(pipe) {
var _local7 = pipe._x;
var _local6 = pipe._y;
var _local2 = Math.round((_local7 - gx) / gridW);
var _local3 = Math.round((_local6 - gy) / gridH);
if ((((_local2 > 7) || (_local2 < 0)) || (_local3 > 7)) || (_local3 < 0)) {
pipe.stopDrag();
Mouse.removeListener(mouseL);
trashPipe(pipe);
} else {
var _local5 = gridA[_local2][_local3];
var _local4 = levelA[gameLevel][_local2][_local3];
if (isInBowlA(_local4)) {
_local4 = "waterBowl";
}
if (((_local4 == "block") || (_local4.tank)) || (_local4 == "waterBowl")) {
pipe.stopDrag();
Mouse.removeListener(mouseL);
trashPipe(pipe);
alterScore("badDrop");
} else if (_local5 != 0) {
if (!_local5.filled) {
dropPipeS.gotoAndPlay("drop_double");
_local5.removeMovieClip();
pipe.stopDrag();
Mouse.removeListener(mouseL);
alterScore("doubleUpPipe");
penaltyShow(pipe, "doublePipe");
snapPipe(pipe, _local2, _local3);
} else {
trashPipe(pipe);
}
} else {
dropPipeS.gotoAndPlay("drop_" + random(2));
pipe.stopDrag();
Mouse.removeListener(mouseL);
snapPipe(pipe, _local2, _local3);
}
}
}
function snapPipe(pipe, x, y) {
pipe._x = gx + (x * gridW);
pipe._y = gy + (y * gridW);
gridA[x][y] = pipe;
}
function makeSplash(x, y, f, bowl) {
if (bowl) {
bowl.gotoAndPlay("flood");
} else if (oldPipeW) {
oldPipeW["spray_" + currentDIR].gotoAndPlay(2);
} else {
levelArtwork.pipeTap.gotoAndPlay("flood");
}
}
function isInBowlA(b) {
var _local1 = 0;
while (_local1 < bowlA.length) {
var _local2 = bowlA[_local1];
if (_local2 == b) {
return(true);
}
_local1++;
}
return(false);
}
function triggerPipe(x, y, pp) {
var _local4 = levelA[gameLevel][x][y];
if (isInBowlA(_local4)) {
if (_local4.filled) {
makeSplash(x, y, null, _local4);
} else {
waterBowlsFilled++;
_local4.filled = true;
_local4.gotoAndPlay(2);
endPath(pp, undefined, "waterbowl");
}
} else {
var _local6 = levelA[gameLevel][x][y];
if (_local6.tank) {
gridA[x][y] = _local6;
}
oldPipeW = pipePath[pp].currentPipeW;
pipePath[pp].currentPipeW = gridA[x][y];
var _local1 = pipePath[pp].currentPipeW;
if (_local1 != 0) {
if (_local1 == undefined) {
if (y < 0) {
y++;
splashF = 6;
} else if (x > 7) {
x--;
splashF = 7;
} else if (y > 7) {
y--;
splashF = 8;
} else if (x < 0) {
x++;
splashF = 9;
}
makeSplash(x, y, splashF);
} else if (_local1.filled && (!_local1.crossPipe)) {
endPath(pp);
} else {
if (_local1.crossPipe) {
}
if (_local1.MOVE[currentDIR]) {
if (_local1.filling && (_local1.crossPipe)) {
GAME.nextPipe(currentDIR, pp);
} else {
if (_local1.filling) {
endPath(_local1.pipeAni.pathNum);
}
_local1.filling = true;
_local1.pipeAni.pathNum = pp;
_local1.pipeAni.nxtDir = currentDIR;
_local1.pipeAni.gotoAndPlay(currentDIR);
}
} else {
makeSplash(x, y);
}
}
} else {
makeSplash(x, y);
}
}
}
function checkBonus(x, y, typ) {
var _local1 = levelA[gameLevel][x][y];
var _local2 = THEGRID[(("gp_" + x) + "_") + y];
if (((_local1 != "0") && (_local1 != "block")) && (!_local1.tank)) {
_local1.gotoAndPlay(2);
alterScore("bonus");
penaltyShow(_local2);
} else {
alterScore(typ);
penaltyShow(_local2);
}
}
function nextPipe(dir, pNum) {
pipePath[pNum].dir = dir;
var _local1 = pNum;
var _local2 = pipePath[_local1].GY;
var _local3 = pipePath[_local1].GX;
var _local4 = pipePath[_local1].currentPipeW;
_local4.filling = false;
if (_local4 != null) {
var _local5 = THEGRID[(("gp_" + _local3) + "_") + _local2];
if (_local4.filled && (_local4.crossPipe)) {
alterScore("crossPipeFilled");
penaltyShow(_local5);
} else {
checkBonus(_local3, _local2, "pipe");
penaltyShow(_local5);
}
_local4.filled = true;
}
currentDIR = pipePath[_local1].dir;
switch (dir) {
case "down" :
_local2 = _local2 + 1;
break;
case "up" :
_local2 = _local2 - 1;
break;
case "left" :
_local3 = _local3 - 1;
break;
case "right" :
_local3 = _local3 + 1;
break;
}
pipePath[_local1].GY = _local2;
pipePath[_local1].GX = _local3;
triggerPipe(_local3, _local2, _local1);
}
function buildPressure() {
pressure = pressure + 1;
var _local1 = pressure;
pressureMC.gotoAndStop(_local1);
if (pressure >= 100) {
pressureMC.tap.gotoAndPlay("wait");
startWater();
}
}
function speedUpPressure() {
pressureMC.gotoAndPlay(pressureMC._currentframe + 1);
if (pressureMC._currentframe >= 100) {
clearInterval(pressureInt2);
startWater();
}
}
function newPipePath(pathNum, dir) {
var _local1 = pipePath[pathNum];
pipePathL++;
pipePathC++;
pipePath[pipePathL - 1] = new Array();
pipePath[pipePathL - 1].GX = _local1.GX;
pipePath[pipePathL - 1].GY = _local1.GY;
pipePath[pipePathL - 1].currentPipeW = _local1.currentPipeW;
}
function checkEndPipe(n) {
checkBonus(pipePath[n].GX, pipePath[n].GY, "pipe");
penaltyShow(scoreMC);
}
function endAllPipes() {
var _local1 = 0;
while (_local1 < pipePath.length) {
pipePath[_local1].currentPipeW.pipeAni.stop();
_local1++;
}
}
function endPath(n, p, typ) {
pipePathC--;
p._parent.filled = true;
delete pipePath[n];
if ((pipePathC == 0) && (typ != "waterbowl")) {
if (alreadyFilledBowls) {
endLevel("good");
} else {
nextLevelCheck("bad");
}
}
}
function startWater(typ) {
clearInterval(pressureInt);
if (typ == "user") {
var _local1 = 100 - pressure;
alterScore("pressureB", _local1);
multi = 2;
UI.multiMC.gotoAndStop(2);
pressureInt2 = setInterval(speedUpPressure, 20);
} else {
pipePath[0] = new Array();
pipePath[0].GX = levelA[gameLevel].startX;
pipePath[0].GY = levelA[gameLevel].startY;
pipePath[0].currentPipeW = null;
levelArtwork.pipeTap.gotoAndPlay(2);
}
}
function setPipes() {
pipeTMP = new Array();
px = pipeH.pipe._x;
py = pipeH.pipe._y;
pipeH.pipe._visible = false;
var _local1 = 0;
while (_local1 < 3) {
var _local2 = addPipeTMP(_local1);
_local2._y = py + (55 * _local1);
_local2.pipeTMPNum = _local1;
pipeTMP[_local1] = _local2;
_local1++;
}
_local2._alpha = 100;
initPipes();
}
function makeRandPipes() {
TMPPipeA = new Array();
var _local1 = 0;
while (_local1 < 17) {
TMPPipeA[_local1] = _local1 + 1;
_local1++;
}
}
function addPipeTMP(i) {
trace("addPipeTMP");
pipeCTMP++;
var _local1 = pipeH.pipe.duplicateMovieClip("pipeTMP_" + i, i);
var _local2 = random(TMPPipeA.length);
var _local3 = TMPPipeA[_local2];
TMPPipeA.splice(_local2, 1);
if (TMPPipeA.length == 0) {
makeRandPipes();
}
_local1.gotoAndStop(_local3);
return(_local1);
}
function removePipe(mc) {
mc.removeMovieClip();
}
function initPipes() {
if (gameMode == "easy") {
pipeTMP[0].onPress = function () {
GAME.makePipe(this);
};
}
if ((gameMode == "easy") || (gameMode == "med")) {
pipeTMP[1].onPress = function () {
GAME.makePipe(this);
};
}
pipeTMP[2].onPress = function () {
GAME.makePipe(this);
};
}
function newPipe(mc, typ) {
var _local4 = mc.pipeTMPNum;
if (typ == "skip") {
mc.onPress = null;
delete mc.onPress;
gs.TweenMax.to(mc, 0.4, {_alpha:0, onComplete:removePipe, onCompleteParams:[mc]});
} else {
mc.removeMovieClip();
}
pipeTMP.splice(_local4, 1);
var _local6 = addPipeTMP(pipeCTMP);
pipeTMP.unshift(_local6);
_local6._y = py - 65;
_local6.setMask(pipeH.pipeMask);
var _local1 = 0;
while (_local1 < pipeTMP.length) {
if (_local1 < (_local4 + 1)) {
pipeTMP[_local1].pipeTMPNum = _local1;
gs.TweenMax.to(pipeTMP[_local1], 0.5, {_y:py + (55 * _local1), ease:mx.transitions.easing.Strong.easeOut});
}
_local1++;
}
initPipes();
}
function skipPipe() {
if (!gs.TweenMax.isTweening(pipeTMP[0])) {
if (skips > 0) {
if (soundState) {
playSound("steam");
}
newPipe(pipeTMP[2], "skip");
skips--;
} else {
skips = 0;
}
updateTextBoxes();
}
}
function startWaterLoop() {
if (soundState) {
water_loop.start(0, 999);
}
}
function stopWaterLoop() {
water_loop.stop();
}
_level0.cs.track.event("game_started");
var colorTrans_ERROR = (new flash.geom.ColorTransform());
var colorTrans_NORMAL = (new flash.geom.ColorTransform());
colorTrans_ERROR.redOffset = 155;
colorTrans_NORMAL.redOffset = 0;
_global.GAME = this;
String.prototype.SR = function (find, replace) {
return(this.split(find).join(replace));
};
_global.makeKash = function (num) {
num = num + "";
numLength = num.length;
newNum = "";
if (numLength > 3) {
diff = numLength % 3;
i = 0;
while (i < numLength) {
if ((((i % 3) == diff) && (i != (numLength - 1))) && (i != 0)) {
newNum = newNum + ",";
}
newNum = newNum + num.charAt(i);
i++;
}
} else {
newNum = newNum + num;
}
return(num);
};
_global.chkEmail = function (e) {
if (e.length > 7) {
if (e.indexOf("@") > 0) {
if ((((e.indexOf(" ") < 0) && (e.indexOf(",") < 0)) && (e.indexOf("'") < 0)) && (e.indexOf("\"") < 0)) {
if ((e.indexOf("@") + 1) < e.lastIndexOf(".")) {
if (e.indexOf("@") == e.lastIndexOf("@")) {
if (e.lastIndexOf(".") < (e.length - 1)) {
return(true);
}
}
}
}
}
}
return(false);
};
_global.chkWWW = function (e) {
var _local1 = e.toLowerCase();
if (_local1.indexOf("www.") == 0) {
_local1 = e.slice(4);
return(_local1);
}
return(_local1);
};
HIS_typA = new Array();
HIS_typA.easy = 110;
HIS_typA.med = 111;
HIS_typA.hard = 112;
if (storage.data.bestA == undefined) {
storage.data.bestA = new Array();
storage.data.bestA.easy = new Array();
storage.data.bestA.easy.score = 0;
storage.data.bestA.hard = new Array();
storage.data.bestA.hard.score = 0;
storage.data.lastMode = "easy";
storage.data.levelsUnlocked = 1;
} else {
soundState = storage.data.soundState;
}
gameMode = storage.data.lastMode;
water_loop = new Sound(this.createEmptyMovieClip("water_loopMC", 9011));
water_loop.attachSound("water_loop");
water_loop.setVolume(45);
_global.butSound = function () {
if (soundState) {
playSound("button_drop");
}
};
extraMove = 40;
initGame();
stop();
gridX = 8;
gridY = 8;
gridW = 50;
gridH = 50;
pipePath = new Array();
pressureMC = UI.startWaterBut;
var userScore;
var gameLevel;
resetUserVars();
_global.THEGRID = girdH;
var gx;
var gy;
nextLevelClipStarted = false;
var _nextLevelScreen;
scoreA = new Array();
scoreA.pipe = 100;
scoreA.crossPipeFilled = 1200;
scoreA.doubleUpPipe = -50;
scoreA.unUsedPipe = -25;
scoreA.badDrop = -100;
scoreA.badDropOnTrash = -20;
scoreA.bonus = 750;
scoreA.bonusPipeFilled = 1950;
scoreA.pressureB = 5;
scoreA.endLevel = 3000;
scoreA.tankBonus = 825;
resetGameVars();
levelLim = 20;
levelA = new Array();
var l = 1;
while (l < (levelLim + 1)) {
levelA[l] = new Array();
var i = 0;
while (i < gridX) {
levelA[l][i] = new Array();
var a = 0;
while (a < gridY) {
levelA[l][i][a] = "0";
a++;
}
i++;
}
l++;
}
resetGrid();
startGame();
setupBtn(UI.restartBtn);
setupBtn(UI.quitBtn);
setupBtn(UI.skipBtn);
UI.restartBtn.onRelease = function () {
butSound();
resetLevel("user");
};
UI.quitBtn.onRelease = function () {
butSound();
quitGame("user");
};
UI.skipBtn.onRelease = function () {
skipPipe();
};
Frame 28
function loadScores() {
xmlobj.ignoreWhite = true;
xmlobj.onLoad = function (success) {
trace("I am working!");
onFormLoad();
};
xmlobj.load("http://stats.soap.com.au/highscore/highscoreXML.php?gameid=28&count=100");
}
function onFormLoad(string) {
scoreXML = xmlobj.firstChild;
while ((scoreXML != null) && ((scoreXML.nodeType != 1) || (scoreXML.nodeName.toLowerCase() != "game"))) {
scoreXML = scoreXML.nextSibling;
}
_clip.gotoAndPlay("showScores");
showList(scoreXML);
}
function showList(scoreXML) {
trace(scoreXML);
var _local3;
var _local1;
var _local2;
trace("topRow = " + topRow);
if (topRow > 10) {
hideLeft = false;
} else {
hideLeft = true;
}
if (topRow < (totalScores - 9)) {
hideRight = false;
} else {
hideRight = true;
}
totalScores = scoreXML.childNodes.length;
trace("scoreXML.childNodes.length = " + scoreXML.childNodes.length);
if (topRow >= scoreXML.childNodes.length) {
_local2 = null;
} else {
_local2 = scoreXML.childNodes[topRow - 1];
}
_local3 = 0;
while (_local3 < scoreRows.length) {
_local1 = scoreRows[_local3];
trace("cRow = " + _local1);
if (_local2 == null) {
_local1._alpha = 0;
} else {
_local1._alpha = 100;
scoresLoaded = true;
_local1._placeField.text = _local3 + topRow;
_local1._nameField.text = _local2.attributes.pname.toUpperCase();
trace(_local2.attributes.pname.toUpperCase());
var _local4 = parseInt(_local2.attributes.score);
_local1._scoreField.text = terrysTextFunctionClass.processNumber(_local4);
_local1._distanceField.text = _local2.attributes.miscellaneous1;
_local2 = _local2.nextSibling;
}
_local3++;
}
}
openDoors();
currentGamePage = "HIGHSCORES";
showNonGameHUD();
stop();
var scoreRows = [_s1, _s2, _s3, _s4, _s5, _s6, _s7, _s8, _s9, _s10];
var topRow = 1;
var xmlobj = new XML();
var scoreXML;
var scoresLoaded = false;
var scoreItemFadeIndex = 0;
_leftBtn.onRelease = function () {
if (topRow > 10) {
topRow = topRow - 10;
}
showList(scoreXML);
};
_leftBtn.onRollOver = function () {
_leftBtn.Speed = 1;
};
_leftBtn.onRollOut = function () {
_leftBtn.Speed = -1;
};
_rightBtn.onRelease = function () {
if (topRow < 100) {
topRow = topRow + 10;
}
showList(scoreXML);
};
_rightBtn.onRollOver = function () {
_rightBtn.Speed = 1;
};
_rightBtn.onRollOut = function () {
_rightBtn.Speed = -1;
};
loadScores();
delete this.onEnterFrame;
this.onEnterFrame = function () {
_hsTitle._alpha = _hsTitle._alpha + ((100 - _hsTitle._alpha) * 0.25);
_hsHeaderBar._alpha = _hsHeaderBar._alpha + ((100 - _hsHeaderBar._alpha) * 0.25);
if (scoresLoaded) {
_hsLoading._alpha = _hsLoading._alpha + ((-_hsLoading._alpha) * 0.25);
_rowDividers._alpha = _rowDividers._alpha + ((100 - _rowDividers._alpha) * 0.25);
scoreItemFadeIndex = scoreItemFadeIndex + 0.25;
var _local1 = 0;
while (_local1 < scoreRows.length) {
if (scoreItemFadeIndex > _local1) {
scoreRows[_local1]._alpha = scoreRows[_local1]._alpha + ((100 - scoreRows[_local1]._alpha) * 0.25);
}
_local1++;
}
} else {
_hsLoading._alpha = _hsLoading._alpha + ((100 - _hsLoading._alpha) * 0.25);
hideLeft = true;
hideRight = true;
}
if (hideLeft) {
_leftBtn._visible = false;
} else {
_leftBtn._visible = true;
}
if (hideRight) {
_rightBtn._visible = false;
} else {
_rightBtn._visible = true;
}
};
setupBtn(_leftBtn);
setupBtn(_rightBtn);
Frame 29
function testValidName() {
testName = _submitScoreClip.nameInput.text;
error = false;
if (testName == "") {
error = true;
}
if (!error) {
_submitScoreClip.gotoAndStop("submittingScore");
sendUsersScore();
} else {
gs.TweenLite.to(_submitScoreClip.initialsError, 0.5, {_alpha:100});
}
}
function setupSubmitScore() {
_submitScoreClip = scoreSubmitHolder.attachMovie("submitScoreClip", "submitScoreClip", 1006);
_submitScoreClip.initialsError._alpha = 0;
_submitScoreClip.highlightInitText._alpha = 0;
_submitScoreClip.nameInput.onSetFocus = function () {
gs.TweenLite.to(_submitScoreClip.highlightInitText, 0.5, {_alpha:100});
_submitScoreClip.initialsError._alpha = 0;
};
_submitScoreClip.nameInput.onChanged = function () {
_submitScoreClip.nameInput.text = _submitScoreClip.nameInput.text.toUpperCase();
};
_submitScoreClip.nameInput.onKillFocus = function () {
gs.TweenLite.to(_submitScoreClip.highlightInitText, 0.5, {_alpha:0});
};
setupBtn(_submitScoreClip.submitBtn);
_submitScoreClip.submitBtn.onRelease = function () {
testValidName();
};
_submitScoreClip._alpha = 0;
gs.TweenMax.to(_submitScoreClip, 0.5, {_alpha:100, delay:0.5});
var _local1 = setTimeout(initScoreBox, 30);
_submitScoreClip._x = 166;
_submitScoreClip._y = 188;
lastNum = -1;
setupBaseButton(_submitScoreClip.submitBtn);
}
function initScoreBox() {
trace("initScoreBox");
_submitScoreClip.scoreTXT.setNum(score);
_submitScoreClip.scoreTXT.tellMe();
}
function sendUsersScore() {
var _local3 = new LoadVars();
_local3.onLoad = function (success) {
highScoreSendResult(success);
};
var _local2 = new LoadVars();
var _local6 = Math.random() * 100000;
var _local5 = Math.random() * 100000;
var _local4 = ((_local6 + "noemail@www") + _local5) + ".com";
_local2.intGameId = 28;
_local2.strName = testName;
_local2.intScore = score;
_local2.strEmail = _local4;
_local2.strMisc1 = gameLevel;
_local2.sendAndLoad("http://stats.soap.com.au/highscore/engine_mofo_rank.php", _local3, "POST");
}
function highScoreSendResult(_result) {
trace(_result);
if (_result) {
_submitScoreClip.gotoAndStop("success");
gs.TweenMax.to(_submitScoreClip, 0.25, {onComplete:hideNonGameHUD});
gs.TweenMax.to(_submitScoreClip, 1, {onComplete:closeDoors, delay:1.5, overwrite:false});
gs.TweenMax.to(_submitScoreClip, 1, {onComplete:goIntro, delay:3, overwrite:false});
} else {
_submitScoreClip.gotoAndStop("error");
gs.TweenMax.to(_submitScoreClip, 0.25, {onComplete:hideNonGameHUD});
gs.TweenMax.to(_submitScoreClip, 1, {onComplete:closeDoors, delay:1.5, overwrite:false});
gs.TweenMax.to(_submitScoreClip, 1, {onComplete:goIntro, delay:3, overwrite:false});
}
}
openDoors();
score = userScore;
currentGamePage = "GAMEOVER";
_level0.cs.track.event("game_over");
showNonGameHUD();
stop();
_quality = "best";
if (score > yourhigh) {
yourhigh = score;
storage.data.myhighscore = score;
}
this.playBtn.onRelease = function () {
playSound("mouseDown.wav");
removeMovieClip(highHolder);
if (levelsUnlocked > 1) {
gotoAndPlay (23);
} else {
gotoAndPlay (29);
}
};
storage.flush();
setupSubmitScore();
Frame 37
stop();
Frame 38
function testValidName() {
testName = _submitScoreClip.nameInput.text;
error = false;
if (testName == "") {
error = true;
}
if (!error) {
_submitScoreClip.gotoAndStop("submittingScore");
sendUsersScore();
} else {
gs.TweenLite.to(_submitScoreClip.initialsError, 0.5, {_alpha:100});
}
}
function setupSubmitScore() {
_submitScoreClip = scoreSubmitHolder.attachMovie("gameCompleteSubmitScoreClip", "submitScoreClip", 1006);
_submitScoreClip.initialsError._alpha = 0;
_submitScoreClip.nameInput.onSetFocus = function () {
_submitScoreClip.initialsError._alpha = 0;
};
_submitScoreClip.nameInput.onChanged = function () {
_submitScoreClip.nameInput.text = _submitScoreClip.nameInput.text.toUpperCase();
};
setupBtn(_submitScoreClip.submitBtn);
_submitScoreClip.submitBtn.onRelease = function () {
testValidName();
};
_submitScoreClip._alpha = 0;
gs.TweenMax.to(_submitScoreClip, 0.5, {_alpha:100, delay:0.5});
_submitScoreClip._x = 166;
_submitScoreClip._y = 188;
lastNum = -1;
var _local1 = setTimeout(initScoreBox, 30);
setupBaseButton(_submitScoreClip.submitBtn);
}
function sendUsersScore() {
var _local3 = new LoadVars();
_local3.onLoad = function (success) {
highScoreSendResult(success);
};
var _local2 = new LoadVars();
var _local6 = Math.random() * 100000;
var _local5 = Math.random() * 100000;
var _local4 = ((_local6 + "noemail@www") + _local5) + ".com";
_local2.intGameId = 28;
_local2.strName = testName;
_local2.intScore = score;
_local2.strEmail = _local4;
_local2.strMisc1 = gameLevel;
_local2.sendAndLoad("http://stats.soap.com.au/highscore/engine_mofo_rank.php", _local3, "POST");
}
function initScoreBox() {
trace("initScoreBox");
_submitScoreClip.scoreTXT.setNum(score);
_submitScoreClip.scoreTXT.tellMe();
}
function highScoreSendResult(_result) {
trace(_result);
if (_result) {
_submitScoreClip.gotoAndStop("success");
gs.TweenMax.to(_submitScoreClip, 1, {onComplete:closeDoors, delay:1.5});
gs.TweenMax.to(_submitScoreClip, 1, {onComplete:goIntro, delay:3, overwrite:false});
} else {
_submitScoreClip.gotoAndStop("error");
gs.TweenMax.to(_submitScoreClip, 1, {onComplete:closeDoors, delay:1.5});
gs.TweenMax.to(_submitScoreClip, 1, {onComplete:goIntro, delay:3, overwrite:false});
}
}
openDoors();
score = userScore;
currentGamePage = "GAMEOVER";
_level0.cs.track.event("game_completed");
showNonGameHUD();
scoreSubmitHolder.onEnterFrame = function () {
if ((Math.random() * 10) < 1) {
createparticleSpray(Math.random() * 450, Math.random() * 360, 3);
}
};
stop();
_quality = "best";
if (score > yourhigh) {
yourhigh = score;
storage.data.myhighscore = score;
}
this.playBtn.onRelease = function () {
playSound("mouseDown.wav");
removeMovieClip(highHolder);
gotoAndPlay (23);
};
storage.flush();
setupSubmitScore();
Frame 46
stop();
Symbol 587 MovieClip [__Packages.soundManager] Frame 0
class soundManager
{
static var clipRef, mysoundobj;
function soundManager () {
}
static function setClip(_clip) {
clipRef = _clip;
}
static function playSound(_soundLinkageRef) {
mysoundobj = new Sound(clipRef);
mysoundobj.attachSound(_soundLinkageRef);
mysoundobj.start();
}
}
Symbol 588 MovieClip [__Packages.particleClass] Frame 0
class particleClass extends MovieClip
{
var speed, typeOfParticle, rot, clip, locX, locY, remove, life, alphaFade, vx, vy;
function particleClass (_locX, _locY, _type, _speed, _rot, _clip) {
super();
speed = _speed;
typeOfParticle = _type;
rot = _rot;
clip = _clip;
locX = _locX;
locY = _locY;
calculateValues();
remove = false;
life = 50;
alphaFade = 100 / life;
switch (typeOfParticle) {
case P_NORMAL :
life = 25;
alphaFade = 100 / life;
break;
case P_SLOW :
clip.clip.gotoAndStop(Math.floor(Math.random() * 3) + 1);
break;
case P_WANDER :
life = 30;
alphaFade = 100 / life;
break;
case P_SMOKE :
clip._xscale = (clip._yscale = (Math.random() * 60) + 20);
clip._alpha = (Math.random() * 50) + 50;
rot = Math.random() * 360;
break;
case P_STEAM :
life = 25;
alphaFade = 40 / life;
clip._rotation = Math.random() * 360;
clip._alpha = 60;
clip._xscale = (clip._yscale = (Math.random() * 20) + 20);
break;
case P_STEAM2 :
life = 50;
alphaFade = 60 / life;
clip._rotation = Math.random() * 360;
clip._alpha = 60;
clip._xscale = (clip._yscale = (Math.random() * 20) + 20);
}
manageParticle();
}
function getClip() {
return(clip);
}
function getRemove() {
return(remove);
}
function calculateValues() {
var _local2 = (rot / 180) * Math.PI;
vx = Math.cos(_local2) * speed;
vy = Math.sin(_local2) * speed;
if (typeOfParticle != P_STEAM) {
clip._rotation = rot;
}
}
function manageParticle() {
life--;
if (life < 1) {
remove = true;
} else {
switch (typeOfParticle) {
case P_NORMAL :
clip._alpha = clip._alpha - alphaFade;
break;
case P_WANDER :
vy = vy + 0.02;
vy = vy + 0.2;
clip._alpha = clip._alpha - alphaFade;
break;
case P_SLOW :
vx = vx * 0.95;
vy = vy + 0.25;
rot = rot + ((Math.random() * 10) - 5);
clip._alpha = clip._alpha - alphaFade;
break;
case P_SMOKE :
vy = vy + 0.02;
clip._alpha = clip._alpha - alphaFade;
clip._xscale = (clip._yscale = clip._yscale + 1);
break;
case P_STEAM :
vy = vy - 0.02;
clip._alpha = clip._alpha - alphaFade;
clip._xscale = (clip._yscale = clip._yscale + 1);
break;
case P_STEAM2 :
vy = vy - 0.02;
clip._alpha = clip._alpha - alphaFade;
clip._xscale = (clip._yscale = clip._yscale + 1);
}
clip._x = locX;
clip._y = locY;
locX = locX + vx;
locY = locY + vy;
if (locX > 450) {
remove = true;
}
}
}
var P_NORMAL = 1;
var P_WANDER = 2;
var P_SLOW = 3;
var P_SMOKE = 4;
var P_STEAM = 5;
var P_STEAM2 = 7;
}
Symbol 589 MovieClip [__Packages.gs.TweenLite] Frame 0
class gs.TweenLite
{
static var _e, _classInitted, _curTime, _gc, overwriteManager, _listening;
var tweenID, endTargetID, vars, duration, delay, _active, target, tweens, _subTweens, _hst, _initted, initTime, startTime, _hasUpdate;
function TweenLite ($target, $duration, $vars) {
if ((_e._visible != false) || (!_classInitted)) {
_curTime = getTimer();
var _local3 = 999;
while (_root.getInstanceAtDepth(_local3) != undefined) {
_local3++;
}
_e = _root.createEmptyMovieClip("__tweenLite_mc", _local3);
_e._visible = false;
clearInterval(_gc);
_gc = setInterval(killGarbage, 2000);
_e.onEnterFrame = executeAll;
if (overwriteManager == undefined) {
overwriteManager = {mode:1, enabled:false};
}
_classInitted = true;
}
_cnt++;
tweenID = "tw" + _cnt;
endTargetID = getID($target, true);
var _local6 = (($vars.overwrite == undefined) ? (overwriteManager.mode) : (Number($vars.overwrite)));
if ((_local6 == 1) && ($target != undefined)) {
delete _all[endTargetID];
_all[endTargetID] = {info:[$target, endTargetID]};
}
_all[endTargetID][tweenID] = this;
vars = $vars;
duration = $duration || 0.001;
delay = $vars.delay || 0;
_active = ($duration == 0) && (delay == 0);
target = $target;
if (typeof(vars.ease) != "function") {
vars.ease = defaultEase;
}
if (vars.easeParams != undefined) {
vars.proxiedEase = vars.ease;
vars.ease = easeProxy;
}
if (typeof(vars.autoAlpha) == "number") {
vars._alpha = vars.autoAlpha;
vars._visible = vars._alpha > 0;
}
tweens = [];
_subTweens = [];
_hst = (_initted = false);
initTime = _curTime;
if (_active || ((vars.runBackwards == true) && (vars.renderOnStart != true))) {
initTweenVals();
startTime = _curTime;
if (_active) {
render(startTime + 1);
} else {
render(startTime);
}
if ((vars._visible != undefined) && (vars.runBackwards == true)) {
target._visible = vars._visible;
}
}
if ((!_active) && (!_listening)) {
_listening = true;
}
}
function initTweenVals($hrp, $reservedProps) {
var _local9 = typeof(target) == "movieclip";
var _local3;
var _local2;
if (($hrp != true) && (overwriteManager.enabled)) {
overwriteManager.manageOverwrites(vars, _all[endTargetID]);
}
if (target instanceof Array) {
var _local5 = vars.endArray || ([]);
_local2 = 0;
while (_local2 < _local5.length) {
if ((target[_local2] != _local5[_local2]) && (target[_local2] != undefined)) {
tweens[tweens.length] = {o:target, p:_local2.toString(), s:target[_local2], c:_local5[_local2] - target[_local2], name:_local2.toString()};
}
_local2++;
}
} else {
if (((vars.tint != undefined) || (vars.removeTint == true)) && (_local9 || (target instanceof TextField))) {
var _local14 = new Color(target);
var _local11 = vars._alpha;
if (_local11 != undefined) {
delete vars._alpha;
} else {
_local11 = target._alpha;
}
if (((vars.removeTint == true) || (vars.tint == null)) || (vars.tint == "")) {
addSubTween("tint", tintProxy, _local14.getTransform(), {rb:0, gb:0, bb:0, ab:0, ra:_local11, ga:_local11, ba:_local11, aa:_local11}, {color:_local14});
} else {
addSubTween("tint", tintProxy, _local14.getTransform(), {rb:vars.tint >> 16, gb:(vars.tint >> 8) & 255, bb:vars.tint & 255, ra:0, ga:0, ba:0, aa:_local11}, {color:_local14});
}
}
if ((vars.frame != undefined) && (_local9)) {
addSubTween("frame", frameProxy, {frame:target._currentframe}, {frame:vars.frame}, {mc:target});
}
if ((vars.volume != undefined) && (_local9 || (target instanceof Sound))) {
var _local15;
if (_local9) {
_local15 = new Sound(target);
} else {
_local15 = Sound(target);
}
addSubTween("volume", volumeProxy, {volume:_local15.getVolume()}, {volume:vars.volume}, {sound:_local15});
}
for (_local3 in vars) {
if (((((((((((((((((((_local3 == "ease") || (_local3 == "delay")) || (_local3 == "overwrite")) || (_local3 == "onComplete")) || (_local3 == "onCompleteParams")) || (_local3 == "onCompleteScope")) || (_local3 == "runBackwards")) || (_local3 == "onUpdate")) || (_local3 == "onUpdateParams")) || (_local3 == "onUpdateScope")) || (_local3 == "persist")) || (_local3 == "volume")) || (_local3 == "onStart")) || (_local3 == "onStartParams")) || (_local3 == "onStartScope")) || (_local3 == "renderOnStart")) || (_local3 == "proxiedEase")) || (_local3 == "easeParams")) || ($hrp && ($reservedProps.indexOf((" " + _local3) + " ") != -1))) {
} else if ((!(_local9 && (((((_local3 == "_visible") || (_local3 == "autoAlpha")) || (_local3 == "tint")) || (_local3 == "removeTint")) || (_local3 == "frame")))) && (target[_local3] != undefined)) {
if (typeof(vars[_local3]) == "number") {
tweens[tweens.length] = {o:target, p:_local3, s:target[_local3], c:vars[_local3] - target[_local3], name:_local3};
} else {
tweens[tweens.length] = {o:target, p:_local3, s:target[_local3], c:Number(vars[_local3]), name:_local3};
}
}
}
}
if (vars.runBackwards == true) {
var _local4;
_local2 = tweens.length - 1;
while (_local2 > -1) {
_local4 = tweens[_local2];
_local4.s = _local4.s + _local4.c;
_local4.c = _local4.c * -1;
_local2--;
}
}
if (vars._visible == true) {
target._visible = true;
}
if (vars.onUpdate != null) {
_hasUpdate = true;
}
_initted = true;
}
function addSubTween($name, $proxy, $target, $props, $info) {
var _local7 = {name:$name, proxy:$proxy, target:$target, info:$info};
_subTweens[_subTweens.length] = _local7;
for (var _local10 in $props) {
if (typeof($props[_local10]) == "number") {
tweens[tweens.length] = {o:$target, p:_local10, s:$target[_local10], c:$props[_local10] - $target[_local10], sub:_local7, name:$name};
} else {
tweens[tweens.length] = {o:$target, p:_local10, s:$target[_local10], c:Number($props[_local10]), sub:_local7, name:$name};
}
}
_hst = true;
}
static function to($target, $duration, $vars) {
return(new gs.TweenLite($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenLite($target, $duration, $vars));
}
static function delayedCall($delay, $onComplete, $onCompleteParams, $onCompleteScope) {
return(new gs.TweenLite($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, onCompleteScope:$onCompleteScope, overwrite:0}));
}
function render($t) {
var _local5 = ($t - startTime) / 1000;
var _local4;
var _local3;
var _local2;
if (_local5 >= duration) {
_local5 = duration;
_local4 = 1;
} else {
_local4 = vars.ease(_local5, 0, 1, duration);
}
_local2 = tweens.length - 1;
while (_local2 > -1) {
_local3 = tweens[_local2];
_local3.o[_local3.p] = _local3.s + (_local4 * _local3.c);
_local2--;
}
if (_hst) {
_local2 = _subTweens.length - 1;
while (_local2 > -1) {
_subTweens[_local2].proxy(_subTweens[_local2]);
_local2--;
}
}
if (_hasUpdate) {
vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams);
}
if (_local5 == duration) {
complete(true);
}
}
static function executeAll() {
var _local5 = (_curTime = getTimer());
if (_listening) {
var _local2 = _all;
var _local1;
var _local4;
var _local3;
for (_local3 in _local2) {
for (_local4 in _local2[_local3]) {
_local1 = _local2[_local3][_local4];
if (_local1.active) {
_local1.render(_local5);
}
}
}
}
}
static function removeTween($t) {
_all[$t.endTargetID][$t.tweenID] = {active:false};
delete _all[$t.endTargetID][$t.tweenID];
}
static function killTweensOf($tg, $complete) {
var _local3 = getID($tg, true);
if ($complete) {
var _local1 = _all[_local3];
for (var _local2 in _local1) {
_local1[_local2].complete(false);
}
}
delete _all[_local3];
}
function complete($skipRender) {
if ($skipRender != true) {
if (!_initted) {
initTweenVals();
}
startTime = _curTime - (duration * 1000);
render(_curTime);
return(undefined);
}
if (vars._visible != undefined) {
if ((vars.autoAlpha != undefined) && (target._alpha == 0)) {
target._visible = false;
} else if (vars.runBackwards != true) {
target._visible = vars._visible;
}
}
if (vars.onComplete) {
vars.onComplete.apply(vars.onCompleteScope, vars.onCompleteParams);
}
if (vars.persist != true) {
removeTween(this);
}
}
function killVars($vars) {
if (overwriteManager.enabled) {
overwriteManager.killVars($vars, vars, tweens, _subTweens, []);
}
}
static function getID($tg, $lookup) {
var _local3;
if ($lookup) {
var _local1 = _all;
if (typeof($tg) == "movieclip") {
if (_local1[String($tg)] != undefined) {
return(String($tg));
}
_local3 = String($tg);
_all[_local3] = {info:[$tg, _local3]};
return(_local3);
}
for (var _local4 in _local1) {
if (_local1[_local4].info[0] == $tg) {
return(_local4);
}
}
}
_cnt++;
_local3 = "t" + _cnt;
_all[_local3] = {info:[$tg, _local3]};
return(_local3);
}
static function killGarbage() {
if (_listening) {
var _local1 = _all;
var _local2;
var _local3;
var _local5;
var _local6 = 0;
var _local4 = 0;
for (_local3 in _local1) {
_local4 = 0;
for (_local5 in _local1[_local3]) {
_local2 = _local1[_local3][_local5];
if (_local2.tweens == undefined) {
} else {
_local4++;
}
}
if (_local4 == 0) {
delete _local1[_local3];
} else {
_local6++;
}
}
if (_local6 == 0) {
_listening = false;
}
}
}
static function defaultEase($t, $b, $c, $d) {
$t = $t / $d;
return((((-$c) * $t) * ($t - 2)) + $b);
}
function easeProxy($t, $b, $c, $d) {
var _local3 = this;
return(_local3.proxiedEase.apply(null, arguments.concat(_local3.easeParams)));
}
static function tintProxy($o) {
$o.info.color.setTransform($o.target);
}
static function frameProxy($o) {
$o.info.mc.gotoAndStop(Math.round($o.target.frame));
}
static function volumeProxy($o) {
$o.info.sound.setVolume($o.target.volume);
}
function get active() {
if (_active) {
return(true);
}
if (((_curTime - initTime) / 1000) > delay) {
_active = true;
startTime = initTime + (delay * 1000);
if (!_initted) {
initTweenVals();
} else if (vars._visible != undefined) {
target._visible = true;
}
if (duration == 0.001) {
startTime = startTime - 1;
}
if (vars.onStart != undefined) {
vars.onStart.apply(vars.onStartScope, vars.onStartParams);
}
return(true);
}
return(false);
}
static var version = 8.02;
static var killDelayedCallsTo = killTweensOf;
static var _all = new Object();
static var _cnt = -16000;
static var _hrp = false;
}
Symbol 590 MovieClip [__Packages.gs.TweenFilterLite] Frame 0
class gs.TweenFilterLite extends gs.TweenLite
{
var vars, endTargetID, _clrsa, _filters, _matrix, target, _cmf, _endMatrix, tweens, startTime, duration, _hst, _subTweens, _hasUpdate, complete;
function TweenFilterLite ($target, $duration, $vars) {
super($target, $duration, $vars);
if (gs.TweenLite.version < 8.02) {
trace("TweenFilterLite error: Please update your TweenLite class or try clearing your ASO files. TweenFilterLite requires a more recent version. Download updates at http://www.TweenLite.com.");
}
if ($vars.type != undefined) {
trace(("TweenFilterLite warning: " + $target) + " appears to be using deprecated syntax. Please update to the new syntax. See http://www.TweenFilterLite.com for details.");
}
}
static function to($target, $duration, $vars) {
return(new gs.TweenFilterLite($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenFilterLite($target, $duration, $vars));
}
function initTweenVals($hrp, $reservedProps) {
if (($hrp != true) && (gs.TweenLite.overwriteManager.enabled)) {
gs.TweenLite.overwriteManager.manageOverwrites(vars, gs.TweenLite._all[endTargetID]);
}
_clrsa = [];
_filters = [];
_matrix = _idMatrix.slice();
$reservedProps = $reservedProps || "";
$reservedProps = $reservedProps + " blurFilter glowFilter colorMatrixFilter dropShadowFilter bevelFilter ";
if ((typeof(target) == "movieclip") || (target instanceof TextField)) {
var _local4;
var _local5;
if (vars.blurFilter != undefined) {
_local5 = vars.blurFilter;
addFilter("blurFilter", _local5, flash.filters.BlurFilter, ["blurX", "blurY", "quality"], new flash.filters.BlurFilter(0, 0, _local5.quality || 2));
}
if (vars.glowFilter != undefined) {
_local5 = vars.glowFilter;
addFilter("glowFilter", _local5, flash.filters.GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength", "inner", "knockout"], new flash.filters.GlowFilter(16777215, 0, 0, 0, _local5.strength || 1, _local5.quality || 2, _local5.inner, _local5.knockout));
}
if (vars.colorMatrixFilter != undefined) {
_local5 = vars.colorMatrixFilter;
var _local12 = addFilter("colorMatrixFilter", _local5, flash.filters.ColorMatrixFilter, [], new flash.filters.ColorMatrixFilter(_matrix));
_cmf = _local12.filter;
_matrix = _cmf.matrix;
if ((_local5.matrix != undefined) && (_local5.matrix instanceof Array)) {
_endMatrix = _local5.matrix;
} else {
if (_local5.relative == true) {
_endMatrix = _matrix.slice();
} else {
_endMatrix = _idMatrix.slice();
}
_endMatrix = setBrightness(_endMatrix, _local5.brightness);
_endMatrix = setContrast(_endMatrix, _local5.contrast);
_endMatrix = setHue(_endMatrix, _local5.hue);
_endMatrix = setSaturation(_endMatrix, _local5.saturation);
_endMatrix = setThreshold(_endMatrix, _local5.threshold);
if (!isNaN(_local5.colorize)) {
_endMatrix = colorize(_endMatrix, _local5.colorize, _local5.amount);
} else if (!isNaN(_local5.color)) {
_endMatrix = colorize(_endMatrix, _local5.color, _local5.amount);
}
}
_local4 = 0;
while (_local4 < _endMatrix.length) {
if ((_matrix[_local4] != _endMatrix[_local4]) && (_matrix[_local4] != undefined)) {
tweens[tweens.length] = {o:_matrix, p:_local4.toString(), s:_matrix[_local4], c:_endMatrix[_local4] - _matrix[_local4], name:"colorMatrixFilter"};
}
_local4++;
}
}
if (vars.dropShadowFilter != undefined) {
_local5 = vars.dropShadowFilter;
addFilter("dropShadowFilter", _local5, flash.filters.DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength", "inner", "knockout", "hideObject"], new flash.filters.DropShadowFilter(0, 45, 0, 0, 0, 0, 1, _local5.quality || 2, _local5.inner, _local5.knockout, _local5.hideObject));
}
if (vars.bevelFilter != undefined) {
_local5 = vars.bevelFilter;
addFilter("bevelFilter", _local5, flash.filters.BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new flash.filters.BevelFilter(0, 0, 16777215, 0.5, 0, 0.5, 2, 2, 0, _local5.quality || 2));
}
if (vars.runBackwards == true) {
var _local3;
_local4 = 0;
while (_local4 < _clrsa.length) {
_local3 = _clrsa[_local4];
_local3.sr = _local3.sr + _local3.cr;
_local3.cr = _local3.cr * -1;
_local3.sg = _local3.sg + _local3.cg;
_local3.cg = _local3.cg * -1;
_local3.sb = _local3.sb + _local3.cb;
_local3.cb = _local3.cb * -1;
_local3.f[_local3.p] = ((_local3.sr << 16) | (_local3.sg << 8)) | _local3.sb;
_local4++;
}
}
super.initTweenVals(true, $reservedProps);
} else {
super.initTweenVals($hrp, $reservedProps);
}
}
function addFilter($name, $fv, $filterType, $props, $defaultFilter) {
var _local5 = {type:$filterType, name:$name};
var _local8 = target.filters;
var _local3;
var _local2;
var _local9;
var _local4;
var _local7;
_local3 = 0;
while (_local3 < _local8.length) {
if (_local8[_local3] instanceof $filterType) {
_local5.filter = _local8[_local3];
break;
}
_local3++;
}
if (_local5.filter == undefined) {
_local5.filter = $defaultFilter;
_local8[_local8.length] = _local5.filter;
target.filters = _local8;
}
_local3 = 0;
while (_local3 < $props.length) {
_local2 = $props[_local3];
if ($fv[_local2] != undefined) {
if (((_local2 == "color") || (_local2 == "highlightColor")) || (_local2 == "shadowColor")) {
_local4 = HEXtoRGB(_local5.filter[_local2]);
_local7 = HEXtoRGB($fv[_local2]);
_clrsa[_clrsa.length] = {f:_local5.filter, p:_local2, sr:_local4.rb, cr:_local7.rb - _local4.rb, sg:_local4.gb, cg:_local7.gb - _local4.gb, sb:_local4.bb, cb:_local7.bb - _local4.bb};
} else if ((((_local2 == "quality") || (_local2 == "inner")) || (_local2 == "knockout")) || (_local2 == "hideObject")) {
_local5.filter[_local2] = $fv[_local2];
} else {
if (typeof($fv[_local2]) == "number") {
_local9 = $fv[_local2] - _local5.filter[_local2];
} else {
_local9 = Number($fv[_local2]);
}
tweens[tweens.length] = {o:_local5.filter, p:_local2, s:_local5.filter[_local2], c:_local9, name:$name};
}
}
_local3++;
}
_filters[_filters.length] = _local5;
_hf = true;
return(_local5);
}
function render($t) {
var _local10 = ($t - startTime) / 1000;
var _local6;
var _local3;
var _local2;
if (_local10 >= duration) {
_local10 = duration;
}
_local6 = vars.ease(_local10, 0, 1, duration);
_local2 = tweens.length - 1;
while (_local2 > -1) {
_local3 = tweens[_local2];
_local3.o[_local3.p] = _local3.s + (_local6 * _local3.c);
_local2--;
}
if (_hf) {
var _local4;
var _local8;
var _local9;
var _local7;
_local2 = _clrsa.length - 1;
while (_local2 > -1) {
_local3 = _clrsa[_local2];
_local8 = _local3.sr + (_local6 * _local3.cr);
_local9 = _local3.sg + (_local6 * _local3.cg);
_local7 = _local3.sb + (_local6 * _local3.cb);
_local3.f[_local3.p] = ((_local8 << 16) | (_local9 << 8)) | _local7;
_local2--;
}
if (_cmf) {
_cmf.matrix = _matrix;
}
var _local5 = target.filters;
_local2 = 0;
while (_local2 < _filters.length) {
_local4 = _local5.length - 1;
while (_local4 > -1) {
if (_local5[_local4] instanceof _filters[_local2].type) {
_local5.splice(_local4, 1, _filters[_local2].filter);
break;
}
_local4--;
}
_local2++;
}
target.filters = _local5;
}
if (_hst) {
_local2 = _subTweens.length - 1;
while (_local2 > -1) {
_subTweens[_local2].proxy(_subTweens[_local2]);
_local2--;
}
}
if (_hasUpdate) {
vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams);
}
if (_local10 == duration) {
complete(true);
}
}
function killVars($vars) {
if (gs.TweenLite.overwriteManager.enabled) {
gs.TweenLite.overwriteManager.killVars($vars, vars, tweens, _subTweens, _filters);
}
}
function HEXtoRGB($n) {
return({rb:$n >> 16, gb:($n >> 8) & 255, bb:$n & 255});
}
static function colorize($m, $color, $amount) {
if (($color == undefined) || (isNaN($color))) {
return($m);
}
if ($amount == undefined) {
$amount = 1;
}
var _local3 = (($color >> 16) & 255) / 255;
var _local5 = (($color >> 8) & 255) / 255;
var _local2 = ($color & 255) / 255;
var _local4 = 1 - $amount;
var _local7 = [_local4 + (($amount * _local3) * _lumR), ($amount * _local3) * _lumG, ($amount * _local3) * _lumB, 0, 0, ($amount * _local5) * _lumR, _local4 + (($amount * _local5) * _lumG), ($amount * _local5) * _lumB, 0, 0, ($amount * _local2) * _lumR, ($amount * _local2) * _lumG, _local4 + (($amount * _local2) * _lumB), 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local7, $m));
}
static function setThreshold($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
var _local2 = [_lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n, 0, 0, 0, 1, 0];
return(applyMatrix(_local2, $m));
}
static function setHue($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = $n * (Math.PI/180);
var _local1 = Math.cos($n);
var _local2 = Math.sin($n);
var _local4 = [(_lumR + (_local1 * (1 - _lumR))) + (_local2 * (-_lumR)), (_lumG + (_local1 * (-_lumG))) + (_local2 * (-_lumG)), (_lumB + (_local1 * (-_lumB))) + (_local2 * (1 - _lumB)), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * 0.143), (_lumG + (_local1 * (1 - _lumG))) + (_local2 * 0.14), (_lumB + (_local1 * (-_lumB))) + (_local2 * -0.283), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * (-(1 - _lumR))), (_lumG + (_local1 * (-_lumG))) + (_local2 * _lumG), (_lumB + (_local1 * (1 - _lumB))) + (_local2 * _lumB), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return(applyMatrix(_local4, $m));
}
static function setBrightness($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = ($n * 100) - 100;
return(applyMatrix([1, 0, 0, 0, $n, 0, 1, 0, 0, $n, 0, 0, 1, 0, $n, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], $m));
}
static function setSaturation($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
var _local4 = 1 - $n;
var _local3 = _local4 * _lumR;
var _local5 = _local4 * _lumG;
var _local2 = _local4 * _lumB;
var _local6 = [_local3 + $n, _local5, _local2, 0, 0, _local3, _local5 + $n, _local2, 0, 0, _local3, _local5, _local2 + $n, 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local6, $m));
}
static function setContrast($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = $n + 0.01;
var _local2 = [$n, 0, 0, 0, 128 * (1 - $n), 0, $n, 0, 0, 128 * (1 - $n), 0, 0, $n, 0, 128 * (1 - $n), 0, 0, 0, 1, 0];
return(applyMatrix(_local2, $m));
}
static function applyMatrix($m, $m2) {
if (((($m == undefined) || (!($m instanceof Array))) || ($m2 == undefined)) || (!($m2 instanceof Array))) {
return($m2);
}
var _local7 = [];
var _local2 = 0;
var _local5 = 0;
var _local6;
var _local1;
_local6 = 0;
while (_local6 < 4) {
_local1 = 0;
while (_local1 < 5) {
if (_local1 == 4) {
_local5 = $m[_local2 + 4];
} else {
_local5 = 0;
}
_local7[_local2 + _local1] = (((($m[_local2] * $m2[_local1]) + ($m[_local2 + 1] * $m2[_local1 + 5])) + ($m[_local2 + 2] * $m2[_local1 + 10])) + ($m[_local2 + 3] * $m2[_local1 + 15])) + _local5;
_local1++;
}
_local2 = _local2 + 5;
_local6++;
}
return(_local7);
}
static var version = 8.02;
static var delayedCall = gs.TweenLite.delayedCall;
static var killTweensOf = gs.TweenLite.killTweensOf;
static var killDelayedCallsTo = gs.TweenLite.killDelayedCallsTo;
static var _idMatrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
static var _lumR = 0.212671;
static var _lumG = 0.71516;
static var _lumB = 0.072169;
var _hf = false;
}
Symbol 591 MovieClip [__Packages.gs.OverwriteManager] Frame 0
class gs.OverwriteManager
{
static var mode, enabled;
function OverwriteManager () {
}
static function init($mode) {
if (gs.TweenLite.version < 8.01) {
trace("TweenLite warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com.");
}
gs.TweenLite.overwriteManager = gs.OverwriteManager;
mode = (($mode == undefined) ? 2 : ($mode));
enabled = true;
return(mode);
}
static function manageOverwrites($vars, $objTweens) {
var _local5 = (($vars.overwrite == undefined) ? (mode) : (Number($vars.overwrite)));
if (_local5 < 2) {
return(undefined);
}
var _local1;
if (_local5 == AUTO) {
var _local3 = {};
for (_local1 in $vars) {
if ((((((((((((((((((_local1 == "ease") || (_local1 == "delay")) || (_local1 == "overwrite")) || (_local1 == "onComplete")) || (_local1 == "onCompleteParams")) || (_local1 == "runBackwards")) || (_local1 == "persist")) || (_local1 == "onUpdate")) || (_local1 == "onUpdateParams")) || (_local1 == "onStart")) || (_local1 == "onStartParams")) || (_local1 == "renderOnStart")) || (_local1 == "proxiedEase")) || (_local1 == "easeParams")) || (_local1 == "onCompleteAll")) || (_local1 == "onCompleteAllParams")) || (_local1 == "yoyo")) || (_local1 == "loop")) {
} else {
_local3[_local1] = 1;
}
}
for (_local1 in $objTweens) {
if ((_local1 != "info") && ($objTweens[_local1].tweens.length != 0)) {
$objTweens[_local1].killVars(_local3);
}
}
} else {
for (_local1 in $objTweens) {
if ((_local1 != "info") && ($objTweens[_local1].tweens.length != 0)) {
delete $objTweens[_local1];
}
}
}
}
static function killVars($killVars, $vars, $tweens, $subTweens, $filters) {
var _local1 = $subTweens.length - 1;
while (_local1 > -1) {
if ($killVars[$subTweens[_local1].name] != undefined) {
$subTweens.splice(_local1, 1);
}
_local1--;
}
_local1 = $tweens.length - 1;
while (_local1 > -1) {
if ($killVars[$tweens[_local1].name] != undefined) {
$tweens.splice(_local1, 1);
}
_local1--;
}
_local1 = $filters.length - 1;
while (_local1 > -1) {
if ($killVars[$filters[_local1].name] != undefined) {
$filters.splice(_local1, 1);
}
_local1--;
}
for (var _local6 in $killVars) {
delete $vars[_local6];
}
}
static var version = 0.91;
static var NONE = 0;
static var ALL = 1;
static var AUTO = 2;
static var CONCURRENT = 3;
}
Symbol 592 MovieClip [__Packages.gs.TweenMax] Frame 0
class gs.TweenMax extends gs.TweenFilterLite
{
var _pauseTime, _originalEase, vars, _thisReverseEase, endTargetID, target, addSubTween, _active, initTime, startTime, delay, duration, render, _initted, tweens, _subTweens, killVars;
function TweenMax ($target, $duration, $vars) {
super($target, $duration, $vars);
_pauseTime = null;
_originalEase = vars.ease;
_thisReverseEase = mx.utils.Delegate.create(this, reverseEase);
if ((vars.yoyo == true) || (vars.loop == true)) {
vars.persist = true;
}
if (gs.TweenFilterLite.version < 8.02) {
trace("TweenMax error! Please update your TweenFilterLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com.");
}
}
function initTweenVals($hrp, $reservedProps) {
$reservedProps = $reservedProps || "";
$reservedProps = $reservedProps + " hexColors bezier bezierThrough orientToBezier quaternions onCompleteAll onCompleteAllParams yoyo loop ";
var _local3;
var _local4;
var _local15;
var _local13;
var _local5;
var _local9 = bezierProxy;
if (($hrp != true) && (gs.TweenLite.overwriteManager.enabled)) {
gs.TweenLite.overwriteManager.manageOverwrites(vars, gs.TweenLite._all[endTargetID]);
}
if (vars.orientToBezier == true) {
vars.orientToBezier = [["_x", "_y", "_rotation", 0]];
_local9 = bezierProxy2;
} else if (vars.orientToBezier instanceof Array) {
_local9 = bezierProxy2;
}
if (vars.bezier != undefined) {
_local13 = {};
_local5 = vars.bezier;
_local4 = 0;
while (_local4 < _local5.length) {
for (_local3 in _local5[_local4]) {
if (_local13[_local3] == undefined) {
_local13[_local3] = [target[_local3]];
}
if (typeof(_local5[_local4][_local3]) == "number") {
_local13[_local3].push(_local5[_local4][_local3]);
} else {
_local13[_local3].push(target[_local3] + Number(_local5[_local4][_local3]));
}
}
_local4++;
}
for (_local3 in _local13) {
if (typeof(vars[_local3]) == "number") {
_local13[_local3].push(vars[_local3]);
} else {
_local13[_local3].push(target[_local3] + Number(vars[_local3]));
}
delete vars[_local3];
}
addSubTween("bezier", _local9, {t:0}, {t:1}, {props:parseBeziers(_local13, false), target:target, orientToBezier:vars.orientToBezier});
}
if (vars.bezierThrough != undefined) {
_local13 = {};
_local5 = vars.bezierThrough;
_local4 = 0;
while (_local4 < _local5.length) {
for (_local3 in _local5[_local4]) {
if (_local13[_local3] == undefined) {
_local13[_local3] = [target[_local3]];
}
if (typeof(_local5[_local4][_local3]) == "number") {
_local13[_local3].push(_local5[_local4][_local3]);
} else {
_local13[_local3].push(target[_local3] + Number(_local5[_local4][_local3]));
}
}
_local4++;
}
for (_local3 in _local13) {
if (typeof(vars[_local3]) == "number") {
_local13[_local3].push(vars[_local3]);
} else {
_local13[_local3].push(target[_local3] + Number(vars[_local3]));
}
delete vars[_local3];
}
addSubTween("bezierThrough", _local9, {t:0}, {t:1}, {props:parseBeziers(_local13, true), target:target, orientToBezier:vars.orientToBezier});
}
if ((vars.hexColors != undefined) && (typeof(vars.hexColors) == "object")) {
for (_local3 in vars.hexColors) {
addSubTween("hexColors", hexColorsProxy, {r:target[_local3] >> 16, g:(target[_local3] >> 8) & 255, b:target[_local3] & 255}, {r:vars.hexColors[_local3] >> 16, g:(vars.hexColors[_local3] >> 8) & 255, b:vars.hexColors[_local3] & 255}, {prop:_local3, target:target});
}
}
super.initTweenVals(true, $reservedProps);
}
function pause() {
if (_pauseTime == null) {
_pauseTime = gs.TweenLite._curTime;
_active = false;
}
}
function resume() {
if (_pauseTime != null) {
var _local2 = gs.TweenLite._curTime - _pauseTime;
initTime = initTime + _local2;
if (startTime != undefined) {
startTime = startTime + _local2;
}
_pauseTime = null;
if (((gs.TweenLite._curTime - initTime) / 1000) > delay) {
_active = true;
}
}
}
function restart() {
progress = (0);
resume();
}
function reverse($adjustDuration) {
vars.ease = ((vars.ease == _originalEase) ? (_thisReverseEase) : (_originalEase));
if (($adjustDuration != false) && (gs.TweenLite._curTime > startTime)) {
startTime = gs.TweenLite._curTime - (((1 - progress) * duration) * 1000);
initTime = startTime - (delay * 1000);
}
}
function reverseEase($t, $b, $c, $d) {
return(_originalEase($d - $t, $b, $c, $d));
}
function complete($skipRender) {
super.complete($skipRender);
if ((vars.yoyo == true) || (vars.loop == true)) {
if (vars.yoyo == true) {
reverse(false);
}
startTime = gs.TweenLite._curTime;
initTime = startTime - (delay * 1000);
render(gs.TweenLite._curTime);
} else if (vars.persist == true) {
_pauseTime = gs.TweenLite._curTime;
_active = false;
}
}
function invalidate() {
if (_initted) {
var _local2 = progress;
progress = (0);
tweens = [];
_subTweens = [];
initTweenVals();
if (_local2 != 0) {
progress = (_local2);
}
}
}
function killProperties($names) {
var _local4 = {};
var _local2;
_local2 = $names.length - 1;
while (_local2 > -1) {
if (vars[$names[_local2]] != undefined) {
_local4[$names[_local2]] = 1;
}
_local2--;
}
killVars(_local4);
}
static function to($target, $duration, $vars) {
return(new gs.TweenMax($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenMax($target, $duration, $vars));
}
static function allTo($targets, $duration, $vars) {
if ($targets.length == 0) {
return([]);
}
var _local4;
var _local3;
var _local1;
var _local10;
var _local7;
var _local5 = [];
var _local9 = $vars.delayIncrement || 0;
delete $vars.delayIncrement;
if ($vars.onCompleteAll == undefined) {
_local7 = $vars;
} else {
_local7 = {};
for (_local1 in $vars) {
_local7[_local1] = $vars[_local1];
}
_local7.onCompleteParams = [[$vars.onComplete, $vars.onCompleteAll], [$vars.onCompleteParams, $vars.onCompleteAllParams], [$vars.onCompleteScope, $vars.onCompleteAllScope]];
_local7.onComplete = callbackProxy;
delete $vars.onCompleteAll;
}
delete $vars.onCompleteAllParams;
delete $vars.onCompleteAllScope;
if (_local9 == 0) {
_local5[_local5.length] = new gs.TweenMax($targets[0], $duration, _local7);
_local4 = 1;
while (_local4 < $targets.length) {
_local3 = {};
for (_local1 in $vars) {
_local3[_local1] = $vars[_local1];
}
_local5[_local5.length] = new gs.TweenMax($targets[_local4], $duration, _local3);
_local4++;
}
} else {
_local10 = $vars.delay || 0;
_local4 = 0;
while (_local4 < ($targets.length - 1)) {
_local3 = {};
for (_local1 in $vars) {
_local3[_local1] = $vars[_local1];
}
_local3.delay = _local10 + (_local4 * _local9);
_local5[_local5.length] = new gs.TweenMax($targets[_local4], $duration, _local3);
_local4++;
}
_local7.delay = _local10 + (($targets.length - 1) * _local9);
_local5[_local5.length] = new gs.TweenMax($targets[$targets.length - 1], $duration, _local7);
}
return(_local5);
}
static function allFrom($targets, $duration, $vars) {
$vars.runBackwards = true;
return(allTo($targets, $duration, $vars));
}
static function callbackProxy($functions, $params, $scopes) {
var _local1 = 0;
while (_local1 < $functions.length) {
if ($functions[_local1] != undefined) {
$functions[_local1].apply($scopes[_local1], $params[_local1]);
}
_local1++;
}
}
static function sequence($target, $tweens) {
var _local1 = 0;
while (_local1 < $tweens.length) {
$tweens[_local1].target = $target;
_local1++;
}
return(multiSequence($tweens));
}
static function multiSequence($tweens) {
var _local3 = [];
var _local11 = [];
var _local14 = gs.TweenLite.overwriteManager.mode;
var _local12 = 0;
var _local4;
var _local6;
var _local9;
var _local10;
var _local7;
var _local1;
var _local5;
var _local8;
var _local2;
_local7 = 0;
while (_local7 < $tweens.length) {
_local4 = $tweens[_local7];
_local10 = _local4.time || 0;
_local1 = {};
for (_local5 in _local4) {
_local1[_local5] = _local4[_local5];
}
delete _local1.time;
_local9 = _local1.delay || 0;
_local1.delay = _local12 + _local9;
_local6 = _local1.target;
delete _local1.target;
if (_local14 == 1) {
_local8 = false;
_local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2] == _local6) {
_local8 = true;
break;
}
_local2++;
}
if ((!_local8) && (_local1.overwrite == undefined)) {
_local3[_local3.length] = _local6;
} else {
_local1.overwrite = 2;
}
}
_local11[_local11.length] = new gs.TweenMax(_local6, _local10, _local1);
_local12 = _local12 + (_local10 + _local9);
_local7++;
}
return(_local11);
}
static function delayedCall($delay, $onComplete, $onCompleteParams, $onCompleteScope) {
return(new gs.TweenMax($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, onCompleteScope:$onCompleteScope, overwrite:0}));
}
static function parseBeziers($props, $through) {
var _local2;
var _local1;
var _local3;
var _local4;
var _local6 = {};
if ($through) {
for (_local4 in $props) {
_local1 = $props[_local4];
_local3 = [];
_local6[_local4] = _local3;
if (_local1.length > 2) {
_local3[_local3.length] = {s:_local1[0], cp:_local1[1] - ((_local1[2] - _local1[0]) / 4), e:_local1[1]};
_local2 = 1;
while (_local2 < (_local1.length - 1)) {
_local3[_local3.length] = {s:_local1[_local2], cp:_local1[_local2] + (_local1[_local2] - _local3[_local2 - 1].cp), e:_local1[_local2 + 1]};
_local2++;
}
} else {
_local3[_local3.length] = {s:_local1[0], cp:(_local1[0] + _local1[1]) / 2, e:_local1[1]};
}
}
} else {
for (_local4 in $props) {
_local1 = $props[_local4];
_local3 = [];
_local6[_local4] = _local3;
if (_local1.length > 3) {
_local3[_local3.length] = {s:_local1[0], cp:_local1[1], e:(_local1[1] + _local1[2]) / 2};
_local2 = 2;
while (_local2 < (_local1.length - 2)) {
_local3[_local3.length] = {s:_local3[_local2 - 2].e, cp:_local1[_local2], e:(_local1[_local2] + _local1[_local2 + 1]) / 2};
_local2++;
}
_local3[_local3.length] = {s:_local3[_local3.length - 1].e, cp:_local1[_local1.length - 2], e:_local1[_local1.length - 1]};
} else if (_local1.length == 3) {
_local3[_local3.length] = {s:_local1[0], cp:_local1[1], e:_local1[2]};
} else if (_local1.length == 2) {
_local3[_local3.length] = {s:_local1[0], cp:(_local1[0] + _local1[1]) / 2, e:_local1[1]};
}
}
}
return(_local6);
}
static function getTweensOf($target) {
var _local1 = gs.TweenLite._all[gs.TweenLite.getID($target, true)];
var _local2 = [];
if (_local1 != null) {
for (var _local3 in _local1) {
if (_local1[_local3].tweens != undefined) {
_local2[_local2.length] = _local1[_local3];
}
}
}
return(_local2);
}
static function isTweening($target) {
var _local2 = getTweensOf($target);
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].active) {
return(true);
}
_local1++;
}
return(false);
}
static function getAllTweens() {
var _local1 = gs.TweenLite._all;
var _local4 = [];
var _local5;
var _local3;
var _local2;
for (_local2 in _local1) {
for (_local3 in _local1[_local2]) {
_local5 = _local1[_local2][_local3];
if (_local5.tweens != undefined) {
_local4[_local4.length] = _local1[_local2][_local3];
}
}
}
return(_local4);
}
static function killAllTweens($complete) {
killAll($complete, true, false);
}
static function killAllDelayedCalls($complete) {
killAll($complete, false, true);
}
static function killAll($complete, $tweens, $delayedCalls) {
if ($tweens == undefined) {
$tweens = true;
}
if ($delayedCalls == undefined) {
$delayedCalls = false;
}
var _local2 = getAllTweens();
var _local1 = _local2.length - 1;
while (_local1 > -1) {
if (((typeof(_local2[_local1].target) == "function") == $delayedCalls) || ((typeof(_local2[_local1].target) == "function") != $tweens)) {
if ($complete) {
_local2[_local1].complete();
} else {
gs.TweenLite.removeTween(_local2[_local1]);
}
}
_local1--;
}
}
static function pauseAll($tweens, $delayedCalls) {
changePause(true, $tweens, $delayedCalls);
}
static function resumeAll($tweens, $delayedCalls) {
changePause(false, $tweens, $delayedCalls);
}
static function changePause($pause, $tweens, $delayedCalls) {
if ($pause == undefined) {
$pause = true;
}
if ($tweens == undefined) {
$tweens = true;
}
if ($delayedCalls == undefined) {
$delayedCalls = false;
}
var _local2 = getAllTweens();
var _local1 = _local2.length - 1;
while (_local1 > -1) {
if ((_local2[_local1] instanceof gs.TweenMax) && (((typeof(_local2[_local1].target) == "function") == $delayedCalls) || ((typeof(_local2[_local1].target) == "function") != $tweens))) {
_local2[_local1].paused = $pause;
}
_local1--;
}
}
static function hexColorsProxy($o) {
$o.info.target[$o.info.prop] = (($o.target.r << 16) | ($o.target.g << 8)) | $o.target.b;
}
static function bezierProxy($o) {
var _local4 = $o.target.t;
var _local7 = $o.info.props;
var _local8 = $o.info.target;
var _local3;
var _local6;
var _local1;
var _local5;
var _local2;
for (_local6 in _local7) {
_local2 = _local7[_local6].length;
if (_local4 < 0) {
_local3 = 0;
} else if (_local4 >= 1) {
_local3 = _local2 - 1;
} else {
_local3 = (_local2 * _local4) >> 0;
}
_local5 = (_local4 - (_local3 * (1 / _local2))) * _local2;
_local1 = _local7[_local6][_local3];
_local8[_local6] = _local1.s + (_local5 * (((2 * (1 - _local5)) * (_local1.cp - _local1.s)) + (_local5 * (_local1.e - _local1.s))));
}
}
static function bezierProxy2($o) {
bezierProxy($o);
var _local4 = {};
var _local3 = $o.info.target;
$o.info.target = _local4;
$o.target.t = $o.target.t + 0.01;
bezierProxy($o);
var _local5 = $o.info.orientToBezier;
var _local10;
var _local7;
var _local6;
var _local1;
var _local8;
var _local2;
_local2 = 0;
while (_local2 < _local5.length) {
_local1 = _local5[_local2];
_local8 = _local1[3] || 0;
_local7 = _local4[_local1[0]] - _local3[_local1[0]];
_local6 = _local4[_local1[1]] - _local3[_local1[1]];
_local3[_local1[2]] = (Math.atan2(_local6, _local7) * RAD2DEG) + _local8;
_local2++;
}
$o.info.target = _local3;
$o.target.t = $o.target.t - 0.01;
}
function get active() {
if (_active) {
return(true);
}
if (_pauseTime != null) {
return(false);
}
if (((gs.TweenLite._curTime - initTime) / 1000) > delay) {
_active = true;
startTime = initTime + (delay * 1000);
if (!_initted) {
initTweenVals();
} else if (vars._visible != undefined) {
target._visible = true;
}
if (duration == 0.001) {
startTime = startTime - 1;
}
if (vars.onStart != undefined) {
vars.onStart.apply(null, vars.onStartParams);
}
return(true);
}
return(false);
}
function get paused() {
if (_pauseTime != null) {
return(true);
}
return(false);
}
function set paused($b) {
if ($b) {
pause();
} else {
resume();
}
//return(paused);
}
function get progress() {
var _local2 = (((gs.TweenLite._curTime - startTime) / 1000) / duration) || 0;
if (_local2 > 1) {
return(1);
}
return(_local2);
}
function set progress($n) {
var _local2 = gs.TweenLite._curTime - ((duration * $n) * 1000);
initTime = _local2 - (delay * 1000);
var _local3 = active;
startTime = _local2;
render(gs.TweenLite._curTime);
//return(progress);
}
static var version = 2.02;
static var RAD2DEG = 57.2957795130823;
static var _overwriteMode = (gs.OverwriteManager.enabled ? (gs.OverwriteManager.mode) : (gs.OverwriteManager.init()));
static var killTweensOf = gs.TweenLite.killTweensOf;
static var killDelayedCallsTo = gs.TweenLite.killDelayedCallsTo;
static var removeTween = gs.TweenLite.removeTween;
static var defaultEase = gs.TweenLite.defaultEase;
}
Symbol 593 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 594 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 595 MovieClip [__Packages.mx.transitions.easing.Back] Frame 0
class mx.transitions.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 596 MovieClip [__Packages.terrysTextFunctionClass] Frame 0
class terrysTextFunctionClass
{
function terrysTextFunctionClass () {
trace("terrysTextFunctionClass inited");
}
static function processNumber(_num) {
if (_num < 100) {
var _local4 = _num.toString();
} else {
var _local4 = "";
var _local5 = _num.toString();
var _local7 = _local5.length;
var _local11 = _local7 / 3;
var _local6 = Math.floor(_local7 / 3);
var _local8 = _local7 - (_local6 * 3);
var _local10 = 0;
if (_local8 > 0) {
_local4 = _local4 + (_local5.slice(_local10, _local8) + ",");
_local5 = _local5.slice(_local8, _local7);
}
var _local1 = 0;
while (_local1 < _local6) {
var _local2 = _local1 * 3;
var _local3 = _local2 + 3;
if (_local1 > 0) {
_local4 = _local4 + ",";
}
_local4 = _local4 + _local5.slice(_local2, _local3);
_local1++;
}
}
return(_local4);
}
}
Symbol 21 MovieClip [lvlBtn] Frame 10
stop();
Symbol 21 MovieClip [lvlBtn] Frame 21
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 1
stop();
digit = Number(_name.substr(8, 2));
txt_bot.txt = num;
txt_top_under.txt = num;
topTXT.txt.txt = num;
Symbol 74 MovieClip Frame 2
topTXT.gotoAndStop(1);
topTXT.txt.txt = num;
num = num + diff;
if (num == -1) {
num = topLimit;
_parent.chgNxtDigit(this);
}
txt_top_under.txt = num;
Symbol 74 MovieClip Frame 5
topTXT.gotoAndStop(2);
topTXT.txt.txt = num;
Symbol 74 MovieClip Frame 8
txt_bot.txt = num;
if (loops > 0) {
loopi++;
if (loopi == loops) {
stop();
} else {
gotoAndPlay (2);
}
} else {
stop();
}
Symbol 75 MovieClip Frame 1
function showBigDate(n, mc) {
newNum = n;
var _local2 = newNum - mc.num;
mc.loops = 0;
mc.loops = Math.abs(_local2);
if (_local2 > 0) {
mc.diff = 1;
} else if (_local2 < 0) {
mc.diff = -1;
} else {
mc.diff = 0;
}
mc.loopi = 0;
mc.gotoAndPlay(2);
}
function chgNxtDigit(mc) {
nxtMC = eval ("bigDate_" + (mc.digit + 1));
showBigDate(nxtMC.num - 1, nxtMC);
}
function setNum(n) {
if (n != lastNum) {
var num = n;
n = n + "";
var l = n.length;
var i = 0;
while (i < l) {
var mc = eval ("bigDate_" + i);
var theN = n.substr((l - 1) - i, 1);
showBigDate(Number(theN), mc);
i++;
}
lastNum = n;
}
}
bigDate_0.num = 0;
bigDate_1.num = 0;
bigDate_2.num = 0;
bigDate_3.num = 0;
bigDate_4.num = 0;
bigDate_5.num = 0;
bigDate_6.num = 0;
bigDate_7.num = 0;
bigDate_8.num = 0;
bigDate_0.topLimit = 9;
bigDate_1.topLimit = 9;
bigDate_2.topLimit = 9;
bigDate_3.topLimit = 9;
bigDate_4.topLimit = 9;
bigDate_5.topLimit = 9;
bigDate_6.topLimit = 9;
bigDate_7.topLimit = 9;
bigDate_8.topLimit = 9;
Symbol 84 MovieClip [submitScoreClip] Frame 1
stop();
Symbol 104 MovieClip [gameCompleteSubmitScoreClip] Frame 1
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
play();
Symbol 114 MovieClip Frame 12
this.removeMovieClip();
Symbol 117 MovieClip Frame 18
stop();
GAME.nextLevelCheck("bad");
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 2
function makeSpray() {
spC++;
var _local1 = spray.duplicateMovieClip("sp_" + spC, spC);
_local1._rotation = random(30) - 15;
_local1._alpha = random(30) + 70;
var _local2 = random(20) + 40;
_local1._xscale = _local2;
_local1._yscale = _local2;
if (random(2) == 1) {
_local1._yscale = -_local1._yscale;
}
_local1.gotoAndPlay(2);
}
spC = 0;
spray._visible = false;
Symbol 118 MovieClip Frame 3
makeSpray();
Symbol 118 MovieClip Frame 7
gotoAndPlay (3);
Symbol 126 MovieClip Frame 1
stop();
_parent.MOVE.down = true;
_parent.MOVE.up = true;
_parent.MOVE.left = false;
_parent.MOVE.right = false;
Symbol 126 MovieClip Frame 20
stop();
GAME.nextPipe("down", pathNum);
Symbol 126 MovieClip Frame 39
stop();
GAME.nextPipe("up", pathNum);
Symbol 128 MovieClip Frame 1
stop();
_parent.MOVE.down = false;
_parent.MOVE.up = false;
_parent.MOVE.left = true;
_parent.MOVE.right = true;
Symbol 128 MovieClip Frame 20
stop();
GAME.nextPipe("right", pathNum);
Symbol 128 MovieClip Frame 39
stop();
GAME.nextPipe("left", pathNum);
Symbol 131 MovieClip Frame 1
stop();
_parent.crossPipe = true;
_parent.MOVE.down = true;
_parent.MOVE.up = true;
_parent.MOVE.left = true;
_parent.MOVE.right = true;
Symbol 131 MovieClip Frame 2
if (!_parent.filled) {
filledMC._visible = false;
}
trace("cross P DOWN");
Symbol 131 MovieClip Frame 20
stop();
GAME.nextPipe(nxtDir, pathNum);
Symbol 131 MovieClip Frame 21
if (!_parent.filled) {
filledMC._visible = false;
}
trace("cross P UP");
Symbol 131 MovieClip Frame 39
stop();
GAME.nextPipe(nxtDir, pathNum);
Symbol 131 MovieClip Frame 40
if (!_parent.filled) {
filledMC._visible = false;
}
trace("cross P RIGHT");
Symbol 131 MovieClip Frame 58
stop();
GAME.nextPipe(nxtDir, pathNum);
Symbol 131 MovieClip Frame 59
if (!_parent.filled) {
filledMC._visible = false;
}
trace("cross P LEFT");
Symbol 131 MovieClip Frame 77
stop();
GAME.nextPipe(nxtDir, pathNum);
Symbol 136 MovieClip Frame 1
stop();
_parent.MOVE.down = true;
_parent.MOVE.up = false;
_parent.MOVE.left = true;
_parent.MOVE.right = false;
Symbol 136 MovieClip Frame 20
stop();
GAME.nextPipe("right", pathNum);
Symbol 136 MovieClip Frame 39
stop();
GAME.nextPipe("up", pathNum);
Symbol 138 MovieClip Frame 1
stop();
_parent.MOVE.down = false;
_parent.MOVE.up = true;
_parent.MOVE.left = true;
_parent.MOVE.right = false;
Symbol 138 MovieClip Frame 20
stop();
GAME.nextPipe("right", pathNum);
Symbol 138 MovieClip Frame 39
stop();
GAME.nextPipe("down", pathNum);
Symbol 140 MovieClip Frame 1
stop();
_parent.MOVE.down = false;
_parent.MOVE.up = true;
_parent.MOVE.left = false;
_parent.MOVE.right = true;
Symbol 140 MovieClip Frame 20
stop();
GAME.nextPipe("left", pathNum);
Symbol 140 MovieClip Frame 39
stop();
GAME.nextPipe("down", pathNum);
Symbol 142 MovieClip Frame 1
stop();
_parent.MOVE.down = true;
_parent.MOVE.up = false;
_parent.MOVE.left = false;
_parent.MOVE.right = true;
Symbol 142 MovieClip Frame 20
stop();
GAME.nextPipe("left", pathNum);
Symbol 142 MovieClip Frame 39
stop();
GAME.nextPipe("up", pathNum);
Symbol 146 MovieClip Frame 1
stop();
_parent.MOVE.down = true;
_parent.MOVE.up = true;
_parent.MOVE.left = false;
_parent.MOVE.right = true;
Symbol 146 MovieClip Frame 20
stop();
GAME.pipePath[pathNum].dir = "left";
GAME.newPipePath(pathNum);
GAME.nextPipe("left", pathNum);
GAME.pipePath[GAME.pipePathL - 1].dir = "down";
GAME.nextPipe("down", GAME.pipePathL - 1);
Symbol 146 MovieClip Frame 39
stop();
GAME.pipePath[pathNum].dir = "up";
GAME.newPipePath(pathNum);
GAME.nextPipe("up", pathNum);
GAME.pipePath[GAME.pipePathL - 1].dir = "down";
GAME.nextPipe("down", GAME.pipePathL - 1);
Symbol 146 MovieClip Frame 58
stop();
GAME.pipePath[pathNum].dir = "up";
GAME.newPipePath(pathNum);
GAME.nextPipe("up", pathNum);
GAME.pipePath[GAME.pipePathL - 1].dir = "left";
GAME.nextPipe("left", GAME.pipePathL - 1);
Symbol 147 MovieClip Frame 1
stop();
_parent.MOVE.down = true;
_parent.MOVE.up = true;
_parent.MOVE.left = true;
_parent.MOVE.right = false;
Symbol 147 MovieClip Frame 20
stop();
GAME.pipePath[pathNum].dir = "right";
GAME.newPipePath(pathNum);
GAME.nextPipe("right", pathNum);
GAME.pipePath[GAME.pipePathL - 1].dir = "down";
GAME.nextPipe("down", GAME.pipePathL - 1);
Symbol 147 MovieClip Frame 39
stop();
GAME.pipePath[pathNum].dir = "up";
GAME.newPipePath(pathNum);
GAME.nextPipe("up", pathNum);
GAME.pipePath[GAME.pipePathL - 1].dir = "down";
GAME.nextPipe("down", GAME.pipePathL - 1);
Symbol 147 MovieClip Frame 58
stop();
GAME.pipePath[pathNum].dir = "up";
GAME.newPipePath(pathNum);
GAME.nextPipe("up", pathNum);
GAME.pipePath[GAME.pipePathL - 1].dir = "right";
GAME.nextPipe("right", GAME.pipePathL - 1);
Symbol 149 MovieClip Frame 1
stop();
_parent.MOVE.down = true;
_parent.MOVE.up = false;
_parent.MOVE.left = true;
_parent.MOVE.right = true;
Symbol 149 MovieClip Frame 20
stop();
GAME.pipePath[pathNum].dir = "up";
GAME.newPipePath(pathNum);
GAME.nextPipe("up", pathNum);
GAME.pipePath[GAME.pipePathL - 1].dir = "right";
GAME.nextPipe("right", GAME.pipePathL - 1);
Symbol 149 MovieClip Frame 39
stop();
GAME.pipePath[pathNum].dir = "left";
GAME.newPipePath(pathNum);
GAME.nextPipe("left", pathNum);
GAME.pipePath[GAME.pipePathL - 1].dir = "right";
GAME.nextPipe("right", GAME.pipePathL - 1);
Symbol 149 MovieClip Frame 58
stop();
GAME.pipePath[pathNum].dir = "up";
GAME.newPipePath(pathNum);
GAME.nextPipe("up", pathNum);
GAME.pipePath[GAME.pipePathL - 1].dir = "left";
GAME.nextPipe("left", GAME.pipePathL - 1);
Symbol 150 MovieClip Frame 1
stop();
_parent.MOVE.down = false;
_parent.MOVE.up = true;
_parent.MOVE.left = true;
_parent.MOVE.right = true;
Symbol 150 MovieClip Frame 20
stop();
GAME.pipePath[pathNum].dir = "down";
GAME.newPipePath(pathNum);
GAME.nextPipe("down", pathNum);
GAME.pipePath[GAME.pipePathL - 1].dir = "left";
GAME.nextPipe("left", GAME.pipePathL - 1);
Symbol 150 MovieClip Frame 39
stop();
GAME.pipePath[pathNum].dir = "left";
GAME.newPipePath(pathNum);
GAME.nextPipe("left", pathNum);
GAME.pipePath[GAME.pipePathL - 1].dir = "right";
GAME.nextPipe("right", GAME.pipePathL - 1);
Symbol 150 MovieClip Frame 58
stop();
GAME.pipePath[pathNum].dir = "down";
GAME.newPipePath(pathNum);
GAME.nextPipe("down", pathNum);
GAME.pipePath[GAME.pipePathL - 1].dir = "right";
GAME.nextPipe("right", GAME.pipePathL - 1);
Symbol 154 MovieClip Frame 1
stop();
_parent.crossPipe = false;
_parent.MOVE.down = true;
_parent.MOVE.up = false;
_parent.MOVE.left = false;
_parent.MOVE.right = false;
Symbol 154 MovieClip Frame 2
if (!_parent.filled) {
filledMC._visible = false;
}
Symbol 154 MovieClip Frame 33
stop();
GAME.checkEndPipe(pathNum);
GAME.endPath(pathNum, this);
Symbol 155 MovieClip Frame 1
stop();
_parent.crossPipe = false;
_parent.MOVE.down = false;
_parent.MOVE.up = false;
_parent.MOVE.left = true;
_parent.MOVE.right = false;
Symbol 155 MovieClip Frame 2
if (!_parent.filled) {
filledMC._visible = false;
}
Symbol 155 MovieClip Frame 31
stop();
GAME.checkEndPipe(pathNum);
GAME.endPath(pathNum, this);
Symbol 156 MovieClip Frame 1
stop();
_parent.crossPipe = false;
_parent.MOVE.down = false;
_parent.MOVE.up = true;
_parent.MOVE.left = false;
_parent.MOVE.right = false;
Symbol 156 MovieClip Frame 2
if (!_parent.filled) {
filledMC._visible = false;
}
Symbol 156 MovieClip Frame 33
stop();
GAME.checkEndPipe(pathNum);
GAME.endPath(pathNum, this);
Symbol 157 MovieClip Frame 1
stop();
_parent.crossPipe = false;
_parent.MOVE.down = false;
_parent.MOVE.up = false;
_parent.MOVE.left = false;
_parent.MOVE.right = true;
Symbol 157 MovieClip Frame 2
if (!_parent.filled) {
filledMC._visible = false;
}
Symbol 157 MovieClip Frame 32
stop();
GAME.checkEndPipe(pathNum);
GAME.endPath(pathNum, this);
Symbol 158 MovieClip [pipe] Frame 1
stop();
MOVE = new Array();
Symbol 182 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 1
var bitmapData_2 = (new flash.display.BitmapData(204, 100, true, 16777215));
holder.attachBitmap(bitmapData_2, this.getNextHighestDepth());
var offset0 = new Object();
offset0.y = 10;
offset0.x = 10;
var offset1 = new Object();
offset1.y = 10;
offset1.x = 10;
var offset2 = new Object();
offset2.y = 10;
offset2.x = 10;
num1 = 1;
baseX = 24;
baseY = 24;
numOctaves = 2;
randomSeed = 2;
stitch = true;
fractalNoise = true;
channelOptions = 15;
grayScale = true;
holder._visible = false;
gradient._visible = false;
gradient.steamCount = 30;
holder.setMask(gradient);
holder.cacheAsBitmap = true;
gradient.cacheAsBitmap = true;
gradient.onEnterFrame = function () {
if (this.steamCount > 0) {
this.steamCount--;
if (this.steamCount < 1) {
this._visible = true;
this._parent.holder._visible = true;
this._alpha = 0;
}
} else {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
offset0.y = offset0.y + 0.5;
offset0.x = offset0.x - 0.5;
offset1.y = 0.5;
offset1.x = offset1.x - 0.5;
offset2.y = offset2.y + 0.5;
offset2.x = offset2.x - 0.5;
offsets = new Array(offset0, offset1, offset2);
baseX = baseX + 0.1;
baseY = baseY + 0.1;
bitmapData_2.perlinNoise(50, 30, 2, 2, true, true, 8, true, offsets);
}
};
Symbol 219 MovieClip Frame 22
stop();
Symbol 220 MovieClip Frame 25
stop();
Symbol 235 MovieClip Frame 18
stop();
GAME.nextLevelCheck("too_much");
Symbol 239 MovieClip Frame 1
function reset() {
gotoAndStop (1);
}
stop();
this._rotation = Math.random() * 360;
Symbol 239 MovieClip Frame 23
GAME.nextLevelCheck("waterbowl");
stop();
Symbol 239 MovieClip Frame 40
stop();
Symbol 239 MovieClip Frame 59
stop();
Symbol 260 MovieClip Frame 1
function reset() {
gotoAndStop (1);
}
stop();
handle.gotoAndStop(1);
Symbol 260 MovieClip Frame 2
handle.gotoAndPlay(2);
Symbol 260 MovieClip Frame 17
handle.gotoAndStop(1);
Symbol 260 MovieClip Frame 30
GAME.startWaterLoop();
Symbol 260 MovieClip Frame 32
stop();
GAME.pipePath[0].dir = theDIR;
GAME.nextPipe(theDIR, 0);
Symbol 260 MovieClip Frame 41
stop();
Symbol 268 MovieClip Frame 1
function reset() {
gotoAndStop (1);
}
stop();
handle.gotoAndStop(1);
Symbol 268 MovieClip Frame 2
handle.gotoAndPlay(2);
Symbol 268 MovieClip Frame 17
handle.gotoAndStop(1);
Symbol 268 MovieClip Frame 30
GAME.startWaterLoop();
Symbol 268 MovieClip Frame 32
stop();
GAME.pipePath[0].dir = "down";
GAME.nextPipe("down", 0);
Symbol 268 MovieClip Frame 41
stop();
Symbol 288 MovieClip Frame 1
skipsTXT.setNum(10);
Symbol 288 MovieClip Frame 21
skipsTXT.setNum(9);
Symbol 288 MovieClip Frame 50
skipsTXT.setNum(8);
Symbol 296 MovieClip Frame 50
trashMC.penaltyVar = -10;
trashMC.gotoAndPlay(2);
Symbol 302 MovieClip Frame 1
stop();
if ((_parent.penaltyVar > 0) || (isNaN(_parent.penaltyVar))) {
if (GAME.multi == 2) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
Symbol 303 MovieClip Frame 30
penaltyVar = -100;
Symbol 307 MovieClip Frame 1
function reset() {
gotoAndStop (1);
}
stop();
handle.gotoAndStop(1);
Symbol 307 MovieClip Frame 2
handle.gotoAndPlay(2);
Symbol 307 MovieClip Frame 17
handle.gotoAndStop(1);
Symbol 307 MovieClip Frame 30
Symbol 307 MovieClip Frame 32
stop();
Symbol 307 MovieClip Frame 41
stop();
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 101
stop();
Symbol 322 MovieClip Frame 1
pipeTap.gotoAndStop(1);
Instance of Symbol 320 MovieClip "startWaterBut" in Symbol 322 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe < 100) {
gotoAndPlay(_currentframe + 1);
if (_currentframe == 100) {
_parent.pipeTap.gotoAndPlay(2);
}
}
}
Instance of Symbol 320 MovieClip "startWaterBut" in Symbol 322 MovieClip Frame 155
onClipEvent (enterFrame) {
if (_currentframe < 100) {
gotoAndPlay(_currentframe + 1);
if (_currentframe == 100) {
_parent.pipeTap.gotoAndPlay(2);
}
}
}
Symbol 333 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 1
startWaterBut.gotoAndStop(65);
multiMC.gotoAndStop(1);
Symbol 334 MovieClip Frame 19
startWaterBut.gotoAndPlay(66);
multiMC.gotoAndStop(2);
Symbol 346 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 124
stop();
_parent.play();
Symbol 347 MovieClip Frame 1
function reset() {
tank = true;
crossPipe = true;
filled = false;
MOVE = new Array();
MOVE.down = true;
MOVE.up = true;
MOVE.left = true;
MOVE.right = true;
pipeAni = this;
spray_down.gotoAndStop(1);
spray_left.gotoAndStop(1);
spray_right.gotoAndStop(1);
tankFill.gotoAndStop(1);
gotoAndStop (1);
}
stop();
reset();
Symbol 347 MovieClip Frame 2
if (!filled) {
filledMC._visible = false;
}
Symbol 347 MovieClip Frame 8
if (tankFill._currentframe == 1) {
tankFill.gotoAndPlay(2);
stop();
} else {
play();
}
Symbol 347 MovieClip Frame 18
GAME.nextPipe("down", pathNum);
stop();
Symbol 347 MovieClip Frame 25
if (!filled) {
filledMC._visible = false;
}
Symbol 347 MovieClip Frame 34
if (tankFill._currentframe == 1) {
tankFill.gotoAndPlay(2);
stop();
} else {
play();
}
Symbol 347 MovieClip Frame 43
GAME.nextPipe("up", pathNum);
stop();
Symbol 347 MovieClip Frame 47
if (!filled) {
filledMC._visible = false;
}
Symbol 347 MovieClip Frame 51
if (tankFill._currentframe == 1) {
tankFill.gotoAndPlay(2);
stop();
} else {
play();
}
Symbol 347 MovieClip Frame 61
stop();
GAME.nextPipe("right", pathNum);
Symbol 347 MovieClip Frame 71
if (!filled) {
filledMC._visible = false;
}
Symbol 347 MovieClip Frame 75
if (tankFill._currentframe == 1) {
tankFill.gotoAndPlay(2);
stop();
} else {
play();
}
Symbol 347 MovieClip Frame 84
GAME.nextPipe("left", pathNum);
stop();
Symbol 356 MovieClip Frame 2
p1.gotoAndPlay("up");
Symbol 356 MovieClip Frame 20
tank.gotoAndPlay("down");
Symbol 356 MovieClip Frame 153
p2.gotoAndPlay("right");
Symbol 356 MovieClip Frame 171
p3.gotoAndPlay("right");
Symbol 356 MovieClip Frame 189
p4.gotoAndPlay("right");
Symbol 356 MovieClip Frame 207
p5.gotoAndPlay("down");
Symbol 372 MovieClip Frame 1
stop();
Instance of Symbol 260 MovieClip "pipeTap" in Symbol 385 MovieClip Frame 1
onClipEvent (load) {
theDIR = "right";
}
Symbol 413 MovieClip Frame 1
stop();
btn.onRelease = function () {
if (_level0.cs) {
_level0.cs.track.url.open("http://www.cityofember.com");
} else {
getURL ("http://www.cityofember.com", "_blank");
}
};
Symbol 430 MovieClip Frame 1
stop();
Symbol 433 MovieClip Frame 1
stop();
Symbol 435 MovieClip Frame 1
grassBG.cacheAsBitmap = true;
Symbol 439 MovieClip Frame 1
stop();
if ((_parent.penaltyVar > 0) || (isNaN(_parent.penaltyVar))) {
if (GAME.multi == 2) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
Symbol 440 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 1
stop();
if (this.init == undefined) {
this.int = true;
setupBtn(this.yesBtn);
this.yesBtn.onRelease = function () {
butSound();
_parent._parent.nxtFunc = GAME.nextLevel;
_parent._parent.gotoAndPlay("fade");
};
}
Symbol 451 MovieClip Frame 8
stop();
Symbol 454 MovieClip Frame 1
stop();
if (this.init == undefined) {
this.int = true;
setupBtn(this.yesBtn);
this.yesBtn.onRelease = function () {
butSound();
trackSite("replay");
_parent._parent.nxtFunc = GAME.resetLevel;
_parent._parent.args = "user_fail";
_parent._parent.gotoAndPlay("fade");
};
}
Symbol 454 MovieClip Frame 8
stop();
Symbol 460 MovieClip Frame 1
stop();
if (this.init == undefined) {
this.int = true;
setupBtn(this.yesBtn);
this.yesBtn.onRelease = function () {
butSound();
GAME.quitGame("user");
};
}
Symbol 460 MovieClip Frame 10
stop();
Symbol 463 MovieClip Frame 1
stop();
if (this.init == undefined) {
this.int = true;
setupBtn(this.yesBtn);
this.yesBtn.onRelease = function () {
butSound();
showSubmitSc();
};
}
Symbol 463 MovieClip Frame 10
stop();
Symbol 470 MovieClip Frame 1
stop();
if (GAME.gameResult == "bad") {
gotoAndStop (2);
} else if (GAME.gameResult == "miss_bowl") {
gotoAndStop (3);
} else if (GAME.gameResult == "too_much") {
gotoAndStop (4);
} else if (GAME.gameLevel == GAME.levelLim) {
gotoAndStop (5);
}
Symbol 471 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 2
blankB.useHandCursor = false;
Symbol 471 MovieClip Frame 30
stop();
Symbol 471 MovieClip Frame 45
nxtFunc(args);
Symbol 475 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 12
stop();
Symbol 475 MovieClip Frame 20
stop();
Symbol 475 MovieClip Frame 40
stop();
Symbol 475 MovieClip Frame 66
stop();
Symbol 476 MovieClip Frame 1
gotoAndStop(random(2) + 1);
stop();
Symbol 478 MovieClip Frame 1
function reset() {
gotoAndStop (1);
}
stop();
Symbol 478 MovieClip Frame 14
stop();
Symbol 480 MovieClip Frame 1
stop();
gotoAndStop(random(4) + 1);
Symbol 481 MovieClip Frame 1
stop();
Symbol 482 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 1
stop();
gotoAndStop(GAME.gameLevel);
Instance of Symbol 268 MovieClip "pipeTap" in Symbol 483 MovieClip Frame 1
onClipEvent (load) {
theDIR = "left";
}
Instance of Symbol 260 MovieClip "pipeTap" in Symbol 483 MovieClip Frame 2
onClipEvent (load) {
theDIR = "left";
}
Instance of Symbol 260 MovieClip "pipeTap" in Symbol 483 MovieClip Frame 3
onClipEvent (load) {
theDIR = "right";
}
Instance of Symbol 260 MovieClip "pipeTap" in Symbol 483 MovieClip Frame 4
onClipEvent (load) {
theDIR = "right";
}
Instance of Symbol 260 MovieClip "pipeTap" in Symbol 483 MovieClip Frame 9
onClipEvent (load) {
theDIR = "right";
}
Instance of Symbol 260 MovieClip "pipeTap" in Symbol 483 MovieClip Frame 12
onClipEvent (load) {
theDIR = "left";
}
Instance of Symbol 260 MovieClip "pipeTap" in Symbol 483 MovieClip Frame 13
onClipEvent (load) {
theDIR = "right";
}
Instance of Symbol 260 MovieClip "pipeTap" in Symbol 483 MovieClip Frame 16
onClipEvent (load) {
theDIR = "left";
}
Instance of Symbol 260 MovieClip "pipeTap" in Symbol 483 MovieClip Frame 18
onClipEvent (load) {
theDIR = "left";
}
Instance of Symbol 260 MovieClip "pipeTap" in Symbol 483 MovieClip Frame 19
onClipEvent (load) {
theDIR = "right";
}
Instance of Symbol 260 MovieClip "pipeTap" in Symbol 483 MovieClip Frame 20
onClipEvent (load) {
theDIR = "left";
}
Symbol 486 MovieClip Frame 1
stop();
Symbol 487 MovieClip Frame 1
function showBigDate(n, mc) {
newNum = n;
var _local2 = newNum - mc.num;
mc.loops = 0;
mc.loops = Math.abs(_local2);
if (_local2 > 0) {
mc.diff = 1;
} else if (_local2 < 0) {
mc.diff = -1;
} else {
mc.diff = 0;
}
mc.loopi = 0;
mc.gotoAndPlay(2);
}
function chgNxtDigit(mc) {
nxtMC = eval ("bigDate_" + (mc.digit + 1));
showBigDate(nxtMC.num - 1, nxtMC);
}
function setNum(n) {
if (n != lastNum) {
var num = n;
n = n + "";
var l = n.length;
var i = 0;
while (i < l) {
var mc = eval ("bigDate_" + i);
var theN = n.substr((l - 1) - i, 1);
showBigDate(Number(theN), mc);
i++;
}
lastNum = n;
}
}
bigDate_0.num = 0;
bigDate_1.num = 0;
bigDate_2.num = 0;
bigDate_3.num = 0;
bigDate_4.num = 0;
bigDate_5.num = 0;
bigDate_6.num = 0;
bigDate_7.num = 0;
bigDate_8.num = 0;
bigDate_0.topLimit = 9;
bigDate_1.topLimit = 9;
bigDate_2.topLimit = 9;
bigDate_3.topLimit = 9;
bigDate_4.topLimit = 9;
bigDate_5.topLimit = 9;
bigDate_6.topLimit = 9;
bigDate_7.topLimit = 9;
bigDate_8.topLimit = 9;
Symbol 488 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 1
function showBigDate(n, mc) {
newNum = n;
var _local2 = newNum - mc.num;
mc.loops = 0;
mc.loops = Math.abs(_local2);
if (_local2 > 0) {
mc.diff = 1;
} else if (_local2 < 0) {
mc.diff = -1;
} else {
mc.diff = 0;
}
mc.loopi = 0;
mc.gotoAndPlay(2);
}
function chgNxtDigit(mc) {
nxtMC = eval ("bigDate_" + (mc.digit + 1));
showBigDate(nxtMC.num - 1, nxtMC);
}
function setNum(n) {
if (n != lastNum) {
var num = n;
n = n + "";
var l = n.length;
var i = 0;
while (i < l) {
var mc = eval ("bigDate_" + i);
var theN = n.substr((l - 1) - i, 1);
showBigDate(Number(theN), mc);
i++;
}
lastNum = n;
}
}
bigDate_0.num = 0;
bigDate_1.num = 0;
bigDate_2.num = 0;
bigDate_3.num = 0;
bigDate_4.num = 0;
bigDate_5.num = 0;
bigDate_6.num = 0;
bigDate_7.num = 0;
bigDate_8.num = 0;
bigDate_0.topLimit = 9;
bigDate_1.topLimit = 9;
bigDate_2.topLimit = 9;
bigDate_3.topLimit = 9;
bigDate_4.topLimit = 9;
bigDate_5.topLimit = 9;
bigDate_6.topLimit = 9;
bigDate_7.topLimit = 9;
bigDate_8.topLimit = 9;
Symbol 492 MovieClip Frame 1
stop();
Symbol 500 Button
on (release) {
gotoAndPlay (2);
butSound();
GAME.startWater("user");
gotoAndPlay ("wait");
}
Symbol 559 MovieClip Frame 1
stop();
Symbol 559 MovieClip Frame 15
stop();
Symbol 559 MovieClip Frame 45
stop();
Symbol 561 MovieClip Frame 1
stop();
Symbol 561 MovieClip Frame 101
stop();
Symbol 562 MovieClip Frame 1
stop();
Symbol 568 MovieClip Frame 1
stop();
gotoAndStop(GAME.gameLevel);