Frame 1
function ShowNoVersion() {
}
var NoVersion;
NoVersion = "V 1.0.0";
Stage.showMenu = false;
_focusrect = false;
urlTemp = new String(this._url);
if (urlTemp.lastIndexOf("/") == -1) {
lastCar = urlTemp.lastIndexOf("\\");
} else {
lastCar = urlTemp.lastIndexOf("/");
if (lastCar <= 10) {
lastCar = urlTemp.lastIndexOf("\\");
}
}
_global.Path = urlTemp.substring(0, lastCar + 1);
sameFile = false;
lastDot = urlTemp.lastIndexOf(".");
gameName = urlTemp.substring(lastCar + 1, lastDot);
fileName = urlTemp.substring(lastCar + 1, lastDot + 4);
if (gameName.indexOf("V6R65") != -1) {
sameFile = true;
} else if (gameName.indexOf("V7") != -1) {
Stage.showMenu = true;
MENU = new ContextMenu();
MENU.hideBuiltInItems();
NoVersionItem = new ContextMenuItem(NoVersion, ShowNoVersion);
MENU.customItems.push(NoVersionItem);
this.menu = MENU;
sameFile = true;
} else {
sameFile = false;
}
noflashURL = "NoFlash.htm";
if (sameFile == false) {
flashV6R65Url = gameName + "V6R65.swf";
} else {
flashV6R65Url = fileName;
}
if (sameFile == false) {
flashV7URL = gameName + "V7.swf";
} else {
flashV7URL = fileName;
}
minimumMajVers = 6;
if ($version eq "") {
getURL (noflashURL, "_self");
}
i = 1;
playerOS_str = "";
while ((substring($version, i, 1)) ne " ") {
playerOS_str = playerOS_str add (substring($version, i, 1));
i++;
}
playerVersion = "";
i++;
while ((substring($version, i, 1)) ne ",") {
playerVersion = playerVersion add Number(substring($version, i, 1));
i++;
}
playerMajorRevision = "";
i++;
while ((substring($version, i, 1)) ne ",") {
playerMajorRevision = playerMajorRevision add Number(substring($version, i, 1));
i++;
}
playerMinorRevision = "";
i++;
while ((substring($version, i, 1)) ne ",") {
playerMinorRevision = playerMinorRevision add Number(substring($version, i, 1));
i++;
}
System.security.allowDomain("dev.looneytunes.warnerbros.com");
System.security.allowDomain("preview.looneytunes.warnerbros.com");
System.security.allowDomain("looneytunes.warnerbros.com");
System.security.allowDomain("looneytunes2.warnerbros.com");
System.security.allowDomain("pdl.warnerbros.com");
System.security.allowDomain("*.warnerbros.com");
Object.prototype.gameMC = this;
Object.prototype.containerMC = _parent;
if (containerMC != null) {
containerMC.init();
_root.gDebug = "InContainer\n";
}
gameMC.gLoadInit = false;
gameMC.gGameState = "INIT";
gameMC.gLoadStartTime = 0;
gameMC.gVersionNum = "1.0";
gameMC.gPaused = false;
gameMC.gInitGame = null;
gameMC.min_score = -1;
trace("GameParent: " + _parent);
if (gameMC.gGameID eq "") {
gameMC.gGameID = "footballFrenzy";
}
if (gameMC.gHSRoot_swf eq "") {
gameMC.gHSRoot_swf = "/games/med/";
}
if (gameMC.gHSRoot_jsp eq "") {
gameMC.gHSRoot_jsp = "/web/load_variables/games/";
}
if (gameMC.gHSRoot_top100 eq "") {
gameMC.gHSRoot_top100 = "/web/games/";
}
function getScore() {
return(gameMC.gScore);
}
function showDebugWindow() {
gameMC.debug_clip.showDebug();
}
function hideDebugWindow() {
gameMC.debug_clip.hideDebug();
}
function pause() {
gameMC.gPaused = true;
}
function unPause() {
gameMC.gPaused = false;
}
function restart() {
containerMC.resetContainer();
containerMC.init();
gameMC.gScore = 0;
gameMC.gLevel = 1;
}
gameMC.HSLoading = function () {
if (gameMC.gLoadInit != true) {
gameMC.gGameState = "LOADING";
gameMC.gLoadStartTime = int(getTimer() / 1000);
gameMC.gLoadInit = true;
}
};
gameMC.HSLoaded = function () {
tellTarget (gameMC.hs_scripts) {
call("mLoaded");
};
};
gameMC.HSPlay = function () {
tellTarget (gameMC.hs_scripts) {
call("mPlay");
};
};
gameMC.HSLevelStart = function () {
tellTarget (gameMC.hs_scripts) {
call("mLevelStart");
};
};
gameMC.HSGameOver = function () {
gameMC.gScore = Number(_root.gScore);
gameMC.gLevel = Number(_root.gLevel);
if (containerMC != null) {
containerMC.hs_placeholder._x = 125;
containerMC.hs_placeholder._y = 60;
} else {
gameMC.hs_placeholder._x = 125;
gameMC.hs_placeholder._y = 60;
}
tellTarget (gameMC.hs_scripts) {
call("mGameOver");
};
};
function cTimer() {
this.startTime = getTimer();
}
cTimer.prototype.restartTimer = function () {
this.startTime = getTimer();
};
cTimer.prototype.milliseconds = function () {
return(getTimer() - this.startTime);
};
cTimer.prototype.seconds = function () {
return(this.getSeconds());
};
cTimer.prototype.getSeconds = function () {
return(int((getTimer() - this.startTime) / 1000));
};
gameMC.iReadyScreenTimer = new cTimer();
gameMC.iLevelPauseTimer = new cTimer();
gameMC.btn_handler_next_screen = function () {
gameMC.play();
};
gameMC.btn_handler_play = function () {
gameMC.gotoAndPlay("NextLevel");
};
gameMC.btn_handler_gameover = function () {
gameMC.gotoAndPlay("GameOver");
};
gameMC.btn_handler_restart = function () {
gameMC.gotoAndPlay(1);
};
Frame 2
stop();
gameMC.HSLoading();
Instance of Symbol 40 MovieClip "contLoading" in Frame 2
onClipEvent (load) {
this._visible = false;
_global.stage = _parent;
_global.stage.loadingScreen.mcLoadingBar.gotoAndStop(0);
}
onClipEvent (enterFrame) {
this.fPreloadGame();
}
Frame 3
nextFrame();
gameMC.HSLoaded();
Frame 4
stop();
Symbol 5 MovieClip [hs_placeholder] Frame 1
_visible = false;
Symbol 5 MovieClip [hs_placeholder] Frame 5
stop();
Symbol 16 Button
on (keyPress "<Left>") {
return(undefined);
}
on (keyPress "<Right>") {
return(undefined);
}
on (keyPress "<Up>") {
return(undefined);
}
on (keyPress "<Down>") {
return(undefined);
}
on (keyPress "<Space>") {
return(undefined);
}
on (keyPress "Q") {
return(undefined);
}
on (keyPress "P") {
return(undefined);
}
Symbol 19 MovieClip Frame 1
this.loadMovie(gameMC.gHSRoot_swf + "HSScripts.swf");
Symbol 19 MovieClip Frame 4
stop();
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 3
_global.objSounds.fPlaySounds(this, "sFx_bip", 0, 1, 100, "fx", "taSpin");
Symbol 37 MovieClip Frame 6
_global.objSounds.fPlaySounds(this, "sFx_bip", 0, 1, 100, "fx", "taSpin");
Symbol 37 MovieClip Frame 10
_global.objSounds.fPlaySounds(this, "sFx_bip", 0, 1, 100, "fx", "taSpin");
Symbol 37 MovieClip Frame 14
_global.objSounds.fPlaySounds(this, "sFx_bip", 0, 1, 100, "fx", "taSpin");
Symbol 37 MovieClip Frame 20
_global.objSounds.fPlaySounds(this, "sFx_bip", 0, 1, 100, "fx", "taSpin");
Symbol 37 MovieClip Frame 31
_global.objSounds.fPlaySounds(this, "sFx_bip", 0, 1, 100, "fx", "taSpin");
Symbol 37 MovieClip Frame 45
_global.objSounds.fPlaySounds(this, "sFx_bip", 0, 1, 100, "fx", "taSpin");
Symbol 40 MovieClip Frame 1
function fPreloadGame() {
_nLoadPercent = (_global.stage.getBytesLoaded() / _global.stage.getBytesTotal()) * 100;
if (_nLoadPercent != 100) {
_nLoadPercent = Math.floor(_nLoadPercent);
_global.stage.loadingScreen.mcLoadingBar.gotoAndStop(int(_nLoadPercent));
} else {
_global.stage.loadingScreen.mcLoadingBar.gotoAndStop(100);
_global.stage.nextFrame();
}
}
this._nLoadPercent = 0;
stop();
Symbol 956 MovieClip [__Packages.objItem] Frame 0
class objItem extends MovieClip
{
var _sType, _nPoint, _nStep, _visible, _y, _width, _x, hitTest, getDepth, swapDepths, _name, gotoAndStop, removeMovieClip;
function objItem () {
super();
}
function fInitializeProperties(_rType, _rStep) {
_sType = _rType;
_nPoint = 150;
_nStep = _rStep;
_bActive = true;
_visible = false;
if (((_sType != "checkPoint") and (_sType != "touchDown")) and (_sType != "tree")) {
if ((_nStep < 0) or (_nStep > _global.mcGround._nStep)) {
_nStep = 0;
}
_y = int(_global.mcGround._aStepPosY[_nStep]);
_global.contGame.fAddElementActive(this);
}
if (_sType == "tree") {
_global.contGame.fAddElementActive(this);
}
}
function fCheckStatus() {
if ((_global.contGame._sCurrentPhase == "touchDownGame") and (_visible == false)) {
if (_x < ((_global.mcGround.mcGuideZero._x + _global.contMain._nStageWidth) + _width)) {
_visible = true;
}
} else if ((_global.contGame._sCurrentPhase == "bonusGame") and (_visible == false)) {
if (_x > (_global.mcGround.mcGuideZero._x - _width)) {
_visible = true;
}
}
switch (_sType) {
case "hotDog" :
if (_bActive == true) {
if (_global.contPause.opened == false) {
_x = _x - _global.contGame._nGoonSpeed;
if ((((hitTest(_global.mcTaz) and (_bPicked == false)) and (_global.mcTaz._sAnim != "jump")) and (_global.mcTaz._bHitting == false)) and (_global.mcTaz._bTargeted == false)) {
if ((_y < _global.mcTaz._y) and (_global.mcTaz.getDepth() < getDepth())) {
swapDepths(_global.mcTaz);
}
if (_global.mcTaz._nStep == _nStep) {
_global.contGame.fAddPoint(_nPoint);
_bPicked = true;
_bActive = false;
_global.objSounds.fPlaySounds(this, "sFx_hotDog", 0, 1, 100, "fx", "inGame");
if (((_global.mcTaz._sAnim != "spinRight") and (_global.mcTaz._sAnim != "spinSwitch")) and (_global.mcTaz._sAnim != "spinLeft")) {
if (_global.contGame._sCurrentPhase == "touchDownGame") {
_global.mcTaz.gotoAndStop("eat");
_global.mcTaz._nSpeed = 0;
}
}
if ((_global.contGame._bShowSpinMeter == true) and (_global.contGame._sCurrentPhase == "touchDownGame")) {
if ((_global.mcHUD.mcSpinMeter._sAction == "hide") or (_global.mcHUD.mcSpinMeter._sAction == "closing")) {
_global.mcHUD.mcSpinMeter.gotoAndPlay("open");
}
}
_global.mcTaz._bSpinning = true;
_global.mcTaz._nSpinningTime = _global.mcTaz._nSpinningTime + 180;
fElementDelete();
}
}
} else if (_global.mcTaz._bTargeted == true) {
fCheckLimit();
_x = _x - _global.contGame._nGoonSpeed;
}
}
break;
case "checkPoint" :
_visible = false;
if (hitTest(_global.mcTaz) and (_global.contPause.opened == false)) {
_global.contGame._nCurrentYard = _global.contMain.fSubLastNumberChar(_name);
if ((_global.contGame._sCurrentPhase == "bonusGame") and (_global.contGame._nCurrentYard == 0)) {
_global.mcTaz._nSpinningCount = 0;
_global.mcTaz._nSpinningTime = 5;
_global.mcGround._bStop = true;
}
_global.contGame.fAddPoint(25);
if (int(_global.contGame._nCurrentYard) < 100) {
_global.contGame.fCreateObstacleFormation(_global.contGame._aLevelFormation[_global.contMain._aGameplay[2]][_global.contGame._nCurrentYard / 10]);
_global.contGame.fCreateObstacleFormation(_global.contGame._aItemFormation[_global.contMain._aGameplay[2]][_global.contGame._nCurrentYard / 10]);
}
gotoAndStop("hitted");
_global.mcGround._nStartX = _x;
_global.contGame.fManageCheckPoint("next");
}
break;
case "touchDown" :
_visible = false;
if ((hitTest(_global.mcTaz) and (_global.contPause.opened == false)) and (_global.mcTaz._sAnim != "jump")) {
_global.contMain.fPause("anim");
_global.mcTaz._bTargeted = true;
_global.contGame._nCurrentYard = _global.contMain.fSubLastNumberChar(_name);
if (_global.mcTaz._bSpinning == true) {
_global.contGame._bTornade1 = false;
_global.contGame._bTornade2 = false;
_global.contGame.tornade1.stop();
_global.contGame.tornade2.stop();
_global.contGame._nTimeSpinSound = 0;
_global.mcTaz._bSpinning = false;
_global.mcTaz._nSpinningCount = 0;
_global.mcTaz._nSpinningTime = 0;
_global.mcHUD.mcSpinMeter.gotoAndStop(1);
_global.mcTaz._nSpeedMax = _global.mcTaz._nSpeedMax - _global.mcTaz._nSpeedMaxBonus;
}
_global.contGame.fTouchDown();
gotoAndStop("hitted");
}
break;
case "tree" :
}
if ((_sType != "checkPoint") and (_sType != "touchDown")) {
fCheckLimit();
}
}
function fCheckLimit() {
if (_global.contGame._sCurrentPhase == "touchDownGame") {
if (_x < (_global.mcGround.mcGuideZero._x - _width)) {
fElementDelete();
}
} else if (_x > ((_global.mcGround.mcGuideZero._x + _global.contMain._nStageWidth) + _width)) {
fElementDelete();
}
}
function fElementDelete(mode) {
if (mode != "destroyElement") {
_global.contGame.fRemoveElementActive(this);
}
swapDepths(100000);
removeMovieClip();
}
var _bPicked = false;
var _bActive = false;
}
Symbol 957 MovieClip [__Packages.objCharacter] Frame 0
class objCharacter extends MovieClip
{
var _nStep, _y, _nSpeed, _nSpeedStep, _nSpeedMax, _nSpeedMaxBonus, _nAccel, _nDirection, _nSpinningCount, _nSpinningTime, _sAnim, _bGoDown, _bGoUp, _bTargeted, _bHitting, _bJumping, _bFalling, _bSpinning, _bSpinSwitch, _bReachLeft, _x, gotoAndStop, _visible, mcTazAnim;
function objCharacter () {
super();
}
function fInitializeProperties(_rStep, _rSpeedStep, _rSpeedMax) {
_nStep = _rStep;
if ((_nStep < 0) or (_nStep > _global.mcGround._nStep)) {
_nStep = 0;
}
_y = int(_global.mcGround._aStepPosY[_nStep]);
_nSpeed = 0;
_nSpeedStep = _rSpeedStep;
_nSpeedMax = _rSpeedMax;
_nSpeedMaxBonus = 0;
_nAccel = 1;
_nDirection = 1;
_nSpinningCount = 0;
_nSpinningTime = 0;
_sAnim = "idle";
_global.mcTaz._visible = true;
_bGoDown = false;
_bGoUp = false;
_bTargeted = false;
_bHitting = false;
_bJumping = false;
_bFalling = false;
_bSpinning = false;
_bSpinSwitch = false;
_bReachLeft = false;
}
function fMoveCharacter(_rWay) {
if ((_global.contGame._sCurrentPhase == "bonusGame") and (_bJumping == false)) {
if (_rWay == "left") {
_rWay = "right";
} else if (_rWay == "right") {
_rWay = "left";
}
}
if ((((_bHitting == false) and (_bTargeted == false)) and (_sAnim != "touchDown")) and (_sAnim != "eat")) {
if (_rWay == "right") {
if (((((_bSpinning == true) and (_sAnim != "spinSwitchRight")) and (_sAnim == "spinLeft")) and (_bSpinSwitch == false)) and (_bReachLeft == false)) {
_sAnim = "spinSwitchRight";
fSetCharacterAnim("spinSwitch");
}
_global.mcTaz._bReachLeft = false;
if (_nSpeed > 0) {
if ((_nDirection == -1) and (_global.contGame._sCurrentPhase == "touchDownGame")) {
var _local4 = true;
fStopCharacter();
} else if ((_nDirection == 1) and (_global.contGame._sCurrentPhase == "bonusGame")) {
var _local4 = true;
fStopCharacter();
}
}
if (_local4 != true) {
if (_global.contGame._sCurrentPhase == "touchDownGame") {
_nDirection = 1;
} else {
_nDirection = -1;
}
if ((_sAnim != "jump") and (_bJumping == false)) {
fSetCharacterAnim("startRun");
if (_nSpeed < (_nSpeedMax - _nAccel)) {
_nSpeed = _nSpeed + _nAccel;
} else {
_nSpeed = _nSpeedMax;
}
}
_x = _x + (_nSpeed * _nDirection);
}
} else if (_rWay == "left") {
if (((((_bSpinning == true) and (_sAnim != "spinSwitchLeft")) and (_sAnim == "spinRight")) and (_bSpinSwitch == false)) and (_bReachLeft == false)) {
_sAnim = "spinSwitchLeft";
fSetCharacterAnim("spinSwitch");
}
if (_nSpeed > 0) {
if ((_nDirection == 1) and (_global.contGame._sCurrentPhase == "touchDownGame")) {
var _local4 = true;
fStopCharacter();
} else if ((_nDirection == -1) and (_global.contGame._sCurrentPhase == "bonusGame")) {
var _local4 = true;
fStopCharacter();
}
}
if (_local4 != true) {
if (_global.contGame._sCurrentPhase == "touchDownGame") {
_nDirection = -1;
} else {
_nDirection = 1;
}
if ((_sAnim != "jump") and (_bJumping == false)) {
fSetCharacterAnim("backPedal");
if (_bSpinning == false) {
if (_nSpeed < (_global.contGame._nGoonSpeed - _nAccel)) {
_nSpeed = _nSpeed + (_nAccel / 2);
} else {
_nSpeed = _global.contGame._nGoonSpeed;
}
} else if (_nSpeed < (Math.floor(_nSpeedMax) - _nAccel)) {
_nSpeed = _nSpeed + _nAccel;
} else {
_nSpeed = Math.floor(_nSpeedMax);
}
_x = _x + (_nSpeed * _nDirection);
}
}
}
if (_rWay == "up") {
fSetCharacterAnim("startRun");
if ((_y - _nSpeedStep) > int(_global.mcGround._aStepPosY[_nStep - 1])) {
_y = _y - _nSpeedStep;
_x = _x + (2 * _global.mcGround._nDirection);
} else {
_x = _x + (2 * _global.mcGround._nDirection);
_y = int(_global.mcGround._aStepPosY[_nStep - 1]);
_nStep--;
_bGoUp = false;
}
} else if (_rWay == "down") {
fSetCharacterAnim("startRun");
if ((_y + _nSpeedStep) < int(_global.mcGround._aStepPosY[_nStep + 1])) {
_y = _y + _nSpeedStep;
_x = _x + (2 * (-_global.mcGround._nDirection));
} else {
_x = _x + (2 * (-_global.mcGround._nDirection));
_y = int(_global.mcGround._aStepPosY[_nStep + 1]);
_nStep++;
_bGoDown = false;
}
}
}
}
function fStopCharacter() {
if (_bReachLeft == false) {
fSetCharacterAnim("stop");
if ((_nSpeed - (_nAccel * 2)) > 0) {
_nSpeed = _nSpeed - (_nAccel * 2);
} else {
_nSpeed = 0;
}
_x = _x + (_nSpeed * _nDirection);
fSetCharacterAnim("idle");
}
}
function fReachCharacterLimit() {
if ((((_sAnim != "touchDown") and (_sAnim != "fallRun")) and (_sAnim != "fallBackPedal")) and (_bTargeted == false)) {
if (_global.contGame._sCurrentPhase == "touchDownGame") {
if (_x < (_global.mcGround.mcGuideZero._x + _global.contMain._nLeftLimit)) {
_bReachLeft = true;
if (((_x + _global.mcGround._nSpeed) + 2) > (_global.mcGround.mcGuideZero._x + _global.contMain._nLeftLimit)) {
_x = _global.mcGround.mcGuideZero._x + _global.contMain._nLeftLimit;
} else {
_x = _x + (_global.mcGround._nSpeed + 2);
}
_nDirection = -_global.mcGround._nDirection;
if (_bJumping == false) {
_nSpeed = _global.mcGround._nSpeed;
if (_bSpinning == false) {
if (_global.mcGround._nSpeed > 0) {
if (_sAnim != "run") {
gotoAndStop("run");
}
} else if ((_bGoUp == false) and (_bGoDown == false)) {
gotoAndStop("idle");
}
}
}
} else if (_x > ((_global.mcGround.mcGuideZero._x + _global.contMain._nStageWidth) - 60)) {
_global.mcTaz._x = (_global.mcGround.mcGuideZero._x + _global.contMain._nStageWidth) - 61;
} else {
_bReachLeft = false;
}
} else if (_x > ((_global.mcGround.mcGuideZero._x + _global.contMain._nStageWidth) - 60)) {
_bReachLeft = true;
_nDirection = -_global.mcGround._nDirection;
_nSpeed = _global.mcGround._nSpeed;
_global.mcTaz._x = (_global.mcGround.mcGuideZero._x + _global.contMain._nStageWidth) - 61;
} else if (_x < (_global.mcGround.mcGuideZero._x + 60)) {
_global.mcTaz._x = _global.mcGround.mcGuideZero._x + 61;
}
}
}
function fCountSpinTime() {
if (_nSpinningCount < _nSpinningTime) {
_nSpinningCount++;
} else {
_nSpinningCount = 0;
_nSpinningTime = 0;
_global.mcTaz._nSpeedMax = _global.mcTaz._nSpeedMax - _global.mcTaz._nSpeedMaxBonus;
_global.mcTaz._nSpeedMaxBonus = 0;
fSetCharacterAnim("spinEnd");
if ((_global.contGame._bShowSpinMeter == true) and (_global.mcHUD.mcSpinMeter._sAction == "open")) {
_global.mcHUD.mcSpinMeter.gotoAndPlay("close");
}
}
}
function fSetCharacterAnim(_rAnim) {
switch (_rAnim) {
case "idle" :
if (((((((((((_sAnim != "idle") and (_sAnim != "spinEnd")) and (_sAnim != "intro")) and (_sAnim != "touchDown")) and (_sAnim != "stop")) and (_sAnim != "jump")) and (_sAnim != "fallRun")) and (_sAnim != "fallBackPedal")) and (_global.mcTaz._bSpinning == false)) and (_global.mcTaz._bGoUp == false)) and (_global.mcTaz._bGoDown == false)) {
gotoAndStop("idle");
}
break;
case "startRun" :
if (_sAnim != "jump") {
if ((_sAnim == "backPedal") and (_nDirection == (-_global.mcGround._nDirection))) {
gotoAndStop("startRun");
} else if (((((_sAnim != "startRun") and (_sAnim != "backPedal")) and (_sAnim != "spinEnd")) and (_sAnim != "run")) and (_bSpinning == false)) {
gotoAndStop("startRun");
}
}
break;
case "run" :
if (((_sAnim != "run") and (_sAnim != "spinEnd")) and (_sAnim != "stop")) {
gotoAndStop("run");
}
break;
case "backPedal" :
if ((((((((_sAnim != "backPedal") and (_sAnim != "spinEnd")) and (_sAnim != "jump")) and (_sAnim != "stop")) and (_sAnim != "jump")) and (_sAnim != "startRun")) and (_bSpinning == false)) and (_bReachLeft == false)) {
gotoAndStop("backPedal");
}
break;
case "stop" :
if (((((_sAnim == "startRun") || (_sAnim == "run")) and (_bSpinning == false)) and (_global.mcTaz._bGoUp == false)) and (_global.mcTaz._bGoDown == false)) {
_sAnim = "stop";
gotoAndStop("stop");
}
break;
case "jump" :
if ((((((_global.mcTaz._sAnim != "jump") and (_sAnim != "spinEnd")) and (_global.mcTaz._bTargeted == false)) and (_visible == true)) and (_bSpinning == false)) and (_x >= (_global.mcGround.mcGuideZero._x + 45))) {
_nDirection = -_global.mcGround._nDirection;
_bJumping = true;
_global.objSounds.fPlaySounds(this, "sFx_jump", 0, 1, 100, "fx", "taz");
gotoAndStop("jump");
}
break;
case "spinSwitch" :
if (((_sAnim == "spinSwitchLeft") and (_sAnim != "spinEnd")) and (_bSpinSwitch == false)) {
_bSpinSwitch = true;
gotoAndStop("spinSwitch");
mcTazAnim.gotoAndPlay("left");
} else if (((_sAnim == "spinSwitchRight") and (_sAnim != "spinEnd")) and (_bSpinSwitch == false)) {
_bSpinSwitch = true;
gotoAndStop("spinSwitch");
mcTazAnim.gotoAndPlay("right");
}
break;
case "spinEnd" :
if (_sAnim != "spinEnd") {
gotoAndStop("spinEnd");
}
break;
case "spinEndNext" :
_bSpinning = false;
if (_global.contGame._sCurrentPhase == "bonusGame") {
_global.mcHUD.mcTimer.gotoAndStop("endBonusPhase");
gotoAndStop("idle");
_nSpeed = 0;
_bTargeted = true;
_global.mcGround._bStop = true;
} else if (_nSpeed > 0) {
if ((_global.contGame._sCurrentPhase == "touchDownGame") and (_nDirection == 1)) {
gotoAndStop("run");
} else if ((_global.contGame._sCurrentPhase == "touchDownGame") and (_nDirection == -1)) {
gotoAndStop("backPedal");
} else if ((_global.contGame._sCurrentPhase == "bonusGame") and (_nDirection == 1)) {
gotoAndStop("run");
} else if ((_global.contGame._sCurrentPhase == "bonusGame") and (_nDirection == -1)) {
gotoAndStop("backPedal");
}
} else {
gotoAndStop("idle");
}
}
}
}
Symbol 958 MovieClip [__Packages.objGameplay] Frame 0
class objGameplay extends MovieClip
{
var _nStep, _nMinY, _nMaxY, _nBkgCount, _nBkgCountMax, _aStepPosY, _nSpeed, _nSpeedMax, _nDirection, _nAccel, _nStartX, _x, mcGuideZero;
function objGameplay () {
super();
}
function fInitializeProperties(_rStep, _rMinY, _rMaxY, _rSpeedMax) {
_nStep = _rStep;
_nMinY = _rMinY;
_nMaxY = _rMaxY;
_nBkgCount = 0;
_nBkgCountMax = 6;
if (_nStep <= 1) {
_nStep = 2;
}
if (_nMinY >= _nMaxY) {
trace("ERROR : TERRAIN LIMITS UNVAILABLES");
} else {
_aStepPosY = [];
var _local4 = _nMaxY - _nMinY;
var _local3 = Math.floor(_local4 / (_nStep - 1));
var _local2 = 0;
while (_local2 < _nStep) {
_aStepPosY.push(_nMinY + (_local3 * _local2));
_local2++;
}
}
_nSpeed = 0;
_nSpeedMax = _rSpeedMax;
_nDirection = -1;
_nAccel = 0.5;
_nStartX = _x;
}
function fMoveTerrain() {
if ((((_global.contGame._nCurrentYard >= 100) and (_bStop == false)) and (_nDirection == -1)) and ((_global.contGame._objAttachPoint.x - _nSpeedMax) < _global.contMain._nStageWidth)) {
_bStop = true;
}
if (_bStop == false) {
if (_nSpeed < (_nSpeedMax - _nAccel)) {
_nSpeed = _nSpeed + _nAccel;
} else {
_nSpeed = _nSpeedMax;
}
_x = _x + (_nSpeed * _nDirection);
mcGuideZero._x = mcGuideZero._x - (_nSpeed * _nDirection);
} else {
if (_nSpeed > 0) {
_nSpeed = _nSpeed - (_nAccel * Math.round(_nSpeedMax / 5));
} else {
_nSpeed = 0;
}
_x = _x + (_nSpeed * _nDirection);
mcGuideZero._x = mcGuideZero._x - (_nSpeed * _nDirection);
}
}
function fMoveBKG() {
_nBkgCount++;
if (_nBkgCount == _nBkgCountMax) {
if (_nSpeed >= 0) {
_global.levelScreen.mcBkg._x = _global.levelScreen.mcBkg._x + (Math.floor(_nSpeed / 7) * _nDirection);
}
_nBkgCount = 0;
}
}
var _bStop = false;
}
Symbol 959 MovieClip [__Packages.objObstacle] Frame 0
class objObstacle extends MovieClip
{
var _sType, _nStep, _nDepth, _y, _nSpeed, _nDirection, _sAnim, _visible, _width, _x, hitTest, gotoAndStop, _sColor, mcHitZone, gotoAndPlay, mcObstacleAnim, getDepth, swapDepths, removeMovieClip;
function objObstacle () {
super();
}
function fInitializeProperties(_rStep, _rSpeed, _rDepth, _rType) {
_sType = _rType;
_nStep = _rStep;
_nDepth = _rDepth;
if ((_nStep < 0) or (_nStep > _global.mcGround._nStep)) {
_nStep = 0;
}
_y = int(_global.mcGround._aStepPosY[_nStep]);
_nSpeed = _rSpeed;
_nDirection = -1;
_sAnim = "run";
_bActive = true;
_visible = false;
_global.contGame.fAddElementActive(this);
}
function fCheckStatus() {
if (_bToRemove == true) {
fElementDelete();
} else if (_bActive == true) {
_nDirection = -1;
if ((_global.contGame._sCurrentPhase == "touchDownGame") and (_visible == false)) {
if (_x < ((_global.mcGround.mcGuideZero._x + _global.contMain._nStageWidth) + _width)) {
_visible = true;
}
} else if ((_global.contGame._sCurrentPhase == "bonusGame") and (_visible == false)) {
if (_x > (_global.mcGround.mcGuideZero._x - _width)) {
_visible = true;
}
}
if (_global.contPause.opened == false) {
fCheckDepth();
if ((_global.mcTaz._bJumping == true) and (_global.mcTaz.mcTazAnim._currentframe > 2)) {
if (((hitTest(_global.mcTaz.mcTazAnim.mcHitZone) and (_global.mcTaz._nStep == _nStep)) and (_bHitted == false)) and (_global.mcTaz._bHitting == false)) {
_bHitted = true;
_bActive = false;
_global.mcTaz._bHitting = true;
_global.mcTaz._visible = false;
_global.contGame.fAddPoint(100);
gotoAndStop("hit" + _sColor);
}
} else if ((mcHitZone.hitTest(_global.mcTaz.mcTazAnim) and (_bHitted == false)) and (_global.mcTaz._bTargeted == false)) {
if ((_global.mcTaz._bSpinning == true) and ((_global.mcTaz._sAnim != "eat") or (_global.mcTaz._sAnim != "spinEnd"))) {
if (_sType == "goon") {
_bHitted = true;
_bActive = false;
if (_global.contGame._sCurrentPhase == "touchGameGame") {
_global.contGame.fAddPoint(150);
} else {
_global.contGame.fAddPoint(300);
}
var _local3 = random(10);
if (_local3 > 8) {
_global.objSounds.fPlaySounds(this, "sFx_tazAh", 0, 1, 40, "fx", "inGame");
}
gotoAndStop("spinHit" + _sColor);
} else if (_global.mcTaz._nStep == _nStep) {
_bHitted = true;
_bActive = false;
_global.contGame.fAddPoint(75);
gotoAndPlay("delete");
}
} else if (_sType == "goon") {
if (((_global.mcTaz._nStep == _nStep) || ((_global.mcTaz._nStep == (_nStep - 1)) and (_global.mcTaz._bGoDown == true))) || ((_global.mcTaz._nStep == (_nStep + 1)) and (_global.mcTaz._bGoUp == true))) {
if ((_x + (_width / 2)) > _global.mcTaz._x) {
_global.contMain.fPause("anim");
_bHitted = true;
_bActive = false;
_global.mcTaz._bTargeted = true;
_global.mcTaz._visible = false;
_global.mcTaz.swapDepths(333334);
gotoAndStop("catch" + _sColor);
_global.mcHUD.btn_help.enabled = false;
}
}
} else if ((((_global.mcTaz._nStep == _nStep) and (_global.mcTaz._bGoDown == false)) and (_global.mcTaz._bGoUp == false)) and ((_x + (_width / 2)) > _global.mcTaz._x)) {
_global.objSounds.fPlaySounds(this, "sFx_ballonBond", 0, 1, 100, "fx", "tazFall");
_global.mcGround._bStop = true;
_bHitted = true;
_bActive = false;
_global.mcTaz._bJumping = false;
_global.mcTaz._nSpeed = 0;
_global.mcTaz._bTargeted = true;
_global.contGame.fAddPoint(-15);
mcObstacleAnim.gotoAndStop(2);
if (_global.mcTaz._sAnim == "backPedal") {
_global.mcTaz.gotoAndStop("fallBackPedal");
} else {
_global.mcTaz.gotoAndStop("fallRun");
}
}
}
fCheckLimit();
_x = _x + (_nSpeed * _nDirection);
} else if (_global.mcTaz._bTargeted == true) {
fCheckDepth();
fCheckLimit();
_x = _x + (_nSpeed * _nDirection);
}
} else {
fCheckDepth();
fCheckLimit();
}
}
function fCheckDepth() {
if (hitTest(_global.mcTaz)) {
if ((_y < _global.mcTaz._y) and (_global.mcTaz.getDepth() < getDepth())) {
swapDepths(_global.mcTaz);
} else if ((_y > _global.mcTaz._y) and (getDepth() < _global.mcTaz.getDepth())) {
_global.mcTaz.swapDepths(this);
}
} else if (((_global.mcTaz._bTargeted == true) and (getDepth() < _global.mcTaz.getDepth())) and (_bActive == true)) {
_global.mcTaz.swapDepths(this);
}
}
function fCheckLimit() {
if (_global.contGame._sCurrentPhase == "touchDownGame") {
if (_x < (_global.mcGround.mcGuideZero._x - _width)) {
fElementDelete();
}
} else if (_x > ((_global.mcGround.mcGuideZero._x + _global.contMain._nStageWidth) + _width)) {
fElementDelete();
}
}
function fElementDelete(mode) {
if (mode != "destroyElement") {
_global.contGame.fRemoveElementActive(this);
}
swapDepths(100001);
removeMovieClip();
}
var _bHitted = false;
var _bActive = true;
var _bToRemove = false;
}
Symbol 44 MovieClip Frame 1
_visible = false;
this.loadMovie(gameMC.gHSRoot_swf + "HSMinScore.swf");
Symbol 44 MovieClip Frame 4
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
gotoAndStop (1);
Symbol 95 MovieClip Frame 13
stop();
Symbol 97 Button
on (release) {
fHelpNavigation("Play");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "TitleCard");
}
Symbol 102 MovieClip Frame 13
stop();
Symbol 103 Button
on (release) {
fHelpNavigation("Help");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "TitleCard");
}
Symbol 104 MovieClip Frame 1
function fHelpNavigation(arrow) {
if (arrow == "Help") {
_global.objSounds.fPlaySounds(this.titleAvatar, "sFx_btnDown", 0, 1, 80, "fx", "TitleCard");
_global.contTrans.str_previousScreen = _parent._currentframe;
_global.contTrans.stopSound = false;
_global.contTrans.str_nextScreen = "instructionScreen";
_global.contTrans.gotoAndStop("interScreen");
} else if (arrow == "Play") {
_global.contTrans.str_previousScreen = _parent._currentframe;
_global.contTrans.stopSound = true;
_global.contTrans.str_nextScreen = "levelScreen";
_global.contTrans.gotoAndStop("interScreen");
}
}
stop();
if (_global.contTrans._bMusicPlaying != true) {
_global.objSounds.fPlaySounds(this, "sMu_tts", 0, 99999, 80, "music", "TitleCardsoundTrack");
}
Symbol 106 MovieClip Frame 1
function fInitializeContMain() {
this._nStageWidth = 500;
this._nLeftLimit = 90;
this._nRightLimit = 60;
this._nStageHeight = 375;
_aGameplay = [0, 3, 1];
this.bol_submit = false;
}
function fStyleNumber(_nNumber, _nMinimumChar) {
var _local6 = false;
var _local1 = String(_nNumber);
var _local7 = _local1;
do {
if (_local1.length < _nMinimumChar) {
_local6 = true;
_local7 = "0" + _local7;
}
} while (_local7.length < _nMinimumChar);
_local1 = _local7;
var _local3 = "";
var _local5 = _local1.length;
_local5 = _local5 / 3;
if (_local5 <= 1) {
return(_local1);
}
var _local2 = _local5;
while (_local2 > 1) {
_local3 = (" " + _local1.substr(-3)) + _local3;
_local1 = _local1.substr(0, -3);
_local2--;
}
_local7 = _local1 + _local3;
return(_local7);
}
function fSubLastNumberChar(_sString) {
var _local3 = "";
var _local4 = _sString.length;
var _local1 = _local4 - 1;
while (_local1 > 0) {
var _local2 = _sString.charAt(_local1);
if (isNaN(_local2)) {
return(_local3);
}
_local3 = _local2 + _local3;
_local1--;
}
}
function fPause(mode) {
_global.contPause.opened = true;
_global.mcHUD.btn_help.enabled = false;
this._nPauseStartTime = getTimer();
_global.mcTaz.mcTazAnim.stop();
if (_global.contGame._bTornade1 == true) {
this._nTornade1Position = _global.contGame.tornade1.position;
_global.contGame.tornade1.stop();
}
if (_global.contGame._bTornade2 == true) {
this._nTornade2Position = _global.contGame.tornade2.position;
_global.contGame.tornade2.stop();
}
_global.b.broadcastMessage("onPause");
if (mode != "anim") {
_quality = "HIGH";
_global.contPause.gotoAndStop("instruction");
}
}
function fUnPause() {
_global.contPause.opened = false;
_global.mcHUD.btn_help.enabled = true;
_global.mcTaz.mcTazAnim.play();
if (_global.contGame._bTornade1 == true) {
_global.contGame.tornade1.start(this._nTornade1Position / 1000);
}
if (_global.contGame._bTornade2 == true) {
_global.contGame.tornade2.start(this._nTornade2Position / 1000);
}
_global.b.broadcastMessage("onPlay");
var _local3 = getTimer() - this._nPauseStartTime;
_global.contPause.gotoAndStop(1);
_quality = "MEDIUM";
}
_global.contMain = this;
fInitializeContMain();
stop();
Symbol 115 MovieClip Frame 1
_global.objSounds.fPlaySounds(this, "sFx_turbineTransition", 0, 1, 100, "fx", "transition");
Symbol 115 MovieClip Frame 7
_parent.fChangeLabel();
Symbol 115 MovieClip Frame 14
_parent.gotoAndStop("idle");
Symbol 116 MovieClip Frame 1
_global.objSounds.fPlaySounds(this, "sFx_turbineTransition", 0, 1, 100, "fx", "transition");
Symbol 116 MovieClip Frame 8
_global.contMain.fPause("anim");
_global.mcTaz.gotoAndStop("intro");
_global.contGame.fInitializeCharacter();
Symbol 116 MovieClip Frame 16
stop();
_parent.gotoAndStop(1);
Symbol 117 MovieClip Frame 1
function fChangeLabel() {
if (this.bol_empty_var == true) {
this.bol_empty_var = false;
_parent.gotoAndStop("empty_var_game");
_global.objSounds._aFxSounds = [];
_global.objSounds._aMusicSounds = [];
_global.RPE(_global.b);
}
if (this.bol_innerAFrame == true) {
this.bol_innerAFrame = false;
var _local4 = this.str_previousScreen;
_local4.gotoAndStop(this.str_nextScreen);
if (this.bol_getHighScore == true) {
this.bol_getHighScore = false;
_global.contMain.getScores();
}
if (this.bol_submitHighScore == true) {
this.bol_submitHighScore = false;
_global.contMain.submitScore(_global.contMain._aGameplay[0]);
}
} else {
_global.stage.gotoAndStop(this.str_nextScreen);
if (this.bol_getHighScore == true) {
this.bol_getHighScore = false;
_global.contMain.getScores();
}
if (this.bol_submitHighScore == true) {
this.bol_submitHighScore = false;
_global.contMain.submitScore(_global.contMain._aGameplay[0]);
}
}
}
function fEndNavigation(arrow, path) {
this.str_previousScreen = "";
if (arrow == "Submit") {
_global.objSounds.fPlaySounds(this, "sFx_btnDown", 0, 1, 100, "fx", "endCard");
this.bol_submitHighScore = true;
this.stopSound = false;
this.str_nextScreen = "highScoreScreen";
} else if (arrow == "ViewHS") {
_global.objSounds.fPlaySounds(this, "sFx_btnDown", 0, 1, 100, "fx", "endCard");
this.bol_getHighScore = true;
this.stopSound = false;
this.str_nextScreen = "highScoreScreen";
} else if (arrow == "PlayAgain") {
_global.objSounds.fPlaySounds(this, "sFx_btnDown", 0, 1, 100, "fx", "endCard");
this.str_nextScreen = "empty_var_game";
this.stopSound = false;
_global.contTrans.bol_empty_var = true;
}
this.gotoAndStop("interScreen");
}
stop();
Symbol 117 MovieClip Frame 2
stop();
if (_global.contTrans.stopSound == true) {
_global.contTrans.stopSound = false;
_global.objSounds.fStopSounds(this, "sMu_tts", "all", "music");
}
Symbol 117 MovieClip Frame 3
stop();
if (_global.contTrans.stopSound == true) {
_global.contTrans.stopSound = false;
_global.objSounds.fStopSounds(this, "sMu_tts", "all", "music");
}
_global.contGame.fShowBattle();
Symbol 117 MovieClip Frame 4
stop();
if (_global.contTrans.stopSound == true) {
_global.contTrans.stopSound = false;
_global.objSounds.fStopSounds(this, "sMu_tts", "all", "music");
}
Symbol 123 MovieClip Frame 13
stop();
Symbol 124 Button
on (release) {
fHelpNavigation("Next");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 80, "fx", "TitleCard");
}
Symbol 125 Button
on (release) {
fHelpNavigation("Play");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 80, "fx", "TitleCard");
}
Symbol 130 MovieClip Frame 13
stop();
Symbol 131 Button
on (release) {
fHelpNavigation("Back");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 80, "fx", "TitleCard");
}
Symbol 146 MovieClip Frame 1
function fHelpNavigation(arrow) {
if (arrow == "Back") {
prevFrame();
} else if (arrow == "Next") {
nextFrame();
} else if ((arrow == "Play") and (_global.stage._currentframe == 2)) {
_global.contTrans.str_previousScreen = "";
_global.contTrans.stopSound = true;
_global.contTrans.str_nextScreen = "levelScreen";
_global.contTrans.gotoAndStop("interScreen");
} else if ((arrow == "Play") and (_global.stage._currentframe > 2)) {
_global.contMain.fUnPause();
}
}
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 2
stop();
Instance of Symbol 157 MovieClip in Symbol 158 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent._bInit != true) {
_parent._bInit = true;
_global.contGame._objAttachPoint = new Object();
_global.contGame._objAttachPoint.x = 0;
_global.contGame._objAttachPoint.y = 0;
} else {
_global.contGame._objAttachPoint.x = 0;
_global.contGame._objAttachPoint.y = 0;
_parent.localToGlobal(_global.contGame._objAttachPoint);
}
}
Symbol 160 MovieClip [mcCheckPoint] Frame 1
#initclip 11
Object.registerClass("mcCheckPoint", objItem);
#endinitclip
Symbol 160 MovieClip [mcCheckPoint] Frame 2
stop();
if (this._name == ("mcCheckPoint" + _global.contGame._nCurrentYard)) {
this.gotoAndStop("idle");
} else {
_global.mcGround["mcYardNumber" + _global.contMain.fSubLastNumberChar(this._name)]._visible = false;
}
Symbol 160 MovieClip [mcCheckPoint] Frame 3
stop();
this.fInitializeProperties("checkPoint");
Instance of Symbol 157 MovieClip in Symbol 160 MovieClip [mcCheckPoint] Frame 3
onClipEvent (enterFrame) {
_parent.fCheckStatus();
}
Symbol 160 MovieClip [mcCheckPoint] Frame 4
stop();
Symbol 162 MovieClip [mcReachZone] Frame 1
#initclip 5
Object.registerClass("mcReachZone", objItem);
#endinitclip
Symbol 162 MovieClip [mcReachZone] Frame 2
stop();
Symbol 162 MovieClip [mcReachZone] Frame 3
stop();
this.fInitializeProperties("touchDown");
Instance of Symbol 157 MovieClip in Symbol 162 MovieClip [mcReachZone] Frame 3
onClipEvent (enterFrame) {
if (_global.contPause.opened == false) {
_parent._xscale = _parent._xscale + 2;
_parent._x = _parent._x - 2;
_parent.fCheckStatus();
}
}
Symbol 162 MovieClip [mcReachZone] Frame 4
stop();
Symbol 275 MovieClip Frame 1
_global.objSounds.fPlaySounds(this, "sFx_kickBallon", 0, 1, 100, "fx", "intro");
Symbol 275 MovieClip Frame 35
_global.objSounds.fPlaySounds(this, "sFx_eatBallon", 0, 1, 100, "fx", "intro");
Symbol 275 MovieClip Frame 57
_global.objSounds.fPlaySounds(this, "sFx_spitBallon", 0, 1, 100, "fx", "intro");
Symbol 275 MovieClip Frame 97
_global.contMain.fUnPause();
_parent.gotoAndStop("idle");
Symbol 281 MovieClip Frame 3
_parent.gotoAndStop("run");
Symbol 338 MovieClip Frame 5
_parent.gotoAndStop("idle");
Symbol 369 MovieClip Frame 1
if (_global.mcTaz._x < ((_global.mcGround.mcGuideZero._x + _global.contMain._nLeftLimit) + 10)) {
_parent._nSpeed = Math.floor(_parent._nSpeedMax + (_parent._nSpeedMax / 6));
} else {
_parent._nSpeed = _parent._nSpeedMax;
}
Symbol 369 MovieClip Frame 11
_global.objSounds.fPlaySounds(this, "sFx_jumpLand", 0, 1, 100, "fx", "tazJump");
Symbol 369 MovieClip Frame 14
_parent._bJumping = false;
_parent._nSpeed = 0;
Symbol 369 MovieClip Frame 22
_parent.gotoAndStop("idle");
Symbol 394 MovieClip Frame 15
_global.mcTaz._nSpeedMaxBonus = _global.mcTaz._nSpeedMaxBonus + 5;
_global.mcTaz._nSpeedMax = _global.mcTaz._nSpeedMax + _global.mcTaz._nSpeedMaxBonus;
_parent.gotoAndStop("spinRight");
Symbol 441 MovieClip Frame 5
_global.mcTaz._bFalling = true;
Symbol 441 MovieClip Frame 6
_global.objSounds.fPlaySounds(this, "sFx_jumpLand", 0, 1, 100, "fx", "tazFall");
Symbol 441 MovieClip Frame 10
_global.mcTaz._bFalling = false;
Symbol 441 MovieClip Frame 11
_global.objSounds.fPlaySounds(this, "sFx_tazBad01", 0, 1, 100, "fx", "tazFall");
Symbol 441 MovieClip Frame 56
_global.mcTaz._bTargeted = false;
_global.mcGround._bStop = false;
_parent.gotoAndStop("idle");
Symbol 458 MovieClip Frame 2
_global.mcTaz._bFalling = true;
Symbol 458 MovieClip Frame 4
_global.objSounds.fPlaySounds(this, "sFx_jumpLand", 0, 1, 100, "fx", "tazFall");
Symbol 458 MovieClip Frame 7
_global.mcTaz._bFalling = false;
Symbol 458 MovieClip Frame 9
_global.objSounds.fPlaySounds(this, "sFx_tazBad01", 0, 1, 100, "fx", "tazFall");
Symbol 458 MovieClip Frame 37
_global.mcTaz._bTargeted = false;
_global.mcGround._bStop = false;
_parent.gotoAndStop("idle");
Symbol 473 MovieClip Frame 5
stop();
_global.mcTaz._bSpinSwitch = false;
_parent.gotoAndStop("spinLeft");
Symbol 473 MovieClip Frame 10
stop();
_global.mcTaz._bSpinSwitch = false;
_parent.gotoAndStop("spinRight");
Symbol 489 MovieClip Frame 5
stop();
_parent.fSetCharacterAnim("spinEndNext");
Symbol 542 MovieClip Frame 9
_global.objSounds.fPlaySounds(this, "sFx_throw01", 0, 1, 100, "fx", "tazThrow");
Symbol 542 MovieClip Frame 13
_global.objSounds.fPlaySounds(this, "sFx_ballonBond", 0, 1, 100, "fx", "goonSpinHit");
Symbol 542 MovieClip Frame 32
_global.objSounds.fPlaySounds(this, "sFx_throw00", 0, 1, 100, "fx", "goonSpinHit");
Symbol 542 MovieClip Frame 47
_global.objSounds.fPlaySounds(this, "sFx_throw01", 0, 1, 100, "fx", "tazThrow");
Symbol 542 MovieClip Frame 76
_global.objSounds.fPlaySounds(this, "sFx_throw01", 0, 1, 100, "fx", "tazThrow");
Symbol 542 MovieClip Frame 110
_global.contGame.fStartBonusRound("bonus");
Symbol 568 MovieClip Frame 9
_global.objSounds.fPlaySounds(this, "sFx_turbine2", 0, 1, 50, "fx", "tazThrow");
Symbol 568 MovieClip Frame 10
_global.objSounds.fPlaySounds(this, "sFx_throw01", 0, 1, 100, "fx", "tazThrow");
Symbol 568 MovieClip Frame 28
_global.objSounds.fPlaySounds(this, "sFx_pouf", 0, 1, 100, "fx", "tazThrow");
Symbol 568 MovieClip Frame 65
_global.objSounds.fStopSounds(this, "sFx_turbine2", "one", "fx", "tazThrow");
_global.contGame.fStartBonusRound("bonus");
Symbol 580 MovieClip Frame 3
_global.objSounds.fPlaySounds(this, "sFx_throw01", 0, 1, 100, "fx", "tazThrow");
Symbol 580 MovieClip Frame 15
_global.objSounds.fPlaySounds(this, "sFx_ballonBond", 0, 1, 100, "fx", "goonSpinHit");
Symbol 580 MovieClip Frame 24
_global.objSounds.fPlaySounds(this, "sFx_throw00", 0, 1, 100, "fx", "tazThrow");
_global.objSounds.fPlaySounds(this, "sFx_pouf", 0, 1, 100, "fx", "tazThrow");
Symbol 580 MovieClip Frame 30
_global.objSounds.fPlaySounds(this, "sFx_throw00", 0, 1, 100, "fx", "tazThrow");
Symbol 580 MovieClip Frame 43
_global.objSounds.fPlaySounds(this, "sFx_throw00", 0, 1, 100, "fx", "tazThrow");
_global.objSounds.fPlaySounds(this, "sFx_pouf", 0, 1, 100, "fx", "tazThrow");
Symbol 580 MovieClip Frame 52
_global.objSounds.fPlaySounds(this, "sFx_throw00", 0, 1, 100, "fx", "tazThrow");
Symbol 580 MovieClip Frame 58
_global.objSounds.fPlaySounds(this, "sFx_throw00", 0, 1, 100, "fx", "tazThrow");
Symbol 580 MovieClip Frame 62
_global.objSounds.fPlaySounds(this, "sFx_throw00", 0, 1, 100, "fx", "tazThrow");
Symbol 580 MovieClip Frame 86
_global.contGame.fStartBonusRound("bonus");
Symbol 598 MovieClip Frame 9
_global.objSounds.fPlaySounds(this, "sFx_throw01", 0, 1, 100, "fx", "tazThrow");
Symbol 598 MovieClip Frame 14
_global.objSounds.fPlaySounds(this, "sFx_ballonBond", 0, 1, 100, "fx", "goonSpinHit");
Symbol 598 MovieClip Frame 22
_global.objSounds.fPlaySounds(this, "sFx_turbine2", 0, 1, 50, "fx", "tazThrow");
Symbol 598 MovieClip Frame 30
_global.objSounds.fStopSounds(this, "sFx_turbine2", "one", "fx", "tazThrow");
Symbol 598 MovieClip Frame 62
_global.objSounds.fPlaySounds(this, "sFx_flute", 0, 1, 100, "fx", "tazThrow");
Symbol 598 MovieClip Frame 121
_global.contGame.fStartBonusRound("bonus");
Symbol 599 MovieClip [mcTaz] Frame 1
#initclip 6
Object.registerClass("mcTaz", objCharacter);
#endinitclip
stop();
Symbol 599 MovieClip [mcTaz] Frame 2
stop();
this._sAnim = "intro";
Symbol 599 MovieClip [mcTaz] Frame 3
stop();
this._sAnim = "idle";
Symbol 599 MovieClip [mcTaz] Frame 4
stop();
this._sAnim = "startRun";
Symbol 599 MovieClip [mcTaz] Frame 5
stop();
this._sAnim = "run";
Symbol 599 MovieClip [mcTaz] Frame 6
stop();
this._sAnim = "backPedal";
Symbol 599 MovieClip [mcTaz] Frame 7
stop();
this._sAnim = "stop";
Symbol 599 MovieClip [mcTaz] Frame 8
stop();
this._sAnim = "jump";
Symbol 599 MovieClip [mcTaz] Frame 9
stop();
this._sAnim = "eat";
Symbol 599 MovieClip [mcTaz] Frame 10
stop();
this._sAnim = "fallRun";
Symbol 599 MovieClip [mcTaz] Frame 11
stop();
this._sAnim = "fallBackPedal";
Symbol 599 MovieClip [mcTaz] Frame 12
stop();
this._sAnim = "spinRight";
if (((_global.contGame._nTimeSpinSound == 0) and (_global.contGame._bTornade1 != true)) and (_global.contGame._bTornade2 != true)) {
_global.contGame.tornade1 = new Sound(_global.contGame);
_global.contGame.tornade1.attachSound("sFx_turbine2");
_global.contGame.tornade1.setVolume(50);
_global.contGame.tornade2 = new Sound(_global.contGame);
_global.contGame.tornade2.attachSound("sFx_turbine2");
_global.contGame.tornade2.setVolume(50);
_global.contGame.tornade1.start();
_global.contGame._bTornade1 = true;
_global.contGame._bTornade2 = false;
_global.contGame._nTimeSpinSound = _global.contGame.tornade1.duration;
}
Symbol 599 MovieClip [mcTaz] Frame 13
stop();
this._sAnim = "spinSwitch";
Symbol 599 MovieClip [mcTaz] Frame 14
stop();
this._sAnim = "spinLeft";
Symbol 599 MovieClip [mcTaz] Frame 15
stop();
this._sAnim = "spinEnd";
_global.contGame.tornade1.stop();
_global.contGame.tornade2.stop();
_global.contGame._bTornade1 = false;
_global.contGame._bTornade2 = false;
_global.contGame._nTimeSpinSound = 0;
Symbol 599 MovieClip [mcTaz] Frame 16
stop();
this._sAnim = "touchDown";
var _nRandom = Math.round(Math.random());
if (_nRandom == 1) {
this.nextFrame();
}
Symbol 599 MovieClip [mcTaz] Frame 17
stop();
var _nRandom = Math.round(Math.random());
if (_nRandom == 1) {
this.nextFrame();
}
Symbol 599 MovieClip [mcTaz] Frame 18
stop();
var _nRandom = Math.round(Math.random());
if (_nRandom == 1) {
this.nextFrame();
}
Symbol 599 MovieClip [mcTaz] Frame 19
stop();
Symbol 620 MovieClip Frame 1
stop();
this._visible = false;
Symbol 620 MovieClip Frame 2
this._visible = true;
Symbol 620 MovieClip Frame 4
_global.objSounds.fPlaySounds(this, "sFx_battle", 0, 1, 100, "fx", "battle");
Symbol 620 MovieClip Frame 45
_global.contTrans.stopSound = false;
_global.contTrans.str_previousScreen = _parent._currentframe;
_global.contTrans.str_nextScreen = "levelScreen";
_global.contTrans.gotoAndStop("battleTransition");
Symbol 620 MovieClip Frame 53
this.gotoAndStop(1);
this._y = this._y - 10000;
Symbol 623 MovieClip [mcGround] Frame 1
#initclip 7
Object.registerClass("mcGround", objGameplay);
#endinitclip
Instance of Symbol 620 MovieClip "mcBattle" in Symbol 623 MovieClip [mcGround] Frame 1
onClipEvent (load) {
this.swapDepths(999999);
}
Symbol 624 MovieClip Frame 1
if (_global.contTrans._bGameMusicPlaying == false) {
_global.contTrans._bGameMusicPlaying = true;
_global.objSounds.fPlaySounds(this, "sMu_game", 0, 99999, 80, "music", "GamesoundTrack");
}
Instance of Symbol 623 MovieClip [mcGround] "mcGround" in Symbol 624 MovieClip Frame 1
onClipEvent (load) {
this._x = 0;
this._y = 0;
}
Symbol 629 Button
on (release) {
_global.contMain.fPause();
}
on (rollOver) {
_global.objSounds.fPlaySounds(_global.contMain, "sFx_btnOver", 0, 1, 60, "fx", "TitleCard");
}
Instance of Symbol 360 MovieClip in Symbol 634 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_global.contGame.fGetBonusTime(this);
}
onClipEvent (enterFrame) {
_global.contGame.fGetBonusTime(this);
}
Symbol 636 MovieClip Frame 1
_global.objSounds.fPlaySounds(this, "sFx_sifflet", 0, 1, 100, "fx", "timer");
Symbol 636 MovieClip Frame 34
stop();
_global.contMain.fPause("anim");
_global.contGame.fNextLevel();
Symbol 637 MovieClip Frame 1
stop();
_global.mcTimer = this;
Symbol 637 MovieClip Frame 2
stop();
Symbol 637 MovieClip Frame 3
stop();
Symbol 640 MovieClip Frame 11
stop();
Symbol 641 MovieClip Frame 1
stop();
Symbol 641 MovieClip Frame 35
stop();
Symbol 647 MovieClip Frame 1
stop();
this._sAction = "hide";
Symbol 647 MovieClip Frame 2
this._sAction = "opening";
Symbol 647 MovieClip Frame 3
this.mcSpinMeterBar.gotoAndStop(100);
Symbol 647 MovieClip Frame 7
this._sAction = "open";
stop();
Symbol 647 MovieClip Frame 8
this._sAction = "closing";
Symbol 647 MovieClip Frame 12
stop();
gotoAndStop (1);
Symbol 652 MovieClip Frame 1
_global.objSounds.fPlaySounds(this, "sFx_loseLive", 0, 1, 100, "fx", "HUD");
Symbol 652 MovieClip Frame 20
stop();
_global.contGame.fManageLive(0);
_parent.swapDepths(1000002);
_parent.removeMovieClip();
Symbol 653 MovieClip Frame 1
stop();
Symbol 653 MovieClip Frame 2
stop();
Symbol 654 MovieClip Frame 1
stop();
Symbol 665 MovieClip Frame 19
_global.objSounds.fPlaySounds(this, "sFx_popup", 0, 1, 100, "fx", "round");
Symbol 665 MovieClip Frame 20
mcRound._sRound = _global.contMain.fStyleNumber(_global.contMain._aGameplay[2], 2);
Symbol 665 MovieClip Frame 65
_global.objSounds.fPlaySounds(this, "sFx_ioum", 0, 1, 80, "fx", "round");
Symbol 665 MovieClip Frame 73
_global.mcTaz.gotoAndStop("intro");
_global.contPause.gotoAndStop("idle");
Symbol 671 MovieClip Frame 1
_global.objSounds.fPlaySounds(this, "sFx_popup", 0, 1, 80, "fx", "round");
Symbol 671 MovieClip Frame 2
_global.objSounds.fPlaySounds(this, "sFx_happy", 0, 1, 100, "fx", "tazThrow");
Symbol 671 MovieClip Frame 65
_global.objSounds.fPlaySounds(this, "sFx_ioum", 0, 1, 80, "fx", "round");
Symbol 671 MovieClip Frame 78
_global.contGame.fStartBonusRound("bonusStart");
_parent.gotoAndStop("idle");
Symbol 672 MovieClip Frame 1
stop();
Symbol 672 MovieClip Frame 2
stop();
Symbol 672 MovieClip Frame 3
stop();
Symbol 672 MovieClip Frame 4
stop();
Symbol 674 MovieClip Frame 1
function fDestroyObstacleFormation() {
var _local2 = 0;
while (_local2 < this._aElementActive.length) {
if (this._aElementActive[_local2] != undefined) {
this._aElementActive[_local2].fElementDelete("destroyElement");
}
_local2++;
}
this._aElementActive = [];
}
function fPlaceItem(_nStepToGo, _nRow) {
var _local2 = "mcHotDog" + _global.contGame._nDepthIndex;
_global.mcGround.attachMovie("mcHotDog", _local2, _global.contGame._nDepthIndex);
_global.contGame._nDepthIndex++;
_global.mcGround[_local2]._y = _global.mcGround._aStepPosY[_nStepToGo];
if (_global.contGame._sCurrentPhase == "touchDownGame") {
_global.mcGround[_local2]._x = _global.mcGround.mcGuideZero._x + (100 * _nRow);
} else {
_global.mcGround[_local2]._x = _global.mcGround.mcGuideZero._x - 5;
}
_global.mcGround[_local2].gotoAndStop("idle");
_global.mcGround[_local2]._randomStep = _nStepToGo;
}
function fPlaceObstacle(_nStepToGo, _nRow) {
if (_global.contGame._sCurrentPhase == "touchDownGame") {
if (_nStepToGo == "Up") {
var _local3 = 0;
while (_local3 < (_global.mcGround._nStep - 2)) {
fPlaceObstacle(_local3, _nRow);
_local3++;
}
} else if (_nStepToGo == "Down") {
var _local3 = _global.mcGround._nStep - 1;
while (_local3 > (_global.mcGround._nStep - 4)) {
fPlaceObstacle(_local3, _nRow);
_local3--;
}
} else if (_nStepToGo == "Line") {
var _local3 = 0;
while (_local3 < _global.mcGround._nStep) {
fPlaceObstacle(_local3, _nRow);
_local3++;
}
} else {
var _local5 = "mcObstacle" + this._nDepthObstacle;
_global.mcGround.attachMovie("mcObstacle", _local5, this._nDepthObstacle);
this._nDepthObstacle++;
_global.mcGround[_local5]._y = _global.mcGround._aStepPosY[_nStepToGo];
_global.mcGround[_local5]._x = (_global.mcGround.mcGuideZero._x + (100 * _nRow)) + (35 * _nStepToGo);
var _local7 = random(3);
_global.mcGround[_local5].gotoAndStop(_local7 + 1);
_global.mcGround[_local5].fInitializeProperties(_nStepToGo, 0, this._nDepthObstacle, "obstacle");
}
}
}
function fPlaceGoon(_nStepToGo, _nRow) {
var _local2 = "mcGoon" + _global.contGame._nDepthIndex;
var _local5 = random(2);
if (_local5 == 0) {
var _local3 = "A";
} else {
var _local3 = "B";
}
_global.mcGround.attachMovie("mcGoon", _local2, _global.contGame._nDepthIndex);
_global.mcGround[_local2]._y = _global.mcGround._aStepPosY[_nStepToGo];
if (_global.contGame._sCurrentPhase == "touchDownGame") {
_global.mcGround[_local2]._x = ((_global.mcGround.mcGuideZero._x + _global.contMain._nStageWidth) + (90 * _nRow)) + (15 * _nStepToGo);
_global.mcGround[_local2].gotoAndStop("run" + _local3);
} else {
_global.mcGround[_local2]._x = (_global.mcGround.mcGuideZero._x - (60 * (6 - _nRow))) + (10 * _nStepToGo);
_global.mcGround[_local2].gotoAndStop("escape" + _local3);
}
_global.mcGround[_local2]._sColor = _local3;
_global.mcGround[_local2].fInitializeProperties(_nStepToGo, _global.contGame._nGoonSpeed, _global.contGame._nDepthIndex, "goon");
_global.contGame._nDepthIndex++;
}
function fCreateObstacleFormation(_sFormation) {
switch (_sFormation) {
case "A1" :
this.fPlaceGoon(4, 4);
break;
case "A2" :
this.fPlaceGoon(3, 4);
break;
case "A3" :
this.fPlaceGoon(0, 4);
break;
case "A4" :
this.fPlaceGoon(1, 4);
break;
case "A5" :
this.fPlaceGoon(2, 4);
break;
case "A6" :
this.fPlaceGoon(3, 3);
this.fPlaceGoon(4, 4);
break;
case "A7" :
this.fPlaceGoon(1, 4);
this.fPlaceGoon(0, 5);
break;
case "A8" :
this.fPlaceGoon(1, 4);
this.fPlaceGoon(3, 4);
break;
case "A9" :
this.fPlaceGoon(0, 3);
this.fPlaceGoon(3, 4);
this.fPlaceGoon(4, 4);
break;
case "A10" :
this.fPlaceGoon(2, 3);
this.fPlaceGoon(0, 5);
this.fPlaceGoon(2, 5);
break;
case "B1" :
this.fPlaceGoon(2, 4);
this.fPlaceGoon(3, 3);
this.fPlaceGoon(4, 4);
break;
case "B2" :
this.fPlaceGoon(2, 4);
this.fPlaceGoon(3, 4);
this.fPlaceGoon(4, 4);
break;
case "B3" :
this.fPlaceGoon(1, 4);
this.fPlaceGoon(3, 4);
this.fPlaceGoon(4, 4);
break;
case "B4" :
this.fPlaceGoon(1, 4);
this.fPlaceGoon(2, 4);
this.fPlaceGoon(4, 4);
break;
case "B5" :
this.fPlaceGoon(1, 4);
this.fPlaceGoon(2, 4);
this.fPlaceGoon(3, 4);
break;
case "B6" :
this.fPlaceGoon(4, 3);
this.fPlaceGoon(0, 4);
this.fPlaceGoon(1, 4);
this.fPlaceGoon(3, 4);
break;
case "B7" :
tthis.fPlaceGoon(0, 3);
this.fPlaceGoon(2, 3);
this.fPlaceGoon(4, 4);
this.fPlaceGoon(2, 5);
break;
case "B8" :
this.fPlaceGoon(1, 3);
this.fPlaceGoon(2, 3);
this.fPlaceGoon(3, 3);
this.fPlaceGoon(2, 5);
break;
case "B9" :
this.fPlaceGoon(1, 2);
this.fPlaceGoon(0, 4);
this.fPlaceGoon(1, 4);
this.fPlaceGoon(2, 4);
this.fPlaceGoon(3, 4);
break;
case "B10" :
this.fPlaceGoon(1, 2);
this.fPlaceGoon(2, 2);
this.fPlaceGoon(0, 4);
this.fPlaceGoon(2, 4);
this.fPlaceGoon(3, 4);
this.fPlaceGoon(4, 4);
break;
case "C1" :
this.fPlaceGoon(0, 2);
this.fPlaceGoon(2, 2);
this.fPlaceGoon(3, 2);
this.fPlaceGoon(4, 2);
this.fPlaceGoon(0, 4);
this.fPlaceGoon(1, 4);
this.fPlaceGoon(2, 4);
this.fPlaceGoon(3, 4);
this.fPlaceGoon(4, 4);
break;
case "C2" :
this.fPlaceGoon(1, 2);
this.fPlaceGoon(2, 2);
this.fPlaceGoon(3, 2);
this.fPlaceGoon(4, 2);
this.fPlaceGoon(0, 4);
this.fPlaceGoon(1, 4);
this.fPlaceGoon(2, 4);
this.fPlaceGoon(3, 4);
this.fPlaceGoon(4, 4);
break;
case "C3" :
this.fPlaceGoon(0, 2);
this.fPlaceGoon(1, 2);
this.fPlaceGoon(2, 2);
this.fPlaceGoon(3, 2);
this.fPlaceGoon(0, 4);
this.fPlaceGoon(1, 4);
this.fPlaceGoon(2, 4);
this.fPlaceGoon(3, 4);
this.fPlaceGoon(4, 4);
break;
case "C4" :
this.fPlaceGoon(3, 1);
this.fPlaceGoon(0, 2);
this.fPlaceGoon(1, 2);
this.fPlaceGoon(2, 2);
this.fPlaceGoon(4, 2);
this.fPlaceGoon(0, 4);
this.fPlaceGoon(1, 4);
this.fPlaceGoon(2, 4);
this.fPlaceGoon(3, 4);
this.fPlaceGoon(4, 4);
break;
case "C5" :
this.fPlaceGoon(0, 1);
this.fPlaceGoon(1, 2);
this.fPlaceGoon(2, 2);
this.fPlaceGoon(3, 2);
this.fPlaceGoon(4, 2);
this.fPlaceGoon(0, 4);
this.fPlaceGoon(1, 4);
this.fPlaceGoon(2, 4);
this.fPlaceGoon(3, 4);
this.fPlaceGoon(4, 4);
break;
case "C6" :
this.fPlaceGoon(4, 1);
this.fPlaceGoon(0, 2);
this.fPlaceGoon(1, 2);
this.fPlaceGoon(2, 2);
this.fPlaceGoon(3, 2);
this.fPlaceGoon(0, 4);
this.fPlaceGoon(1, 4);
this.fPlaceGoon(2, 4);
this.fPlaceGoon(3, 4);
this.fPlaceGoon(4, 4);
break;
case "C7" :
this.fPlaceGoon(0, 2);
this.fPlaceGoon(1, 2);
this.fPlaceGoon(2, 2);
this.fPlaceGoon(3, 2);
this.fPlaceGoon(4, 2);
this.fPlaceGoon(0, 4);
this.fPlaceGoon(1, 4);
this.fPlaceGoon(3, 4);
this.fPlaceGoon(4, 4);
break;
case "C8" :
this.fPlaceGoon(0, 2);
this.fPlaceGoon(1, 2);
this.fPlaceGoon(2, 2);
this.fPlaceGoon(3, 2);
this.fPlaceGoon(4, 2);
this.fPlaceGoon(0, 4);
this.fPlaceGoon(1, 4);
this.fPlaceGoon(2, 4);
this.fPlaceGoon(4, 4);
break;
case "C9" :
this.fPlaceGoon(0, 1);
this.fPlaceGoon(1, 1);
this.fPlaceGoon(2, 1);
this.fPlaceGoon(3, 1);
this.fPlaceGoon(4, 1);
this.fPlaceGoon(0, 3);
this.fPlaceGoon(2, 3);
this.fPlaceGoon(3, 3);
this.fPlaceGoon(4, 3);
this.fPlaceGoon(1, 5);
break;
case "C10" :
this.fPlaceGoon(0, 2);
this.fPlaceGoon(1, 2);
this.fPlaceGoon(2, 2);
this.fPlaceGoon(3, 2);
this.fPlaceGoon(4, 2);
this.fPlaceGoon(0, 4);
this.fPlaceGoon(1, 4);
this.fPlaceGoon(2, 4);
this.fPlaceGoon(3, 4);
this.fPlaceGoon(4, 4);
break;
case "--" :
break;
default :
var _local6 = "ABCDE";
var _local4 = _sFormation.charAt(2);
switch (_local4) {
case "L" :
var _local3 = "Line";
break;
case "U" :
_local3 = "Up";
break;
case "Z" :
_local3 = "Down";
break;
default :
_local3 = int(_local6.indexOf(_local4));
}
var _local5 = int(_sFormation.substr(3, _sFormation.length - 3));
if (_sFormation.indexOf("OB") != -1) {
this.fPlaceObstacle(_local3, _local5);
} else {
this.fPlaceItem(_local3, _local5);
}
}
}
function fManageInterface(mode) {
if (mode == "init") {
var _local4 = 6;
_global.mcHUD._sScore = _global.contMain.fStyleNumber(_global.contMain._aGameplay[0], 6);
var _local2 = 2;
while (_local2 <= _global.contMain._aGameplay[1]) {
_global.mcHUD.mcLive.mcLive1.duplicateMovieClip("mcLive" + _local2, _global.mcHUD.mcLive.mcLive1.getDepth() + _local2);
if (_local2 > _local4) {
var _local3 = Math.floor(_local2 / _local4);
if ((_local2 % _local4) == 0) {
_local3--;
}
_global.mcHUD.mcLive["mcLive" + _local2]._x = _global.mcHUD.mcLive["mcLive" + _local2]._x + ((_global.mcHUD.mcLive["mcLive" + _local2]._width + 5) * (_local2 - ((_local4 * _local3) + 1)));
_global.mcHUD.mcLive["mcLive" + _local2]._y = _global.mcHUD.mcLive["mcLive" + _local2]._y + (_local3 * (_global.mcHUD.mcLive["mcLive" + _local2]._height - 10));
} else {
_global.mcHUD.mcLive["mcLive" + _local2]._x = _global.mcHUD.mcLive["mcLive" + _local2]._x + ((_global.mcHUD.mcLive["mcLive" + _local2]._width + 5) * (_local2 - 1));
}
_local2++;
}
} else if (mode == "addPoint") {
_global.mcHUD._sScore = _global.contMain.fStyleNumber(_global.contMain._aGameplay[0], 6);
} else if (mode == "manageLive") {
_global.mcHUD.mcLive["mcLive" + (_global.contMain._aGameplay[1] + 1)].gotoAndStop("loseLive");
}
}
function fAddPoint(_rPoint) {
_global.contMain._aGameplay[0] = _global.contMain._aGameplay[0] + _rPoint;
if (_global.contMain._aGameplay[0] < 0) {
_global.contMain._aGameplay[0] = 0;
}
fManageInterface("addPoint");
}
function fManageLive(_rLive, mode) {
_global.contMain._aGameplay[1] = _global.contMain._aGameplay[1] + _rLive;
if (_global.contMain._aGameplay[1] >= 0) {
if (mode == "loseLive") {
fManageInterface("manageLive");
}
}
if ((mode != "anim") and (mode != "loseLive")) {
fVerifyLiveLeft();
}
}
function fVerifyLiveLeft() {
if (_global.contMain._aGameplay[1] == 0) {
_global.contMain.fPause("anim");
_global.contTrans.stopSound = true;
_global.contTrans.str_previousScreen = _parent._currentframe;
_global.contTrans.str_nextScreen = "loseScreen";
_global.contTrans.gotoAndStop("interScreen");
} else {
_global.contTrans.stopSound = false;
_global.contTrans.gotoAndStop("loseLive");
}
}
function fShowBattle() {
_global.mcGround.mcBattle._x = _global.mcTaz._x;
_global.mcGround.mcBattle._y = _global.mcTaz._y;
_global.mcGround.mcBattle.play();
}
function fInitializeCharacter() {
this.fManageCheckPoint("restart");
_global.mcTaz.fInitializeProperties(2, 7, 16);
_global.mcGround._bStop = false;
_global.mcHUD.mcSpinMeter.gotoAndStop(1);
}
function fTouchDown() {
_global.objSounds._aFxSounds = [];
_global.mcTaz._sAnim = "touchDown";
_global.mcTaz.gotoAndStop("touchDown");
this.fAddPoint(1000);
}
function fStartBonusRound(mode) {
if (mode == "bonus") {
_global.contPause.gotoAndStop("bonus");
_global.mcTaz._xscale = -_global.mcTaz._xscale;
_global.mcTaz._bSpinning = true;
_global.mcTaz._nSpinningCount = 0;
_global.mcTaz._nSpinningTime = 360;
_global.mcTaz.gotoAndStop("spinRight");
_global.mcTaz._nSpeed = 0;
} else if (mode == "bonusStart") {
_global.contMain.fPause("anim");
_global.mcTaz._bTargeted = false;
_global.contGame._sCurrentPhase = "bonusGame";
_global.contGame.fManageCheckPoint("next");
_global.contMain.fUnPause();
_global.mcTaz._bSpinning = true;
_global.mcTaz._nSpinningCount = 0;
_global.mcTaz._nSpinningTime = 420;
_global.mcGround._bStop = false;
_global.mcGround._nDirection = 1;
_global.mcHUD.mcTimer.play();
}
}
function fNextLevel() {
if (_global.contMain._aGameplay[2] == 18) {
_global.contMain.fPause("anim");
_global.contTrans.stopSound = true;
_global.contTrans.str_previousScreen = _parent._currentframe;
_global.contTrans.str_nextScreen = "loseScreen";
_global.contTrans.gotoAndStop("interScreen");
} else {
_global.contMain._aGameplay[2]++;
_global.contTrans.stopSound = false;
_global.contTrans.str_previousScreen = _parent._currentframe;
_global.contTrans.str_nextScreen = "levelScreenClear";
_global.contTrans.gotoAndStop("interScreen");
return(undefined);
}
}
function fManageCheckPoint(mode) {
if (mode == "next") {
if (this._sCurrentPhase == "touchDownGame") {
_global.mcGround["mcCheckPoint" + (int(this._nCurrentYard) + 10)].gotoAndStop("idle");
_global.mcGround["mcYardNumber" + (int(this._nCurrentYard) + 10)]._visible = true;
_global.mcGround["mcYardNumber" + (int(this._nCurrentYard) - 10)]._visible = false;
if ((this._nCurrentYard >= 40) and (this._nCurrentYard < 60)) {
_global.mcGround["mcTazSign" + (int(this._nCurrentYard) + 10)]._visible = true;
} else {
_global.mcGround.mcTazSign50._visible = false;
}
if (this._nCurrentYard == 0) {
_global.mcGround.mcZone0._visible = true;
_global.mcGround.mcCone0._visible = true;
} else {
_global.mcGround.mcZone0._visible = false;
_global.mcGround.mcCone0._visible = false;
}
if (this._nCurrentYard >= 90) {
_global.mcGround.mcLimit90.gotoAndStop(2);
_global.mcGround.mcZone90._visible = true;
_global.mcGround.mcCone90._visible = true;
_global.mcGround.mcTouchDownTxt90._visible = true;
} else {
_global.mcGround.mcLimit90.gotoAndStop(1);
_global.mcGround.mcZone90._visible = false;
_global.mcGround.mcCone90._visible = false;
_global.mcGround.mcTouchDownTxt90._visible = false;
}
} else {
_global.mcGround["mcCheckPoint" + (int(this._nCurrentYard) - 10)].gotoAndStop("idle");
_global.mcGround["mcYardNumber" + (int(this._nCurrentYard) - 10)]._visible = true;
_global.mcGround["mcYardNumber" + (int(this._nCurrentYard) + 10)]._visible = false;
if ((this._nCurrentYard <= 60) and (this._nCurrentYard > 40)) {
_global.mcGround.mcTazSign50._visible = true;
} else {
_global.mcGround.mcTazSign50._visible = false;
}
if (this._nCurrentYard <= 10) {
_global.mcGround.mcZone0._visible = true;
_global.mcGround.mcCone0._visible = true;
} else {
_global.mcGround.mcZone0._visible = false;
_global.mcGround.mcCone0._visible = false;
}
if (this._nCurrentYard > 90) {
_global.mcGround.mcLimit90.gotoAndStop(2);
_global.mcGround.mcZone90._visible = true;
_global.mcGround.mcCone90._visible = true;
_global.mcGround.mcTouchDownTxt90._visible = true;
} else {
_global.mcGround.mcLimit90.gotoAndStop(1);
_global.mcGround.mcZone90._visible = false;
_global.mcGround.mcCone90._visible = false;
_global.mcGround.mcTouchDownTxt90._visible = false;
}
}
} else if (mode == "restart") {
if (this._sCurrentPhase == "touchDownGame") {
_global.mcGround["mcCheckPoint" + (int(this._nCurrentYard) + 10)].gotoAndStop("hitted");
_global.mcGround["mcYardNumber" + (int(this._nCurrentYard) + 10)]._visible = false;
_global.mcGround["mcCheckPoint" + this._nCurrentYard].gotoAndStop("idle");
_global.mcGround["mcYardNumber" + this._nCurrentYard]._visible = true;
if (this._nCurrentYard != 50) {
_global.mcGround.mcTazSign50._visible = false;
}
if (this._nCurrentYard != 0) {
_global.mcGround.mcZone0._visible = false;
_global.mcGround.mcCone0._visible = false;
}
if (this._nCurrentYard < 90) {
_global.mcGround.mcLimit90.gotoAndStop(1);
_global.mcGround.mcZone90._visible = false;
_global.mcGround.mcCone90._visible = false;
_global.mcGround.mcTouchDownTxt90._visible = false;
}
}
this.fDestroyObstacleFormation();
var _local3 = (_global.mcGround.mcGuideZero._x + _global.contMain._nLeftLimit) - _global.mcGround._nStartX;
_global.mcGround.mcGuideZero._x = _global.mcGround.mcGuideZero._x - _local3;
_global.mcGround._x = _global.mcGround._x + _local3;
_local3 = (_global.mcGround.mcGuideZero._x + _global.contMain._nLeftLimit) - _global.mcTaz._x;
_global.mcTaz._x = _global.mcTaz._x + _local3;
}
}
function fGetBonusTime(_sPath) {
if (_global.mcTimer._currentframe != 3) {
var _local2 = Math.ceil((_global.mcTaz._nSpinningTime - _global.mcTaz._nSpinningCount) / 30);
if (_local2 == 0) {
_global.mcTimer.gotoAndStop("endBonusPhase");
} else if (_local2 == 5) {
_global.mcTimer.gotoAndStop("countEnding");
}
_local2 = _global.contMain.fStyleNumber(_local2, 2);
_sPath._parent.mcTxt._nNumber = _local2;
} else {
_sPath._parent.mcTxt._nNumber = "00";
}
}
function fCheckElementActive() {
for (_nElementActive in this._aElementActive) {
this._aElementActive[_nElementActive].fCheckStatus();
}
}
function fAddElementActive(_mcInstance) {
this._aElementActive.push(_mcInstance);
}
function fRemoveElementActive(_mcInstance) {
this._aElementActive.splice(_global.contGame._nElementActive, 1);
}
function fCheckKey() {
if (((_global.mcTaz._sAnim != "touchDown") and (_global.mcTaz._sAnim != "jump")) and (_global.mcTaz._bTargeted == false)) {
var _local3 = false;
if (_global.mcTaz._x >= (_global.mcGround.mcGuideZero._x + (_global.contMain._nLeftLimit - (_global.mcGround._nSpeed + 2)))) {
if (Key.isDown(37)) {
_local3 = true;
if (this._sCurrentPhase == "bonusGame") {
_global.mcTaz._bReachLeft = false;
}
_global.mcTaz.fMoveCharacter("left");
} else if (Key.isDown(39)) {
_local3 = true;
_global.mcTaz.fMoveCharacter("right");
}
}
if (Key.isDown(38)) {
if ((_global.mcTaz._bGoDown == false) and (_global.mcTaz._nStep != 0)) {
_global.mcTaz._bGoUp = true;
}
} else if (Key.isDown(40)) {
if ((_global.mcTaz._bGoUp == false) and (_global.mcTaz._nStep != (_global.mcGround._nStep - 1))) {
_global.mcTaz._bGoDown = true;
}
}
if (Key.isDown(32)) {
if (((_global.mcTaz._bGoUp == false) and (_global.mcTaz._bGoDown == false)) and (_global.mcTaz._bSpinning == false)) {
_global.mcTaz.fSetCharacterAnim("jump");
}
}
}
if (_global.mcTaz._bJumping == true) {
var _local3 = true;
}
if (_local3 == false) {
_global.mcTaz.fStopCharacter();
}
if (_global.mcTaz._bGoUp == true) {
_global.mcTaz.fMoveCharacter("up");
} else if (_global.mcTaz._bGoDown == true) {
_global.mcTaz.fMoveCharacter("down");
} else if (_global.mcTaz._bJumping == true) {
_global.mcTaz.fMoveCharacter("right");
}
_global.mcTaz.fReachCharacterLimit();
}
this._aLevelFormation = [];
this._aLevelFormation[0] = [];
this._aItemFormation = [];
this._aItemFormation[0] = [];
this._nDepthObstacle = 10000;
this._aLevelFormation[1] = ["A4", "A6", "A2", "--", "B2", "B3", "A3", "A6", "A5", "B1"];
this._aLevelFormation[2] = ["--", "A5", "B1", "A6", "A5", "B4", "B3", "--", "B1", "A7"];
this._aLevelFormation[3] = ["A6", "--", "A6", "A7", "A8", "B1", "B3", "B4", "B5", "B4"];
this._aLevelFormation[4] = ["B1", "B3", "B5", "--", "B6", "B6", "A6", "B4", "A8", "A9"];
this._aLevelFormation[5] = ["A9", "A10", "B5", "B3", "B7", "B6", "--", "B2", "B6", "B5"];
this._aLevelFormation[6] = ["B6", "B4", "B--5", "B7", "B3", "B3", "B8", "A10", "A9", "B8"];
this._aItemFormation[1] = ["HDA14", "OBU5", "--", "OBL6", "HDE10", "OBZ6", "HDE9", "OBU6", "OBD6", "--"];
this._aItemFormation[2] = ["OBL6", "HDC6", "OBB6", "HDA10", "OBD6", "OBA8", "HDE14", "OBL6", "--", "--"];
this._aItemFormation[3] = ["HDD14", "OBL6", "HDB14", "OBZ8", "OBU10", "OBU11", "HDA14", "OBA9", "--", "--"];
this._aItemFormation[4] = ["HDA7", "--", "OBL15", "HDA14", "--", "--", "HDD9", "OBU11", "--", "--"];
this._aItemFormation[5] = ["OBU9", "OBE6", "--", "HDE14", "OBC8", "--", "OBL7", "HDA6", "OBC10", "--"];
this._aItemFormation[6] = ["HDA14", "--", "OBL6", "--", "OBC8", "OBA6", "--", "HDB14", "OBC6", "--"];
this._aLevelFormation[7] = ["B8", "B6", "B9", "--", "B4", "B7", "B8", "B4", "B9", "B6"];
this._aLevelFormation[8] = ["B1", "B7", "--", "--", "--", "B8", "B9", "B4", "B5", "B7"];
this._aLevelFormation[9] = ["B4", "B6", "B8", "B6", "B9", "--", "B6", "B8", "B7", "C1"];
this._aLevelFormation[10] = ["B6", "B9", "C2", "B9", "B4", "--", "B7", "C1", "B9", "B10"];
this._aLevelFormation[11] = ["B5", "B6", "B9", "B7", "--", "C1", "C5", "B9", "C3", "B10"];
this._aLevelFormation[12] = ["--", "B7", "B5", "B9", "C3", "C5", "C4", "B7", "C2", "B7"];
this._aItemFormation[7] = ["OBC15", "HDB14", "OBE6", "OBL8", "--", "OBB9", "HDA10", "--", "OBE9", "--"];
this._aItemFormation[8] = ["--", "OBZ12", "OBL8", "OBL8", "OBL6", "--", "--", "HDE7", "OBA6", "--"];
this._aItemFormation[9] = ["HDC14", "OBC6", "--", "OBC9", "--", "OBL6", "--", "OBA6", "--", "--"];
this._aItemFormation[10] = ["OBC10", "OBA12", "--", "--", "HDB14", "OBL10", "--", "--", "OBE9", "--"];
this._aItemFormation[11] = ["HDE14", "OBC9", "--", "--", "OBL7", "--", "OBD13", "--", "--", "--"];
this._aItemFormation[12] = ["OBL9", "OBA15", "HDA15", "--", "--", "--", "--", "HDA7", "OBB12", "--"];
this._aLevelFormation[13] = ["C3", "B4", "C4", "B6", "B8", "C7", "--", "B7", "C6", "C5"];
this._aLevelFormation[14] = ["--", "C7", "C5", "C5", "B8", "B4", "C7", "B9", "C8", "C6"];
this._aLevelFormation[15] = ["C5", "C7", "--", "C6", "B8", "C7", "C8", "B7", "C5", "C7"];
this._aLevelFormation[16] = ["C5", "B8", "C8", "C7", "B10", "C5", "C9", "C8", "C5", "C7"];
this._aLevelFormation[17] = ["C6", "C5", "--", "C8", "C8", "C6", "C5", "C8", "C9", "C6"];
this._aLevelFormation[18] = ["C5", "C7", "C6", "C9", "C8", "C9", "C6", "C9", "C8", "C10"];
this._aItemFormation[13] = ["OBU10", "HDB8", "OBC14", "HDA14", "--", "--", "OBL8", "HDA14", "--", "--"];
this._aItemFormation[14] = ["OBL6", "HDE15", "--", "--", "OBA8", "OBD6", "--", "HDD14", "--", "--"];
this._aItemFormation[15] = ["HDB14", "--", "OBL10", "--", "HDB7", "OBC11", "--", "HDE14", "--", "--"];
this._aItemFormation[16] = ["OBA14", "--", "HDC6", "HDE15", "--", "--", "--", "HDD6", "--", "--"];
this._aItemFormation[17] = ["HDE14", "--", "OBL8", "--", "--", "HDC6", "--", "HDD10", "--", "--"];
this._aItemFormation[18] = ["HDA14", "--", "--", "HDC15", "--", "--", "--", "--", "--", "--"];
_global.contGame = this;
_global.mcHUD = _global.stage.mcHUD;
_global.levelScreen = _global.stage.mcLevelScreen;
_global.mcGround = _global.stage.mcLevelScreen.mcGround;
_global.mcTaz = _global.stage.mcLevelScreen.mcGround.mcTaz;
_global.mcGround.swapDepths(1);
_global.mcTaz.swapDepths(2);
this._nDepthIndex = 50000;
this._aElementActive = [];
this._nGoonSpeed = 2;
this._nBonusSpeed = 5;
this._nCurrentYard = 0;
this._sCurrentPhase = "touchDownGame";
this._bShowSpinMeter = true;
this._nTimeSpinSound = 0;
stop();
Symbol 690 Button
on (release) {
_global.contTrans.fEndNavigation("PlayAgain");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "endCard");
}
Symbol 704 MovieClip Frame 1
stop();
_sScore = _global.contMain.fStyleNumber(_global.contMain._aGameplay[0], 1);
_global.contTrans._bMusicPlaying = true;
_global.contTrans._bGameMusicPlaying = false;
if (_global.contMain._aGameplay[2] >= 18) {
this.mcKing._visible = true;
} else {
this.mcKing._visible = false;
}
_global.objSounds.fPlaySounds(this, "sMu_tts", 0, 99999, 80, "music", "TitleCardsoundTrack");
Symbol 707 MovieClip [mcHotDog] Frame 1
#initclip 8
Object.registerClass("mcHotDog", objItem);
#endinitclip
stop();
Symbol 707 MovieClip [mcHotDog] Frame 2
this.fInitializeProperties("hotDog", this._randomStep);
play();
Instance of Symbol 200 MovieClip in Symbol 707 MovieClip [mcHotDog] Frame 2
onClipEvent (enterFrame) {
_parent.fCheckHitTest();
}
Symbol 707 MovieClip [mcHotDog] Frame 13
gotoAndPlay ("loop");
Symbol 835 MovieClip Frame 1
_global.objSounds.fPlaySounds(this, "sFx_goonCatch", 0, 1, 100, "fx", "goon");
_global.contGame.fManageLive(-1, "anim");
_global.mcGround._bStop = true;
_global.objSounds.fPlaySounds(this, "sFx_tazBad01", 0, 1, 100, "fx", "goon");
Symbol 835 MovieClip Frame 9
_global.objSounds.fPlaySounds(this, "sFx_goonLand", 0, 1, 100, "fx", "goon");
Symbol 835 MovieClip Frame 35
stop();
_global.contGame.fManageLive(0, "loseLive");
Symbol 841 MovieClip Frame 1
_global.objSounds.fPlaySounds(this, "sFx_goonCatch", 0, 1, 100, "fx", "goon");
_global.objSounds.fPlaySounds(this, "sFx_tazBad00", 0, 1, 100, "fx", "goon");
_global.contGame.fManageLive(-1, "anim");
_global.mcGround._bStop = true;
Symbol 841 MovieClip Frame 9
_global.objSounds.fPlaySounds(this, "sFx_goonLand", 0, 1, 100, "fx", "goon");
Symbol 841 MovieClip Frame 35
stop();
_global.contGame.fManageLive(0, "loseLive");
Symbol 869 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 869 MovieClip Frame 5
_global.objSounds.fPlaySounds(this, "sFx_ioum", 0, 1, 100, "fx", "goonSpinHit");
Symbol 869 MovieClip Frame 14
stop();
_parent._bToRemove = true;
Symbol 883 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 883 MovieClip Frame 5
_global.objSounds.fPlaySounds(this, "sFx_ioum", 0, 1, 100, "fx", "goonSpinHit");
Symbol 883 MovieClip Frame 14
stop();
_parent._bToRemove = true;
Symbol 915 MovieClip Frame 13
stop();
_global.mcTaz._x = _parent._x + 30;
_global.mcTaz._bHitting = false;
_global.mcTaz._visible = true;
Symbol 925 MovieClip Frame 1
_global.objSounds.fPlaySounds(this, "sFx_goonHit", 0, 1, 100, "fx", "goon");
Symbol 925 MovieClip Frame 13
stop();
_global.mcTaz._x = _parent._x + 30;
_global.mcTaz._bHitting = false;
_global.mcTaz._visible = true;
Symbol 926 MovieClip [mcGoon] Frame 1
#initclip 9
Object.registerClass("mcGoon", objObstacle);
#endinitclip
stop();
Symbol 926 MovieClip [mcGoon] Frame 2
stop();
Symbol 926 MovieClip [mcGoon] Frame 3
stop();
Symbol 926 MovieClip [mcGoon] Frame 4
stop();
Symbol 926 MovieClip [mcGoon] Frame 5
stop();
Symbol 926 MovieClip [mcGoon] Frame 6
stop();
Symbol 926 MovieClip [mcGoon] Frame 7
stop();
Symbol 926 MovieClip [mcGoon] Frame 8
stop();
Symbol 926 MovieClip [mcGoon] Frame 9
stop();
Symbol 926 MovieClip [mcGoon] Frame 10
stop();
Symbol 937 MovieClip Frame 5
stop();
Symbol 938 MovieClip Frame 1
stop();
Symbol 943 MovieClip Frame 1
stop();
Symbol 948 MovieClip Frame 1
stop();
Symbol 954 MovieClip [mcObstacle] Frame 1
#initclip 10
Object.registerClass("mcObstacle", objObstacle);
#endinitclip
stop();
Instance of Symbol 360 MovieClip "mcHitZone" in Symbol 954 MovieClip [mcObstacle] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 954 MovieClip [mcObstacle] Frame 4
_global.objSounds.fPlaySounds(this, "sFx_pouf", 0, 1, 100, "fx", "obstacle");
Symbol 954 MovieClip [mcObstacle] Frame 9
stop();
this._bToRemove = true;
Symbol 955 MovieClip Frame 1
stop();
_quality = "HIGH";
Instance of Symbol 76 MovieClip "mcContSound" in Symbol 955 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_global.objSounds = new Object();
_global.stage = _root;
_global.objSounds._aFxSounds = new Array();
_global.objSounds._aMusicSounds = new Array();
_global.objSounds._nFxVolume = 100;
_global.objSounds._nMusicVolume = 90;
_global.objSounds._nSoundDepth = 100000 /* 0x0186A0 */;
_global.objSounds.fPlaySounds = function (_mcRef, _sSound, _nPosition, _nLoop, _nVolume, _sType, _sNameIndex) {
if (_sNameIndex == undefined) {
_sNameIndex = "1";
}
var _sSoundInstance = (_sSound + _sNameIndex);
if (_mcRef[_sSoundInstance] == undefined) {
var _local7 = _global.objSounds.fSetSoundsDepth(_mcRef);
_mcRef.createEmptyMovieClip(_sSoundInstance, _local7);
_mcRef[_sSoundInstance].objSound = new Sound(_mcRef[_sSoundInstance]);
_mcRef[_sSoundInstance].objSound.attachSound(_sSound);
switch (_sType) {
case "fx" :
_global.objSounds._aFxSounds.push([_mcRef, _sSound, _nLoop, _nVolume, 0, _nPosition, _sNameIndex]);
_mcRef[_sSoundInstance].objSound._nArrayIndex = _global.objSounds._aFxSounds.length - 1;
_mcRef[_sSoundInstance].objSound._sArrayFrom = "fx";
break;
case "music" :
_global.objSounds._aMusicSounds.push([_mcRef, _sSound, _nLoop, _nVolume, false, _nPosition, _sNameIndex]);
_mcRef[_sSoundInstance].objSound._nArrayIndex = _global.objSounds._aMusicSounds.length - 1;
_mcRef[_sSoundInstance].objSound._sArrayFrom = "music";
}
}
if (_nPosition != 0) {
_mcRef[_sSoundInstance].objSound.start(_nPosition / 1000, 1);
} else {
_mcRef[_sSoundInstance].objSound.start(_nPosition / 1000, _nLoop);
}
_global.objSounds.fSetSoundsVolume(_mcRef, _sSound, "one", _nVolume, _sType, _sNameIndex);
if (_nLoop >= 50000) {
delete _mcRef[_sSoundInstance].objSound.onSoundComplete;
_mcRef[_sSoundInstance].objSound.onSoundComplete = function () {
_nPosition = 0;
_mcRef[_sSoundInstance].objSound.start(_nPosition, _nLoop);
};
}
if (_nLoop < 50000) {
delete _mcRef[_sSoundInstance].objSound.onSoundComplete;
_mcRef[_sSoundInstance].objSound.onSoundComplete = function () {
if (_mcRef[_sSoundInstance].objSound._sArrayFrom == "fx") {
var _local2 = _mcRef[_sSoundInstance].objSound._nArrayIndex + 1;
while (_local2 < _global.objSounds._aFxSounds.length) {
var _local3 = _global.objSounds._aFxSounds[_local2][0];
var _local4 = _global.objSounds._aFxSounds[_local2][1] + _global.objSounds._aFxSounds[_local2][6];
_local3[_local4].objSound._nArrayIndex = _local3[_local4].objSound._nArrayIndex - 1;
_local2++;
}
_global.objSounds._aFxSounds.splice(_mcRef[_sSoundInstance].objSound._nArrayIndex, 1);
} else {
var _local2 = _mcRef[_sSoundInstance].objSound._nArrayIndex + 1;
while (_local2 < _global.objSounds._aMusicSounds.length) {
var _local3 = _global.objSounds._aMusicSounds[_local2][0];
var _local4 = _global.objSounds._aMusicSounds[_local2][1] + _global.objSounds._aMusicSounds[_local2][6];
_local3[_local4].objSound._nArrayIndex = _local3[_local4].objSound._nArrayIndex - 1;
_local2++;
}
_global.objSounds._aMusicSounds.splice(_mcRef[_sSoundInstance].objSound._nArrayIndex, 1);
}
_global.objSounds.fSoundDelete(_mcRef[_sSoundInstance]);
};
}
};
_global.objSounds.fStopSounds = function (_mcRef, _sSound, _sRange, _sType, _sNameIndex) {
var _local2 = _sSound + _sNameIndex;
if (_sRange == "one") {
if (_mcRef[_local2].objSound._sArrayFrom == "fx") {
_global.objSounds._aFxSounds.splice(_mcRef[_local2].objSound._nArrayIndex, 1);
} else {
_global.objSounds._aMusicSounds.splice(_mcRef[_local2].objSound._nArrayIndex, 1);
}
_mcRef[_local2].objSound.stop(_sSound);
} else {
_global.objSounds._aFxSounds = [];
_global.objSounds._aMusicSounds = [];
stopAllSounds();
}
};
_global.objSounds.fPauseSounds = function (_mcRef, _sSound, _sRange, _sAction, _sType, _sNameIndex) {
trace((((((((((_mcRef + " | ") + _sSound) + " | ") + _sRange) + " | ") + _sAction) + " | ") + _sType) + " | ") + _sNameIndex);
if (_sRange == "one") {
var _local4 = _sSound + _sNameIndex;
if (_mcRef[_local4].objSound._sArrayFrom == "fx") {
if (_sAction == "pause") {
_global.objSounds._aFxSounds[_mcRef[_local4].objSound._nArrayIndex][4] = true;
_global.objSounds._aFxSounds[_mcRef[_local4].objSound._nArrayIndex][5] = _global.objSounds.fGetSoundsProperties(_mcRef, _local4, "position");
_mcRef[_local4].objSound.stop(_sSound);
} else {
_global.objSounds.fPlaySounds(_mcRef, _sSound, _global.objSounds._aFxSounds[_mcRef[_local4].objSound._nArrayIndex][5], _global.objSounds._aFxSounds[_mcRef[_local4].objSound._nArrayIndex][2], _global.objSounds._aFxSounds[_mcRef[_local4].objSound._nArrayIndex][3], _sType, _sNameIndex);
_global.objSounds._aFxSounds[_mcRef[_sSound].objSound._nArrayIndex][4] = false;
_global.objSounds._aFxSounds[_mcRef[_sSound].objSound._nArrayIndex][5] = 0;
}
} else if (_sAction == "pause") {
_global.objSounds._aMusicSounds[_mcRef[_local4].objSound._nArrayIndex][4] = true;
_global.objSounds._aMusicSounds[_mcRef[_local4].objSound._nArrayIndex][5] = _global.objSounds.fGetSoundsProperties(_mcRef, _local4, "position");
_mcRef[_local4].objSound.stop(_sSound);
} else {
_global.objSounds.fPlaySounds(_mcRef, _sSound, _global.objSounds._aMusicSounds[_mcRef[_local4].objSound._nArrayIndex][5], _global.objSounds._aMusicSounds[_mcRef[_local4].objSound._nArrayIndex][2], _global.objSounds._aMusicSounds[_mcRef[_local4].objSound._nArrayIndex][3], _sType, _global.objSounds._aMusicSounds[_mcRef[_local4].objSound._nArrayIndex][6]);
_global.objSounds._aMusicSounds[_mcRef[_local4].objSound._nArrayIndex][4] = false;
_global.objSounds._aMusicSounds[_mcRef[_local4].objSound._nArrayIndex][5] = 0;
}
} else if (_sAction == "pause") {
if (_sType == "fx") {
var _local2 = 0;
while (_local2 < _global.objSounds._aFxSounds.length) {
var _local4 = _global.objSounds._aFxSounds[_local2][1] + _global.objSounds._aFxSounds[_local2][6];
_global.objSounds._aFxSounds[_local2][4] = true;
_global.objSounds._aFxSounds[_local2][5] = _global.objSounds.fGetSoundsProperties(_global.objSounds._aFxSounds[_local2][0], _local4, "position");
_mcRef = _global.objSounds._aFxSounds[_local2][0];
_mcRef[_local4].objSound.stop(_sSound);
_local2++;
}
} else {
var _local2 = 0;
while (_local2 < _global.objSounds._aMusicSounds.length) {
var _local4 = _global.objSounds._aMusicSounds[_local2][1] + _global.objSounds._aMusicSounds[_local2][6];
_global.objSounds._aMusicSounds[_local2][4] = true;
_global.objSounds._aMusicSounds[_local2][5] = _global.objSounds.fGetSoundsProperties(_global.objSounds._aMusicSounds[_local2][0], _local4, "position");
_mcRef = _global.objSounds._aMusicSounds[_local2][0];
_mcRef[_local4].objSound.stop(_sSound);
_local2++;
}
}
} else if (_sType == "fx") {
var _local3 = 0;
while (_local3 < _global.objSounds._aFxSounds.length) {
_global.objSounds.fPlaySounds(_global.objSounds._aFxSounds[_local3][0], _global.objSounds._aFxSounds[_local3][1], _global.objSounds._aFxSounds[_local3][5], _global.objSounds._aFxSounds[_local3][2], _global.objSounds._aFxSounds[_local3][3], "fx", _global.objSounds._aFxSounds[_local3][6]);
_global.objSounds._aFxSounds[_local3][4] = false;
_global.objSounds._aFxSounds[_local3][5] = 0;
_local3++;
}
} else {
var _local2 = 0;
while (_local2 < _global.objSounds._aMusicSounds.length) {
_global.objSounds.fPlaySounds(_global.objSounds._aMusicSounds[_local2][0], _global.objSounds._aMusicSounds[_local2][1], _global.objSounds._aMusicSounds[_local2][5], _global.objSounds._aMusicSounds[_local2][2], _global.objSounds._aMusicSounds[_local2][3], "music", _global.objSounds._aMusicSounds[_local2][6]);
_global.objSounds._aMusicSounds[_local2][4] = false;
_global.objSounds._aMusicSounds[_local2][5] = 0;
_local2++;
}
}
};
_global.objSounds.fSetSoundsVolume = function (_mcRef, _sSound, _sRange, _nVolume, _sType, _sNameIndex) {
if (_sRange == "one") {
var _local6 = _sSound + _sNameIndex;
switch (_sType) {
case "fx" :
_global.objSounds._aFxSounds[_mcRef[_local6].objSound._nArrayIndex][3] = _nVolume;
var _local3 = Math.floor((_nVolume * _global.objSounds._nFxVolume) / 100);
break;
case "music" :
_global.objSounds._aMusicSounds[_mcRef[_local6].objSound._nArrayIndex][3] = _nVolume;
_local3 = Math.floor((_nVolume * _global.objSounds._nMusicVolume) / 100);
}
_mcRef[_local6].objSound.setVolume(_local3);
} else {
switch (_sType) {
case "fx" :
var _local2 = 0;
while (_local2 < _global.objSounds._aFxSounds.length) {
var _local3 = Math.floor((_global.objSounds._aFxSounds[_local2][3] * _global.objSounds._nFxVolume) / 100);
var _local4 = _global.objSounds._aFxSounds[_local2][0];
var _local5 = _global.objSounds._aFxSounds[_local2][1] + _global.objSounds._aFxSounds[_local2][6];
_local4[_local5].objSound.setVolume(_local3);
_local2++;
}
break;
case "music" :
_local2 = 0;
for(;;){
if (_local2 >= _global.objSounds._aMusicSounds.length) {
break;
}
var _local3 = Math.floor((_global.objSounds._aMusicSounds[_local2][3] * _global.objSounds._nFxVolume) / 100);
var _local4 = _global.objSounds._aMusicSounds[_local2][0];
var _local5 = _global.objSounds._aMusicSounds[_local2][1] + _global.objSounds._aMusicSounds[_local2][6];
_local4[_local5].objSound.setVolume(_local3);
_local2++;
};
}
}
};
_global.objSounds.fSetSoundsPan = function (_mcRef, _sSound, _sRange, _nPan, _sType, _sNameIndex) {
};
_global.objSounds.fSetFadeEffect = function (_mcRef, _sSound, _sAction) {
};
_global.objSounds.fGetSoundsProperties = function (_mcRef, _sSound, _sProperty) {
switch (_sProperty) {
case "position" :
return(_mcRef[_sSound].objSound.position);
case "duration" :
return(_mcRef[_sSound].objSound.duration);
case "volume" :
return(_mcRef[_sSound].objSound.getVolume());
case "pan" :
return(_mcRef[_sSound].objSound.getPan());
}
};
_global.objSounds.fSetSoundsDepth = function (_mcRef) {
var _local2 = _global.objSounds._nSoundDepth;
_global.objSounds._nSoundDepth++;
if (_global.objSounds._nSoundDepth == 999998) {
_global.objSounds._nSoundDepth = 100000 /* 0x0186A0 */;
}
return(_local2);
};
_global.objSounds.fSoundDelete = function (_mcRef) {
_mcRef[_sSoundInstance].swapDepths(999999);
_mcRef.removeMovieClip();
};
}
Instance of Symbol 106 MovieClip "mcContMain" in Symbol 955 MovieClip Frame 1
onClipEvent (load) {
_global.stage = _parent;
this._visible = false;
if (_global.b == null) {
_global.b = new Object();
AsBroadcaster.initialize(_global.b);
}
_global.APE = function (obj, frameEIN) {
obj.frameE = frameEIN;
if (_global.control.gamePaused) {
obj.stop();
}
obj.pf = true;
_global.b.addListener(obj);
obj.onPause = function () {
obj.stop();
};
obj.onPlay = function () {
if (obj._currentframe >= obj.frameE) {
obj.play();
}
};
obj.onUnload = function () {
_global.b.removeListener(obj);
};
};
_global.RPE = function (obj) {
obj.stop();
delete obj.frameE;
delete obj.pf;
_global.b.removeListener(obj);
delete obj.onPause;
delete obj.onPlay;
delete obj.onUnload;
};
}
Instance of Symbol 117 MovieClip "mcTransition" in Symbol 955 MovieClip Frame 1
onClipEvent (load) {
_global.contTrans = this;
this.bol_innerAFrame = false;
this.bol_getHighScore = false;
this.bol_submitHighScore = false;
this.bol_empty_var = false;
this.str_nextScreen = "";
this.str_previousScreen = "";
this.stopSound = true;
this._bMusicPlaying = false;
this._bGameMusicPlaying = false;
}
Symbol 955 MovieClip Frame 2
stop();
_quality = "HIGH";
Symbol 955 MovieClip Frame 3
_quality = "MEDIUM";
gameMC.HSPlay();
Instance of Symbol 624 MovieClip "mcLevelScreen" in Symbol 955 MovieClip Frame 3
onClipEvent (load) {
this._x = 0;
this._y = 0;
}
Instance of Symbol 659 MovieClip "mcHUD" in Symbol 955 MovieClip Frame 3
onClipEvent (load) {
this.btn_help.enabled = false;
}
Instance of Symbol 672 MovieClip "mcContPause" in Symbol 955 MovieClip Frame 3
onClipEvent (load) {
_global.contPause = this;
this.opened = true;
this.paused = false;
}
onClipEvent (keyUp) {
var tKey = String.fromCharCode(Key.getCode());
if (((((tKey == "P") or (tKey == "p")) && (this._currentframe == 1)) && (this.opened == false)) && (this.paused == false)) {
_global.contMain.fPause();
} else if (((((tKey == "P") or (tKey == "p")) && (this._currentframe == 4)) && (this.opened == true)) && (this.paused == false)) {
_global.contMain.fUnPause();
}
if (((tKey == "Q") and (this.opened == false)) and (this.paused == false)) {
_global.contTrans.stopSound = true;
_global.contMaine.fPause("anim");
_global.contTrans.str_previousScreen = _parent._currentframe;
_global.contTrans.str_nextScreen = "loseScreen";
_global.contTrans.gotoAndStop("interScreen");
}
}
Instance of Symbol 674 MovieClip "mcContGame" in Symbol 955 MovieClip Frame 3
onClipEvent (load) {
this._bInit = false;
this._visible = false;
}
onClipEvent (enterFrame) {
if (this._bInit == false) {
this._bInit = true;
fManageInterface("init");
_global.mcGround.fInitializeProperties(5, 150, 360, 11);
_global.levelScreen.mcBkg.gotoAndStop(_global.contMain._aGameplay[2]);
this.fInitializeCharacter();
_global.contMain.fPause("anim");
_global.contPause.gotoAndStop("level");
} else {
if (_global.contPause.opened == false) {
if (_global.mcTaz._bSpinning == true) {
if (_global.mcTaz._sAnim != "spinEnd") {
_global.mcTaz.fCountSpinTime();
if ((this._nTimeSpinSound < (this.tornade1.position + 500)) and (_global.contGame._bTornade1 == true)) {
_global.contGame._bTornade1 = false;
_global.contGame._bTornade2 = true;
this.tornade2.start();
} else if ((this._nTimeSpinSound < (this.tornade2.position + 500)) and (_global.contGame._bTornade2 == true)) {
_global.contGame._bTornade1 = true;
_global.contGame._bTornade2 = false;
this.tornade1.start();
}
}
if (this._bShowSpinMeter == true) {
var _sPercent = Math.floor(100 - ((_global.mcTaz._nSpinningCount * 100) / _global.mcTaz._nSpinningTime));
_global.mcHUD.mcSpinMeter.mcSpinMeterBar.gotoAndStop(_sPercent);
}
}
if (_global.mcTaz._bFalling == true) {
trace(_global.mcTaz._sAnim);
if (_global.mcTaz._sAnim == "fallRun") {
_global.mcTaz._x = _global.mcTaz._x + 6;
} else {
_global.mcTaz._x = _global.mcTaz._x - 6;
}
}
this.fCheckKey();
_global.mcGround.fMoveBKG();
_global.mcGround.fMoveTerrain();
} else if ((_global.mcTaz._bTargeted == true) or (_global.mcTaz._sAnim == "touchDown")) {
_global.mcGround.fMoveTerrain();
_global.mcGround.fMoveBKG();
}
this.fCheckElementActive();
}
}
Symbol 955 MovieClip Frame 4
stop();
gameMC.HSLevelStart();
Symbol 955 MovieClip Frame 5
stop();
this.prevFrame();
Symbol 955 MovieClip Frame 6
stop();
_quality = "HIGH";
gameMC.gScore = _global.contMain._aGameplay[0];
gameMC.HSGameOver();
Symbol 955 MovieClip Frame 7
stop();
gotoAndStop ("titleScreen");