Frame 1
function _getHighScore(Void) {
return(GC.getTotalScore());
}
function ShowHighScore(Void) {
if (NGameID != undefined) {
loadMovie ((("WBHighScores.swf?GameID=" + NGameID) + "&GameScore=") + _getHighScore(), this.createEmptyMovieClip("mcHSBoard", this.getNextHighestDepth()));
}
}
userSession = {};
userSession.language = _root.language;
userSession.userID = _root.user;
userSession.userName = _root.userName;
userSession.createGamePlayURL = _root.createGamePlayURL;
userSession.updateGamePlayURL = _root.updateGamePlayURL;
userSession.gameID = _root.gameID;
Object.prototype.gameTimeline = this;
ifFrameLoaded (8) {
gotoAndPlay ("start");
}
Frame 2
gotoAndPlay (1);
Frame 12
GC = new com.ndimedia.marvin.GameController(this);
GC.start();
Frame 13
stop();
Frame 16
GC.title();
Frame 17
stop();
Frame 18
GC.instructions();
Frame 26
stop();
Frame 27
var incoming = new LoadVars();
var outgoing = new LoadVars();
outgoing.gameID = userSession.gameID;
outgoing.language = userSession.language;
outgoing.userName = userSession.userName;
incoming.onLoad = function (success) {
if (success) {
_root.gameData = this.gameData;
}
};
outgoing.sendAndLoad(userSession.createGamePlayURL, incoming, "POST");
GC.play();
Frame 32
GC.levelStart();
score_txt.text = GC.getTotalScore();
level_txt.text = GC.getLevel();
Frame 40
GC.mainLoop();
score_txt.text = GC.getTotalScore();
level_txt.text = GC.getLevel();
Frame 41
gotoAndPlay(_currentframe - 1);
Frame 48
GC.levelComplete();
score_txt.text = GC.getTotalScore();
level_txt.text = GC.getLevel();
Frame 53
if (GC.levelPauseTimer.seconds() > 3) {
gameTimeline.gotoAndPlay("levelStart");
}
timer_txt.text = 3 - GC.levelPauseTimer.seconds();
Frame 54
gameTimeline.gotoAndPlay(_currentframe - 1);
Frame 61
GC.win();
score_txt.text = GC.getTotalScore();
level_txt.text = GC.getLevel();
Frame 63
if (GC.levelPauseTimer.seconds() > 3) {
gameTimeline.gotoAndPlay("start");
}
timer_txt.text = 3 - GC.levelPauseTimer.seconds();
Frame 64
gameTimeline.gotoAndPlay(_currentframe - 1);
Frame 76
GC.gameOver();
ShowHighScore();
score_txt.text = GC.getTotalScore();
level_txt.text = GC.getLevel();
var incoming = new LoadVars();
var outgoing = new LoadVars();
outgoing.language = userSession.language;
outgoing.gameData = _root.gameData;
outgoing.gameID = userSession.gameID;
outgoing.points = GC.getTotalScore();
outgoing.sendAndLoad(userSession.updateGamePlayURL, incoming, "POST");
Frame 80
stop();
Frame 81
if (GC.levelPauseTimer.seconds() > 3) {
gameTimeline.gotoAndPlay("start");
}
timer_txt.text = 3 - GC.levelPauseTimer.seconds();
Frame 82
gameTimeline.gotoAndPlay(_currentframe - 1);
Symbol 21 MovieClip Frame 16
stop();
Symbol 24 MovieClip Frame 124
stop();
Symbol 31 MovieClip Frame 20
stop();
Symbol 32 MovieClip [taz_mc] Frame 1
stop();
Symbol 32 MovieClip [taz_mc] Frame 6
stop();
Symbol 32 MovieClip [taz_mc] Frame 11
stop();
Symbol 32 MovieClip [taz_mc] Frame 16
stop();
Symbol 42 MovieClip Frame 34
stop();
Symbol 49 MovieClip Frame 30
stop();
Symbol 50 MovieClip [bomb_mc2] Frame 1
stop();
Symbol 50 MovieClip [bomb_mc2] Frame 5
stop();
Symbol 50 MovieClip [bomb_mc2] Frame 10
stop();
Symbol 51 MovieClip Frame 34
stop();
Symbol 52 MovieClip Frame 30
stop();
Symbol 53 MovieClip [bomb_mc3] Frame 1
stop();
Symbol 53 MovieClip [bomb_mc3] Frame 5
stop();
Symbol 53 MovieClip [bomb_mc3] Frame 10
stop();
Symbol 54 MovieClip Frame 34
stop();
Symbol 55 MovieClip Frame 30
stop();
Symbol 56 MovieClip [bomb_mc1] Frame 1
stop();
Symbol 56 MovieClip [bomb_mc1] Frame 5
stop();
Symbol 56 MovieClip [bomb_mc1] Frame 10
stop();
Symbol 57 MovieClip [foghorn_mc] Frame 1
stop();
Symbol 57 MovieClip [foghorn_mc] Frame 6
stop();
Symbol 57 MovieClip [foghorn_mc] Frame 10
stop();
Symbol 57 MovieClip [foghorn_mc] Frame 15
stop();
Symbol 60 MovieClip Frame 17
stop();
Symbol 71 MovieClip Frame 92
stop();
Symbol 72 MovieClip Frame 20
stop();
Symbol 73 MovieClip [daffy_mc] Frame 1
stop();
Symbol 73 MovieClip [daffy_mc] Frame 6
stop();
Symbol 73 MovieClip [daffy_mc] Frame 10
stop();
Symbol 73 MovieClip [daffy_mc] Frame 15
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 22
stop();
Symbol 86 MovieClip Frame 82
stop();
Symbol 87 MovieClip Frame 21
stop();
Symbol 88 MovieClip [sylvester_mc] Frame 1
stop();
Symbol 88 MovieClip [sylvester_mc] Frame 6
stop();
Symbol 88 MovieClip [sylvester_mc] Frame 10
stop();
Symbol 88 MovieClip [sylvester_mc] Frame 15
stop();
Symbol 89 MovieClip [coyote_mc] Frame 1
stop();
Symbol 89 MovieClip [coyote_mc] Frame 5
stop();
Symbol 89 MovieClip [coyote_mc] Frame 10
stop();
Symbol 89 MovieClip [coyote_mc] Frame 15
stop();
Symbol 90 MovieClip [yosemite_mc] Frame 1
stop();
Symbol 90 MovieClip [yosemite_mc] Frame 5
stop();
Symbol 90 MovieClip [yosemite_mc] Frame 9
stop();
Symbol 90 MovieClip [yosemite_mc] Frame 14
stop();
Symbol 405 MovieClip [__Packages.com.warnerbros.games.BaseGameController] Frame 0
class com.warnerbros.games.BaseGameController
{
var gameTimeline, containerTimeline, engineClip, levelPauseTimer, inputTimer, mcHS, debugMsgList, mclListenerHS, mclHS;
function BaseGameController (game_timeline, engine_clip) {
gameTimeline = game_timeline;
containerTimeline = gameTimeline._parent;
if ((containerTimeline == undefined) && (gameTimeline != _level0)) {
containerTimeline = _level0;
}
if ((containerTimeline != undefined) && (containerTimeline.AC == undefined)) {
containerTimeline = _level10;
}
if ((containerTimeline != undefined) && (containerTimeline.AC == undefined)) {
containerTimeline = _level10;
}
engineClip = engine_clip;
engineClip._visible = false;
levelPauseTimer = new com.warnerbros.games.Timer();
inputTimer = new com.warnerbros.games.Timer();
}
function onHSReady() {
trace("GC: onHSReady");
mcHS.HS.loading();
gameTimeline.gotoAndPlay("title");
}
function onHSLoadError(error_code) {
trace("GC: onHSLoadError: Tracking and High Scores not available. : " + error_code);
mcHS.HS = undefined;
gameTimeline.gotoAndPlay("title");
}
function start() {
debugMsgList = new Array();
if (containerTimeline != undefined) {
containerTimeline.AC.gameStart(gameTimeline, this);
} else {
gameDebug("Container: undefined");
}
mclListenerHS = new Object();
mclListenerHS.owner = this;
mclHS = new MovieClipLoader();
mclListenerHS.onLoadComplete = function (target_mc) {
target_mc.owner = this.owner;
};
mclListenerHS.onLoadError = function (target_mc, errorCode) {
trace("HS: onLoadError: " + errorCode);
this.owner.onHSLoadError(errorCode);
};
mclHS.addListener(mclListenerHS);
if (gameTimeline.gGameID == undefined) {
gameTimeline.gGameID = "na.no_id.fla";
}
if (gameTimeline.gHSRoot_swf == undefined) {
gameTimeline.gHSRoot_swf = "";
}
if (gameTimeline.gHSRoot_jsp == undefined) {
gameTimeline.gHSRoot_jsp = "/web/load_variables/games/";
}
if (gameTimeline.gHSRoot_top100 == undefined) {
gameTimeline.gHSRoot_top100 = "/web/games/";
}
if (gameTimeline.gDB_domain == undefined) {
gameTimeline.gDB_domain = "http://looneytunes2.warnerbros.com";
}
mcHS = gameTimeline.createEmptyMovieClip("hs_scripts2", 24000);
mclHS.loadClip(gameTimeline.gHSRoot_swf + filenameHS, mcHS);
}
function title() {
if (containerTimeline != undefined) {
containerTimeline.AC.gameTitle();
}
mcHS.HS.loaded();
}
function instructions() {
if (containerTimeline != undefined) {
containerTimeline.AC.gameInstructions();
}
}
function play() {
if (containerTimeline != undefined) {
containerTimeline.AC.gamePlay();
}
mcHS.HS.play();
}
function levelStart(level, score) {
if (containerTimeline != undefined) {
containerTimeline.AC.gameLevelStart(level, score);
}
mcHS.HS.levelStart(level, score);
}
function mainLoop() {
com.warnerbros.games.managers.FrameTimeManager.calculateFrameTime();
mcHS.HS.DC.mcDC.frameTime_text.text = com.warnerbros.games.managers.FrameTimeManager.getFrameMilliseconds();
}
function checkLevelComplete() {
return(false);
}
function checkGameOver() {
return(false);
}
function levelComplete() {
if (containerTimeline != undefined) {
containerTimeline.AC.gameLevelComplete();
}
levelPauseTimer.restartTimer();
}
function win(level, score) {
if (containerTimeline != undefined) {
containerTimeline.AC.gameWin(level, score);
}
mcHS.HS.gameOver(level, score);
levelPauseTimer.restartTimer();
}
function gameOver(level, score) {
if (containerTimeline != undefined) {
containerTimeline.AC.gameGameOver(level, score);
}
mcHS.HS.gameOver(level, score);
levelPauseTimer.restartTimer();
}
function handleInput() {
if (Key.isDown(com.warnerbros.games.managers.BaseInputManager.keyMap[com.warnerbros.games.managers.BaseInputManager.QUIT])) {
gameTimeline.gotoAndPlay("gameOver");
}
if (Key.getCode() == 13) {
consoleCode = "";
} else if ((Key.getAscii() > 45) && (Key.getAscii() != prevConsoleCodeChar)) {
consoleCode = consoleCode + (Key.getAscii() + ":");
prevConsoleCodeChar = Key.getAscii();
}
if (consoleCode == "126:119:98:100:98:") {
mcHS.HS.showDebugConsole();
consoleCode = "";
}
}
function getScore() {
return(0);
}
function setScore(value) {
}
function getTotalScore() {
return(0);
}
function getLevel() {
return(0);
}
function setLevel(value) {
}
function getFrameTime() {
return(com.warnerbros.games.managers.FrameTimeManager.getFrameMilliseconds());
}
function gameDebug(msg) {
if (gameTimeline.gDebug == undefined) {
gameTimeline.gDebug = "";
}
gameTimeline.gDebug = (gameTimeline.gDebug + msg) + newline;
debugMsgList.push(msg);
trace(msg);
}
var filenameHS = "/fun/games/scoobyDoo/whackAGhost/HSScripts2.swf";
var consoleCode = "";
var prevConsoleCodeChar = 0;
}
Symbol 406 MovieClip [__Packages.com.warnerbros.games.Timer] Frame 0
class com.warnerbros.games.Timer
{
function Timer () {
startTime = getTimer();
}
function restartTimer() {
startTime = getTimer();
}
function milliseconds() {
return(getTimer() - startTime);
}
function seconds() {
return(getSeconds());
}
function getSeconds() {
return(Math.floor((getTimer() - startTime) / 1000));
}
function minutes() {
return(Math.floor(getSeconds() / 60));
}
function remaining(time_allowed) {
return(time_allowed - milliseconds());
}
function expire() {
startTime = -100000;
}
function display() {
var _local2;
var _local3;
_local2 = "00" + minutes();
_local2 = _local2.substr(_local2.length - 2, 2);
_local3 = "00" + seconds();
_local3 = _local3.substr(_local3.length - 2, 2);
return((_local2 + ":") + _local3);
}
function displayRemaining(time_allowed) {
var _local2;
var _local3;
var _local4 = time_allowed - milliseconds();
var _local5 = Math.floor(_local4 / 1000);
var _local6 = Math.floor(_local5 / 60);
if (_local4 >= 0) {
_local2 = "00" + _local6;
_local2 = _local2.substr(_local2.length - 2, 2);
_local3 = "00" + _local5;
_local3 = _local3.substr(_local3.length - 2, 2);
} else {
_local2 = "00";
_local3 = "00";
}
return((_local2 + ":") + _local3);
}
var startTime = 0;
}
Symbol 407 MovieClip [__Packages.com.warnerbros.games.managers.FrameTimeManager] Frame 0
class com.warnerbros.games.managers.FrameTimeManager
{
static var frameTimeMilliseconds;
function FrameTimeManager () {
}
static function calculateFrameTime() {
frameTimeMilliseconds = frameTimeTimer.milliseconds();
frameTimeTimer.restartTimer();
}
static function getFrameMilliseconds() {
return(frameTimeMilliseconds);
}
static function getFrameSeconds() {
return(frameTimeMilliseconds / 1000);
}
static var frameTimeTimer = new com.warnerbros.games.Timer();
}
Symbol 408 MovieClip [__Packages.com.warnerbros.games.managers.BaseInputManager] Frame 0
class com.warnerbros.games.managers.BaseInputManager
{
static var keyMap, inputState;
function BaseInputManager () {
}
static function init() {
keyMap = new Array(NUM_STATES);
inputState = new Array(NUM_STATES);
keyMap[QUIT] = 81;
inputState[QUIT] = false;
initialized = true;
}
static function processInput() {
if (!initialized) {
init();
}
processKeyboardInput();
}
static function processKeyboardInput() {
inputState[QUIT] = Key.isDown(keyMap[QUIT]);
}
static function checkInputState(keyMapIndex) {
return(inputState[keyMapIndex]);
}
static function showInputState() {
trace("BIM: " + inputState.toString());
}
static var QUIT = 0;
static var NUM_STATES = 1;
static var initialized = false;
}
Symbol 409 MovieClip [__Packages.com.ndimedia.marvin.GameController] Frame 0
class com.ndimedia.marvin.GameController extends com.warnerbros.games.BaseGameController
{
var gameTimeline, m_instructionsStep, mcHS, m_interface, m_sound, m_moleFactory, m_avatar, m_mcm, m_bgSound, m_currentLevelComplete, pause, m_waitingIntervalID;
function GameController (game_timeline, engine_clip) {
super(game_timeline, engine_clip);
}
function start() {
super.start();
gameTimeline.splash_mc.play_btn.hitArea = gameTimeline.splash_mc.play_btn.hitArea_mc;
gameTimeline.splash_mc.play_btn.onRollOver = function () {
this.gotoAndPlay("over");
};
gameTimeline.splash_mc.play_btn.onRollOut = function () {
this.gotoAndPlay("out");
};
gameTimeline.splash_mc.play_btn.onPress = function () {
this.gotoAndPlay("down");
};
gameTimeline.splash_mc.play_btn.onRelease = (gameTimeline.splash_mc.play_btn.onReleaseOutside = function () {
this._parent._parent.gotoAndPlay("play");
});
gameTimeline.splash_mc.howToPlay_btn.hitArea = gameTimeline.splash_mc.howToPlay_btn.hitArea_mc;
gameTimeline.splash_mc.howToPlay_btn.onRollOver = function () {
this.gotoAndPlay("over");
};
gameTimeline.splash_mc.howToPlay_btn.onRollOut = function () {
this.gotoAndPlay("out");
};
gameTimeline.splash_mc.howToPlay_btn.onPress = function () {
this.gotoAndPlay("down");
};
gameTimeline.splash_mc.howToPlay_btn.onRelease = (gameTimeline.splash_mc.howToPlay_btn.onReleaseOutside = function () {
this._parent._parent.gotoAndPlay("instructions");
});
}
function instructions() {
super.instructions();
m_instructionsStep = 1;
gameTimeline.instructions_mc.previous_btn.onRelease = com.ndimedia.utils.Proxy.create(this, _instructionsPrevious);
gameTimeline.instructions_mc.next_btn.onRelease = com.ndimedia.utils.Proxy.create(this, _instructionsNext);
gameTimeline.instructions_mc.previous_btn._visible = false;
gameTimeline.instructions_mc.next_btn._visible = true;
}
function _instructionsNext() {
gameTimeline.instructions_mc.previous_btn._visible = true;
if (m_instructionsStep >= 10) {
gameTimeline.gotoAndPlay("play");
} else {
m_instructionsStep++;
gameTimeline.instructions_mc.gotoAndPlay("step_" + m_instructionsStep);
}
}
function _instructionsPrevious() {
m_instructionsStep = (((m_instructionsStep - 1) <= 0) ? 1 : (m_instructionsStep - 1));
gameTimeline.instructions_mc.gotoAndPlay("step_" + m_instructionsStep);
}
function title() {
super.title();
mcHS.HS.setDialogLocation(175, 100);
}
function _addReward(evt) {
m_interface.addScore(evt.__get__data().point);
m_interface.addGauge(evt.__get__data().gauge);
}
function play() {
super.play();
gameTimeline.timeUp_mc._visible = false;
m_sound.stop();
m_sound = new Sound(gameTimeline);
m_moleFactory = new com.ndimedia.marvin.MoleFactory(gameTimeline);
m_avatar = new com.ndimedia.marvin.Avatar(gameTimeline.marvin_mc);
m_interface = new com.ndimedia.marvin.Interface(gameTimeline.interface_mc);
m_mcm = new com.ndimedia.display.MovieClipMonitor();
m_avatar.addEventListener(com.ndimedia.marvin.Avatar.REWARD_EVENT, this, "_addReward");
var _local6 = com.ndimedia.utils.Proxy.create(m_interface, m_interface.lostLife);
m_avatar.addEventListener(com.ndimedia.marvin.Avatar.DAMAGE_EVENT, _local6);
_local6 = com.ndimedia.utils.Proxy.create(this, _death);
m_interface.addEventListener(com.ndimedia.marvin.Interface.GAMEOVER_DEATH_EVENT, _local6);
_local6 = com.ndimedia.utils.Proxy.create(this, _timeOut);
m_interface.addEventListener(com.ndimedia.marvin.Interface.GAMEOVER_TIME_EVENT, _local6);
_local6 = com.ndimedia.utils.Proxy.create(m_avatar, m_avatar.forceField);
m_interface.addEventListener(com.ndimedia.marvin.Interface.FORCEFIELD_EVENT, _local6);
_local6 = com.ndimedia.utils.Proxy.create(m_avatar, m_avatar.armageddon);
m_interface.addEventListener(com.ndimedia.marvin.Interface.ARMAGEDDON_EVENT, _local6);
_local6 = com.ndimedia.utils.Proxy.create(m_moleFactory, m_moleFactory.armageddon);
m_interface.addEventListener(com.ndimedia.marvin.Interface.ARMAGEDDON_EVENT, _local6);
_local6 = com.ndimedia.utils.Proxy.create(this, _completeLevel);
m_interface.addEventListener(com.ndimedia.marvin.Interface.LEVEL_UP_EVENT, _local6);
m_interface.addEventListener(com.ndimedia.marvin.Interface.TIME_WARNING_EVENT, this, "_timeWarning");
var _local3 = 0;
while (_local3 < m_moleFactory.__get__holes().length) {
var _local4 = com.ndimedia.utils.Proxy.create(m_avatar, m_avatar.shoot);
m_moleFactory.__get__holes()[_local3].addEventListener(com.ndimedia.marvin.MoleHole.ZAP_HOLE_EVENT, _local4);
var _local5 = com.ndimedia.utils.Proxy.create(m_avatar, m_avatar.attack);
m_moleFactory.__get__holes()[_local3].addEventListener(com.ndimedia.marvin.MoleHole.ATTACK_EVENT, _local5);
_local6 = com.ndimedia.utils.Proxy.create(m_interface, m_interface.targetDestroyed);
m_moleFactory.__get__holes()[_local3].addEventListener(com.ndimedia.marvin.MoleHole.DESTROY_MOLE_EVENT, _local6);
_local3++;
}
}
function _timeWarning() {
m_bgSound.stop();
m_bgSound = new Sound(gameTimeline);
m_bgSound.attachSound("bgFast_snd");
m_bgSound.start(0, 999);
}
function _timeOut() {
m_avatar.timeOut();
m_moleFactory.gameOver();
m_interface.reset();
_gameOver("timeOut");
}
function _death() {
m_avatar.death();
m_moleFactory.gameOver();
m_interface.reset();
_gameOver("death");
}
function _completeLevel() {
m_currentLevelComplete = true;
}
function levelStart() {
level++;
super.levelStart(level, score);
m_bgSound.stop();
m_bgSound = new Sound(gameTimeline);
m_bgSound.attachSound("bg_snd");
m_bgSound.start(0, 999);
m_interface.startTimer();
}
function mainLoop() {
super.mainLoop();
handleInput();
if (!pause) {
if (checkGameOver()) {
gameTimeline.gotoAndPlay("gameOver");
} else if (checkLevelComplete()) {
gameTimeline.gotoAndPlay("levelComplete");
}
}
score = m_interface.score;
m_moleFactory.addRandomMole();
}
function checkLevelComplete() {
return(m_currentLevelComplete);
}
function checkGameOver() {
return(false);
}
function levelComplete() {
super.levelComplete();
m_currentLevelComplete = false;
m_avatar.levelUp(level);
m_sound.attachSound("levelUp_snd");
m_sound.start(0, 1);
m_moleFactory.reset();
m_moleFactory.levelUp(level);
m_interface.reset();
m_interface.levelUp(level);
m_interface.addScore(level * 1000);
}
function win() {
super.win(level, score);
}
function _gameOver(type) {
m_bgSound.stop();
m_waitingIntervalID = setInterval(com.ndimedia.utils.Proxy.create(this, _popTaz), 3000);
if (type == "timeOut") {
gameTimeline.timeUp_mc._visible = true;
gameTimeline.timeUp_mc.gotoAndPlay(1);
}
}
function _popTaz() {
clearInterval(m_waitingIntervalID);
gameTimeline.popTaz_mc.anim_mc.gotoAndPlay(2);
m_mcm.addEventListener("goGameOver", this, "_goGameOver");
var _local2 = new com.ndimedia.events.Event("goGameOver", this);
m_mcm.monitorStop(gameTimeline.popTaz_mc.anim_mc, _local2, 100);
}
function _goGameOver() {
gameTimeline.gotoAndPlay("gameOver");
}
function gameOver() {
super.gameOver(level, score);
gameTimeline.postGame_mc.score_txt.text = getTotalScore();
gameTimeline.postGame_mc.replay_btn.hitArea = gameTimeline.postGame_mc.replay_btn.hitArea_mc;
gameTimeline.postGame_mc.replay_btn.onRollOver = function () {
this.gotoAndPlay("over");
};
gameTimeline.postGame_mc.replay_btn.onRollOut = function () {
this.gotoAndPlay("out");
};
gameTimeline.postGame_mc.replay_btn.onPress = function () {
this.gotoAndPlay("down");
};
gameTimeline.postGame_mc.replay_btn.onRelease = (gameTimeline.splash_mc.howToPlay_btn.onReleaseOutside = function () {
this._parent._parent.splash_mc.gotoAndStop("end");
this._parent._parent.gotoAndPlay("start");
});
}
function handleInput() {
super.handleInput();
}
function getLevelScore() {
return(score);
}
function getTotalScore() {
return(score);
}
function setScore(value) {
score = value;
}
function getLevel() {
return(level);
}
function setLevel(value) {
level = value;
}
var level = 0;
var score = 0;
}
Symbol 410 MovieClip [__Packages.com.ndimedia.marvin.MoleFactory] Frame 0
class com.ndimedia.marvin.MoleFactory
{
var m_scope, m_active, m_coolDownTime, m_coolDownTimeTarget, m_coolDownTimeVar, m_coolDown, m_moleHoles, m_moles;
function MoleFactory (scope) {
m_scope = scope;
m_active = true;
m_coolDownTime = 0;
m_coolDownTimeTarget = 500;
m_coolDownTimeVar = m_coolDownTimeTarget / 4;
m_coolDown = getTimer() - m_coolDownTime;
m_moleHoles = new Array();
m_moles = new Array();
_initHoles();
_initMoleLinkList();
}
function levelUp(level) {
if (m_coolDownTimeTarget > 0) {
m_coolDownTimeTarget = m_coolDownTimeTarget - 30;
}
}
function get coolDownTime() {
return(m_coolDownTime);
}
function set coolDownTime(cdt) {
m_coolDownTime = cdt;
//return(coolDownTime);
}
function get holes() {
return(m_moleHoles);
}
function _initMoleLinkList() {
m_moles.push({link:com.ndimedia.marvin.Mole.BOMB});
m_moles.push({link:com.ndimedia.marvin.Mole.DAFFY});
m_moles.push({link:com.ndimedia.marvin.Mole.FOGHORN});
m_moles.push({link:com.ndimedia.marvin.Mole.SYLVESTER});
m_moles.push({link:com.ndimedia.marvin.Mole.COYOTE, finish:com.ndimedia.marvin.Mole.COYOTE_FINISH});
m_moles.push({link:com.ndimedia.marvin.Mole.TAZ, finish:com.ndimedia.marvin.Mole.TAZ_FINISH});
m_moles.push({link:com.ndimedia.marvin.Mole.YOSEMITE, finish:com.ndimedia.marvin.Mole.YOSEMITE_FINISH});
}
function _initHoles() {
var _local2 = 1;
while (_local2 <= TOTAL_HOLES) {
m_moleHoles.push(new com.ndimedia.marvin.MoleHole(m_scope[("hole" + _local2) + "_mc"]));
_local2++;
}
}
function addRandomMole() {
if (m_active) {
var _local3 = getTimer();
if ((m_coolDown + m_coolDownTime) < _local3) {
m_coolDown = _local3;
m_coolDownTime = m_coolDownTimeTarget + Math.round((Math.random() * m_coolDownTimeVar) * ((Math.random() < 0.5) ? -1 : 1));
var _local2 = _getRandomMole();
if (_local2) {
var _local4 = _getRandomFreeMoleHole();
_local4.addMole(_local2);
}
}
}
}
function gameOver() {
m_active = false;
reset();
}
function reset() {
var _local2 = 0;
while (_local2 < m_moleHoles.length) {
m_moleHoles[_local2].resetCurrentMole();
_local2++;
}
}
function armageddon() {
var _local2 = 0;
while (_local2 < m_moleHoles.length) {
m_moleHoles[_local2].destroyCurrentMole(true);
_local2++;
}
}
function _getRandomMole() {
var _local3 = new Array();
var _local4 = 0;
while (_local4 < m_moles.length) {
_local3.push(m_moles[_local4]);
_local4++;
}
_local4 = 0;
while (_local4 < m_moleHoles.length) {
if (m_moleHoles[_local4].getCurrentMole()) {
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].link == m_moleHoles[_local4].getCurrentMole().moleLink) {
_local3.splice(_local2, 1);
}
_local2++;
}
}
_local4++;
}
var _local5 = _local3[Math.floor(Math.random() * _local3.length)];
if (_local5) {
if (_local5.finish) {
return(new com.ndimedia.marvin.Mole(_local5.link, true, _local5.finish));
}
return(new com.ndimedia.marvin.Mole(_local5.link, false));
}
return(null);
}
function _getRandomFreeMoleHole() {
var _local3 = new Array();
var _local2 = 0;
while (_local2 <= m_moleHoles.length) {
if (m_moleHoles[_local2].free) {
_local3.push(m_moleHoles[_local2]);
}
_local2++;
}
return(_local3[Math.floor(Math.random() * _local3.length)]);
}
static var TOTAL_HOLES = 9;
}
Symbol 411 MovieClip [__Packages.com.ndimedia.marvin.Mole] Frame 0
class com.ndimedia.marvin.Mole
{
var m_moleLink, m_mcm, m_dispatcher, m_attack, m_finish, m_count, m_fake, m_view, m_attackSound;
function Mole (mole, attack, finish) {
m_moleLink = mole;
m_mcm = new com.ndimedia.display.MovieClipMonitor();
m_dispatcher = new com.ndimedia.events.Dispatcher();
m_attack = attack;
m_finish = finish;
m_count = true;
if (moleLink == BOMB) {
m_count = false;
}
}
function dispatchEvent(evt) {
m_dispatcher.dispatchEvent(evt);
}
function eventListenerExists(eventName, obj, func) {
return(m_dispatcher.eventListenerExists(eventName, obj, func));
}
function addEventListener(eventName, obj, func) {
m_dispatcher.addEventListener(eventName, obj, func);
}
function removeEventListener(eventName, obj, func) {
m_dispatcher.removeEventListener(eventName, obj, func);
}
function removeAllEventListeners(eventName) {
m_dispatcher.removeAllEventListeners(eventName);
}
function get fake() {
return(m_fake);
}
function set fake(b) {
m_fake = b;
//return(fake);
}
function get count() {
return(m_count);
}
function set count(b) {
m_count = b;
//return(count);
}
function get moleLink() {
return(m_moleLink);
}
function setView(mc) {
m_view = mc;
m_attackSound = new Sound(m_view);
var _local2 = Math.random();
if ((_local2 < 0.33) && (moleLink != BOMB)) {
_fake();
} else {
_out();
}
}
function reset(count) {
delete m_view.onPress;
m_attackSound.stop();
m_mcm.removeEventListener("attack", this, "_attack");
m_mcm.removeAllEventListeners("sound");
m_view.gotoAndPlay("zap");
}
function destroy(mute) {
reset();
if (!mute) {
if (Math.random() < 0.5) {
m_attackSound.attachSound("vaporize1_snd");
} else {
m_attackSound.attachSound("vaporize2_snd");
}
}
m_attackSound.start(0, 1);
dispatchEvent(new com.ndimedia.events.Event(DESTROY_EVENT, this));
}
function _fake() {
fake = (true);
m_mcm.addEventListener("leave", com.ndimedia.utils.Proxy.create(this, _leave));
m_view.gotoAndPlay("fake");
m_mcm.monitorStop(m_view.anim_mc, new com.ndimedia.events.Event("leave", this), 100);
}
function _out() {
m_view.gotoAndPlay("out");
m_view.onPress = com.ndimedia.utils.Proxy.create(this, _zap);
m_mcm.addEventListener("leave", this, "_leave");
m_mcm.monitorStop(m_view.anim_mc, new com.ndimedia.events.Event("leave", this), 100);
if (m_attack) {
switch (m_moleLink) {
case COYOTE :
var _local3 = com.ndimedia.utils.Proxy.create(this, _makeSound, "coyoteAttack_snd");
m_mcm.addEventListener("sound", _local3);
var _local2 = new com.ndimedia.events.Event("sound", this);
m_mcm.monitorAtOrPassFrame(m_view.anim_mc, 40, _local2, 30, true);
break;
case TAZ :
_local3 = com.ndimedia.utils.Proxy.create(this, _makeSound, "tazAttack_snd");
m_mcm.addEventListener("sound", _local3);
_local2 = new com.ndimedia.events.Event("sound", this);
m_mcm.monitorAtOrPassFrame(m_view.anim_mc, 49, _local2, 30, true);
break;
case YOSEMITE :
_local3 = com.ndimedia.utils.Proxy.create(this, _makeSound, "yosemiteAttack_snd");
m_mcm.addEventListener("sound", _local3);
_local2 = new com.ndimedia.events.Event("sound", this);
m_mcm.monitorAtOrPassFrame(m_view.anim_mc, 32, _local2, 30, true);
}
m_mcm.addEventListener("attack", this, "_attack");
_local2 = new com.ndimedia.events.Event("attack", this);
m_mcm.monitorAtOrPassFrame(m_view.anim_mc, m_finish, _local2, 100, true);
}
}
function _zap(handler) {
m_dispatcher.dispatchEvent(new com.ndimedia.events.Event(ZAP_EVENT, this));
}
function _leave(evt) {
m_view.removeMovieClip();
m_dispatcher.dispatchEvent(new com.ndimedia.events.Event(LEAVE_EVENT, this));
}
function _makeSound(evt, sound) {
m_attackSound.attachSound(sound);
m_attackSound.start(0, 1);
}
function _attack(evt) {
m_dispatcher.dispatchEvent(new com.ndimedia.events.Event(ATTACK_EVENT, this));
}
static var BOMB = "bomb_mc";
static var DAFFY = "daffy_mc";
static var FOGHORN = "foghorn_mc";
static var SYLVESTER = "sylvester_mc";
static var COYOTE = "coyote_mc";
static var COYOTE_FINISH = 40;
static var TAZ = "taz_mc";
static var TAZ_FINISH = 65;
static var YOSEMITE = "yosemite_mc";
static var YOSEMITE_FINISH = 54;
static var LEAVE_EVENT = "leave";
static var ATTACK_EVENT = "attack";
static var ZAP_EVENT = "zap";
static var DESTROY_EVENT = "destroy";
}
Symbol 412 MovieClip [__Packages.com.ndimedia.display.MovieClipMonitor] Frame 0
class com.ndimedia.display.MovieClipMonitor
{
var m_intervalID, m_dispatcher;
function MovieClipMonitor () {
m_intervalID = new Array();
m_dispatcher = new com.ndimedia.events.Dispatcher();
}
function dispatchEvent(evt) {
m_dispatcher.dispatchEvent(evt);
}
function eventListenerExists(eventName, obj, func) {
return(m_dispatcher.eventListenerExists(eventName, obj, func));
}
function addEventListener(eventName, obj, func) {
m_dispatcher.addEventListener(eventName, obj, func);
}
function removeEventListener(eventName, obj, func) {
m_dispatcher.removeEventListener(eventName, obj, func);
}
function removeAllEventListeners(eventName) {
m_dispatcher.removeAllEventListeners(eventName);
}
function killMonitorOnMc(mc, id) {
if (id) {
_clearInterval(id);
} else {
var _local2 = 0;
while (_local2 < m_intervalID.length) {
if (m_intervalID[_local2].id.indexOf(mc._name) != -1) {
_clearInterval(m_intervalID[_local2].id);
}
_local2++;
}
}
}
function monitorAtOrPassFrame(mc, frame, evt, frequency, autoDestruct) {
if (mc._currentframe >= frame) {
dispatchEvent(evt);
} else {
frequency = ((frequency == undefined) ? 1 : (frequency));
var _local6 = ((autoDestruct == undefined) ? true : (autoDestruct));
var _local2 = new Object();
m_uniqueID++;
_local2.id = (mc._name + evt.__get__type()) + m_uniqueID;
_local2.intervalID = setInterval(this, "_watchAtOrPassFrame", frequency, mc, frame, evt, _local6, _local2.id);
m_intervalID.push(_local2);
return(_local2.id);
}
return(null);
}
function _watchAtOrPassFrame(mc, frame, evt, ad, id) {
if (mc._currentframe >= frame) {
if (ad) {
_clearInterval(id);
}
dispatchEvent(evt);
}
}
function monitorAtFrame(mc, frame, evt, frequency, autoDestruct) {
if (mc._currentframe == frame) {
dispatchEvent(evt);
} else {
frequency = ((frequency == undefined) ? 1 : (frequency));
var _local6 = ((autoDestruct == undefined) ? true : (autoDestruct));
var _local2 = new Object();
m_uniqueID++;
_local2.id = (mc._name + evt.__get__type()) + m_uniqueID;
_local2.intervalID = setInterval(this, "_watchAtFrame", frequency, mc, frame, evt, _local6, _local2.id);
m_intervalID.push(_local2);
return(_local2.id);
}
return(null);
}
function _watchAtFrame(mc, frame, evt, ad, id) {
if (mc._currentframe == frame) {
if (ad) {
_clearInterval(id);
}
dispatchEvent(evt);
}
}
function monitorStop(mc, evt, frequency) {
frequency = ((frequency == undefined) ? 1 : (frequency));
var _local2 = new Object();
m_uniqueID++;
_local2.id = (mc._name + evt.__get__type()) + m_uniqueID;
this[_local2.id] = mc._currentframe;
_local2.intervalID = setInterval(this, "_watchStop", frequency, mc, evt, _local2.id);
m_intervalID.push(_local2);
return(_local2.id);
}
function _watchStop(mc, evt, id) {
if (mc._currentframe == this[id]) {
_clearInterval(id);
dispatchEvent(evt);
} else {
this[id] = mc._currentframe;
}
}
function _clearInterval(id) {
var _local2 = 0;
while (_local2 < m_intervalID.length) {
if (m_intervalID[_local2].id == id) {
clearInterval(m_intervalID[_local2].intervalID);
m_intervalID.splice(_local2, 1);
break;
}
_local2++;
}
}
var m_stopedFrame = 0;
var m_uniqueID = 0;
}
Symbol 413 MovieClip [__Packages.com.ndimedia.events.Dispatcher] Frame 0
class com.ndimedia.events.Dispatcher
{
function Dispatcher () {
com.gskinner.GDispatcher.initialize(this);
}
function dispatchEvent(evt) {
}
function eventListenerExists(eventName, obj, func) {
return(false);
}
function addEventListener(eventName, obj, func) {
}
function removeEventListener(eventName, obj, func) {
}
function removeAllEventListeners(eventName) {
}
}
Symbol 414 MovieClip [__Packages.com.ndimedia.events.Event] Frame 0
class com.ndimedia.events.Event
{
var m_type, m_target, m_data;
function Event (type, target) {
m_type = type;
m_target = target;
m_data = {};
}
function get type() {
return(m_type);
}
function get target() {
return(m_target);
}
function get data() {
return(m_data);
}
function addData(data) {
m_data[data.__get__label()] = data.data;
}
function bubble(dispatcher) {
dispatcher.dispatchEvent(this);
}
}
Symbol 415 MovieClip [__Packages.com.ndimedia.events.EventData] Frame 0
class com.ndimedia.events.EventData
{
var m_label, m_data;
function EventData (label, data) {
m_label = label;
m_data = data;
}
function get label() {
return(m_label);
}
function get data() {
return(m_data);
}
}
Symbol 416 MovieClip [__Packages.com.gskinner.GDispatcher] Frame 0
class com.gskinner.GDispatcher
{
var gDispatcher_listeners;
function GDispatcher () {
}
static function initialize(p_obj) {
if ($instance == undefined) {
$instance = new com.gskinner.GDispatcher();
}
p_obj.dispatchEvent = $instance.dispatchEvent;
p_obj.eventListenerExists = $instance.eventListenerExists;
p_obj.addEventListener = $instance.addEventListener;
p_obj.removeEventListener = $instance.removeEventListener;
p_obj.removeAllEventListeners = $instance.removeAllEventListeners;
}
static function $indexOfListener(p_listeners, p_obj, p_function) {
var _local3 = p_listeners.length;
var _local2 = -1;
while (_local2++ , _local2 < _local3) {
var _local1 = p_listeners[_local2];
if ((_local1.o == p_obj) && (_local1.f == p_function)) {
return(_local2);
}
}
return(-1);
}
static function $dispatchEvent(p_dispatchObj, p_listeners, p_eventObj) {
var _local5;
for (_local5 in p_listeners) {
var _local1 = p_listeners[_local5].o;
var _local3 = typeof(_local1);
var _local2 = p_listeners[_local5].f;
if ((_local3 == "object") || (_local3 == "movieclip")) {
if ((_local1.handleEvent != undefined) && (_local2 == undefined)) {
_local1.handleEvent(p_eventObj);
} else {
if (_local2 == undefined) {
_local2 = p_eventObj.type;
}
_local1[_local2](p_eventObj);
}
} else {
_local1.apply(p_dispatchObj, [p_eventObj]);
}
}
}
function dispatchEvent(p_eventObj) {
if (p_eventObj.type == "ALL") {
return(undefined);
}
if (p_eventObj.target == undefined) {
p_eventObj.target = this;
}
this[p_eventObj.type + "Handler"](p_eventObj);
var _local3 = gDispatcher_listeners[p_eventObj.type];
if (_local3 != undefined) {
$dispatchEvent(this, _local3, p_eventObj);
}
_local3 = gDispatcher_listeners.ALL;
if (_local3 != undefined) {
$dispatchEvent(this, _local3, p_eventObj);
}
}
function eventListenerExists(p_event, p_obj, p_function) {
return($indexOfListener(gDispatcher_listeners[p_event], p_obj, p_function) != -1);
}
function addEventListener(p_event, p_obj, p_function) {
if (gDispatcher_listeners == undefined) {
gDispatcher_listeners = {};
_global.ASSetPropFlags(this, gDispatcher_listeners, 1);
}
var _local3 = gDispatcher_listeners[p_event];
if (_local3 == undefined) {
_local3 = [];
gDispatcher_listeners[p_event] = _local3;
}
if ($indexOfListener(_local3, p_obj, p_function) == -1) {
_local3.push({o:p_obj, f:p_function});
}
}
function removeEventListener(p_event, p_obj, p_function) {
var _local2 = gDispatcher_listeners[p_event];
if (_local2 == undefined) {
return(undefined);
}
var _local3 = $indexOfListener(_local2, p_obj, p_function);
if (_local3 != -1) {
_local2.splice(_local3, 1);
}
}
function removeAllEventListeners(p_event) {
if (p_event == undefined) {
delete gDispatcher_listeners;
} else {
delete gDispatcher_listeners[p_event];
}
}
static var $instance = undefined;
}
Symbol 417 MovieClip [__Packages.com.ndimedia.utils.Proxy] Frame 0
class com.ndimedia.utils.Proxy
{
function Proxy () {
}
static function create(oTarget, fFunction) {
var aParameters = new Array();
var _local2 = 2;
while (_local2 < arguments.length) {
aParameters[_local2 - 2] = arguments[_local2];
_local2++;
}
var _local4 = function () {
var _local2 = arguments.concat(aParameters);
fFunction.apply(oTarget, _local2);
};
return(_local4);
}
}
Symbol 418 MovieClip [__Packages.com.ndimedia.marvin.MoleHole] Frame 0
class com.ndimedia.marvin.MoleHole
{
var m_view, m_mask, m_target, m_free, m_dispatcher, m_currentMole;
function MoleHole (view) {
m_view = view;
m_mask = m_view.mask_mc;
m_mask._alpha = 0;
m_mask.swapDepths(1001);
m_target = m_view.target_mc;
m_target._alpha = 0;
m_target.onPress = com.ndimedia.utils.Proxy.create(this, _zapThis);
m_free = true;
m_dispatcher = new com.ndimedia.events.Dispatcher();
}
function dispatchEvent(evt) {
m_dispatcher.dispatchEvent(evt);
}
function eventListenerExists(eventName, obj, func) {
return(m_dispatcher.eventListenerExists(eventName, obj, func));
}
function addEventListener(eventName, obj, func) {
m_dispatcher.addEventListener(eventName, obj, func);
}
function removeEventListener(eventName, obj, func) {
m_dispatcher.removeEventListener(eventName, obj, func);
}
function removeAllEventListeners(eventName) {
m_dispatcher.removeAllEventListeners(eventName);
}
function resetCurrentMole() {
m_currentMole.reset();
}
function destroyCurrentMole(mute) {
m_currentMole.destroy(mute);
}
function get id() {
var _local2 = Number(m_view._name.slice(4, 5));
return(_local2);
}
function getCurrentMole() {
return(m_currentMole);
}
function addMole(mole) {
free = (false);
m_currentMole = mole;
if (mole.__get__moleLink() == com.ndimedia.marvin.Mole.BOMB) {
var _local3 = Math.random();
if (_local3 < 0.33) {
var _local4 = m_view.attachMovie("bomb_mc1", mole.__get__moleLink() + m_view.getNextHighestDepth(), m_view.getNextHighestDepth());
} else if ((_local3 >= 0.33) && (_local3 < 0.66)) {
var _local4 = m_view.attachMovie("bomb_mc2", mole.__get__moleLink() + m_view.getNextHighestDepth(), m_view.getNextHighestDepth());
} else {
var _local4 = m_view.attachMovie("bomb_mc3", mole.__get__moleLink() + m_view.getNextHighestDepth(), m_view.getNextHighestDepth());
}
} else {
var _local4 = m_view.attachMovie(mole.__get__moleLink(), mole.__get__moleLink() + m_view.getNextHighestDepth(), m_view.getNextHighestDepth());
}
_local4.setMask(m_mask);
m_currentMole.addEventListener(com.ndimedia.marvin.Mole.LEAVE_EVENT, com.ndimedia.utils.Proxy.create(this, _freeThis));
m_currentMole.addEventListener(com.ndimedia.marvin.Mole.ZAP_EVENT, com.ndimedia.utils.Proxy.create(this, _zapThis));
m_currentMole.addEventListener(com.ndimedia.marvin.Mole.ATTACK_EVENT, com.ndimedia.utils.Proxy.create(this, _attack));
m_currentMole.addEventListener(com.ndimedia.marvin.Mole.DESTROY_EVENT, com.ndimedia.utils.Proxy.create(this, _destroy));
m_currentMole.setView(_local4);
}
function get free() {
return(m_free);
}
function set free(b) {
m_free = b;
//return(free);
}
function _freeThis(evt) {
delete eval (evt.__get__target());
delete m_currentMole;
free = (true);
}
function _zapThis(evt) {
var _local2 = new com.ndimedia.events.Event(ZAP_HOLE_EVENT, this);
_local2.addData(new com.ndimedia.events.EventData("id", id));
var _local3 = (evt.__get__target() ? (evt.__get__target()) : (m_currentMole));
if (!_local3.__get__fake()) {
_local2.addData(new com.ndimedia.events.EventData("mole", _local3));
}
dispatchEvent(_local2);
}
function _attack(evt) {
var _local2 = new com.ndimedia.events.Event(ATTACK_EVENT, this);
_local2.addData(new com.ndimedia.events.EventData("id", id));
_local2.addData(new com.ndimedia.events.EventData("mole", evt.__get__target()));
dispatchEvent(_local2);
}
function _destroy(evt) {
var _local2 = new com.ndimedia.events.Event(DESTROY_MOLE_EVENT, this);
_local2.addData(new com.ndimedia.events.EventData("id", id));
_local2.addData(new com.ndimedia.events.EventData("mole", evt.__get__target()));
dispatchEvent(_local2);
}
static var ZAP_HOLE_EVENT = "zapThisHole";
static var ATTACK_EVENT = "attack";
static var DESTROY_MOLE_EVENT = "destroyMole";
}
Symbol 419 MovieClip [__Packages.com.ndimedia.marvin.Avatar] Frame 0
class com.ndimedia.marvin.Avatar
{
var m_view, m_dispatcher, m_mcm, m_hurt, m_invincible, m_forceField, m_lifeRecovery, m_sound, m_lifeRecoveryIntervalID, m_blinkIntervalID;
function Avatar (mc) {
m_view = mc;
m_dispatcher = new com.ndimedia.events.Dispatcher();
m_mcm = new com.ndimedia.display.MovieClipMonitor();
m_hurt = false;
m_invincible = false;
m_forceField = false;
m_view.forceField_mc._visible = false;
m_view.bootFF_mc._visible = false;
m_view.boot_mc._visible = false;
m_lifeRecovery = 3000;
m_sound = new Sound(m_view);
}
function dispatchEvent(evt) {
m_dispatcher.dispatchEvent(evt);
}
function eventListenerExists(eventName, obj, func) {
return(m_dispatcher.eventListenerExists(eventName, obj, func));
}
function addEventListener(eventName, obj, func) {
m_dispatcher.addEventListener(eventName, obj, func);
}
function removeEventListener(eventName, obj, func) {
m_dispatcher.removeEventListener(eventName, obj, func);
}
function removeAllEventListeners(eventName) {
m_dispatcher.removeAllEventListeners(eventName);
}
function reset() {
clearInterval(m_lifeRecoveryIntervalID);
clearInterval(m_blinkIntervalID);
m_view._alpha = 100;
m_mcm.killMonitorOnMc(m_view.boot_mc);
m_mcm.killMonitorOnMc(m_view.anvil_mc);
m_mcm.killMonitorOnMc(m_view.anim_mc);
m_view.boot_mc._visible = false;
m_view.boot_mc.gotoAndStop(1);
m_view.bootFF_mc._visible = false;
m_view.bootFF_mc.gotoAndStop(1);
m_view.anvil_mc.gotoAndStop(1);
m_view.anvilFF_mc.gotoAndStop(1);
m_invincible = false;
m_hurt = false;
}
function levelUp(leve) {
reset();
m_view.gotoAndStop("levelUp");
}
function forceField(evt) {
m_forceField = true;
m_view.forceField_mc._visible = true;
m_view.forceField_mc.gotoAndPlay(2);
m_sound.attachSound("forceField_snd");
m_sound.start(0, 1);
m_mcm.addEventListener("quitFF", this, "_closeForceField");
evt = new com.ndimedia.events.Event("quitFF", this);
m_mcm.monitorAtOrPassFrame(m_view.forceField_mc, 297, evt, 30, true);
}
function _closeForceField() {
m_sound.attachSound("forceField_snd");
m_sound.start(0, 1);
m_mcm.removeAllEventListeners("quitFF");
m_forceField = false;
m_view.forceField_mc._visible = false;
}
function armageddon(evt) {
m_sound.attachSound("nuke_snd");
m_sound.start(0, 1);
m_mcm.killMonitorOnMc(m_view.boot_mc);
m_mcm.killMonitorOnMc(m_view.anvil_mc);
m_view.boot_mc._visible = false;
m_view.boot_mc.gotoAndStop(1);
m_view.bootFF_mc._visible = false;
m_view.bootFF_mc.gotoAndStop(1);
m_view.anvil_mc.gotoAndStop(1);
m_view.anvilFF_mc.gotoAndStop(1);
}
function death() {
m_invincible = true;
clearInterval(m_lifeRecoveryIntervalID);
clearInterval(m_blinkIntervalID);
m_view._alpha = 100;
m_mcm.killMonitorOnMc(m_view.boot_mc);
m_mcm.killMonitorOnMc(m_view.anvil_mc);
m_mcm.killMonitorOnMc(m_view.anim_mc);
m_mcm.removeAllEventListeners();
m_sound.attachSound("death_snd");
m_sound.start(0, 1);
m_view.gotoAndStop("death");
}
function timeOut() {
m_invincible = true;
clearInterval(m_lifeRecoveryIntervalID);
clearInterval(m_blinkIntervalID);
m_view._alpha = 100;
m_mcm.killMonitorOnMc(m_view.boot_mc);
m_mcm.killMonitorOnMc(m_view.anvil_mc);
m_mcm.killMonitorOnMc(m_view.anim_mc);
m_mcm.removeAllEventListeners();
m_view.gotoAndStop("timeOut");
}
function shoot(evt) {
if (!m_hurt) {
m_view.gotoAndStop("hole_" + evt.__get__data().id);
m_view.anim_mc.gotoAndPlay(2);
if (evt.__get__data().mole.moleLink == com.ndimedia.marvin.Mole.BOMB) {
_bombAttack(evt.__get__data().mole);
} else {
evt.__get__data().mole.destroy();
if (Math.random() < 0.5) {
m_sound.attachSound("zap1_snd");
} else {
m_sound.attachSound("zap2_snd");
}
m_sound.start(0, 1);
m_mcm.addEventListener("stopShoot", this, "_stopShoot");
evt = new com.ndimedia.events.Event("stopShoot", this);
m_mcm.monitorStop(m_view.anim_mc, evt, 100);
}
}
}
function _stopShoot(evt) {
m_mcm.removeAllEventListeners("stopShoot");
m_view.gotoAndStop("arrive");
}
function attack(evt) {
var _local3 = evt.data.id;
var _local2 = evt.data.mole;
switch (_local2.__get__moleLink()) {
case com.ndimedia.marvin.Mole.COYOTE :
_coyoteAttack();
break;
case com.ndimedia.marvin.Mole.TAZ :
_tazAttack(_local3);
break;
case com.ndimedia.marvin.Mole.YOSEMITE :
_yosemiteAttack();
}
}
function _coyoteAttack() {
m_view.anvil_mc.gotoAndPlay(2);
m_sound.attachSound("anvilFail_snd");
m_sound.start(0, 1);
m_mcm.addEventListener("checkForceField", this, "_coyoteCheckForceField");
var _local2 = new com.ndimedia.events.Event("checkForceField", this);
m_mcm.monitorAtOrPassFrame(m_view.anvil_mc, 8, _local2, 1, true);
}
function _coyoteCheckForceField() {
m_mcm.removeAllEventListeners("checkForceField");
m_mcm.killMonitorOnMc(m_view.anvil_mc);
if (m_forceField) {
m_view.anvil_mc.gotoAndStop(1);
m_view.anvilFF_mc.gotoAndPlay(11);
m_sound.attachSound("forceFieldHit_snd");
m_sound.start(0, 1);
} else if ((!m_hurt) && (!m_invincible)) {
m_sound.attachSound("anvilHit_snd");
m_sound.start(0, 1);
m_view.gotoAndStop("coyoteDamage");
m_view.anim_mc.gotoAndPlay(2);
m_mcm.addEventListener("stopBlink", this, "_stopHurt");
var _local2 = new com.ndimedia.events.Event("stopBlink", this);
m_mcm.monitorStop(m_view.anim_mc, _local2, 100);
_startBlink();
}
}
function _tazAttack(hole) {
var _local2;
if (m_forceField) {
_local2 = m_view.bootFF_mc;
} else {
_local2 = m_view.boot_mc;
}
_local2._visible = true;
switch (hole) {
case 1 :
case 4 :
case 7 :
_local2.gotoAndPlay(2);
break;
case 2 :
case 5 :
case 8 :
_local2.gotoAndPlay(3);
break;
case 3 :
case 6 :
case 9 :
_local2.gotoAndPlay(5);
}
if (!m_forceField) {
if ((!m_hurt) && (!m_invincible)) {
m_view.gotoAndStop("tazDamage");
switch (hole) {
case 1 :
case 4 :
case 7 :
m_view.anim_mc.gotoAndPlay(2);
break;
case 2 :
case 5 :
case 8 :
m_view.anim_mc.gotoAndPlay(3);
break;
case 3 :
case 6 :
case 9 :
m_view.anim_mc.gotoAndPlay(5);
}
m_sound.attachSound("bootHit_snd");
m_sound.start(0, 1);
_startBlink();
m_mcm.addEventListener("stopBlink", this, "_stopHurt");
var _local3 = new com.ndimedia.events.Event("stopBlink", this);
m_mcm.monitorStop(m_view.anim_mc, _local3, 100);
}
} else {
m_sound.attachSound("forceFieldHit_snd");
m_sound.start(0, 1);
}
}
function _yosemiteAttack() {
if (((!m_hurt) && (!m_invincible)) && (!m_forceField)) {
m_view.gotoAndStop("yosemiteDamage");
m_view.anim_mc.gotoAndPlay(2);
_startBlink();
m_mcm.addEventListener("stopBlink", this, "_stopHurt");
var _local2 = new com.ndimedia.events.Event("stopBlink", this);
m_mcm.monitorStop(m_view.anim_mc, _local2, 100);
}
}
function _bombAttack(mole) {
mole.destroy();
if (((!m_hurt) && (!m_invincible)) && (!m_forceField)) {
m_sound.attachSound("bombAttack_snd");
m_sound.start(0, 1);
m_view.gotoAndStop("yosemiteDamage");
m_view.anim_mc.gotoAndPlay(2);
_startBlink();
m_mcm.addEventListener("stopHurt", this, "_stopHurt");
var _local2 = new com.ndimedia.events.Event("stopHurt", this);
m_mcm.monitorStop(m_view.anim_mc, _local2, 100);
} else if (m_forceField && (!m_hurt)) {
var _local2 = new com.ndimedia.events.Event(REWARD_EVENT, this);
_local2.addData(new com.ndimedia.events.EventData("point", 2000));
_local2.addData(new com.ndimedia.events.EventData("gauge", 20));
dispatchEvent(_local2);
}
}
function _startBlink() {
m_mcm.removeAllEventListeners("stopShoot");
m_hurt = true;
m_invincible = true;
m_blinkIntervalID = setInterval(com.ndimedia.utils.Proxy.create(this, _blink, m_view), 30);
dispatchEvent(new com.ndimedia.events.Event(DAMAGE_EVENT, this));
}
function _stopHurt(evt) {
m_hurt = false;
clearInterval(m_lifeRecoveryIntervalID);
m_lifeRecoveryIntervalID = setInterval(com.ndimedia.utils.Proxy.create(this, _stopBlink), m_lifeRecovery);
}
function _stopBlink() {
clearInterval(m_lifeRecoveryIntervalID);
clearInterval(m_blinkIntervalID);
m_mcm.removeAllEventListeners("startBlink");
m_mcm.removeAllEventListeners("stopBlink");
m_view._alpha = 100;
m_invincible = false;
}
function _blink(mc) {
if (mc._alpha > 50) {
mc._alpha = 50;
} else {
mc._alpha = 100;
}
}
static var DAMAGE_EVENT = "damageEvent";
static var REWARD_EVENT = "pointEvent";
}
Symbol 420 MovieClip [__Packages.com.ndimedia.marvin.Interface] Frame 0
class com.ndimedia.marvin.Interface
{
var m_view, m_dispatcher, m_mcm, m_sound, m_moleGauge, m_health, m_time, m_healthFull, m_forceFieldPU, m_healthPU, m_armageddonPU, m_score, m_gaugeData, m_remindTime, m_timer, m_decay, m_decayIncrement, m_reward, m_totalTime, m_timeWarning;
function Interface (mc) {
m_view = mc;
m_dispatcher = new com.ndimedia.events.Dispatcher();
m_mcm = new com.ndimedia.display.MovieClipMonitor();
m_sound = new Sound(m_view);
m_moleGauge = m_view.moleGauge_mc;
m_health = m_view.health_mc;
m_time = m_view.time_txt;
m_healthFull = m_view.healthFill_mc;
var _local2 = com.ndimedia.utils.Proxy.create(this, _activatePU);
m_forceFieldPU = new com.ndimedia.marvin.PowerUps(m_view.powerUp1_mc, m_view.powerUp1Meter_mc, com.ndimedia.marvin.PowerUps.FORCEFIELD_TYPE);
m_forceFieldPU.addEventListener(com.ndimedia.marvin.PowerUps.PU_EVENT, _local2);
m_healthPU = new com.ndimedia.marvin.PowerUps(m_view.powerUp2_mc, m_view.powerUp2Meter_mc, com.ndimedia.marvin.PowerUps.HEALTH_TYPE);
m_healthPU.addEventListener(com.ndimedia.marvin.PowerUps.PU_EVENT, _local2);
m_armageddonPU = new com.ndimedia.marvin.PowerUps(m_view.powerUp3_mc, m_view.powerUp3Meter_mc, com.ndimedia.marvin.PowerUps.ARMAGEDDON_TYPE);
m_armageddonPU.addEventListener(com.ndimedia.marvin.PowerUps.PU_EVENT, _local2);
_init();
}
function dispatchEvent(evt) {
m_dispatcher.dispatchEvent(evt);
}
function eventListenerExists(eventName, obj, func) {
return(m_dispatcher.eventListenerExists(eventName, obj, func));
}
function addEventListener(eventName, obj, func) {
m_dispatcher.addEventListener(eventName, obj, func);
}
function removeEventListener(eventName, obj, func) {
m_dispatcher.removeEventListener(eventName, obj, func);
}
function removeAllEventListeners(eventName) {
m_dispatcher.removeAllEventListeners(eventName);
}
function get score() {
return(m_score);
}
function addScore(s) {
m_score = m_score + s;
}
function addGauge(g) {
_gainGauge(g);
}
function _init() {
m_gaugeData = 0;
m_remindTime = 0;
m_timer = 0;
m_decay = 0.03;
m_decayIncrement = 0.01;
m_reward = 5;
m_score = 0;
m_totalTime = 50;
m_health.gotoAndStop(1);
}
function levelUp(level) {
m_reward = m_reward - 0.12;
if (m_decay < 0.12) {
m_decay = m_decay + m_decayIncrement;
}
m_totalTime = 25;
m_forceFieldPU.levelUp();
m_healthPU.levelUp();
m_armageddonPU.levelUp();
}
function _activatePU(evt) {
addScore(250);
switch (evt.__get__target().type) {
case com.ndimedia.marvin.PowerUps.FORCEFIELD_TYPE :
var _local2 = new com.ndimedia.events.Event(FORCEFIELD_EVENT, this);
dispatchEvent(_local2);
break;
case com.ndimedia.marvin.PowerUps.HEALTH_TYPE :
fullLife();
break;
case com.ndimedia.marvin.PowerUps.ARMAGEDDON_TYPE :
_local2 = new com.ndimedia.events.Event(ARMAGEDDON_EVENT, this);
dispatchEvent(_local2);
}
}
function targetDestroyed(evt) {
if (evt.__get__data().mole.count) {
evt.__get__data().mole.count = false;
_gainGauge();
var _local3 = evt.__get__data().mole.moleLink;
switch (_local3) {
case com.ndimedia.marvin.Mole.COYOTE :
m_forceFieldPU.gain();
addScore(750);
break;
case com.ndimedia.marvin.Mole.TAZ :
m_healthPU.gain();
addScore(750);
break;
case com.ndimedia.marvin.Mole.YOSEMITE :
m_armageddonPU.gain();
addScore(750);
break;
case com.ndimedia.marvin.Mole.DAFFY :
case com.ndimedia.marvin.Mole.FOGHORN :
case com.ndimedia.marvin.Mole.SYLVESTER :
addScore(500);
}
}
}
function reset() {
stopTimer();
m_remindTime = m_timer - getTimer();
m_gaugeData = 0;
m_moleGauge.gotoAndStop(1);
}
function _gainGauge(reward) {
if (reward) {
m_gaugeData = (((m_gaugeData + reward) > 100) ? 100 : (m_gaugeData + reward));
} else {
m_gaugeData = (((m_gaugeData + m_reward) > 100) ? 100 : (m_gaugeData + m_reward));
}
if (m_gaugeData >= 100) {
var _local2 = new com.ndimedia.events.Event(LEVEL_UP_EVENT, this);
dispatchEvent(_local2);
}
}
function _decayGauge() {
if ((m_gaugeData - m_decay) <= 0) {
m_gaugeData = 0;
} else {
m_gaugeData = m_gaugeData - m_decay;
}
}
function _displayGauge() {
_decayGauge();
m_moleGauge.gotoAndStop(Math.floor(m_moleGauge._totalframes * (m_gaugeData / 100)));
}
function fullLife() {
m_healthFull.gotoAndPlay(2);
m_sound.attachSound("fullHealth_snd");
m_sound.start(0, 1);
m_mcm.addEventListener("makeFullLife", this, "_makeFullLife");
m_mcm.monitorAtOrPassFrame(m_healthFull, 15, new com.ndimedia.events.Event("makeFullLife", this), 30, true);
}
function _makeFullLife() {
m_health.gotoAndStop(1);
}
function gainLife() {
if (m_health._currentframe > 1) {
m_health.gotoAndStop(m_health._currentframe - 1);
}
}
function lostLife() {
m_health.gotoAndStop(m_health._currentframe + 1);
if (m_health._currentframe == m_health._totalframes) {
dispatchEvent(new com.ndimedia.events.Event(GAMEOVER_DEATH_EVENT, this));
}
}
function startTimer() {
m_timer = (getTimer() + (m_totalTime * 1000)) + m_remindTime;
m_timeWarning = false;
m_view.onEnterFrame = com.ndimedia.utils.Proxy.create(this, _trackTime);
}
function stopTimer() {
delete m_view.onEnterFrame;
}
function _trackTime() {
var _local2 = _formatDecimals((m_timer - getTimer()) / 1000, 1);
if (_local2 < 0) {
stopTimer();
m_time.text = "00.0";
dispatchEvent(new com.ndimedia.events.Event(GAMEOVER_TIME_EVENT, this));
} else if (_local2 < 10) {
if (!m_timeWarning) {
m_timeWarning = true;
dispatchEvent(new com.ndimedia.events.Event(TIME_WARNING_EVENT, this));
}
m_time.text = "0" + String(_local2);
_blink(m_time);
} else {
m_time._alpha = 100;
m_time.text = String(_local2);
}
_displayGauge();
}
function _blink(mc) {
if (mc._alpha > 50) {
mc._alpha = 50;
} else {
mc._alpha = 100;
}
}
function _formatDecimals(num, digits) {
if (digits <= 0) {
return(Math.round(num));
}
if (num < 0) {
var _local6 = true;
num = num * -1;
}
var _local5 = Math.pow(10, digits);
var _local1 = String(Math.round(num * _local5));
if (num < 1) {
while (_local1.length < (digits + 1)) {
_local1 = "0" + _local1;
}
}
if (_local6) {
_local1 = "-" + _local1;
}
var _local4 = (_local1.slice(0, -digits) + ".") + _local1.slice(-digits);
return(Number(_local4));
}
static var LEVEL_UP_EVENT = "levelup";
static var GAMEOVER_DEATH_EVENT = "gameoverDeath";
static var GAMEOVER_TIME_EVENT = "gameoverTime";
static var FORCEFIELD_EVENT = "forceField";
static var ARMAGEDDON_EVENT = "armageddon";
static var TIME_WARNING_EVENT = "timeWarning";
}
Symbol 421 MovieClip [__Packages.com.ndimedia.marvin.PowerUps] Frame 0
class com.ndimedia.marvin.PowerUps
{
var m_view, m_meter, m_type, m_dispatcher, m_progressGain, m_progress;
function PowerUps (mc, meter, type) {
m_view = mc;
m_meter = meter;
m_type = type;
m_dispatcher = new com.ndimedia.events.Dispatcher();
m_progressGain = 17;
_reset();
}
function dispatchEvent(evt) {
m_dispatcher.dispatchEvent(evt);
}
function eventListenerExists(eventName, obj, func) {
return(m_dispatcher.eventListenerExists(eventName, obj, func));
}
function addEventListener(eventName, obj, func) {
m_dispatcher.addEventListener(eventName, obj, func);
}
function removeEventListener(eventName, obj, func) {
m_dispatcher.removeEventListener(eventName, obj, func);
}
function removeAllEventListeners(eventName) {
m_dispatcher.removeAllEventListeners(eventName);
}
function levelUp() {
if (m_progressGain > 1) {
m_progressGain = m_progressGain - 0.75;
}
}
function gain() {
var _local2 = new mx.transitions.Tween(this, "progress", mx.transitions.easing.Regular.easeOut, m_progress, m_progress + m_progressGain, 1, true);
}
function get type() {
return(m_type);
}
function get progress() {
return(m_progress);
}
function set progress(p) {
m_progress = ((p >= 100) ? 100 : (p));
var _local3 = Math.round((m_progress / 100) * m_view._totalframes);
var _local2 = Math.round((m_progress / 100) * m_meter._totalframes);
m_view.gotoAndStop(_local3);
m_meter.gotoAndStop(_local2);
if (m_progress >= 100) {
m_view.onPress = com.ndimedia.utils.Proxy.create(this, _execute);
} else {
delete m_view.onPress;
}
//return(progress);
}
function _execute() {
_reset();
var _local2 = new com.ndimedia.events.Event(PU_EVENT, this);
_local2.addData(new com.ndimedia.events.EventData("type", m_type));
dispatchEvent(_local2);
}
function _reset() {
m_progress = 0;
m_view.gotoAndStop(1);
m_meter.gotoAndStop(1);
delete m_view.onPress;
delete m_meter.onPress;
}
static var FORCEFIELD_TYPE = "forceField";
static var HEALTH_TYPE = "health";
static var ARMAGEDDON_TYPE = "armageddon";
static var PU_EVENT = "puEvent";
}
Symbol 422 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 423 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 424 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 425 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 113 MovieClip Frame 5
stop();
Symbol 113 MovieClip Frame 10
stop();
Symbol 113 MovieClip Frame 15
stop();
Symbol 113 MovieClip Frame 20
stop();
Symbol 120 MovieClip Frame 5
stop();
Symbol 120 MovieClip Frame 11
stop();
Symbol 120 MovieClip Frame 16
stop();
Symbol 120 MovieClip Frame 22
stop();
Symbol 125 MovieClip Frame 104
stop();
Symbol 127 MovieClip Frame 1
this.onPress = function () {
this._parent.gotoAndPlay("play");
};
Symbol 138 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 37
stop();
Symbol 184 MovieClip Frame 6
stop();
Symbol 185 MovieClip Frame 6
stop();
Symbol 186 MovieClip Frame 5
stop();
Symbol 186 MovieClip Frame 10
stop();
Symbol 186 MovieClip Frame 15
stop();
Symbol 189 MovieClip Frame 6
stop();
Symbol 190 MovieClip Frame 6
stop();
Symbol 191 MovieClip Frame 5
stop();
Symbol 191 MovieClip Frame 10
stop();
Symbol 191 MovieClip Frame 15
stop();
Symbol 228 MovieClip Frame 20
stop();
Symbol 229 MovieClip Frame 20
stop();
Symbol 231 MovieClip Frame 20
stop();
Symbol 232 MovieClip Frame 20
stop();
Symbol 233 MovieClip Frame 20
stop();
Symbol 234 MovieClip Frame 20
stop();
Symbol 235 MovieClip Frame 20
stop();
Symbol 236 MovieClip Frame 95
stop();
Symbol 237 MovieClip Frame 95
stop();
Symbol 244 MovieClip Frame 77
stop();
Symbol 245 MovieClip Frame 69
stop();
Symbol 246 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 100
stop();
Symbol 266 MovieClip Frame 100
stop();
Symbol 267 MovieClip Frame 100
stop();
Symbol 269 MovieClip Frame 101
stop();
Symbol 270 MovieClip Frame 101
stop();
Symbol 273 MovieClip Frame 101
stop();
Symbol 296 MovieClip Frame 98
stop();
Symbol 296 MovieClip Frame 106
stop();
Symbol 296 MovieClip Frame 144
var sound = new Sound(this);
sound.attachSound("zap1_snd");
sound.start(0, 1);
Symbol 296 MovieClip Frame 165
stop();
Symbol 296 MovieClip Frame 173
stop();
Symbol 296 MovieClip Frame 182
stop();
Symbol 296 MovieClip Frame 224
stop();
Symbol 296 MovieClip Frame 231
stop();
Symbol 296 MovieClip Frame 266
var sound = new Sound(this);
sound.attachSound("tazAttack_snd");
sound.start(0, 1);
Symbol 296 MovieClip Frame 288
var sound = new Sound(this);
sound.attachSound("bootHit_snd");
sound.start(0, 1);
Symbol 296 MovieClip Frame 357
stop();
Symbol 296 MovieClip Frame 412
stop();
Symbol 296 MovieClip Frame 426
stop();
Symbol 296 MovieClip Frame 433
stop();
Symbol 296 MovieClip Frame 437
stop();
Symbol 305 MovieClip Frame 309
stop();
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 52
stop();
Symbol 314 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 23
stop();
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 51
stop();
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 28
stop();
Symbol 326 MovieClip Frame 20
stop();
Symbol 327 MovieClip Frame 20
stop();
Symbol 328 MovieClip Frame 63
stop();
Symbol 329 MovieClip Frame 96
stop();
Symbol 330 MovieClip Frame 1
stop();
Symbol 342 Button
on (release) {
gotoAndPlay ("start");
}
Symbol 345 MovieClip Frame 98
stop();
Symbol 359 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 102
stop();
Symbol 367 MovieClip Frame 63
stop();
Symbol 384 MovieClip Frame 8
stop();
Symbol 385 MovieClip Frame 7
stop();
Symbol 398 MovieClip Frame 5
stop();
Symbol 398 MovieClip Frame 10
stop();
Symbol 398 MovieClip Frame 15
stop();
Symbol 398 MovieClip Frame 20
stop();