Frame 1
Stage.showMenu = false;
_focusrect = false;
Frame 3
mochi.as2.MochiAd.showPreGameAd({id:"31ec890837928020", res:"500x375"});
stop();
Frame 4
mochi.as2.MochiServices.addLinkEvent("http://x.mochiads.com/link/2ddea54b660d61c8", "http://www.kidswb.com/games/", kwb_mc);
kwb_mc.onRollOver = function () {
this.gotoAndPlay(2);
};
kwb_mc.onRollOut = function () {
this.gotoAndPlay(7);
};
kwb_mc.onPress = function () {
kwb_mc._xscale = 95;
kwb_mc._yscale = 95;
};
kwb_mc.onRelease = function () {
kwb_mc._xscale = 100;
kwb_mc._yscale = 100;
this.clk.onRelease();
};
function _getHighScore(Void) {
return(score);
}
function ShowHighScore(Void) {
if (NGameID != undefined) {
loadMovie ((("WBHighScores.swf?GameID=" + NGameID) + "&GameScore=") + _getHighScore(), this.createEmptyMovieClip("mcHSBoard", this.getNextHighestDepth()));
}
}
stop();
Symbol 12 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 918 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("3.0 as2");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
if (_local7._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 919 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.0");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local3 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servicesURL != undefined) {
_servicesURL = urlOptions().servicesURL;
}
allowDomains(_servicesURL);
_clip = clip.createEmptyMovieClip(_local3, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip((((_servicesURL + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
if (_root.mochiad_options) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static var _servicesURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
}
Symbol 920 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 921 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 922 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 923 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 14 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 2
gotoAndStop (1);
Symbol 34 MovieClip Frame 13
stop();
Symbol 36 Button
on (release) {
fHelpNavigation("Play");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "TitleCard");
}
Symbol 41 MovieClip Frame 13
stop();
Symbol 42 Button
on (release) {
fHelpNavigation("Help");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "TitleCard");
}
Symbol 43 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 45 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 54 MovieClip Frame 1
_global.objSounds.fPlaySounds(this, "sFx_turbineTransition", 0, 1, 100, "fx", "transition");
Symbol 54 MovieClip Frame 7
_parent.fChangeLabel();
Symbol 54 MovieClip Frame 14
_parent.gotoAndStop("idle");
Symbol 55 MovieClip Frame 1
_global.objSounds.fPlaySounds(this, "sFx_turbineTransition", 0, 1, 100, "fx", "transition");
Symbol 55 MovieClip Frame 8
_global.contMain.fPause("anim");
_global.mcTaz.gotoAndStop("intro");
_global.contGame.fInitializeCharacter();
Symbol 55 MovieClip Frame 16
stop();
_parent.gotoAndStop(1);
Symbol 56 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);
}
}
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 56 MovieClip Frame 2
stop();
if (_global.contTrans.stopSound == true) {
_global.contTrans.stopSound = false;
_global.objSounds.fStopSounds(this, "sMu_tts", "all", "music");
}
Symbol 56 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 56 MovieClip Frame 4
stop();
if (_global.contTrans.stopSound == true) {
_global.contTrans.stopSound = false;
_global.objSounds.fStopSounds(this, "sMu_tts", "all", "music");
}
Symbol 62 MovieClip Frame 13
stop();
Symbol 63 Button
on (release) {
fHelpNavigation("Next");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 80, "fx", "TitleCard");
}
Symbol 64 Button
on (release) {
fHelpNavigation("Play");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 80, "fx", "TitleCard");
}
Symbol 69 MovieClip Frame 13
stop();
Symbol 70 Button
on (release) {
fHelpNavigation("Back");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 80, "fx", "TitleCard");
}
Symbol 87 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 94 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 2
stop();
Instance of Symbol 98 MovieClip in Symbol 99 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 101 MovieClip [mcCheckPoint] Frame 1
#initclip 13
Object.registerClass("mcCheckPoint", objItem);
#endinitclip
Symbol 101 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 101 MovieClip [mcCheckPoint] Frame 3
stop();
this.fInitializeProperties("checkPoint");
Instance of Symbol 98 MovieClip in Symbol 101 MovieClip [mcCheckPoint] Frame 3
onClipEvent (enterFrame) {
_parent.fCheckStatus();
}
Symbol 101 MovieClip [mcCheckPoint] Frame 4
stop();
Symbol 103 MovieClip [mcReachZone] Frame 1
#initclip 7
Object.registerClass("mcReachZone", objItem);
#endinitclip
Symbol 103 MovieClip [mcReachZone] Frame 2
stop();
Symbol 103 MovieClip [mcReachZone] Frame 3
stop();
this.fInitializeProperties("touchDown");
Instance of Symbol 98 MovieClip in Symbol 103 MovieClip [mcReachZone] Frame 3
onClipEvent (enterFrame) {
if (_global.contPause.opened == false) {
_parent._xscale = _parent._xscale + 2;
_parent._x = _parent._x - 2;
_parent.fCheckStatus();
}
}
Symbol 103 MovieClip [mcReachZone] Frame 4
stop();
Symbol 216 MovieClip Frame 1
_global.objSounds.fPlaySounds(this, "sFx_kickBallon", 0, 1, 100, "fx", "intro");
Symbol 216 MovieClip Frame 35
_global.objSounds.fPlaySounds(this, "sFx_eatBallon", 0, 1, 100, "fx", "intro");
Symbol 216 MovieClip Frame 57
_global.objSounds.fPlaySounds(this, "sFx_spitBallon", 0, 1, 100, "fx", "intro");
Symbol 216 MovieClip Frame 97
_global.contMain.fUnPause();
_parent.gotoAndStop("idle");
Symbol 222 MovieClip Frame 3
_parent.gotoAndStop("run");
Symbol 279 MovieClip Frame 5
_parent.gotoAndStop("idle");
Symbol 310 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 310 MovieClip Frame 11
_global.objSounds.fPlaySounds(this, "sFx_jumpLand", 0, 1, 100, "fx", "tazJump");
Symbol 310 MovieClip Frame 14
_parent._bJumping = false;
_parent._nSpeed = 0;
Symbol 310 MovieClip Frame 22
_parent.gotoAndStop("idle");
Symbol 335 MovieClip Frame 15
_global.mcTaz._nSpeedMaxBonus = _global.mcTaz._nSpeedMaxBonus + 5;
_global.mcTaz._nSpeedMax = _global.mcTaz._nSpeedMax + _global.mcTaz._nSpeedMaxBonus;
_parent.gotoAndStop("spinRight");
Symbol 382 MovieClip Frame 5
_global.mcTaz._bFalling = true;
Symbol 382 MovieClip Frame 6
_global.objSounds.fPlaySounds(this, "sFx_jumpLand", 0, 1, 100, "fx", "tazFall");
Symbol 382 MovieClip Frame 10
_global.mcTaz._bFalling = false;
Symbol 382 MovieClip Frame 11
_global.objSounds.fPlaySounds(this, "sFx_tazBad01", 0, 1, 100, "fx", "tazFall");
Symbol 382 MovieClip Frame 56
_global.mcTaz._bTargeted = false;
_global.mcGround._bStop = false;
_parent.gotoAndStop("idle");
Symbol 399 MovieClip Frame 2
_global.mcTaz._bFalling = true;
Symbol 399 MovieClip Frame 4
_global.objSounds.fPlaySounds(this, "sFx_jumpLand", 0, 1, 100, "fx", "tazFall");
Symbol 399 MovieClip Frame 7
_global.mcTaz._bFalling = false;
Symbol 399 MovieClip Frame 9
_global.objSounds.fPlaySounds(this, "sFx_tazBad01", 0, 1, 100, "fx", "tazFall");
Symbol 399 MovieClip Frame 37
_global.mcTaz._bTargeted = false;
_global.mcGround._bStop = false;
_parent.gotoAndStop("idle");
Symbol 423 MovieClip Frame 5
stop();
_global.mcTaz._bSpinSwitch = false;
_parent.gotoAndStop("spinLeft");
Symbol 423 MovieClip Frame 10
stop();
_global.mcTaz._bSpinSwitch = false;
_parent.gotoAndStop("spinRight");
Symbol 439 MovieClip Frame 5
stop();
_parent.fSetCharacterAnim("spinEndNext");
Symbol 492 MovieClip Frame 9
_global.objSounds.fPlaySounds(this, "sFx_throw01", 0, 1, 100, "fx", "tazThrow");
Symbol 492 MovieClip Frame 13
_global.objSounds.fPlaySounds(this, "sFx_ballonBond", 0, 1, 100, "fx", "goonSpinHit");
Symbol 492 MovieClip Frame 32
_global.objSounds.fPlaySounds(this, "sFx_throw00", 0, 1, 100, "fx", "goonSpinHit");
Symbol 492 MovieClip Frame 47
_global.objSounds.fPlaySounds(this, "sFx_throw01", 0, 1, 100, "fx", "tazThrow");
Symbol 492 MovieClip Frame 76
_global.objSounds.fPlaySounds(this, "sFx_throw01", 0, 1, 100, "fx", "tazThrow");
Symbol 492 MovieClip Frame 110
_global.contGame.fStartBonusRound("bonus");
Symbol 518 MovieClip Frame 9
_global.objSounds.fPlaySounds(this, "sFx_turbine2", 0, 1, 50, "fx", "tazThrow");
Symbol 518 MovieClip Frame 10
_global.objSounds.fPlaySounds(this, "sFx_throw01", 0, 1, 100, "fx", "tazThrow");
Symbol 518 MovieClip Frame 28
_global.objSounds.fPlaySounds(this, "sFx_pouf", 0, 1, 100, "fx", "tazThrow");
Symbol 518 MovieClip Frame 65
_global.objSounds.fStopSounds(this, "sFx_turbine2", "one", "fx", "tazThrow");
_global.contGame.fStartBonusRound("bonus");
Symbol 530 MovieClip Frame 3
_global.objSounds.fPlaySounds(this, "sFx_throw01", 0, 1, 100, "fx", "tazThrow");
Symbol 530 MovieClip Frame 15
_global.objSounds.fPlaySounds(this, "sFx_ballonBond", 0, 1, 100, "fx", "goonSpinHit");
Symbol 530 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 530 MovieClip Frame 30
_global.objSounds.fPlaySounds(this, "sFx_throw00", 0, 1, 100, "fx", "tazThrow");
Symbol 530 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 530 MovieClip Frame 52
_global.objSounds.fPlaySounds(this, "sFx_throw00", 0, 1, 100, "fx", "tazThrow");
Symbol 530 MovieClip Frame 58
_global.objSounds.fPlaySounds(this, "sFx_throw00", 0, 1, 100, "fx", "tazThrow");
Symbol 530 MovieClip Frame 62
_global.objSounds.fPlaySounds(this, "sFx_throw00", 0, 1, 100, "fx", "tazThrow");
Symbol 530 MovieClip Frame 86
_global.contGame.fStartBonusRound("bonus");
Symbol 548 MovieClip Frame 9
_global.objSounds.fPlaySounds(this, "sFx_throw01", 0, 1, 100, "fx", "tazThrow");
Symbol 548 MovieClip Frame 14
_global.objSounds.fPlaySounds(this, "sFx_ballonBond", 0, 1, 100, "fx", "goonSpinHit");
Symbol 548 MovieClip Frame 22
_global.objSounds.fPlaySounds(this, "sFx_turbine2", 0, 1, 50, "fx", "tazThrow");
Symbol 548 MovieClip Frame 30
_global.objSounds.fStopSounds(this, "sFx_turbine2", "one", "fx", "tazThrow");
Symbol 548 MovieClip Frame 62
_global.objSounds.fPlaySounds(this, "sFx_flute", 0, 1, 100, "fx", "tazThrow");
Symbol 548 MovieClip Frame 121
_global.contGame.fStartBonusRound("bonus");
Symbol 549 MovieClip [mcTaz] Frame 1
#initclip 8
Object.registerClass("mcTaz", objCharacter);
#endinitclip
stop();
Symbol 549 MovieClip [mcTaz] Frame 2
stop();
this._sAnim = "intro";
Symbol 549 MovieClip [mcTaz] Frame 3
stop();
this._sAnim = "idle";
Symbol 549 MovieClip [mcTaz] Frame 4
stop();
this._sAnim = "startRun";
Symbol 549 MovieClip [mcTaz] Frame 5
stop();
this._sAnim = "run";
Symbol 549 MovieClip [mcTaz] Frame 6
stop();
this._sAnim = "backPedal";
Symbol 549 MovieClip [mcTaz] Frame 7
stop();
this._sAnim = "stop";
Symbol 549 MovieClip [mcTaz] Frame 8
stop();
this._sAnim = "jump";
Symbol 549 MovieClip [mcTaz] Frame 9
stop();
this._sAnim = "eat";
Symbol 549 MovieClip [mcTaz] Frame 10
stop();
this._sAnim = "fallRun";
Symbol 549 MovieClip [mcTaz] Frame 11
stop();
this._sAnim = "fallBackPedal";
Symbol 549 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 549 MovieClip [mcTaz] Frame 13
stop();
this._sAnim = "spinSwitch";
Symbol 549 MovieClip [mcTaz] Frame 14
stop();
this._sAnim = "spinLeft";
Symbol 549 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 549 MovieClip [mcTaz] Frame 16
stop();
this._sAnim = "touchDown";
var _nRandom = Math.round(Math.random());
if (_nRandom == 1) {
this.nextFrame();
}
Symbol 549 MovieClip [mcTaz] Frame 17
stop();
var _nRandom = Math.round(Math.random());
if (_nRandom == 1) {
this.nextFrame();
}
Symbol 549 MovieClip [mcTaz] Frame 18
stop();
var _nRandom = Math.round(Math.random());
if (_nRandom == 1) {
this.nextFrame();
}
Symbol 549 MovieClip [mcTaz] Frame 19
stop();
Symbol 570 MovieClip Frame 1
stop();
this._visible = false;
Symbol 570 MovieClip Frame 2
this._visible = true;
Symbol 570 MovieClip Frame 4
_global.objSounds.fPlaySounds(this, "sFx_battle", 0, 1, 100, "fx", "battle");
Symbol 570 MovieClip Frame 45
_global.contTrans.stopSound = false;
_global.contTrans.str_previousScreen = _parent._currentframe;
_global.contTrans.str_nextScreen = "levelScreen";
_global.contTrans.gotoAndStop("battleTransition");
Symbol 570 MovieClip Frame 53
this.gotoAndStop(1);
this._y = this._y - 10000;
Symbol 573 MovieClip [mcGround] Frame 1
#initclip 9
Object.registerClass("mcGround", objGameplay);
#endinitclip
Instance of Symbol 570 MovieClip "mcBattle" in Symbol 573 MovieClip [mcGround] Frame 1
onClipEvent (load) {
this.swapDepths(999999);
}
Symbol 574 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 573 MovieClip [mcGround] "mcGround" in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
this._x = 0;
this._y = 0;
}
Symbol 579 Button
on (release) {
_global.contMain.fPause();
}
on (rollOver) {
_global.objSounds.fPlaySounds(_global.contMain, "sFx_btnOver", 0, 1, 60, "fx", "TitleCard");
}
Instance of Symbol 301 MovieClip in Symbol 584 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_global.contGame.fGetBonusTime(this);
}
onClipEvent (enterFrame) {
_global.contGame.fGetBonusTime(this);
}
Symbol 586 MovieClip Frame 1
_global.objSounds.fPlaySounds(this, "sFx_sifflet", 0, 1, 100, "fx", "timer");
Symbol 586 MovieClip Frame 34
stop();
_global.contMain.fPause("anim");
_global.contGame.fNextLevel();
Symbol 587 MovieClip Frame 1
stop();
_global.mcTimer = this;
Symbol 587 MovieClip Frame 2
stop();
Symbol 587 MovieClip Frame 3
stop();
Symbol 590 MovieClip Frame 11
stop();
Symbol 591 MovieClip Frame 1
stop();
Symbol 591 MovieClip Frame 35
stop();
Symbol 598 MovieClip Frame 1
stop();
Symbol 598 MovieClip Frame 3
_global.objSounds.fPlaySounds(this, "sFx_bip", 0, 1, 100, "fx", "taSpin");
Symbol 598 MovieClip Frame 6
_global.objSounds.fPlaySounds(this, "sFx_bip", 0, 1, 100, "fx", "taSpin");
Symbol 598 MovieClip Frame 10
_global.objSounds.fPlaySounds(this, "sFx_bip", 0, 1, 100, "fx", "taSpin");
Symbol 598 MovieClip Frame 14
_global.objSounds.fPlaySounds(this, "sFx_bip", 0, 1, 100, "fx", "taSpin");
Symbol 598 MovieClip Frame 20
_global.objSounds.fPlaySounds(this, "sFx_bip", 0, 1, 100, "fx", "taSpin");
Symbol 598 MovieClip Frame 31
_global.objSounds.fPlaySounds(this, "sFx_bip", 0, 1, 100, "fx", "taSpin");
Symbol 598 MovieClip Frame 45
_global.objSounds.fPlaySounds(this, "sFx_bip", 0, 1, 100, "fx", "taSpin");
Symbol 601 MovieClip Frame 1
stop();
this._sAction = "hide";
Symbol 601 MovieClip Frame 2
this._sAction = "opening";
Symbol 601 MovieClip Frame 3
this.mcSpinMeterBar.gotoAndStop(100);
Symbol 601 MovieClip Frame 7
this._sAction = "open";
stop();
Symbol 601 MovieClip Frame 8
this._sAction = "closing";
Symbol 601 MovieClip Frame 12
stop();
gotoAndStop (1);
Symbol 606 MovieClip Frame 1
_global.objSounds.fPlaySounds(this, "sFx_loseLive", 0, 1, 100, "fx", "HUD");
Symbol 606 MovieClip Frame 20
stop();
_global.contGame.fManageLive(0);
_parent.swapDepths(1000002);
_parent.removeMovieClip();
Symbol 607 MovieClip Frame 1
stop();
Symbol 607 MovieClip Frame 2
stop();
Symbol 608 MovieClip Frame 1
stop();
Symbol 619 MovieClip Frame 19
_global.objSounds.fPlaySounds(this, "sFx_popup", 0, 1, 100, "fx", "round");
Symbol 619 MovieClip Frame 20
mcRound._sRound = _global.contMain.fStyleNumber(_global.contMain._aGameplay[2], 2);
Symbol 619 MovieClip Frame 65
_global.objSounds.fPlaySounds(this, "sFx_ioum", 0, 1, 80, "fx", "round");
Symbol 619 MovieClip Frame 73
_global.mcTaz.gotoAndStop("intro");
_global.contPause.gotoAndStop("idle");
Symbol 625 MovieClip Frame 1
_global.objSounds.fPlaySounds(this, "sFx_popup", 0, 1, 80, "fx", "round");
Symbol 625 MovieClip Frame 2
_global.objSounds.fPlaySounds(this, "sFx_happy", 0, 1, 100, "fx", "tazThrow");
Symbol 625 MovieClip Frame 65
_global.objSounds.fPlaySounds(this, "sFx_ioum", 0, 1, 80, "fx", "round");
Symbol 625 MovieClip Frame 78
_global.contGame.fStartBonusRound("bonusStart");
_parent.gotoAndStop("idle");
Symbol 626 MovieClip Frame 1
stop();
Symbol 626 MovieClip Frame 2
stop();
Symbol 626 MovieClip Frame 3
stop();
Symbol 626 MovieClip Frame 4
stop();
Symbol 628 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 _local3 = _sFormation.charAt(2);
switch (_local3) {
case "L" :
var _local4 = "Line";
break;
case "U" :
_local4 = "Up";
break;
case "Z" :
_local4 = "Down";
break;
default :
_local4 = int(_local6.indexOf(_local3));
}
var _local5 = int(_sFormation.substr(3, _sFormation.length - 3));
if (_sFormation.indexOf("OB") != -1) {
this.fPlaceObstacle(_local4, _local5);
} else {
this.fPlaceItem(_local4, _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 645 Button
on (release) {
_global.contTrans.fEndNavigation("PlayAgain");
}
on (rollOver) {
_global.objSounds.fPlaySounds(this, "sFx_btnOver", 0, 1, 100, "fx", "endCard");
}
Symbol 659 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 662 MovieClip [mcHotDog] Frame 1
#initclip 10
Object.registerClass("mcHotDog", objItem);
#endinitclip
stop();
Symbol 662 MovieClip [mcHotDog] Frame 2
this.fInitializeProperties("hotDog", this._randomStep);
play();
Instance of Symbol 141 MovieClip in Symbol 662 MovieClip [mcHotDog] Frame 2
onClipEvent (enterFrame) {
_parent.fCheckHitTest();
}
Symbol 662 MovieClip [mcHotDog] Frame 13
gotoAndPlay ("loop");
Symbol 790 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 790 MovieClip Frame 9
_global.objSounds.fPlaySounds(this, "sFx_goonLand", 0, 1, 100, "fx", "goon");
Symbol 790 MovieClip Frame 35
stop();
_global.contGame.fManageLive(0, "loseLive");
Symbol 796 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 796 MovieClip Frame 9
_global.objSounds.fPlaySounds(this, "sFx_goonLand", 0, 1, 100, "fx", "goon");
Symbol 796 MovieClip Frame 35
stop();
_global.contGame.fManageLive(0, "loseLive");
Symbol 824 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 824 MovieClip Frame 5
_global.objSounds.fPlaySounds(this, "sFx_ioum", 0, 1, 100, "fx", "goonSpinHit");
Symbol 824 MovieClip Frame 14
stop();
_parent._bToRemove = true;
Symbol 838 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 838 MovieClip Frame 5
_global.objSounds.fPlaySounds(this, "sFx_ioum", 0, 1, 100, "fx", "goonSpinHit");
Symbol 838 MovieClip Frame 14
stop();
_parent._bToRemove = true;
Symbol 870 MovieClip Frame 13
stop();
_global.mcTaz._x = _parent._x + 30;
_global.mcTaz._bHitting = false;
_global.mcTaz._visible = true;
Symbol 880 MovieClip Frame 1
_global.objSounds.fPlaySounds(this, "sFx_goonHit", 0, 1, 100, "fx", "goon");
Symbol 880 MovieClip Frame 13
stop();
_global.mcTaz._x = _parent._x + 30;
_global.mcTaz._bHitting = false;
_global.mcTaz._visible = true;
Symbol 881 MovieClip [mcGoon] Frame 1
#initclip 11
Object.registerClass("mcGoon", objObstacle);
#endinitclip
stop();
Symbol 881 MovieClip [mcGoon] Frame 2
stop();
Symbol 881 MovieClip [mcGoon] Frame 3
stop();
Symbol 881 MovieClip [mcGoon] Frame 4
stop();
Symbol 881 MovieClip [mcGoon] Frame 5
stop();
Symbol 881 MovieClip [mcGoon] Frame 6
stop();
Symbol 881 MovieClip [mcGoon] Frame 7
stop();
Symbol 881 MovieClip [mcGoon] Frame 8
stop();
Symbol 881 MovieClip [mcGoon] Frame 9
stop();
Symbol 881 MovieClip [mcGoon] Frame 10
stop();
Symbol 892 MovieClip Frame 5
stop();
Symbol 893 MovieClip Frame 1
stop();
Symbol 898 MovieClip Frame 1
stop();
Symbol 903 MovieClip Frame 1
stop();
Symbol 909 MovieClip [mcObstacle] Frame 1
#initclip 12
Object.registerClass("mcObstacle", objObstacle);
#endinitclip
stop();
Instance of Symbol 301 MovieClip "mcHitZone" in Symbol 909 MovieClip [mcObstacle] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 909 MovieClip [mcObstacle] Frame 4
_global.objSounds.fPlaySounds(this, "sFx_pouf", 0, 1, 100, "fx", "obstacle");
Symbol 909 MovieClip [mcObstacle] Frame 9
stop();
this._bToRemove = true;
Symbol 910 MovieClip Frame 1
stop();
_quality = "HIGH";
Instance of Symbol 14 MovieClip "mcContSound" in Symbol 910 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 _local8 = _global.objSounds.fSetSoundsDepth(_mcRef);
_mcRef.createEmptyMovieClip(_sSoundInstance, _local8);
_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 _local3 = 0;
while (_local3 < _global.objSounds._aFxSounds.length) {
var _local4 = _global.objSounds._aFxSounds[_local3][1] + _global.objSounds._aFxSounds[_local3][6];
_global.objSounds._aFxSounds[_local3][4] = true;
_global.objSounds._aFxSounds[_local3][5] = _global.objSounds.fGetSoundsProperties(_global.objSounds._aFxSounds[_local3][0], _local4, "position");
_mcRef = _global.objSounds._aFxSounds[_local3][0];
_mcRef[_local4].objSound.stop(_sSound);
_local3++;
}
} else {
var _local3 = 0;
while (_local3 < _global.objSounds._aMusicSounds.length) {
var _local4 = _global.objSounds._aMusicSounds[_local3][1] + _global.objSounds._aMusicSounds[_local3][6];
_global.objSounds._aMusicSounds[_local3][4] = true;
_global.objSounds._aMusicSounds[_local3][5] = _global.objSounds.fGetSoundsProperties(_global.objSounds._aMusicSounds[_local3][0], _local4, "position");
_mcRef = _global.objSounds._aMusicSounds[_local3][0];
_mcRef[_local4].objSound.stop(_sSound);
_local3++;
}
}
} else if (_sType == "fx") {
var _local2 = 0;
while (_local2 < _global.objSounds._aFxSounds.length) {
_global.objSounds.fPlaySounds(_global.objSounds._aFxSounds[_local2][0], _global.objSounds._aFxSounds[_local2][1], _global.objSounds._aFxSounds[_local2][5], _global.objSounds._aFxSounds[_local2][2], _global.objSounds._aFxSounds[_local2][3], "fx", _global.objSounds._aFxSounds[_local2][6]);
_global.objSounds._aFxSounds[_local2][4] = false;
_global.objSounds._aFxSounds[_local2][5] = 0;
_local2++;
}
} else {
var _local3 = 0;
while (_local3 < _global.objSounds._aMusicSounds.length) {
_global.objSounds.fPlaySounds(_global.objSounds._aMusicSounds[_local3][0], _global.objSounds._aMusicSounds[_local3][1], _global.objSounds._aMusicSounds[_local3][5], _global.objSounds._aMusicSounds[_local3][2], _global.objSounds._aMusicSounds[_local3][3], "music", _global.objSounds._aMusicSounds[_local3][6]);
_global.objSounds._aMusicSounds[_local3][4] = false;
_global.objSounds._aMusicSounds[_local3][5] = 0;
_local3++;
}
}
};
_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 _local5 = Math.floor((_nVolume * _global.objSounds._nFxVolume) / 100);
break;
case "music" :
_global.objSounds._aMusicSounds[_mcRef[_local6].objSound._nArrayIndex][3] = _nVolume;
_local5 = Math.floor((_nVolume * _global.objSounds._nMusicVolume) / 100);
}
_mcRef[_local6].objSound.setVolume(_local5);
} else {
switch (_sType) {
case "fx" :
var _local2 = 0;
while (_local2 < _global.objSounds._aFxSounds.length) {
var _local5 = Math.floor((_global.objSounds._aFxSounds[_local2][3] * _global.objSounds._nFxVolume) / 100);
var _local3 = _global.objSounds._aFxSounds[_local2][0];
var _local4 = _global.objSounds._aFxSounds[_local2][1] + _global.objSounds._aFxSounds[_local2][6];
_local3[_local4].objSound.setVolume(_local5);
_local2++;
}
break;
case "music" :
_local2 = 0;
for(;;){
if (_local2 >= _global.objSounds._aMusicSounds.length) {
break;
}
var _local5 = Math.floor((_global.objSounds._aMusicSounds[_local2][3] * _global.objSounds._nFxVolume) / 100);
var _local3 = _global.objSounds._aMusicSounds[_local2][0];
var _local4 = _global.objSounds._aMusicSounds[_local2][1] + _global.objSounds._aMusicSounds[_local2][6];
_local3[_local4].objSound.setVolume(_local5);
_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 45 MovieClip "mcContMain" in Symbol 910 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 56 MovieClip "mcTransition" in Symbol 910 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 910 MovieClip Frame 2
stop();
_quality = "HIGH";
Symbol 910 MovieClip Frame 3
_quality = "MEDIUM";
play();
Instance of Symbol 574 MovieClip "mcLevelScreen" in Symbol 910 MovieClip Frame 3
onClipEvent (load) {
this._x = 0;
this._y = 0;
}
Instance of Symbol 613 MovieClip "mcHUD" in Symbol 910 MovieClip Frame 3
onClipEvent (load) {
this.btn_help.enabled = false;
}
Instance of Symbol 626 MovieClip "mcContPause" in Symbol 910 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 628 MovieClip "mcContGame" in Symbol 910 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 910 MovieClip Frame 6
stop();
this.prevFrame();
Symbol 910 MovieClip Frame 7
stop();
_parent.score = _parent.gameScreen.mcHUD._sScore;
_parent.ShowHighScore();
_quality = "HIGH";
Symbol 910 MovieClip Frame 8
stop();
gotoAndStop ("titleScreen");
Symbol 917 MovieClip Frame 1
stop();
Symbol 917 MovieClip Frame 6
stop();
Symbol 917 MovieClip Frame 10
gotoAndStop (1);