Frame 1
stop();
System.security.allowDomain("*");
onEnterFrame = function () {
var _local2 = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
preloader_mc.gotoAndStop(_local2);
if (_local2 == 100) {
delete onEnterFrame;
play();
}
};
Frame 10
gotoAndPlay ("game");
Instance of Symbol 72 MovieClip [NPBTracker] "npbTracker" in Frame 10
//component parameters
onClipEvent (construct) {
autohide = true;
clientID = 12;
instance = "Big Daddy Box Meal Game";
passkey = "BBHPa55K3y";
productID = 45;
}
Instance of Symbol 362 MovieClip [npb_contextmenu] in Frame 10
//component parameters
onClipEvent (construct) {
autoHide = true;
labels = [];
labels[0] = "\u00A92007 Kentucky Fried Chicken";
labels[1] = "BBH";
labels[2] = "NakedPenguinBoy";
links = [];
links[0] = "http://www.kfc.co.uk";
links[1] = "http://www.bbh.co.uk";
links[2] = "http://www.nakedpenguinboy.com";
seperators = [];
seperators[0] = 1;
seperators[1] = 2;
seperators[2] = 3;
showBuiltIns = false;
}
Instance of Symbol 72 MovieClip [NPBTracker] "npbTracker" in Frame 23
//component parameters
onClipEvent (construct) {
autohide = true;
clientID = 12;
instance = "Big Daddy Box Meal Game";
passkey = "BBHPa55K3y";
productID = 45;
}
Frame 36
stop();
var ll_sound = new Sound();
ll_sound.attachSound("loop1");
ll_sound.start(0, 99);
Symbol 3 MovieClip Frame 11
stop();
Symbol 6 MovieClip Frame 11
stop();
Symbol 10 MovieClip Frame 11
stop();
Symbol 19 MovieClip Frame 12
stop();
Symbol 23 MovieClip Frame 10
stop();
Symbol 27 MovieClip Frame 11
stop();
Symbol 31 MovieClip Frame 11
stop();
Symbol 35 MovieClip Frame 9
stop();
Symbol 47 MovieClip Frame 13
stop();
Symbol 72 MovieClip [NPBTracker] Frame 1
#initclip 17
Object.registerClass("NPBTracker", npb.NPBTracker);
#endinitclip
Symbol 108 MovieClip [Bullet] Frame 1
#initclip 23
Object.registerClass("Bullet", actionscript.Bullet);
#endinitclip
stop();
Symbol 108 MovieClip [Bullet] Frame 10
stop();
Symbol 108 MovieClip [Bullet] Frame 20
stop();
Symbol 108 MovieClip [Bullet] Frame 30
stop();
Symbol 108 MovieClip [Bullet] Frame 40
stop();
Symbol 116 MovieClip Frame 16
stop();
_parent._parent.removeMovieClip();
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 10
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 10
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 10
stop();
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 10
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 10
stop();
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 10
stop();
Symbol 142 MovieClip [Enemy] Frame 1
#initclip 19
Object.registerClass("Enemy", actionscript.Enemy);
#endinitclip
stop();
Symbol 142 MovieClip [Enemy] Frame 10
stop();
Symbol 142 MovieClip [Enemy] Frame 20
stop();
Symbol 142 MovieClip [Enemy] Frame 30
stop();
Symbol 142 MovieClip [Enemy] Frame 40
stop();
Symbol 142 MovieClip [Enemy] Frame 50
stop();
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 10
stop();
Symbol 158 MovieClip Frame 20
stop();
Symbol 168 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 10
stop();
Symbol 168 MovieClip Frame 20
stop();
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 10
stop();
Symbol 175 MovieClip Frame 20
stop();
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 10
stop();
Symbol 182 MovieClip Frame 20
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 10
stop();
Symbol 189 MovieClip Frame 20
stop();
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 10
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 10
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 10
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 10
stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 10
stop();
Symbol 238 MovieClip Frame 20
stop();
Symbol 248 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 10
stop();
Symbol 250 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 10
stop();
Symbol 251 MovieClip [Interface] Frame 1
#initclip 20
Object.registerClass("Interface", actionscript.Interface);
#endinitclip
Movieclip.prototype.openWinCentre = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL (((((((((((((((((((((((((((("javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open('" + url) + "','") + winName) + "','") + "width=") + w) + ",height=") + h) + ",toolbar=") + toolbar) + ",location=") + location) + ",directories=") + directories) + ",status=") + status) + ",menubar=") + menubar) + ",scrollbars=") + scrollbars) + ",resizable=") + resizable) + ",top='+((screen.height/2)-(") + (h / 2)) + "))+',left='+((screen.width/2)-(") + (w / 2)) + "))+'") + "')}else{myWin.focus();};void(0);");
};
Instance of Symbol 243 MovieClip in Symbol 251 MovieClip [Interface] Frame 1
on (release) {
getURL ("javascript:newWindow=window.open('http://bigdaddyboxmeal.com/bigdaddyboxmeal.html','popper1','width=500,height=375,top='+((screen.height/2)-180)+',left='+((screen.width/2)-250)+'');newWindow.focus(); void(0);");
var eval (undefined) = undefined;
}
Symbol 258 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndStop ("over");
};
this.onRollOut = function () {
gotoAndStop ("normal");
};
Symbol 258 MovieClip Frame 10
stop();
Symbol 258 MovieClip Frame 20
stop();
Symbol 267 MovieClip [Panel] Frame 1
stop();
Symbol 302 MovieClip [FinalWellDone] Frame 1
stop();
Symbol 302 MovieClip [FinalWellDone] Frame 15
stop();
Symbol 308 MovieClip [Trail] Frame 1
#initclip 21
Object.registerClass("Trail", actionscript.Trail);
#endinitclip
Symbol 326 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 2
stop();
Symbol 326 MovieClip Frame 3
stop();
Symbol 350 MovieClip [Weapon] Frame 1
#initclip 22
Object.registerClass("Weapon", actionscript.Weapon);
#endinitclip
stop();
Symbol 350 MovieClip [Weapon] Frame 9
stop();
Symbol 350 MovieClip [Weapon] Frame 20
stop();
Symbol 350 MovieClip [Weapon] Frame 30
stop();
Symbol 350 MovieClip [Weapon] Frame 40
stop();
Symbol 355 Button
on (release) {
getURL ("http://www.bigdaddyboxmeal.co.uk/termsconditions.htm", "_blank");
}
Symbol 356 Button
on (release) {
getURL ("http://www.bigdaddyboxmeal.co.uk/privacypolicy.htm", "_blank");
}
Symbol 357 MovieClip Frame 30
stop();
Symbol 362 MovieClip [npb_contextmenu] Frame 1
#initclip 18
Object.registerClass("npb_contextmenu", npb_contextmenu);
#endinitclip
Symbol 510 MovieClip [__Packages.actionscript.Enemy] Frame 0
class actionscript.Enemy extends MovieClip
{
var game, _parent, _x, _startX, _y, _startY, gotoAndPlay, _type, _totEnergy, _currentEnergy, _speed, _initialSpeed, _hit, _slowedDown, _bubblePopped, _killed, powerbar, enemy_hitArea, _rotArray, _curvesArray, _direction, enemy, bubble_mc, getNextHighestDepth, _info, _value;
function Enemy () {
super();
com.mosesSupposes.fuse.ZigoEngine.register(com.mosesSupposes.fuse.Fuse);
game = _parent;
_x = (_startX = 65);
_y = (_startY = 650);
(gotoAndPlay(_type));// not popped
_totEnergy = (_currentEnergy = game._enemyEnergy);
_speed = (_initialSpeed = game._enemySpeed);
_hit = false;
_slowedDown = false;
_bubblePopped = false;
_killed = false;
powerbar.gotoAndStop(100);
enemy_hitArea._alpha = 0;
_rotArray = new Array(null, 90, 90, -90, -90, 90, 90, 90, -90, -90, -90, -90, 90, 90);
_curvesArray = new Array("up", "right", "down", "right", "up", "left", "up", "right", "down", "right", "up", "left", "down", "left", "up");
_direction = "up";
}
function moveEnemy(nSpeed, nDirection) {
switch (nDirection) {
case "up" :
_y = _y - nSpeed;
if (enemy._rotation != 0) {
rotateEnemy(enemy._rotation, 0);
}
break;
case "right" :
_x = _x + nSpeed;
if (enemy._rotation != 90) {
rotateEnemy(enemy._rotation, 90);
}
break;
case "left" :
if (enemy._rotation != -90) {
rotateEnemy(enemy._rotation, -90);
}
_x = _x - nSpeed;
break;
case "down" :
if (enemy._rotation < 0) {
if (enemy._rotation != -180) {
rotateEnemy(enemy._rotation, -180);
}
} else if (enemy._rotation != 180) {
rotateEnemy(enemy._rotation, 180);
}
_y = _y + nSpeed;
break;
}
}
function rotateEnemy(nStart, nEnd) {
if (nStart < nEnd) {
enemy._rotation = enemy._rotation + 5;
if (enemy._rotation >= nEnd) {
enemy._rotation = nEnd;
}
} else {
enemy._rotation = enemy._rotation - 5;
if (enemy._rotation <= nEnd) {
enemy._rotation = nEnd;
}
}
}
function setDirection(sDirection) {
_direction = sDirection;
}
function wait(nSec, fFunc) {
var _local2 = new com.mosesSupposes.fuse.Fuse();
_local2.scope = this;
_local2.push({delay:nSec, func:fFunc});
_local2.start();
}
function slowDownEnemy(nLevel) {
if (!_slowedDown) {
_speed = _speed * game.sdMult["Pepsi" + nLevel];
wait(game.sdTime["Pepsi" + nLevel], "resumeSpeed");
_slowedDown = true;
}
}
function resumeSpeed() {
_speed = _initialSpeed;
_slowedDown = false;
}
function calcEnergy() {
var _local2 = Math.round((_currentEnergy * 100) / _totEnergy);
return(_local2);
}
function loseEnergy(nDamage) {
if (!_bubblePopped) {
bubble_mc.swapDepths(getNextHighestDepth());
bubble_mc.removeMovieClip();
_bubblePopped = true;
}
_currentEnergy = _currentEnergy - nDamage;
powerbar.gotoAndStop(calcEnergy());
if ((_currentEnergy <= 0) && (!_killed)) {
game.interface_mc.addSubtractMoney(game._enemyValue);
game.interface_mc.addScore(_totEnergy / 10);
if (_type == "roast") {
if (game._sfxOn) {
var _local2 = new Sound();
_local2.attachSound("death_sound6");
_local2.start();
}
} else if (game._sfxOn) {
var _local3 = random(5) + 1;
var _local2 = new Sound();
_local2.attachSound("death_sound" + _local3);
_local2.start();
}
killEnemy();
}
}
function killEnemy() {
_killed = true;
game._enemyKilled++;
if ((game._enemyKilled >= game._enemyNumber) && (!game._stopped)) {
game.wellDone();
}
powerbar._visible = false;
_speed = 0;
enemy.gotoAndStop("die");
}
function onEnterFrame() {
if (game._stopped) {
return(undefined);
}
var _local2 = 1;
while (_local2 <= (_curvesArray.length - 1)) {
if (enemy_hitArea.hitTest(game.trail_mc["c" + _local2])) {
setDirection(_curvesArray[_local2]);
_currentRot = _rotArray[_local2];
}
_local2++;
}
moveEnemy(_speed, _direction);
if ((_y < -20) && (!_killed)) {
if (game._lvl == 48) {
game.gameOver();
}
game.interface_mc.loseLife();
killEnemy();
}
}
function updateInfo() {
_info = (((((((_type + ":<br><br>Energy: ") + _currentEnergy) + " / ") + _totEnergy) + "<br>Value: ") + _value) + " coin(s)<br>") + getDesc(_type);
}
function getDesc(sType) {
var _local3 = game.textMessages;
var _local2 = game.enemyType;
switch (sType) {
case _local2[1] :
return(_local3._e1Desc);
case _local2[2] :
return(_local3._e2Desc);
case _local2[3] :
return(_local3._e3Desc);
case _local2[4] :
return(_local3._e4Desc);
case _local2[5] :
return(_local3._e5Desc);
case _local2[6] :
return(_local3._e6Desc);
}
}
function onRollOver() {
updateInfo();
game.interface_mc.setText(game.interface_mc.info_txt, _info);
}
function onRollOut() {
game.interface_mc.setText(game.interface_mc.info_txt, "");
}
var _currentRot = 0;
}
Symbol 511 MovieClip [__Packages.com.mosesSupposes.fuse.FuseKitCommon] Frame 0
class com.mosesSupposes.fuse.FuseKitCommon
{
static var logOutput;
function FuseKitCommon () {
}
static function _cts() {
return("|_tint|_tintPercent|_brightness|_brightOffset|_contrast|_invertColor|_colorReset|_colorTransform|");
}
static function _underscoreable() {
return(_cts() + "_frame|_x|_y|_xscale|_yscale|_scale|_width|_height|_size|_rotation|_alpha|_visible|");
}
static function _cbprops() {
return("|skipLevel|cycles|easyfunc|func|scope|args|startfunc|startscope|startargs|updfunc|updscope|updargs|extra1|extra2|");
}
static function _fuseprops() {
return("|command|label|delay|event|eventparams|target|addTarget|trigger|startAt|ease|easing|seconds|duration|time|");
}
static function output(s) {
if (typeof(logOutput) == "function") {
logOutput(s);
}
}
static function error(errorCode) {
var _local3 = arguments[1];
var _local5 = arguments[2];
var _local6 = arguments[3];
if (VERBOSE != true) {
output(("[FuseKitCommon#" + errorCode) + "]");
return(undefined);
}
var _local2 = "";
var _local4 = newline;
switch (errorCode) {
case "001" :
_local2 = _local2 + "** ERROR: When using simpleSetup to extend prototypes, you must pass the Shortcuts class. **";
_local2 = _local2 + (_local4 + " import com.mosesSupposes.fuse.*;");
_local2 = _local2 + ((_local4 + " ZigoEngine.simpleSetup(Shortcuts);") + _local4);
break;
case "002" :
_local2 = _local2 + "** ZigoEngine.doShortcut: shortcuts missing. Use the setup commands: import com.mosesSupposes.fuse.*; ZigoEngine.register(Shortcuts); **";
break;
case "003" :
_local2 = _local2 + ((_local4 + "*** Error: DO NOT use #include \"lmc_tween.as\" with this version of ZigoEngine! ***") + _local4);
break;
case "004" :
_local2 = _local2 + (("** ZigoEngine.doTween - too few arguments [" + _local3) + "]. If you are trying to use Object Syntax without Fuse, pass FuseItem in your register() or simpleSetup() call. **");
break;
case "005" :
_local2 = _local2 + (((("** ZigoEngine.doTween - missing targets[" + _local3) + "] and/or props[") + _local5) + "] **");
break;
case "006" :
_local2 = _local2 + (("** Error: easing shortcut string not recognized (\"" + _local3) + "\"). You may need to pass the in PennerEasing class during register or simpleSetup. **");
break;
case "007" :
_local2 = _local2 + (((("- ZigoEngine: Target locked [" + _local3) + "], ignoring tween call [") + _local5) + "]");
break;
case "008" :
_local2 = _local2 + "** ZigoEngine: You must register the Shortcuts class in order to use easy string-type callback parsing. **";
break;
case "009" :
_local2 = _local2 + (("-ZigoEngine: A callback parameter \"" + _local3) + "\" was not recognized.");
break;
case "010" :
_local2 = _local2 + ((("-Engine unable to parse " + ((_local3 == 1) ? "callback[" : (String(_local3) + " callbacks["))) + _local5) + "]. Try using the syntax {scope:this, func:\"myFunction\"}");
break;
case "011" :
_local2 = _local2 + (((("-ZigoEngine: Callbacks discarded via skipLevel 2 option [" + _local3) + "|") + _local5) + "].");
break;
case "012" :
_local2 = _local2 + (((((("-Engine set props or ignored no-change tween on: " + _local3) + ", props passed:[") + _local5) + "], endvals passed:[") + _local6) + "]");
break;
case "013" :
_local2 = _local2 + (((((("-Engine added tween on:\n\ttargets:[" + _local3) + "]\n\tprops:[") + _local5) + "]\n\tendvals:[") + _local6) + "]");
break;
case "014" :
_local2 = _local2 + "** Error: easing function passed is not usable with this engine. Functions need to follow the Robert Penner model. **";
break;
case "101" :
_local2 = _local2 + "** ERROR: Fuse simpleSetup was removed in version 2.0! **";
_local2 = _local2 + (_local4 + " You must now use the following commands:");
_local2 = _local2 + ((_local4 + _local4) + "\timport com.mosesSupposes.fuse.*;");
_local2 = _local2 + (_local4 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);");
_local2 = _local2 + ((_local4 + "Note that PennerEasing is optional, and FuseFMP is also accepted. (FuseFMP.simpleSetup is run automatically if included.)") + _local4);
break;
case "102" :
_local2 = _local2 + (("** Fuse skipTo label not found: \"" + _local3) + "\" **");
break;
case "103" :
_local2 = _local2 + (("** Fuse skipTo failed (" + _local3) + ") **");
break;
case "104" :
_local2 = _local2 + (((("** Fuse command skipTo (" + _local3) + ") ignored - targets the current index (") + _local5) + "). **");
break;
case "105" :
_local2 = _local2 + "** An unsupported Array method was called on Fuse. **";
break;
case "106" :
_local2 = _local2 + "** ERROR: You have not set up Fuse correctly. **";
_local2 = _local2 + (_local4 + "You must now use the following commands (PennerEasing is optional).");
_local2 = _local2 + (_local4 + "\timport com.mosesSupposes.fuse.*;");
_local2 = _local2 + ((_local4 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);") + _local4);
break;
case "107" :
_local2 = _local2 + "** Fuse :: id not found - Aborting open(). **";
break;
case "108" :
_local2 = _local2 + "** Fuse.startRecent: No recent Fuse found to start! **";
break;
case "109" :
_local2 = _local2 + (("** Commands other than \"delay\" are not allowed within groups. Command discarded (\"" + _local3) + "\")");
break;
case "110" :
_local2 = _local2 + (("** A Fuse.addCommand parameter (\"" + _local3) + "\") is not valid and was discarded. If you are trying to add a function-call try the syntax Fuse.addCommand(this,\"myCallback\",param1,param2); **");
break;
case "111" :
_local2 = _local2 + (("** A Fuse command parameter failed. (\"" + _local3) + "\") **");
break;
case "112" :
_local2 = _local2 + "** Fuse: missing com.mosesSupposes.fuse.ZigoEngine! Cannot tween. **";
break;
case "113" :
_local2 = _local2 + "** FuseItem: A callback has been discarded. Actions with a command may only contain: label, delay, scope, args. **";
break;
case "114" :
_local2 = _local2 + (("** FuseItem: command (\"" + _local3) + "\") discarded. Commands may not appear within action groups (arrays). **");
break;
case "115" :
_local2 = _local2 + ((_local3 + " overlapping prop discarded: ") + _local5);
break;
case "116" :
_local2 = _local2 + ("** FuseItem Error: Delays within groups (arrays) and start/update callbacks are not supported when using Fuse without ZigoEngine. Although you need to restructure your Fuse, it should be possible to achieve the same results. **" + _local4);
break;
case "117" :
_local2 = _local2 + (("** " + _local3) + ": infinite cycles are not allowed within Fuses - discarded. **");
break;
case "118" :
_local2 = _local2 + (("** Fuse Error: No targets in " + _local3) + ((_local5 == true) ? " [Unable to set start props] **" : " [Skipping this action] **"));
break;
case "119" :
_local2 = _local2 + (((("** Fuse warning: " + _local5) + ((_local5 == 1) ? " target missing in " : " targets missing in ")) + _local6) + ((_local3 == true) ? " during setStartProps **" : " **"));
break;
case "120" :
_local2 = _local2 + (((("** " + _local3) + ": conflict with \"") + _local5) + "\". Property might be doubled within a grouped-action array. **");
break;
case "121" :
_local2 = _local2 + "** Timecode formatting requires \"00:\" formatting (example:\"01:01:33\" yields 61.33 seconds.) **";
break;
case "122" :
_local2 = _local2 + "** FuseItem: You must register the Shortcuts class in order to use easy string-type callback parsing. **";
break;
case "123" :
_local2 = _local2 + "** FuseItem unable to target callback. Try using the syntax {scope:this, func:\"myFunction\"} **";
break;
case "124" :
_local2 = _local2 + (("** Event \"" + _local3) + "\" reserved by Fuse. **");
break;
case "125" :
_local2 = _local2 + (("** A Fuse event parameter failed in " + _local3) + " **");
break;
case "126" :
_local2 = _local2 + (((("** " + _local3) + ": trigger:") + _local5) + " ignored - only one trigger is allowed per action **");
break;
case "201" :
_local2 = _local2 + (("**** FuseFMP cannot initialize argument " + _local3) + " (BitmapFilters cannot be applied to this object type) ****");
break;
case "301" :
_local2 = _local2 + "** The shortcuts fadeIn or fadeOut only accept 3 arguments: seconds, ease, and delay. **";
}
output(_local2);
}
static var VERSION = "Fuse Kit 2.0 Copyright (c) 2006 Moses Gunesch, MosesSupposes.com under MIT Open Source License";
static var VERBOSE = true;
static var ALL = "ALL";
static var ALLCOLOR = "ALLCOLOR";
}
Symbol 512 MovieClip [__Packages.com.mosesSupposes.fuse.ZigoEngine] Frame 0
class com.mosesSupposes.fuse.ZigoEngine
{
static var extensions, updateTime, tweenHolder, instance, updateIntId;
function ZigoEngine () {
}
static function addListener(handler) {
AsBroadcaster.initialize(com.mosesSupposes.fuse.ZigoEngine);
addListener(handler);
}
static function removeListener(handler) {
}
static function isPlaying() {
return(_playing);
}
static function simpleSetup(shortcutsClass) {
if (arguments.length > 0) {
register.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
}
_global.ZigoEngine = com.mosesSupposes.fuse.ZigoEngine;
if (extensions.fuse != undefined) {
_global.Fuse = extensions.fuse;
}
if (extensions.fuseFMP != undefined) {
extensions.fuseFMP.simpleSetup();
}
initialize(MovieClip.prototype, Button.prototype, TextField.prototype);
if (extensions.shortcuts == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("001");
}
}
static function register(classReference) {
if (extensions == undefined) {
extensions = {};
}
var _local3 = "|fuse|fuseItem|fuseFMP|shortcuts|pennerEasing|";
for (var _local4 in arguments) {
var _local2 = arguments[_local4].registryKey;
if ((extensions[_local2] == undefined) && (_local3.indexOf(("|" + _local2) + "|") > -1)) {
extensions[_local2] = arguments[_local4];
if ((_local2 == "fuseFMP") || (_local2 == "shortcuts")) {
Object(extensions[_local2]).initialize();
}
}
}
}
static function initialize(target) {
if (arguments.length > 0) {
initializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
if (extensions.shortcuts != undefined) {
extensions.shortcuts.addShortcutsTo.apply(extensions.shortcuts, arguments);
}
}
}
static function deinitialize(target) {
if ((arguments.length == 0) || (target == null)) {
arguments.push(MovieClip.prototype, Button.prototype, TextField.prototype);
}
deinitializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
if (extensions.shortcuts != undefined) {
extensions.shortcuts.removeShortcutsFrom.apply(extensions.shortcuts, arguments);
}
}
static function getUpdateInterval() {
return(updateTime);
}
static function setUpdateInterval(time) {
if (_playing) {
setup(true);
updateTime = time;
setup();
} else {
updateTime = time;
}
}
static function getControllerDepth() {
return(tweenHolder.getDepth());
}
static function setControllerDepth(depth) {
if ((depth == null) || (_global.isNaN(depth) == true)) {
depth = 6789;
}
if (Object(tweenHolder).proof != null) {
tweenHolder.swapDepths(depth);
} else {
tweenHolder = _root.createEmptyMovieClip("ZigoEnginePulse", depth);
}
}
static function doShortcut(targets, methodName) {
if (extensions.shortcuts == undefined) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("002");
}
return(null);
}
return(extensions.shortcuts.doShortcut.apply(extensions.shortcuts, arguments));
}
static function doTween(targets, props, endvals, seconds, ease, delay, callback) {
if (extensions.fuse.addBuildItem(arguments) == true) {
return(null);
}
if ((instance == undefined) || ((Object(tweenHolder).proof == undefined) && (updateTime == undefined))) {
if ((MovieClip.prototype.tween != null) && (typeof(_global.$tweenManager) == "object")) {
com.mosesSupposes.fuse.FuseKitCommon.error("003");
}
instance = new com.mosesSupposes.fuse.ZManager();
_playing = false;
}
var _local4 = instance.paramsObj(targets, props, endvals);
var _local7 = (((_local4.tg[0] == null) || (_local4.tg.length == 0)) ? undefined : (_local4.tg));
if (((_local4.pa == undefined) || (_local7 == undefined)) || (arguments.length < 3)) {
if ((extensions.fuseItem != null) && (typeof(_local7[0]) == "object")) {
return(extensions.fuseItem.doTween(arguments[0]));
}
if (OUTPUT_LEVEL > 0) {
if (arguments.length < 3) {
com.mosesSupposes.fuse.FuseKitCommon.error("004", String(arguments.length));
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("005", _local7.toString(), _local4.pa.toString());
}
}
return(null);
}
if (_playing != true) {
setup();
}
if ((seconds == null) || (_global.isNaN(seconds) == true)) {
seconds = DURATION || 1;
} else if (seconds < 0.01) {
seconds = 0;
}
if (((delay < 0.01) || (delay == null)) || (_global.isNaN(delay) == true)) {
delay = 0;
}
var _local12 = parseCallback(callback, _local7);
var _local9;
if (typeof(ease) == "function") {
if (typeof(Function(ease).call(null, 1, 1, 1, 1)) == "number") {
_local9 = Function(ease);
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("014", ease);
}
} else if ((ease == null) || (ease == "")) {
if (EASING instanceof Function) {
_local9 = Function(EASING);
} else if (extensions.pennerEasing != undefined) {
ease = EASING;
}
}
if ((typeof(ease) == "string") && (ease != "")) {
if (extensions.pennerEasing[ease] != undefined) {
_local9 = extensions.pennerEasing[ease];
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("006", ease);
}
} else if (((typeof(ease) == "object") && (ease.ease != null)) && (ease.pts != null)) {
_local9 = Function(ease.ease);
_local12.extra1 = ease.pts;
}
if (typeof(_local9) != "function") {
_local9 = function (t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
};
}
var _local6 = "";
for (var _local13 in _local7) {
var _local3 = _local7[_local13];
if (_local3.__zigoID__ == null) {
initializeTargets(_local3);
} else if (instance.getStatus("locked", _local3) == true) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("007", ((_local3._name != undefined) ? (_local3._name) : (_local3.toString())), _local4.pa.toString());
}
continue;
}
var _local5 = instance.addTween(_local3, _local4.pa, _local4.va, seconds, _local9, delay, _local12);
_local6 = ((_local5 == null) ? "|" : (_local5 + "|")) + _local6;
}
_local6 = _local6.slice(0, -1);
return((((_local6 == "") || (_local6 == "|")) ? null : (_local6)));
}
static function removeTween(targs, props) {
instance.removeTween(targs, props);
}
static function isTweening(targ, prop) {
return(Boolean(instance.getStatus("active", targ, prop)));
}
static function getTweens(targ) {
return(Number(instance.getStatus("count", targ)));
}
static function lockTween(targ, setLocked) {
instance.alterTweens("lock", targ, setLocked);
}
static function isTweenLocked(targ) {
return(Boolean(instance.getStatus("locked", targ)));
}
static function ffTween(targs, props) {
instance.alterTweens("ff", targs, props);
}
static function rewTween(targs, props, pauseFlag, suppressStartEvents) {
instance.alterTweens("rewind", targs, props, pauseFlag, suppressStartEvents);
}
static function isTweenPaused(targ, prop) {
return(Boolean(instance.getStatus("paused", targ, prop)));
}
static function pauseTween(targs, props) {
instance.alterTweens("pause", targs, props);
}
static function unpauseTween(targs, props) {
instance.alterTweens("unpause", targs, props);
}
static function resumeTween(targs, props) {
instance.alterTweens("unpause", targs, props);
}
static function setColorByKey(targetObj, type, amt, rgb) {
new Color(targetObj).setTransform(getColorTransObj(type, amt, rgb));
}
static function getColorTransObj(type, amt, rgb) {
switch (type) {
case "brightness" :
var _local3 = 100 - Math.abs(amt);
var _local4 = ((amt > 0) ? (255 * (amt / 100)) : 0);
return({ra:_local3, rb:_local4, ga:_local3, gb:_local4, ba:_local3, bb:_local4});
case "brightOffset" :
return({ra:100, rb:255 * (amt / 100), ga:100, gb:255 * (amt / 100), ba:100, bb:255 * (amt / 100)});
case "contrast" :
return({ra:amt, rb:128 - (1.28 * amt), ga:amt, gb:128 - (1.28 * amt), ba:amt, bb:128 - (1.28 * amt)});
case "invertColor" :
return({ra:100 - (2 * amt), rb:amt * 2.55, ga:100 - (2 * amt), gb:amt * 2.55, ba:100 - (2 * amt), bb:amt * 2.55});
case "tint" :
if (rgb == null) {
break;
}
var _local5;
if (typeof(rgb) == "string") {
if (rgb.charAt(0) == "#") {
rgb = rgb.slice(1);
}
rgb = ((rgb.charAt(1).toLowerCase() != "x") ? ("0x" + rgb) : (rgb));
}
_local5 = Number(rgb);
return({ra:100 - amt, rb:(_local5 >> 16) * (amt / 100), ga:100 - amt, gb:((_local5 >> 8) & 255) * (amt / 100), ba:100 - amt, bb:(_local5 & 255) * (amt / 100)});
}
return({rb:0, ra:100, gb:0, ga:100, bb:0, ba:100});
}
static function getColorKeysObj(targOrTransObj) {
var _local1 = ((targOrTransObj.ra != undefined) ? (targOrTransObj) : (new Color(targOrTransObj).getTransform()));
var _local3 = {};
var _local7 = (_local1.ra == _local1.ga) && (_local1.ga == _local1.ba);
var _local9 = (_local1.rb == _local1.gb) && (_local1.gb == _local1.bb);
var _local5 = ((_local7 == true) ? (100 - _local1.ra) : 0);
if (_local5 != 0) {
var _local6 = 100 / _local5;
_local3.tint = (((_local1.rb * _local6) << 16) | ((_local1.gb * _local6) << 8)) | (_local1.bb * _local6);
_local3.tintPercent = _local5;
var _local2 = _local3.tint.toString(16);
var _local4 = 6 - _local2.length;
while ((_local4--) > 0) {
_local2 = "0" + _local2;
}
_local3.tintString = "0x" + _local2.toUpperCase();
}
if ((_local7 == true) && (_local9 == true)) {
if (_local1.ra < 0) {
_local3.invertColor = _local1.rb * 0.392156862745098;
} else if ((_local1.ra == 100) && (_local1.rb != 0)) {
_local3.brightOffset = _local1.rb * 0.392156862745098;
}
if (_local1.ra != 100) {
if ((_local1.rb == 0) || ((_local1.rb != 0) && (((255 * ((100 - _local1.ra) / 100)) - _local1.rb) <= 1))) {
_local3.brightness = ((_local1.rb != 0) ? (100 - _local1.ra) : (_local1.ra - 100));
}
if (((128 - (1.28 * _local1.ra)) - _local1.rb) <= 1) {
_local3.contrast = _local1.ra;
}
}
}
return(_local3);
}
static function initializeTargets() {
for (var _local5 in arguments) {
var _local4 = arguments[_local5];
if ((((_local4 == MovieClip.prototype) || (_local4 == Button.prototype)) || (_local4 == TextField.prototype)) || (_local4 == Object.prototype)) {
if (_local4.oldAddListener == undefined) {
if (_local4 == TextField.prototype) {
_local4.oldAddListener = _local4.addListener;
_global.ASSetPropFlags(_local4, "oldAddListener", 7, 1);
}
_local4.addListener = function (o) {
if (this.__zigoID__ == undefined) {
com.mosesSupposes.fuse.ZigoEngine.initializeTargets(this);
}
if (this instanceof TextField) {
Function(this.oldAddListener).call(this, o);
} else {
this.addListener(o);
}
};
if (_local4 == MovieClip.prototype) {
_global.ASSetPropFlags(_local4, "addListener", 7, 1);
}
}
} else if (_local4.__zigoID__ == undefined) {
_local4.__zigoID__ = zigoIDs;
_global.ASSetPropFlags(_local4, "__zigoID__", 7, 1);
zigoIDs++;
if ((_local4._listeners == null) || (_local4.addListener == null)) {
AsBroadcaster.initialize(_local4);
}
}
}
}
static function deinitializeTargets() {
for (var _local4 in arguments) {
var _local3 = arguments[_local4];
if (_local3.__zigoID__ != undefined) {
_global.ASSetPropFlags(_local3, "__zigoID__,_listeners,broadcastMessage,addListener,removeListener", 0, 2);
delete _local3.__zigoID__;
delete _local3._listeners;
delete _local3.broadcastMessage;
delete _local3.addListener;
delete _local3.removeListener;
}
if (_local3.oldAddListener != undefined) {
_global.ASSetPropFlags(_local3, "oldAddListener", 0, 2);
_local3.addListener = _local3.oldAddListener;
delete _local3.oldAddListener;
}
}
}
static function __mgrRelay(inst, method, args) {
if (inst == instance) {
Function(com.mosesSupposes.fuse.ZigoEngine[method]).apply(com.mosesSupposes.fuse.ZigoEngine, args);
}
}
static function setup(deinitFlag) {
if (deinitFlag == true) {
_playing = false;
clearInterval(updateIntId);
delete tweenHolder.onEnterFrame;
return(undefined);
}
instance.cleanUp();
clearInterval(updateIntId);
delete updateIntId;
if ((updateTime != null) && (updateTime > 0)) {
updateIntId = setInterval(instance, "update", updateTime);
} else {
if (Object(tweenHolder).proof == null) {
setControllerDepth(6789);
Object(tweenHolder).proof = 1;
}
var _inst = instance;
tweenHolder.onEnterFrame = function () {
_inst.update.call(_inst);
};
}
_playing = true;
instance.now = getTimer();
}
static function parseCallback(callback, targets) {
var validCBs = {skipLevel:SKIP_LEVEL, cycles:1};
if (((callback.skipLevel != undefined) && (typeof(callback.skipLevel) == "number")) && (callback.skipLevel != SKIP_LEVEL)) {
if ((callback.skipLevel >= 0) && (callback.skipLevel <= 2)) {
validCBs.skipLevel = callback.skipLevel;
}
}
if (callback.cycles != undefined) {
if ((typeof(callback.cycles) == "number") && (callback.cycles > -1)) {
validCBs.cycles = callback.cycles;
} else if (callback.cycles.toUpperCase() == "LOOP") {
validCBs.cycles = 0;
}
}
if (callback.extra1 != undefined) {
validCBs.extra1 = callback.extra1;
}
if (callback.extra2 != undefined) {
validCBs.extra2 = callback.extra2;
}
if (callback == undefined) {
return(validCBs);
}
var cbErrors = [];
var ezf;
if (typeof(callback) == "string") {
ezf = String(callback);
} else if (typeof(callback.easyfunc) == "string") {
ezf = callback.easyfunc;
}
if (((ezf != undefined) && (ezf.indexOf("(") > -1)) && (ezf.indexOf(")") > -1)) {
if (extensions.shortcuts != undefined) {
callback = extensions.shortcuts.parseStringTypeCallback(ezf);
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("008");
}
} else if ((typeof(callback) == "function") || (typeof(callback) == "string")) {
callback = {func:callback};
}
for (var i in callback) {
var fi = i.toLowerCase().indexOf("func");
if (fi > -1) {
var prefix = i.slice(0, fi);
var func = callback[i];
var args = callback[prefix + "args"];
var scope = callback[prefix + "scope"];
if ((typeof(func) == "string") && (scope[func] == undefined)) {
for (var j in targets) {
var targ = targets[j];
if (typeof(targ[func]) == "function") {
scope = targ;
break;
}
if (typeof(targ._parent[func]) == "function") {
scope = targ._parent;
break;
}
}
if ((scope == undefined) && (_level0[func] != undefined)) {
scope = _level0;
}
if ((scope == undefined) && (_global[func] != undefined)) {
scope = _global;
}
}
if (typeof(func) != "function") {
if (typeof(scope[String(func)]) == "function") {
func = scope[String(func)];
} else {
func = eval (String(func));
}
}
if (func == undefined) {
cbErrors.push(String((((((i + ":") + ((typeof(callback[i]) == "string") ? (("\"" + callback[i]) + "\"") : (callback[i]))) + "/") + prefix) + "scope:") + scope));
} else {
if ((args != undefined) && (!(args instanceof Array))) {
args = [args];
}
if (prefix == "") {
prefix = "end";
}
validCBs[prefix] = {s:scope, f:func, a:args, id:cbTicker++};
if (prefix == "start") {
validCBs.start.fired = false;
}
}
} else if (com.mosesSupposes.fuse.FuseKitCommon._cbprops().indexOf(("|" + i) + "|") == -1) {
com.mosesSupposes.fuse.FuseKitCommon.error("009", i);
}
}
if ((cbErrors.length > 0) && (OUTPUT_LEVEL > 0)) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("010", cbErrors.length, cbErrors.toString());
}
}
return(validCBs);
}
static var VERSION = com.mosesSupposes.fuse.FuseKitCommon.VERSION + ", ZigoEngine based on concepts by Ladislav Zigo, laco.wz.cz/tween";
static var EASING = "easeOutQuint";
static var DURATION = 1;
static var ROUND_RESULTS = false;
static var OUTPUT_LEVEL = 1;
static var AUTOSTOP = false;
static var SKIP_LEVEL = 0;
static var _playing = false;
static var zigoIDs = 0;
static var cbTicker = 0;
}
Symbol 513 MovieClip [__Packages.com.mosesSupposes.fuse.ZManager] Frame 0
class com.mosesSupposes.fuse.ZManager
{
var tweens, now;
function ZManager () {
tweens = {};
numTweens = 0;
}
function addTween(obj, props, endvals, seconds, ease, delay, callback) {
var _local20 = ((callback.skipLevel == undefined) ? 0 : (callback.skipLevel));
var _local38 = ((callback.cycles == undefined) ? 1 : (callback.cycles));
var _local25 = callback.extra1;
var _local24 = callback.extra2;
var _local19 = [];
var _local15 = _global.com.mosesSupposes.fuse.FuseFMP;
var _local37 = String(("|" + _local15.getAllShortcuts().join("|")) + "|");
var _local36 = com.mosesSupposes.fuse.FuseKitCommon._cts();
var _local21 = "";
var _local23 = "";
var _local7 = tweens[String(obj.__zigoID__)];
if ((_local7 != undefined) && (com.mosesSupposes.fuse.ZigoEngine.AUTOSTOP == true)) {
if (obj._listeners.length > 0) {
for (var _local34 in _local7.props) {
_local19.unshift(_local34);
}
}
_local7.numProps = 0;
cleanUp(true);
}
for (var _local41 in props) {
var _local6 = props[_local41];
var _local13 = _local36.indexOf(("|" + _local6) + "|") > -1;
var _local16 = _local7.colorProp;
if (_local7 != undefined) {
if ((_local13 == true) && (_local16 != undefined)) {
_local19.unshift(_local16);
delete _local7.props[_local16];
delete _local7.colorProp;
_local7.numProps--;
} else if (_local7.props[_local6] != undefined) {
_local19.unshift(_local6);
delete _local7[_local6];
_local7.numProps--;
}
}
var _local3 = {c:-1, fmp:-1};
var _local4 = endvals[_local41];
var _local11 = ((_local20 == 0) && ((seconds + delay) == 0)) || ((_local20 > 0) && (seconds == 0));
var _local10 = false;
var _local14 = (_local15 != undefined) && (_local37.indexOf(("|" + _local6) + "|") > -1);
if (_local14 == true) {
_local3.fmp = _local15;
_local3.ps = _local15.getFilterProp(obj, _local6, true);
_local3.special = true;
}
if ((_local13 == true) || ((((_local14 == true) && (_local6.indexOf("lor") > -1)) && (_local6.charAt(2) != "l")) && (_local11 == false))) {
if (_local13 == true) {
_local3.c = new Color(obj);
_local3.ps = _local3.c.getTransform();
if (_local6 != "_colorTransform") {
var _local17 = ((((_local6 == "_tint") || (_local6 == "_tintPercent")) || (_local6 == "_colorReset")) ? "tint" : (_local6.slice(1)));
var _local8 = null;
var _local12 = null;
if (_local17 == "tint") {
if (typeof(_local4) == "object") {
_local12 = _local4.tint;
_local8 = ((_global.isNaN(_local4.percent) == true) ? 100 : (_local4.percent));
} else if ((_local6 == "_tintPercent") || (_local6 == "_colorReset")) {
var _local18 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tintPercent;
_local8 = ((typeof(_local4) == "string") ? ((_local18 || 0) + Number(_local4)) : Number(_local4));
_local8 = Math.max(0, Math.min(_local8, 100));
if (_local6 == "_colorReset") {
_local8 = Math.min(_local18, 100 - _local8);
}
_local12 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tint || 0;
} else {
_local12 = _local4;
_local8 = 100;
}
} else {
_local8 = ((typeof(_local4) == "string") ? ((com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj)[_local17] || 0) + Number(_local4)) : (_local4));
}
_local4 = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj(_local17, _local8, _local12);
}
} else {
_local3.c = 1;
_local3.ps = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local3.ps);
_local4 = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local4);
}
if (_local11 == true) {
_local3.c.setTransform(_local4);
} else {
_local3.ch = {};
for (var _local34 in _local4) {
if (((((_local3.c === 1) && (_local34.charAt(1) == "b")) || (_local4[_local34] != _local3.ps[_local34])) && (_local4[_local34] != null)) && (_global.isNaN(Number(_local4[_local34])) == false)) {
_local3.ch[_local34] = ((typeof(_local4[_local34]) == "string") ? (Number(_local4[_local34])) : (_local4[_local34] - _local3.ps[_local34]));
if (_global.isNaN(_local3.ch[_local34]) == true) {
_local3.ch[_local34] = 0;
} else if (_local3.ch[_local34] != 0) {
_local10 = true;
}
}
}
}
} else if (_local6 == "_bezier_") {
removeTween(obj, "_x,_y", true);
if (_local11 == true) {
if ((_local4.x != null) && (_global.isNaN(Number(_local4.x)) == false)) {
obj._x = ((typeof(_local4.x) == "string") ? (obj._x + Number(_local4.x)) : (_local4.x));
}
if ((_local4.y != null) && (_global.isNaN(Number(_local4.y)) == false)) {
obj._y = ((typeof(_local4.y) == "string") ? (obj._y + Number(_local4.y)) : (_local4.y));
}
} else {
_local3.special = true;
_local3.ps = 0;
_local3.ch = 1;
_local3.bz = {sx:obj._x, sy:obj._y};
if ((_local4.x == null) || (_global.isNaN(Number(_local4.x)))) {
_local4.x = _local3.bz.sx;
}
if ((_local4.y == null) || (_global.isNaN(Number(_local4.y)))) {
_local4.y = _local3.bz.sy;
}
_local3.bz.chx = ((typeof(_local4.x) == "string") ? (Number(_local4.x)) : (_local4.x - _local3.bz.sx));
if (_global.isNaN(_local3.bz.chx) == true) {
_local3.bx.chx = 0;
}
_local3.bz.chy = ((typeof(_local4.y) == "string") ? (Number(_local4.y)) : (_local4.y - _local3.bz.sy));
if (_global.isNaN(_local3.bz.chy) == true) {
_local3.bx.chy = 0;
}
if ((_local4.controlX == null) || (_global.isNaN(Number(_local4.controlX)))) {
_local3.bz.ctrlx = _local3.bz.sx + (_local3.bz.chx / 2);
} else {
_local3.bz.ctrlx = ((typeof(_local4.controlX) == "string") ? (_local3.bz.sx + Number(_local4.controlX)) : (_local4.controlX));
}
if ((_local4.controlY == null) || (_global.isNaN(Number(_local4.controlY)))) {
_local3.bz.ctrly = _local3.bz.sy + (_local3.bz.chy / 2);
} else {
_local3.bz.ctrly = ((typeof(_local4.controlY) == "string") ? (_local3.bz.sy + Number(_local4.controlY)) : (_local4.controlY));
}
_local3.bz.ctrlx = _local3.bz.ctrlx - _local3.bz.sx;
_local3.bz.ctrly = _local3.bz.ctrly - _local3.bz.sy;
_local10 = (_local3.bz.chx + _local3.bz.chy) != 0;
}
} else {
if ((_local6 == "_x") || (_local6 == "_y")) {
removeTween(obj, "_bezier_", true);
}
if ((_local6 == "_frame") && (typeof(obj) == "movieclip")) {
_local3.ps = obj._currentframe;
_local3.special = true;
} else if (_local14 == false) {
_local3.ps = obj[_local6];
}
if (_local11 == true) {
_local4 = ((typeof(_local4) == "string") ? (_local3.ps + Number(_local4)) : (_local4));
if (_local14 == true) {
_local15.setFilterProp(obj, _local6, _local4);
} else {
obj[_local6] = _local4;
}
} else {
if ((_local4 == null) || (_global.isNaN(Number(_local4)))) {
_local4 = _local3.ps;
}
_local3.ch = ((typeof(_local4) == "string") ? (Number(_local4)) : (Number(_local4) - _local3.ps));
if (_global.isNaN(_local3.ch) == true) {
_local3.ch = 0;
}
_local10 = _local3.ch != 0;
}
}
if (((_local20 == 0) && ((_local10 == true) || (_local11 == false))) || ((_local10 == true) && (_local11 == false))) {
_local3.ts = now + (delay * 1000);
_local3.pt = -1;
_local3.d = seconds * 1000;
_local3.ef = ease;
_local3.sf = false;
_local3.cycles = _local38;
if (_local25 != undefined) {
_local3.e1 = _local25;
}
if (_local24 != undefined) {
_local3.e2 = _local24;
}
if (callback.start != undefined) {
_local3.scb = callback.start;
}
if (callback.upd != undefined) {
_local3.ucb = callback.upd;
}
if (callback.end != undefined) {
_local3.ecb = callback.end;
}
if (tweens[String(obj.__zigoID__)] == undefined) {
_local7 = (tweens[String(obj.__zigoID__)] = {numProps:0, locked:false, targ:obj, targID:String(("\"" + ((obj._name != undefined) ? (obj._name) : (obj.toString()))) + "\""), targZID:obj.__zigoID__, props:{}});
numTweens++;
}
if (_local13 == true) {
_local7.colorProp = _local6;
}
_local7.props[_local6] = _local3;
_local7.numProps++;
_local21 = (_local6 + ",") + _local21;
_local23 = (((typeof(_local4) == "string") ? (("\"" + _local4) + "\"") : (_local4)) + ",") + _local23;
}
}
if ((_local7 == undefined) || (_local7.numProps <= 0)) {
cleanUp();
}
if ((_local19.length > 0) && (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0)) {
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:obj, props:_local19, __zigoID__:obj.__zigoID__});
}
if (_local21 == "") {
if (_local20 == 2) {
if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) {
com.mosesSupposes.fuse.FuseKitCommon.error("011", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString());
}
} else {
var _local42 = obj._listeners.length > 0;
if (_local42 == true) {
obj.broadcastMessage("onTweenStart", {target:obj, props:props});
}
if (callback.start != undefined) {
callback.start.f.apply(callback.start.s, callback.start.a);
}
if (_local42 == true) {
obj.broadcastMessage("onTweenUpdate", {target:obj, props:props});
}
if (callback.upd != undefined) {
callback.upd.f.apply(callback.upd.s, callback.upd.a);
}
if (_local42 == true) {
obj.broadcastMessage("onTweenEnd", {target:obj, props:props});
}
if (callback.end != undefined) {
callback.end.f.apply(callback.end.s, callback.end.a);
}
}
cleanUp();
}
if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) {
if (_local21 == "") {
com.mosesSupposes.fuse.FuseKitCommon.error("012", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString(), endvals.toString());
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("013", ((obj._name != undefined) ? (obj._name) : (obj.toString())), _local21.slice(0, -1), _local23.slice(0, -1));
}
}
return(((_local21 == "") ? null : (_local21.slice(0, -1))));
}
function removeTween(targs, props, noInit) {
var _local4 = {};
var _local11 = paramsObj(targs, props);
if (_local11.none == true) {
return(undefined);
}
var _local15 = _local11.all;
var _local16 = _local11.allprops;
var _local9 = ((_local15 == true) ? (tweens) : (Object(_local11.tg)));
var _local8 = false;
for (var _local18 in _local9) {
var _local3 = ((_local15 == true) ? (_local18) : (String(_local9[_local18].__zigoID__)));
var _local2 = tweens[_local3];
var _local6 = ((_local16 == true) ? (_local2.props) : (_local11.props));
for (var _local13 in _local6) {
var _local5 = (_local13 == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) && (_local2.colorProp != undefined);
if ((_local2.props[_local13] != undefined) || (_local5 == true)) {
if (_local4[_local3] == null) {
_local4[_local3] = [];
}
_local4[_local3].unshift(_local13);
if ((_local13 == _local2.colorProp) || (_local5 == true)) {
delete _local2.props[_local2.colorProp];
delete _local2.colorProp;
} else {
delete _local2.props[_local13];
}
_local2.numProps--;
if (_local2.numProps <= 0) {
_local8 = true;
break;
}
}
}
}
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
for (var _local17 in _local4) {
var _local7 = tweens[_local17].targ;
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local7.addProperty) == "function") ? (_local7) : (("[MISSING(\"" + tweens[_local17].targID) + "\")]")), props:_local4[_local17], __zigoID__:tweens[_local17].targZID});
}
}
if (_local8 == true) {
cleanUp(noInit);
}
}
function alterTweens(type, targs, props, pauseFlag, suppressStartEvents) {
if (type == "lock") {
tweens[String(targs.__zigoID__)].locked = Boolean(props == true);
return(undefined);
}
var _local11 = paramsObj(targs, props);
if (_local11.none == true) {
return(undefined);
}
var _local13 = _local11.all;
var _local14 = _local11.allprops;
var _local8 = ((_local13 == true) ? (tweens) : (Object(_local11.tg)));
var _local7 = 0;
for (var _local15 in _local8) {
var _local6 = ((_local13 == true) ? (_local15) : (String(_local8[_local15].__zigoID__)));
var _local5 = tweens[_local6];
var _local4 = ((_local14 == true) ? (_local5.props) : (_local11.props));
if (_local4.ALLCOLOR == true) {
_local4[_local5.colorProp] = true;
delete _local4.ALLCOLOR;
}
for (var _local9 in _local4) {
_local7++;
var _local2 = _local5.props[_local9];
if (type == "rewind") {
if (pauseFlag == true) {
_local2.pt = now;
}
_local2.ts = now;
if (suppressStartEvents != true) {
_local2.sf = false;
if (_local2.scb != undefined) {
_local2.scb.fired = false;
}
}
} else if (type == "ff") {
_local2.pt = -1;
_local2.ts = now - _local2.d;
} else if (type == "pause") {
if (_local2.pt == -1) {
_local2.pt = now;
}
} else if (type == "unpause") {
if (_local2.pt != -1) {
_local2.ts = now - (_local2.pt - _local2.ts);
_local2.pt = -1;
}
}
}
}
if ((type == "ff") && (_local7 > 0)) {
update();
} else if ((type == "rewind") && (_local7 > 0)) {
update(true);
}
}
function getStatus(type, targ, param) {
if (targ == null) {
return(null);
}
var _local8 = String(targ).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
var _local4 = tweens[String(targ.__zigoID__)];
switch (type) {
case "paused" :
var _local2 = _local4.props;
if (param != null) {
if (_local2[String(param)] == undefined) {
return(false);
}
return(Boolean(_local2[String(param)].pt != -1));
}
for (var _local6 in _local2) {
if (_local2[_local6].pt != -1) {
return(true);
}
}
return(false);
case "active" :
if (param == null) {
return(Boolean(_local4 != undefined));
}
if (String(param).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
return(Boolean(_local4.colorProp != undefined));
}
return(Boolean(_local4.props[String(param)] != undefined));
case "count" :
if (!_local8) {
return(_local4.numProps);
}
var _local3 = 0;
for (var _local6 in tweens) {
_local3 = _local3 + tweens[_local6].numProps;
}
return(_local3);
case "locked" :
return(_local4.locked);
}
}
function update(force) {
var _local17 = {};
var _local19 = {};
var _local18 = {};
var _local13 = {};
var _local11 = {};
var _local12 = {};
var _local22 = false;
var _local20 = com.mosesSupposes.fuse.ZigoEngine.ROUND_RESULTS;
for (var _local29 in tweens) {
var _local10 = tweens[_local29];
var _local6 = _local10.targ;
var _local28 = _local10.props;
var _local16 = _local6._listeners.length > 0;
if (_local6.__zigoID__ == undefined) {
_local22 = true;
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
var _local21 = [];
for (var _local24 in _local28) {
_local21.unshift(_local24);
}
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local6.addProperty) == "function") ? (_local6) : (("[MISSING:" + _local10.targID) + "]")), props:_local21, __zigoID__:_local10.targZID});
}
continue;
}
for (var _local24 in _local28) {
var _local3 = _local28[_local24];
if (((_local3.ts > now) || (_local3.pt != -1)) && (force != true)) {
continue;
}
var _local7 = now >= (_local3.ts + _local3.d);
if (_local3.c == -1) {
var _local5;
if (_local7 == true) {
_local5 = _local3.ps + _local3.ch;
if ((_local3.cycles > 1) || (_local3.cycles == 0)) {
if (_local3.cycles > 1) {
_local3.cycles--;
}
_local3.ps = _local5;
_local3.ch = -_local3.ch;
_local3.ts = now;
_local7 = false;
}
} else {
_local5 = _local3.ef(now - _local3.ts, _local3.ps, _local3.ch, _local3.d, _local3.e1, _local3.e2);
}
if (_global.isNaN(_local5) == false) {
if (_local20 == true) {
_local5 = Math.round(Number(_local5));
}
if (_local3.special != true) {
_local6[_local24] = _local5;
} else if (_local3.fmp != -1) {
_local3.fmp.setFilterProp(_local6, _local24, _local5);
} else if (_local24 == "_bezier_") {
var _local8 = _local3.bz;
_local6._x = _local8.sx + (_local5 * (((2 * (1 - _local5)) * _local8.ctrlx) + (_local5 * _local8.chx)));
_local6._y = _local8.sy + (_local5 * (((2 * (1 - _local5)) * _local8.ctrly) + (_local5 * _local8.chy)));
} else if (_local24 == "_frame") {
MovieClip(_local6).gotoAndStop(Math.round(_local5));
}
}
} else {
var _local4 = {};
var _local15 = (_local7 == true) && ((_local3.cycles > 1) || (_local3.cycles == 0));
for (var _local23 in _local3.ch) {
var _local9 = _local3.ch[_local23];
if (_local7 == true) {
_local4[_local23] = _local3.ps[_local23] + _local9;
if (_local15 == true) {
_local3.ch[_local23] = -_local9;
}
} else {
_local4[_local23] = _local3.ef(now - _local3.ts, _local3.ps[_local23], _local9, _local3.d, _local3.e1, _local3.e2);
}
if (_global.isNaN(_local4[_local23]) == false) {
if (_local20 == true) {
_local4[_local23] = Math.round(_local4[_local23]);
}
if (_local3.fmp == -1) {
_local3.c.setTransform(_local4);
} else {
var _local14 = ((_local4.rb << 16) | (_local4.gb << 8)) | _local4.bb;
_local3.fmp.setFilterProp(_local6, _local24, _local14);
}
}
}
if (_local15 == true) {
if (_local3.cycles > 1) {
_local3.cycles--;
}
_local7 = false;
_local3.ts = now;
_local3.ps = _local4;
}
}
if (_local3.sf == false) {
if (_local16 == true) {
if (_local13[_local29] == undefined) {
_local13[_local29] = [_local6, []];
}
_local13[_local29][1].unshift(_local24);
}
_local3.sf = true;
}
if (_local3.scb.fired == false) {
_local17[String(_local3.scb.id)] = _local3.scb;
_local3.scb.fired = true;
}
if (_local16 == true) {
if (_local11[_local29] == undefined) {
_local11[_local29] = [_local6, []];
}
_local11[_local29][1].unshift(_local24);
}
if (_local3.ucb != undefined) {
_local19[String(_local3.ucb.id)] = _local3.ucb;
}
if (_local7 == true) {
if (_local16 == true) {
if (_local12[_local29] == undefined) {
_local12[_local29] = [_local6, []];
}
_local12[_local29][1].unshift(_local24);
}
if (_local3.ecb != undefined) {
_local18[String(_local3.ecb.id)] = _local3.ecb;
}
delete _local28[_local24];
if (_local24 == _local10.colorProp) {
delete _local10.colorProp;
}
_local10.numProps--;
if (_local10.numProps <= 0) {
_local22 = true;
}
}
}
}
for (var _local29 in _local13) {
_local13[_local29][0].broadcastMessage("onTweenStart", {target:_local13[_local29][0], props:_local13[_local29][1]});
}
for (var _local29 in _local17) {
_local17[_local29].f.apply(_local17[_local29].s, _local17[_local29].a);
}
for (var _local29 in _local11) {
_local11[_local29][0].broadcastMessage("onTweenUpdate", {target:_local11[_local29][0], props:_local11[_local29][1]});
}
for (var _local29 in _local19) {
_local19[_local29].f.apply(_local19[_local29].s, _local19[_local29].a);
}
for (var _local29 in _local12) {
_local12[_local29][0].broadcastMessage("onTweenEnd", {target:_local12[_local29][0], props:_local12[_local29][1]});
}
for (var _local29 in _local18) {
_local18[_local29].f.apply(_local18[_local29].s, _local18[_local29].a);
}
if (_local22) {
cleanUp();
}
now = getTimer();
}
function cleanUp(noInit) {
for (var _local4 in tweens) {
var _local2 = tweens[_local4].targ;
if ((tweens[_local4].numProps <= 0) || (_local2.__zigoID__ == undefined)) {
if (((_local2 != undefined) && (_local2.tween == undefined)) && (noInit != true)) {
com.mosesSupposes.fuse.ZigoEngine.deinitializeTargets(_local2);
}
delete tweens[_local4];
numTweens--;
}
}
if (numTweens <= 0) {
numTweens = 0;
delete tweens;
tweens = {};
if (noInit != true) {
com.mosesSupposes.fuse.ZigoEngine.__mgrRelay(this, "setup", [true]);
}
}
}
function paramsObj(targs, props, endvals) {
var _local6 = {};
_local6.all = String(targs).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
_local6.none = Boolean(targs == null);
if (_local6.all == true) {
_local6.tg = [null];
} else {
_local6.tg = ((targs instanceof Array) ? (targs) : ([targs]));
for (var _local11 in _local6.tg) {
var _local7 = _local6.tg[_local11];
if ((_local7 == null) || (!((typeof(_local7) == "object") || (typeof(_local7) == "movieclip")))) {
_local6.tg.splice(Number(_local11), 1);
}
}
}
_local6.allprops = props == null;
var _local1;
var _local4;
var _local3 = {};
if (_local6.allprops == false) {
if ((typeof(props) == "string") && ((String(props).indexOf(" ") > -1) || (String(props).indexOf(",") > -1))) {
props = String(props.split(" ").join("")).split(",");
}
_local1 = ((props instanceof Array) ? (props.slice()) : ([props]));
if (endvals != undefined) {
if ((typeof(endvals) == "string") && ((String(endvals).indexOf(" ") > -1) || (String(endvals).indexOf(",") > -1))) {
endvals = String(endvals.split(" ").join("")).split(",");
}
_local4 = ((endvals instanceof Array) ? (endvals.slice()) : ([endvals]));
while (_local4.length < _local1.length) {
_local4.push(_local4[_local4.length - 1]);
}
_local4.splice(_local1.length, _local4.length - _local1.length);
}
for (var _local11 in _local1) {
var _local2 = Number(_local11);
if ((_local1[_local11] != "_scale") && (_local1[_local11] != "_size")) {
if (_local3[_local1[_local11]] == undefined) {
if (String(_local1[_local11]).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
_local1[_local11] = com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR;
}
_local3[_local1[_local11]] = true;
} else {
_local1.splice(_local2, 1);
_local4.splice(_local2, 1);
}
} else {
var _local8 = String(_local1.splice(_local2, 1)[0]);
var _local5 = _local4.splice(_local2, 1)[0];
if (_local8 == "_scale") {
if (_local3._xscale == undefined) {
_local1.splice(_local2, 0, "_xscale");
_local4.splice(_local2, 0, _local5);
_local3._xscale = true;
_local2++;
}
if (_local3._yscale == undefined) {
_local1.splice(_local2, 0, "_yscale");
_local4.splice(_local2, 0, _local5);
_local3._yscale = true;
}
}
if (_local8 == "_size") {
if (_local3._width == undefined) {
_local1.splice(_local2, 0, "_width");
_local4.splice(_local2, 0, _local5);
_local3._width = true;
_local2++;
}
if (_local3._yscale == undefined) {
_local1.splice(_local2, 0, "_height");
_local4.splice(_local2, 0, _local5);
_local3._height = true;
}
}
}
}
for (var _local11 in _local1) {
if (((_local1[_local11] == "_xscale") && (_local3._width == true)) || ((_local1[_local11] == "_yscale") && (_local3._height == true))) {
_local1.splice(Number(_local11), 1);
_local4.splice(Number(_local11), 1);
delete _local3[_local1[_local11]];
}
}
}
_local6.pa = _local1;
_local6.va = _local4;
_local6.props = _local3;
return(_local6);
}
var numTweens = 0;
}
Symbol 514 MovieClip [__Packages.com.mosesSupposes.fuse.Fuse] Frame 0
class com.mosesSupposes.fuse.Fuse extends Array
{
var _nID, _aDefaultTargs, length, scope, _nIndex, _oDel1, label, dispatchEvent;
function Fuse (action) {
super();
mx.events.EventDispatcher.initialize(this);
_nID = registerInstance(this);
_sState = "stopped";
_aDefaultTargs = new Array();
if (arguments.length > 0) {
splice.apply(this, new Array(0, 0).concat(arguments));
}
var _local4 = ["concat", "join", "sort", "sortOn"];
for (var _local5 in _local4) {
com.mosesSupposes.fuse.Fuse.prototype[_local4[_local5]] = function () {
if (com.mosesSupposes.fuse.Fuse.OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("105");
}
};
}
}
function addEventListener(event, handler) {
}
function removeEventListener(event, handler) {
}
function destroy() {
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(("-Fuse#" + String(_nID)) + " destroy.");
}
stop(true);
splice(0, length);
_aDefaultTargs = null;
scope = null;
_global.ASSetPropFlags(this, null, 0, 7);
var _local4 = _nID;
for (var _local3 in this) {
delete this[_local3];
}
removeInstanceAt(_local4, true);
}
static function simpleSetup() {
com.mosesSupposes.fuse.FuseKitCommon.error("101");
}
static function getInstance(idOrLabel) {
if (typeof(idOrLabel) == "number") {
return(_aInstances[idOrLabel]);
}
if (typeof(idOrLabel) == "string") {
for (var _local2 in _aInstances) {
if (com.mosesSupposes.fuse.Fuse(_aInstances[_local2]).label == idOrLabel) {
return(_aInstances[_local2]);
}
}
}
return(null);
}
static function getInstances(stateFilter, targets) {
var _local10 = (stateFilter == null) || (stateFilter.toUpperCase() == "ALL");
if (!(targets instanceof Array)) {
targets = arguments.slice(1);
}
var _local8 = [];
for (var _local11 in _aInstances) {
var _local5 = _aInstances[_local11];
if (_aInstances[_local11] == null) {
continue;
}
if ((_local10 == false) && (_local5.__get__state() != stateFilter)) {
continue;
}
var _local3 = targets.length == 0;
if (_local3 == false) {
if (_local3 == true) {
continue;
}
var _local2 = _local5.getActiveTargets(true);
for (var _local7 in targets) {
for (var _local6 in _local2) {
if (_local2[_local6] == targets[_local7]) {
_local3 = true;
break;
}
}
}
}
if (_local3 == true) {
_local8.unshift(_local5);
}
}
return(_local8);
}
function get id() {
return(_nID);
}
function get state() {
return(_sState);
}
function get currentIndex() {
return(_nIndex);
}
function get currentLabel() {
return(com.mosesSupposes.fuse.FuseItem(this[_nIndex]).getLabel());
}
function get target() {
return(((_aDefaultTargs.length == 1) ? (_aDefaultTargs[0]) : (_aDefaultTargs)));
}
function set target(t) {
delete _aDefaultTargs;
if (t != null) {
addTarget(t);
}
//return(target);
}
function addTarget(t) {
if (_aDefaultTargs == null) {
_aDefaultTargs = [];
}
if (arguments[0] instanceof Array) {
arguments=arguments[0];//parameter overwritten
arguments[0];
}
for (var _local5 in arguments) {
var _local3 = false;
for (var _local4 in _aDefaultTargs) {
if (arguments[_local5] == _aDefaultTargs[_local4]) {
_local3 = true;
break;
}
}
if (_local3 == false) {
_aDefaultTargs.push(arguments[_local5]);
}
}
}
function removeTarget(t) {
if ((_aDefaultTargs == null) || (_aDefaultTargs.length == 0)) {
return(undefined);
}
if (arguments[0] instanceof Array) {
arguments=arguments[0];//parameter overwritten
arguments[0];
}
for (var _local4 in arguments) {
for (var _local3 in _aDefaultTargs) {
if (arguments[_local4] == _aDefaultTargs[_local3]) {
_aDefaultTargs.splice(Number(_local3), 1);
}
}
}
}
function getActiveTargets(includeDefaults) {
if ((_sState != "playing") && (_sState != "paused")) {
return([]);
}
var _local2;
if (includeDefaults == true) {
_local2 = _aDefaultTargs.slice();
} else {
_local2 = [];
}
return(com.mosesSupposes.fuse.FuseItem(this[_nIndex]).getActiveTargets(_local2));
}
function clone() {
var _local3 = [];
var _local2 = 0;
while (_local2 < length) {
_local3.push(com.mosesSupposes.fuse.FuseItem(this[_local2]).getInitObj());
_local2++;
}
var _local4 = new com.mosesSupposes.fuse.Fuse();
_local4.push.apply(_local4, _local3);
_local4.scope = scope;
_local4.__set__target(target);
return(_local4);
}
function push() {
splice.apply(this, new Array(length, 0).concat(arguments));
return(length);
}
function pushTween(targets, props, pEnd, seconds, ease, delay, callback) {
push({__buildMode:true, tweenargs:arguments});
return(length);
}
function pop() {
var _local2 = com.mosesSupposes.fuse.FuseItem(this[length - 1]).getInitObj();
splice(length - 1, 1);
return(_local2);
}
function unshift() {
splice.apply(this, new Array(0, 0).concat(arguments));
return(length);
}
function shift() {
var _local2 = com.mosesSupposes.fuse.FuseItem(this[0]).getInitObj();
splice(0, 1);
return(_local2);
}
function splice(startIndex, deleteCount) {
stop(true);
var _local7 = Number(arguments.shift());
if (_local7 < 0) {
_local7 = length + _local7;
}
deleteCount = Number(arguments.shift());
var _local8 = new Array();
var _local5 = 0;
while (_local5 < arguments.length) {
var _local6 = ((arguments[_local5] instanceof com.mosesSupposes.fuse.Fuse) ? (arguments[_local5]) : (new com.mosesSupposes.fuse.FuseItem(_local7 + _local5, arguments[_local5], _nID)));
addEventListener("onStop", _local6);
addEventListener("evtSetStart", _local6);
_local8.push(_local6);
_local5++;
}
var _local4 = super.splice.apply(this, new Array(_local7, deleteCount).concat(_local8));
for (var _local9 in _local4) {
removeEventListener("onStop", _local4[_local9]);
removeEventListener("evtSetStart", _local4[_local9]);
if (_local4[_local9] instanceof com.mosesSupposes.fuse.Fuse) {
com.mosesSupposes.fuse.Fuse(_local4[_local9]).removeEventListener("onComplete", _oDel1);
} else {
com.mosesSupposes.fuse.FuseItem(_local4[_local9]).destroy();
delete this[com.mosesSupposes.fuse.FuseItem(_local4[_local9])._nItemID];
}
}
_local5 = 0;
while (_local5 < length) {
com.mosesSupposes.fuse.FuseItem(this[_local5])._nItemID = _local5;
_local5++;
}
}
function slice(indexA, indexB) {
var _local6 = super.slice(indexA, indexB);
var _local5 = new Array();
var _local4 = 0;
while (_local4 < arguments.length) {
_local5.push(com.mosesSupposes.fuse.FuseItem(this[_local4]).getInitObj());
_local4++;
}
return(_local5);
}
function reverse() {
stop(true);
super.reverse();
var _local3 = 0;
while (_local3 < length) {
com.mosesSupposes.fuse.FuseItem(this[_local3])._nItemID = _local3;
_local3++;
}
}
function traceItems(indexA, indexB) {
var _local5 = "";
var _local4 = super.slice(indexA, indexB);
_local5 = _local5 + ((("-Fuse#" + String(_nID)) + " traceItems:") + "\n----------\n");
var _local3 = 0;
while (_local3 < _local4.length) {
if (_local4[_local3] instanceof com.mosesSupposes.fuse.Fuse) {
_local5 = _local5 + (((((((("-Fuse#" + String(_nID)) + " #") + _nID) + ">Item#") + _local3) + ": [Nested Fuse] ") + _local4[_local3]) + newline);
} else {
_local5 = _local5 + (_local4[_local3] + newline);
}
_local3++;
}
_local5 = _local5 + "----------";
com.mosesSupposes.fuse.FuseKitCommon.output(_local5);
}
function toString() {
return((((("Fuse#" + String(_nID)) + ((label != undefined) ? ((" \"" + label) + "\"") : "")) + " (contains ") + length) + " items)");
}
function setStartProps(trueOrItemIDs) {
var _local8 = ((arguments.length == 0) || (trueOrItemIDs === true)) || (trueOrItemIDs == com.mosesSupposes.fuse.FuseKitCommon.ALL);
dispatchEvent({target:this, type:"evtSetStart", all:_local8, filter:((trueOrItemIDs instanceof Array) ? (trueOrItemIDs) : arguments), curIndex:((state == "playing") ? (_nIndex) : -1), targs:_aDefaultTargs, scope:scope});
}
function start(setStart) {
close();
stop(true);
_sState = "playing";
if (length == 0) {
advance(false, true);
}
if ((setStart != null) && (setStart != false)) {
setStartProps.apply(this, arguments);
}
dispatchEvent({target:this, type:"onStart"});
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(("-Fuse#" + String(_nID)) + " start.");
}
playCurrentItem();
}
function stop() {
if (_sState != "stopped") {
var _local3 = 0;
while (_local3 < length) {
if ((_local3 == _nIndex) || (com.mosesSupposes.fuse.FuseItem(this[_local3]).hasTriggerFired() == true)) {
com.mosesSupposes.fuse.FuseItem(this[_local3]).stop();
}
_local3++;
}
} else {
arguments[0] = true;
}
if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) {
com.mosesSupposes.fuse.Fuse(this[_nIndex]).removeEventListener("onComplete", _oDel1);
}
_sState = "stopped";
if (!((arguments[0] === true) && (_sState == "stopped"))) {
dispatchEvent({target:this, type:"onStop"});
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(("-Fuse#" + String(_nID)) + " stop.");
}
}
_nIndex = 0;
clearInterval(_nDelay);
_nTimeCache = (_nDelay = -1);
}
function skipTo(indexOrLabel) {
close();
var _local5;
if (typeof(indexOrLabel) == "string") {
_local5 = -1;
var _local4 = 0;
while (_local4 < length) {
if (com.mosesSupposes.fuse.FuseItem(this[_local4]).getLabel() == String(indexOrLabel)) {
_local5 = _local4;
break;
}
_local4++;
}
if (_local5 == -1) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("102", String(indexOrLabel));
}
}
} else {
_local5 = Number(indexOrLabel);
}
if ((_global.isNaN(_local5) == true) || (Math.abs(_local5) >= length)) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("103", String(indexOrLabel));
}
}
if (_local5 < 0) {
_local5 = Math.max(0, length + _local5);
}
if ((_local5 == _nIndex) && (arguments[1] === true)) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("104", String(indexOrLabel), _nIndex);
}
}
if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) {
com.mosesSupposes.fuse.Fuse(this[_nIndex]).removeEventListener("onComplete", _oDel1);
}
com.mosesSupposes.fuse.FuseItem(this[_nIndex]).stop();
_nIndex = _local5;
var _local7 = _sState;
_sState = "playing";
if (_local7 == "stopped") {
dispatchEvent({target:this, type:"onStart"});
}
playCurrentItem();
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output("skipTo:" + _local5);
}
}
function pause() {
if (_sState == "playing") {
com.mosesSupposes.fuse.FuseItem(this[_nIndex]).pause();
if (_nTimeCache != -1) {
_nTimeCache = _nTimeCache - getTimer();
clearInterval(_nDelay);
}
_sState = "paused";
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(("-Fuse#" + String(_nID)) + " pause.");
}
dispatchEvent({target:this, type:"onPause"});
}
}
function resume() {
if (_sState != "paused") {
return(undefined);
}
close();
_sState = "playing";
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(("-Fuse#" + String(_nID)) + " resume.");
}
dispatchEvent({target:this, type:"onResume"});
if (_nTimeCache != -1) {
clearInterval(_nDelay);
_nTimeCache = getTimer() + _nTimeCache;
_nDelay = setInterval(mx.utils.Delegate.create(this, playCurrentItem), _nTimeCache, true);
}
com.mosesSupposes.fuse.FuseItem(this[_nIndex]).pause(true);
}
function advance(wasTriggered, silentStop) {
var _local3 = false;
if (_nIndex == (length - 1)) {
var _local2 = length - 1;
while (_local2 > -1) {
if (com.mosesSupposes.fuse.FuseItem(this[_local2])._nPlaying > -1) {
return(undefined);
}
_local2--;
}
_local3 = true;
}
if ((wasTriggered == true) && (_local3 == false)) {
return(undefined);
}
if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) {
com.mosesSupposes.fuse.Fuse(this[_nIndex]).removeEventListener("onComplete", _oDel1);
}
if ((++_nIndex) >= length) {
stop(silentStop);
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(("-Fuse#" + String(_nID)) + " complete.");
}
dispatchEvent({target:this, type:"onComplete"});
if ((autoClear == true) || ((!(autoClear === false)) && (AUTOCLEAR == true))) {
destroy();
}
return(undefined);
}
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output((("-Fuse#" + String(_nID)) + " advance: ") + _nIndex);
}
dispatchEvent({target:this, type:"onAdvance"});
playCurrentItem();
}
function playCurrentItem(postDelay) {
clearInterval(_nDelay);
if (!(postDelay === true)) {
var _local2 = com.mosesSupposes.fuse.FuseItem(this[_nIndex]).evalDelay(scope) || 0;
if (_local2 > 0) {
_nTimeCache = getTimer() + (_local2 * 1000);
_nDelay = setInterval(mx.utils.Delegate.create(this, playCurrentItem), _local2 * 1000, true);
return(undefined);
}
}
_nTimeCache = (_nDelay = -1);
if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) {
if (_oDel1 == null) {
_oDel1 = mx.utils.Delegate.create(this, advance);
}
com.mosesSupposes.fuse.Fuse(this[_nIndex]).addEventListener("onComplete", _oDel1);
}
var _local3 = com.mosesSupposes.fuse.FuseItem(this[_nIndex]).startItem(_aDefaultTargs, scope);
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output((("-Fuse#" + String(_nID)) + " props tweened: ") + _local3);
}
}
function evtSetStart(o) {
setStartProps.apply(this, o.filter);
}
function startItem(targs, scope) {
if (target == null) {
target = (targs);
}
if (scope == null) {
}
start();
}
static function open(fuseOrID) {
var _local3 = _global.com.mosesSupposes.fuse.ZigoEngine;
if (_local3 == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("106");
return(null);
}
_local3.register(com.mosesSupposes.fuse.Fuse, com.mosesSupposes.fuse.FuseItem);
if (_oBuildMode == null) {
_oBuildMode = {curID:-1, prevID:-1, curGroup:null};
} else if ((_oBuildMode != null) && (_oBuildMode.curID > -1)) {
close();
}
if (fuseOrID != null) {
if (fuseOrID instanceof com.mosesSupposes.fuse.Fuse) {
_oBuildMode.curID = fuseOrID.id;
} else if (getInstance(fuseOrID) != null) {
_oBuildMode.curID = getInstance(fuseOrID).id;
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("107");
return(null);
}
} else {
_oBuildMode.curID = (new com.mosesSupposes.fuse.Fuse()).id;
}
_oBuildMode.prevID = _oBuildMode.curID;
return(getInstance(_oBuildMode.curID));
}
static function openGroup(fuseOrID) {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
open(fuseOrID);
} else if (_oBuildMode.curGroup != null) {
closeGroup();
}
_oBuildMode.curGroup = new Array();
return(getInstance(_oBuildMode.curID));
}
static function closeGroup() {
if ((_oBuildMode.curGroup == null) || (!((_oBuildMode != null) && (_oBuildMode.curID > -1)))) {
return(undefined);
}
getInstance(_oBuildMode.curID).push(_oBuildMode.curGroup);
_oBuildMode.curGroup = null;
}
static function close() {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
return(undefined);
}
if (_oBuildMode.curGroup != null) {
closeGroup();
}
_oBuildMode.curID = -1;
}
static function closeAndStart(setStart) {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
return(undefined);
}
var _local2 = getInstance(_oBuildMode.curID);
close();
_local2.start.apply(_local2, arguments);
}
static function startRecent(setStart) {
var _local2 = getInstance(_oBuildMode.prevID);
if (_local2 != null) {
_local2.start.apply(_local2, arguments);
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("108");
}
}
static function addCommand(commandOrScope, indexOrFunc, argument) {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
return(undefined);
}
var _local3 = ((_oBuildMode.curGroup != null) ? (_oBuildMode.curGroup) : (getInstance(_oBuildMode.curID)));
if (typeof(commandOrScope) == "string") {
if ((_oBuildMode.curGroup != null) && (commandOrScope != "delay")) {
com.mosesSupposes.fuse.FuseKitCommon.error("109", String(commandOrScope));
return(undefined);
}
var _local4 = "|delay|start|stop|pause|resume|skipTo|setStartProps|";
if ((_local4.indexOf(("|" + commandOrScope) + "|") == -1) || (((commandOrScope == "skipTo") || (commandOrScope == "delay")) && (indexOrFunc == undefined))) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("110", String(commandOrScope));
}
} else {
_local3.push({__buildMode:true, command:commandOrScope, commandargs:indexOrFunc});
}
} else {
_local3.push({__buildMode:true, scope:commandOrScope, func:indexOrFunc, args:arguments.slice(2)});
}
}
static function addBuildItem(args) {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
return(false);
}
var _local1 = ((_oBuildMode.curGroup != null) ? (_oBuildMode.curGroup) : (getInstance(_oBuildMode.curID)));
if ((args.length == 1) && (typeof(args[0]) == "object")) {
_local1.push(args[0]);
} else {
_local1.push({__buildMode:true, tweenargs:args});
}
return(true);
}
static function registerInstance(s) {
if (_aInstances == null) {
_aInstances = new Array();
}
return(_aInstances.push(s) - 1);
}
static function removeInstanceAt(id, isDestroyCall) {
if (isDestroyCall != true) {
com.mosesSupposes.fuse.Fuse(_aInstances[id]).destroy();
}
delete _aInstances[id];
}
static var registryKey = "fuse";
static var VERSION = com.mosesSupposes.fuse.FuseKitCommon.VERSION;
static var OUTPUT_LEVEL = 1;
static var AUTOCLEAR = false;
var autoClear = false;
var _sState = "stopped";
var _nDelay = -1;
var _nTimeCache = -1;
static var _aInstances = null;
static var _oBuildMode = null;
}
Symbol 515 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 516 MovieClip [__Packages.com.mosesSupposes.fuse.FuseItem] Frame 0
class com.mosesSupposes.fuse.FuseItem
{
static var _ZigoEngine, _aInstances;
var _nItemID, _nFuseID, _initObj, _aProfiles, _oElements, _oTemps, _sImage, _aTweens;
function FuseItem (id, o, fuseID) {
_ZigoEngine = _global.com.mosesSupposes.fuse.ZigoEngine;
_nItemID = id;
_nFuseID = fuseID;
_initObj = o;
_aProfiles = [];
_oElements = {aEvents:[]};
_oTemps = {};
if (!(o instanceof Array)) {
o = [o];
}
var _local18 = _global.com.mosesSupposes.fuse.Fuse;
_oTemps.outputLevel = ((_local18 != undefined) ? (_local18.OUTPUT_LEVEL) : (_global.com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL));
if (o.length == 1) {
var _local17 = o[0];
var _local9 = ((_local17.action != undefined) ? (_local17.action) : (_local17));
if ((_local9.__buildMode != true) && (_local9.command != undefined)) {
_oElements.command = _local9.command;
_oElements.scope = _local9.scope;
_oElements.args = _local9.args;
_sImage = " Elements:[" + ("command" + ((typeof(_local9.command) == "string") ? ((":\"" + _local9.command) + "\", ") : ", "));
if ((_local9.label != undefined) && (typeof(_local9.label) == "string")) {
_sImage = _sImage + (("label:\"" + _local9.label) + "\", ");
_oElements.label = _local9.label;
}
if (_local9.delay != undefined) {
_sImage = _sImage + "delay, ";
_oElements.delay = _local9.delay;
}
if ((_local9.func != undefined) && (_oTemps.outputLevel > 0)) {
com.mosesSupposes.fuse.FuseKitCommon.error("113");
}
return;
}
}
_oTemps.sImgS = "";
_oTemps.sImgE = "";
_oTemps.sImgB = "";
_oTemps.afl = 0;
_oTemps.ael = 0;
_oTemps.twDelayFlag = false;
_oTemps.nActions = o.length;
_oTemps.fuseProps = com.mosesSupposes.fuse.FuseKitCommon._fuseprops();
_oTemps.cbProps = com.mosesSupposes.fuse.FuseKitCommon._cbprops();
_oTemps.sUP = com.mosesSupposes.fuse.FuseKitCommon._underscoreable();
_oTemps.sCT = com.mosesSupposes.fuse.FuseKitCommon._cts();
_oTemps.bTriggerFound = false;
for (var _local16 in o) {
var _local3 = o[_local16];
if ((_local3.label != undefined) && (typeof(_local3.label) == "string")) {
_oElements.label = _local3.label;
}
var _local5;
var _local7;
var _local8 = Boolean((typeof(_local3.action) == "object") && (!(_local3.action instanceof Array)));
if (_local8 == true) {
_local5 = _local3.action;
_local7 = {delay:_local3.delay, target:_local3.target, addTarget:_local3.addTarget, label:_local3.label, trigger:_local3.trigger};
} else {
_local5 = _local3;
}
var _local4 = parseProfile(_local5, _local7);
if (_local4 != undefined) {
_aProfiles.unshift(_local4);
}
}
_sImage = "";
var _local15 = "";
if (_oElements.label != undefined) {
_local15 = _local15 + (("label:\"" + _oElements.label) + "\", ");
}
if (_oTemps.afl > 0) {
_local15 = _local15 + ((_oTemps.afl > 1) ? (_oTemps.afl + " callbacks, ") : "callback, ");
}
if ((_oElements.delay != undefined) || (_oTemps.twDelayFlag == true)) {
_local15 = _local15 + "delay, ";
}
if (_oTemps.bTriggerFound == true) {
_local15 = _local15 + "trigger, ";
}
if (_oTemps.ael > 0) {
_local15 = _local15 + ((_oTemps.ael > 1) ? (_oTemps.ael + " events, ") : "event, ");
}
if (_local15 != "") {
_sImage = _sImage + ((" Elements:[" + _local15.slice(0, -2)) + "]");
}
if (_oTemps.sImgS != "") {
_sImage = _sImage + ((" StartProps:[" + _oTemps.sImgS.slice(0, -2)) + "]");
}
if (_oTemps.sImgE != "") {
_sImage = _sImage + ((" Props:[" + _oTemps.sImgE.slice(0, -2)) + "]");
}
if (_oTemps.sImgB != "") {
_sImage = _sImage + ((" Simple Syntax Props:[" + _oTemps.sImgB.slice(0, -1)) + "]");
}
delete _oTemps;
}
static function doTween() {
for (var _local3 in arguments) {
if (typeof(arguments[_local3]) == "object") {
if (_aInstances == undefined) {
_aInstances = new Array();
}
var _local2 = new com.mosesSupposes.fuse.FuseItem(_aInstances.length, arguments[_local3], -1);
return(_local2.startItem());
}
}
}
function getLabel() {
return(_oElements.label);
}
function hasTriggerFired() {
return(_bTrigger == true);
}
function getInitObj() {
return(_initObj);
}
function getActiveTargets(targetList) {
if (_aTweens.length <= 0) {
return(targetList);
}
var _local3 = false;
for (var _local5 in _aTweens) {
for (var _local4 in targetList) {
if (targetList[_local4] == _aTweens[_local5].targ) {
_local3 = true;
break;
}
}
if (_local3 == false) {
targetList.unshift(_aTweens[_local5].targ);
}
}
return(targetList);
}
function toString() {
return(String((_sID() + ":") + _sImage));
}
function evalDelay(scope) {
var _local3 = _oElements.delay;
if (_local3 instanceof Function) {
_local3 = _local3.apply(((_oElements.delayscope != undefined) ? (_oElements.delayscope) : (scope)));
}
if (typeof(_local3) == "string") {
_local3 = parseClock(String(_local3));
}
if (_global.isNaN(Number(_local3)) == true) {
return(0);
}
return(Number(_local3));
}
function startItem(targs, scope) {
_ZigoEngine = _global.com.mosesSupposes.fuse.ZigoEngine;
var _local10 = _global.com.mosesSupposes.fuse.Fuse;
var _local5 = ((_local10 != undefined) ? (_local10.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
if (_oElements.command != null) {
var _local12 = "|start|stop|pause|resume|skipTo|setStartProps|";
var _local11 = _oElements.scope || (scope);
var _local8 = ((_oElements.command instanceof Function) ? (String(_oElements.command.apply(_local11))) : (String(_oElements.command)));
var _local6 = ((_oElements.args instanceof Function) ? (_oElements.args.apply(_local11)) : (_oElements.args));
if ((_local12.indexOf(("|" + _local8) + "|") == -1) || ((_local8 == "skipTo") && (_local6 == undefined))) {
if (_local5 > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("111", _local8);
}
} else {
_nPlaying = 1;
if (!(_local6 instanceof Array)) {
_local6 = ((_local6 == null) ? ([]) : ([_local6]));
}
dispatchRequest(String(_local8), _local6);
}
return(null);
}
if (_aTweens.length > 0) {
stop();
}
_ZigoEngine.addListener(this);
_nPlaying = 2;
var _local4 = null;
if (_aProfiles.length > 0) {
if (_ZigoEngine == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("112");
} else {
_local4 = doTweens(targs, scope, false);
}
}
_nPlaying = 1;
var _local3 = _oElements.aEvents;
for (var _local9 in _local3) {
if (((_local4 == null) && (_aTweens.length > 0)) && (_local3[_local9].skipLevel == 2)) {
continue;
}
fireEvents(_local3[_local9], scope, _local5);
}
if (((_local4 == null) && (_aTweens.length <= 0)) && (_nPlaying == 1)) {
if (_local5 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((("-" + _sID()) + " no tweens added - item done. [getTimer()=") + getTimer()) + "]");
}
complete();
}
return(_local4);
}
function stop() {
var _local2 = _nPlaying > -1;
_nPlaying = -1;
if (_local2 == true) {
onStop();
}
_ZigoEngine.removeListener(this);
}
static function removeInstance(id) {
com.mosesSupposes.fuse.FuseItem(_aInstances[id]).destroy();
delete _aInstances[id];
}
function onStop() {
_bStartSet = false;
for (var _local3 in _aTweens) {
var _local2 = _aTweens[_local3];
_local2.targ.removeListener(this);
_ZigoEngine.removeTween(_local2.targ, _local2.props);
delete _aTweens[_local3];
}
delete _aTweens;
_bTrigger = false;
}
function evtSetStart(o) {
if ((_sImage.indexOf("StartProps:") == -1) || (o.curIndex == _nItemID)) {
return(undefined);
}
if (o.all != true) {
var _local3 = false;
for (var _local4 in o.filter) {
if ((Number(o.filter[_local4]) == _nItemID) || (String(o.filter[_local4]) == _oElements.label)) {
_local3 = true;
}
}
if (_local3 == false) {
return(undefined);
}
}
doTweens(o.targs, o.scope, true);
_bStartSet = true;
}
function pause(resume) {
if (_nPlaying == -1) {
return(undefined);
}
_nPlaying = ((resume == true) ? 1 : 0);
for (var _local12 in _aTweens) {
var _local4 = _aTweens[_local12];
var _local2 = _local4.targ;
var _local3 = _local4.props;
if (resume == true) {
var _local5 = [];
var _local6 = _aTweens.length;
for (var _local8 in _local3) {
if (_ZigoEngine.isTweenPaused(_local2, _local3[_local8]) == false) {
_local5.push(_local3[_local8]);
}
}
if (_local5.length > 0) {
onTweenEnd({__zigoID__:_local4.targZID, props:_local5, isResume:true});
}
if (_aTweens.length == _local6) {
_local2.addListener(this);
_ZigoEngine.unpauseTween(_local2, _local4.props);
}
} else {
_local2.removeListener(this);
_ZigoEngine.pauseTween(_local2, _local4.props);
}
}
if ((resume == true) && (_aTweens.length <= 0)) {
complete();
} else if (resume == true) {
_ZigoEngine.addListener(this);
} else {
_ZigoEngine.removeListener(this);
}
}
function destroy() {
var _local3 = _nPlaying > -1;
_nPlaying = -1;
for (var _local5 in _aTweens) {
var _local2 = _aTweens[_local5];
_local2.targ.removeListener(this);
if (_local3 == true) {
_ZigoEngine.removeTween(_local2.targ, _local2.props);
}
delete _aTweens[_local5];
}
for (var _local4 in this) {
delete this[_local4];
}
}
function dispatchRequest(type, args) {
var _local4 = _global.com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID);
if ((!(args instanceof Array)) && (args != null)) {
args = new Array(args);
}
Function(_local4[type]).apply(_local4, args);
}
function _sID() {
var _local3;
if (_nFuseID == -1) {
_local3 = "One-off tween ";
} else {
var _local4 = _global.com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID);
_local3 = "Fuse#" + String(_nFuseID);
if (_local4.label != undefined) {
_local3 = _local3 + ((":\"" + _local4.label) + "\"");
}
}
_local3 = _local3 + (">Item#" + String(_nItemID));
if (_oElements.label != undefined) {
_local3 = _local3 + ((":\"" + _oElements.label) + "\"");
}
return(_local3);
}
function parseProfile(obj, aap) {
var _local39;
var _local2;
var _local8;
if (obj.__buildMode == true) {
if (obj.command != undefined) {
if (obj.command == "delay") {
_oElements.delay = obj.commandargs;
} else {
_oElements.command = obj.command;
_oElements.args = obj.commandargs;
}
}
if (obj.func != undefined) {
_oTemps.afl++;
_oElements.aEvents.unshift({f:obj.func, s:obj.scope, a:obj.args});
}
if (obj.tweenargs != undefined) {
_oTemps.sImgB = _oTemps.sImgB + (obj.tweenargs[1].toString() + ",");
return(obj);
}
return(null);
}
var _local3 = {delay:((aap.delay != undefined) ? (aap.delay) : (obj.delay)), ease:obj.ease, seconds:obj.seconds, event:obj.event, eventparams:obj.eventparams, skipLevel:((((typeof(obj.skipLevel) == "number") && (obj.skipLevel >= 0)) && (obj.skipLevel <= 2)) ? (obj.skipLevel) : (_ZigoEngine.SKIP_LEVEL)), oSP:{}, oEP:{}, oAFV:{}};
var _local22 = ((aap.trigger != undefined) ? (aap.trigger) : (obj.trigger));
if (_local22 != undefined) {
if (_oTemps.bTriggerFound == false) {
_local3.trigger = _local22;
_oTemps.bTriggerFound = true;
} else if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("126", _sID(), _local22);
}
}
if (_local3.delay == undefined) {
_local3.delay = obj.startAt;
}
if (_local3.ease == undefined) {
_local3.ease = obj.easing;
}
if (_local3.seconds == undefined) {
_local3.seconds = ((obj.duration != undefined) ? (obj.duration) : (obj.time));
}
if (aap.target != undefined) {
_local3.target = ((aap.target instanceof Array) ? (aap.target) : ([aap.target]));
} else if (obj.target != undefined) {
_local3.target = ((obj.target instanceof Array) ? (obj.target) : ([obj.target]));
}
if (obj.addTarget != undefined) {
_local3.addTarget = ((obj.addTarget instanceof Array) ? (obj.addTarget) : ([obj.addTarget]));
}
if (aap.addTarget != undefined) {
if (_local3.addTarget == undefined) {
_local3.addTarget = ((aap.addTarget instanceof Array) ? (aap.addTarget) : ([aap.addTarget]));
} else {
_local3.addTarget = ((_local3.addTarget instanceof Array) ? (_local3.addTarget.concat(aap.addTarget)) : (new Array(_local3.addTarget).concat(aap.addTarget)));
}
}
var _local15 = false;
for (_local2 in obj) {
var _local9 = obj[_local2];
if (_oTemps.cbProps.indexOf(("|" + _local2) + "|") > -1) {
if (_local2 != "skipLevel") {
_local3[_local2] = _local9;
}
continue;
}
if (_oTemps.fuseProps.indexOf(("|" + _local2) + "|") > -1) {
if (((_local2 == "command") && (_oTemps.nActions > 1)) && (_oTemps.outputLevel > 0)) {
com.mosesSupposes.fuse.FuseKitCommon.error("114", String(_local9));
}
continue;
}
if (typeof(_local9) == "object") {
var _local11 = ((_local9 instanceof Array) ? ([]) : ({}));
for (_local8 in _local9) {
_local11[_local8] = _local9[_local8];
}
_local9 = _local11;
}
var _local4;
var _local21;
if (_local2.indexOf("start") == 0) {
_local2 = _local2.slice(6);
_local4 = _local3.oSP;
} else {
_local4 = _local3.oEP;
}
if ((ADD_UNDERSCORES == true) && (_oTemps.sUP.indexOf(("|_" + _local2) + "|") > -1)) {
_local2 = "_" + _local2;
}
if (_oTemps.sCT.indexOf(("|" + _local2) + "|") > -1) {
var _local13 = (_local2 == "_tintPercent") && (_local4.colorProp.p == "_tint");
var _local12 = (_local2 == "_tint") && (_local4.colorProp.p == "_tintPercent");
if (((_local4.colorProp == undefined) || (_local13 == true)) || (_local12 == true)) {
if (_local13 == true) {
_local4.colorProp = {p:"_tint", v:{tint:_local4.colorProp.v, percent:_local9}};
} else if (_local12 == true) {
_local4.colorProp = {p:"_tint", v:{tint:_local9, percent:_local4.colorProp.v}};
} else {
_local4.colorProp = {p:_local2, v:_local9};
}
_local15 = true;
} else if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), _local2);
}
} else if (_local9 != null) {
if (((_local4 == _local3.oEP) && ((obj.controlX != undefined) || (obj.controlY != undefined))) && (((_local2.indexOf("control") == 0) || (_local2 == "_x")) || (_local2 == "_y"))) {
if (_local4._bezier_ == undefined) {
_local4._bezier_ = {};
}
if (_local2.indexOf("control") == 0) {
_local4._bezier_[_local2] = _local9;
} else {
_local4._bezier_[_local2.charAt(1)] = _local9;
}
} else {
_local4[_local2] = _local9;
}
_local15 = true;
}
}
if ((_local15 == false) && ((_local3.trigger != undefined) || (((_local3.delay != undefined) || (_local3.seconds != undefined)) && (((_local3.startfunc != undefined) || (_local3.updfunc != undefined)) || ((_local3.func != undefined) && (_oTemps.nActions > 1)))))) {
if (_ZigoEngine == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("116");
} else {
if (_local3.func != undefined) {
_oTemps.afl++;
}
if (_local3.event != undefined) {
_oTemps.ael++;
}
_local3._doTimer = true;
if (_local3.delay != undefined) {
_oTemps.twDelayFlag = true;
}
return(_local3);
}
}
if (_local15 == true) {
var _local17 = _local3.oEP.colorProp != undefined;
var _local7 = 0;
while (_local7 < 2) {
var _local4 = ((_local7 == 0) ? (_local3.oSP) : (_local3.oEP));
var _local6 = ((_local7 == 0) ? (_oTemps.sImgS) : (_oTemps.sImgE));
var _local10 = _local4.colorProp.p;
if (_local10 != undefined) {
_local4[_local10] = _local4.colorProp.v;
delete _local4.colorProp;
}
if (((_local4._xscale != undefined) || (_local4._scale != undefined)) && ((_local4._width != undefined) || (_local4._size != undefined))) {
var _local14 = ((_local4._xscale != undefined) ? "_xscale" : "_scale");
delete _local4[_local14];
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), _local14);
}
}
if (((_local4._yscale != undefined) || (_local4._scale != undefined)) && ((_local4._height != undefined) || (_local4._size != undefined))) {
var _local14 = ((_local4._yscale != undefined) ? "_yscale" : "_scale");
delete _local4[_local14];
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), _local14);
}
}
for (_local2 in _local4) {
if (_local6.indexOf(_local2 + ", ") == -1) {
_local6 = _local6 + (_local2 + ", ");
}
if (_local4 == _local3.oSP) {
if ((_local3.oEP[_local2] == undefined) && (!((_local2 == _local10) && (_local17 == true)))) {
_local3.oAFV[_local2] = true;
_local3.oEP[_local2] = [];
}
}
}
((_local7 == 0) ? ((_oTemps.sImgS = _local6)) : ((_oTemps.sImgE = _local6)));
_local7++;
}
return(_local3);
}
if ((_local3.delay != undefined) && (_oTemps.nActions == 1)) {
_oElements.delay = _local3.delay;
_oElements.delayscope = _local3.scope;
}
if (_local3.event != undefined) {
_oTemps.ael++;
_oElements.aEvents.unshift({e:_local3.event, s:_local3.scope, ep:_local3.eventparams, skipLevel:_local3.skipLevel});
}
var _local23 = _oElements.aEvents.length;
if (_local3.easyfunc != undefined) {
_oElements.aEvents.push({cb:_local3.easyfunc, s:_local3.scope, skipLevel:_local3.skipLevel});
}
if (_local3.func != undefined) {
_oElements.aEvents.push({f:_local3.func, s:_local3.scope, a:_local3.args, skipLevel:_local3.skipLevel});
}
_oTemps.afl = _oTemps.afl + (_oElements.aEvents.length - _local23);
return(undefined);
}
function doTweens(targs, defaultScope, setStart) {
if (_aTweens == null) {
_aTweens = [];
}
var _local66 = _global.com.mosesSupposes.fuse.Fuse;
var _local19 = ((_local66 != undefined) ? (_local66.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
var _local27 = "";
var _local65 = 0;
var _local7;
var _local6;
var _local4;
if (_aProfiles[0].__buildMode == true) {
var _local48 = 0;
while (_local48 < _aProfiles.length) {
var _local29 = _aProfiles[_local48].tweenargs;
if ((_local29[6].cycles === 0) || (_local29[6].cycles.toUpperCase() == "LOOP")) {
delete _local29[6].cycles;
if (_local19 > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("117", _sID());
}
}
var _local31 = _ZigoEngine.doTween.apply(_ZigoEngine, _local29);
var _local15 = ((_local31 == null) ? ([]) : (_local31.split(",")));
if (_local15.length > 0) {
_aTweens.push({targ:_local29[0], props:_local15, targZID:_local29[0].__zigoID__});
_local29[0].addListener(this);
for (_local6 in _local15) {
if (_local27.indexOf(_local15[_local6] + ",") == -1) {
_local27 = _local27 + (_local15[_local6] + ",");
}
}
}
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((("\n-" + _sID()) + " TWEEN (simple syntax)\n\ttargets:[") + _local29[0]) + "]\n\tprops sent:[") + _local29[1]) + "]");
}
_local48++;
}
return(((_local27 == "") ? null : (_local27.slice(0, -1))));
}
var _local67 = (_bStartSet != true) && ((setStart == true) || (_sImage.indexOf("StartProps:") > -1));
var _local48 = 0;
for ( ; _local48 < _aProfiles.length ; _local48++) {
var _local3 = _aProfiles[_local48];
var _local9 = defaultScope;
if (_local3.scope != undefined) {
_local9 = ((_local3.scope instanceof Function) ? (_local3.scope.apply(_local9)) : (_local3.scope));
}
var _local20;
if (_local3.event != undefined) {
var _local45 = ((_local3.event instanceof Function) ? (_local3.event.apply(_local9)) : (_local3.event));
var _local56 = ((_local3.eventparams instanceof Function) ? (_local3.eventparams.apply(_local9)) : (_local3.eventparams));
if ((_local45 != undefined) && (_local45.length > 0)) {
_local20 = {e:_local45, ep:_local56, s:_local9};
}
}
var _local51 = ((_local3.skipLevel instanceof Function) ? (_local3.skipLevel.apply(_local9)) : (_local3.skipLevel));
var _local33 = {skipLevel:_local51};
var _local8 = {skipLevel:_local51};
if (_local3.cycles != undefined) {
var _local46 = ((_local3.cycles instanceof Function) ? (_local3.cycles.apply(_local9)) : (_local3.cycles));
if (((Number(_local46) == 0) || (String(_local46).toUpperCase() == "LOOP")) && (_local66 != undefined)) {
delete _local3.cycles;
if (_local19 > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("117", _sID());
}
} else {
_local33.cycles = (_local8.cycles = _local46);
}
}
var _local37 = "";
if ((((_local3.easyfunc != undefined) || (_local3.func != undefined)) || (_local3.startfunc != undefined)) || (_local3.updfunc != undefined)) {
for (_local7 in _local3) {
if (_local7.indexOf("func") > -1) {
_local8[_local7] = _local3[_local7];
} else if (((_local7 == "startscope") || (_local7 == "updscope")) || (_local7.indexOf("args") > -1)) {
_local8[_local7] = ((_local3[_local7] instanceof Function) ? (Function(_local3[_local7]).apply(_local9)) : (_local3[_local7]));
}
}
if (_local9 != undefined) {
if ((_local8.func != undefined) && (_local8.scope == undefined)) {
_local8.scope = _local9;
}
if ((_local8.updfunc != undefined) && (_local8.updscope == undefined)) {
_local8.updscope = _local9;
}
if ((_local8.startfunc != undefined) && (_local8.startscope == undefined)) {
_local8.startscope = _local9;
}
}
}
for (_local6 in _local8) {
_local37 = _local37 + (((_local6 + ":") + _local8[_local6]) + "|");
}
var _local42 = _local3.trigger === true;
var _local17;
if ((_local42 == false) && (_local3.trigger != undefined)) {
_local17 = ((_local3.trigger instanceof Function) ? (_local3.trigger.apply(_local9)) : (_local3.trigger));
if (typeof(_local17) == "string") {
_local17 = ((String(_local17).charAt(0) == "-") ? (-parseClock(String(_local17).slice(1))) : (parseClock(String(_local17))));
}
if (_global.isNaN(_local17) == true) {
_local17 = undefined;
}
}
var _local12 = [];
var _local43 = ((_local3.target == undefined) ? (targs) : (_local3.target));
var _local21 = [];
var _local47 = false;
for (_local7 in _local43) {
var _local5 = _local43[_local7];
_local21 = _local21.concat(((_local5 instanceof Function) ? (_local5.apply(_local9)) : (_local5)));
}
for (_local7 in _local3.addTarget) {
var _local5 = _local3.addTarget[_local7];
_local21 = _local21.concat(((_local5 instanceof Function) ? (_local5.apply(_local9)) : (_local5)));
}
for (_local7 in _local21) {
var _local5 = _local21[_local7];
if (_local5 != null) {
var _local35 = false;
for (_local6 in _local12) {
if (_local12[_local6] == _local5) {
_local35 = true;
break;
}
}
if (_local35 == false) {
_local12.unshift(_local5);
}
} else {
_local47 = true;
}
}
var _local52 = (_local12.length == 0) && (_local3._doTimer != true);
var _local49 = (_local3._doTimer == true) && (_local12.length == 0);
if ((_local47 == true) || (_local52 == true)) {
_local65++;
if (_local52 == true) {
continue;
}
} else {
if (_local67 == true) {
for (_local7 in _local12) {
var _local30 = _local12[_local7];
var _local28 = [];
var _local23 = [];
if (setStart == true) {
for (var _local57 in _local3.oEP) {
_global.com.mosesSupposes.fuse.FuseFMP.getFilterProp(_local30, _local57, true);
}
}
for (var _local58 in _local3.oSP) {
var _local5 = _local3.oSP[_local58];
if (_local5 instanceof Function) {
_local5 = _local5.apply(_local9);
}
if ((_local5 === true) || (_local5 === false)) {
_local30[_local58] = _local5;
if (_local3.oAFV[_local58] == true) {
for (_local4 in _local3.oEP[_local58]) {
if (_local3.oEP[_local58][_local4].targ == _local30) {
_local3.oEP[_local58].splice(Number(_local4), 1);
}
}
_local3.oEP[_local58].push({targ:_local30, val:"IGNORE"});
}
continue;
}
if (((_local3.oAFV[_local58] == true) && (!((_local58 == "_colorReset") && (_local5 == 100)))) && (!((_local58 == "_tintPercent") && (_local5 == 0)))) {
var _local16;
if ((_local58 == "_tint") || (_local58 == "_colorTransform")) {
_local16 = _ZigoEngine.getColorTransObj();
} else if ("|_alpha|_contrast|_invertColor|_tintPercent|_xscale|_yscale|_scale|".indexOf(("|" + _local58) + "|") > -1) {
_local16 = 100;
} else if ("|_brightness|_brightOffset|_colorReset|_rotation|".indexOf(("|" + _local58) + "|") > -1) {
_local16 = 0;
} else {
var _local25 = _global.com.mosesSupposes.fuse.FuseFMP.getFilterProp(_local30, _local58, true);
if (_local25 != null) {
_local16 = _local25;
} else {
_local16 = ((_global.isNaN(_local30[_local58]) == false) ? _local30[_local58] : 0);
}
}
for (_local4 in _local3.oEP[_local58]) {
if (_local3.oEP[_local58][_local4].targ == _local30) {
_local3.oEP[_local58].splice(Number(_local4), 1);
}
}
_local3.oEP[_local58].push({targ:_local30, val:_local16});
}
if (typeof(_local5) == "object") {
var _local24 = ((_local5 instanceof Array) ? ([]) : ({}));
for (_local4 in _local5) {
_local24[_local4] = ((_local5[_local4] instanceof Function) ? Function(_local5[_local4]).apply(_local9) : _local5[_local4]);
}
_local5 = _local24;
}
_local28.push(_local58);
_local23.push(_local5);
}
if (_local23.length > 0) {
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output((((("-" + _sID()) + " ") + _local30) + " SET STARTS: ") + [("[" + _local28) + "]", ("[" + _local23) + "]"]);
}
_ZigoEngine.doTween(_local30, _local28, _local23, 0);
}
}
}
if (setStart == true) {
} else {
var _local10;
var _local13;
var _local11;
var _local36 = false;
var _local44 = ((_local49 == false) ? (_local12) : ([0]));
for (_local7 in _local44) {
var _local18 = _local3.ease;
if (_local18 instanceof Function) {
var _local38 = Function(_local18);
if (typeof(_local38(1, 1, 1, 1)) != "number") {
_local18 = _local38.apply(_local9);
}
}
_local10 = ((_local3.seconds instanceof Function) ? (_local3.seconds.apply(_local9)) : (_local3.seconds));
if (_local10 != undefined) {
if (typeof(_local10) == "string") {
_local10 = parseClock(String(_local10));
}
if (_global.isNaN(_local10) == true) {
_local10 = _ZigoEngine.DURATION || 0;
}
}
_local13 = ((_local3.delay instanceof Function) ? (_local3.delay.apply(_local9)) : (_local3.delay));
if (typeof(_local13) == "string") {
_local13 = parseClock(String(_local13));
}
if ((_local13 == null) || (_global.isNaN(_local13) == true)) {
_local13 = 0;
}
if (_local49 == true) {
continue;
}
var _local30 = _local44[_local7];
var _local22 = [];
var _local14 = [];
var _local40 = 0;
for (var _local58 in _local3.oEP) {
var _local5 = _local3.oEP[_local58];
if (_local5 instanceof Function) {
_local5 = _local5.apply(_local9);
}
if ((_local5 === true) || (_local5 === false)) {
if (_local11 == undefined) {
_local11 = {};
}
_local11[_local58] = _local5;
_local40++;
continue;
}
if (typeof(_local5) == "object") {
if (_local5[0].targ != undefined) {
for (_local4 in _local5) {
if (_local5[_local4].targ == _local30) {
_local5 = _local5[_local4].val;
break;
}
}
} else {
var _local24 = ((_local5 instanceof Array) ? [] : {});
for (_local4 in _local5) {
_local24[_local4] = ((_local5[_local4] instanceof Function) ? Function(_local5[_local4]).apply(_local9) : _local5[_local4]);
}
_local5 = _local24;
}
}
if (_local5 != "IGNORE") {
_local22.push(_local58);
_local14.push(_local5);
}
}
var _local15 = [];
if (_local14.length > 0) {
var _local31 = _ZigoEngine.doTween(_local30, _local22, _local14, _local10, _local18, _local13, _local8);
if (_local31 != null) {
_local15 = _local31.split(",");
}
if (_local15.length > 0) {
var _local32 = {targ:_local30, props:_local15, bools:_local11, targZID:_local30.__zigoID__};
if (_local36 == false) {
_local8 = _local33;
_local32.event = _local20;
_local11 = undefined;
_local20 = _local11;
_local32.trigger = _local42;
}
_aTweens.push(_local32);
_local30.addListener(this);
_local36 = true;
}
for (_local6 in _local15) {
if (_local27.indexOf(_local15[_local6] + ",") == -1) {
_local27 = _local27 + (_local15[_local6] + ",");
}
}
if (_local19 == 3) {
var _local39 = _local22.toString();
if (_local15.length > _local22.length) {
_local39 = _local39 + (("\n\t[NO-CHANGE PROPS DISCARDED. KEPT:" + _local31) + "]");
}
var _local26 = "";
for (_local6 in _local14) {
_local26 = (((typeof(_local14[_local6]) == "string") ? (("\"" + _local14[_local6]) + "\"") : _local14[_local6]) + ", ") + _local26;
}
com.mosesSupposes.fuse.FuseKitCommon.output((("\n-" + _sID()) + " TWEEN:\n") + [("\t[getTimer():" + getTimer()) + "] ", "targ: " + _local30, "props: " + _local39, "endVals: " + _local26, "time: " + ((_local10 == undefined) ? (_ZigoEngine.DURATION) : (_local10)), "easing: " + ((_local18 == undefined) ? (_ZigoEngine.EASING) : (_local18)), "delay: " + ((_local13 == undefined) ? 0 : (_local13)), "callbacks: " + ((_local37 == "") ? "(none)" : (_local37))].join("\n\t"));
}
}
}
if ((_local10 == undefined) || (_global.isNaN(_local10) == true)) {
_local10 = 0;
}
var _local34 = _local13 + _local10;
if (_local17 != undefined) {
if (_local17 < 0) {
_local17 = _local17 + _local34;
}
if ((_local17 > 0) && ((_local34 == 0) || (_local17 < _local34))) {
if (_local34 == 0) {
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((((((("-" + _sID()) + " graft a timed trigger (") + _local17) + " sec). [has callback:") + (_local8 != _local33)) + ", has event:") + (_local20 != undefined)) + ", has booleans:") + (_local11 != undefined)) + "]");
}
doTimerTween(null, _local17, 0, true, _local11, _local8, _local20);
_local36 = true;
} else {
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((("-" + _sID()) + " graft a timed trigger (") + _local17) + " sec).");
}
doTimerTween(null, _local17, 0, true);
}
} else if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((("-" + _sID()) + " timed trigger discarded: out of range. [") + _local17) + "/") + _local34) + "]");
}
}
if ((_local36 == false) && (((_local8 != _local33) || (_local20 != undefined)) || (_local11 != undefined))) {
if ((_local51 == 0) && (_local34 > 0)) {
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((((((("-" + _sID()) + " no props tweened - graft a delay (") + _local34) + " sec). [has callback:") + (_local8 != _local33)) + ", has event:") + (_local20 != undefined)) + ", has booleans:") + (_local11 != undefined)) + "]");
}
doTimerTween(_local12, _local10, _local13, _local42, _local11, _local8, _local20);
} else {
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((((("-" + _sID()) + " no props tweened, executing nontween items. [has callback:") + (_local8 != _local33)) + ", has event:") + (_local20 != undefined)) + ", has booleans:") + (_local11 != undefined)) + "]");
}
for (_local7 in _local12) {
for (_local6 in _local11) {
_local12[_local7][_local6] = _local11[_local6];
}
}
if (_local51 < 2) {
if (_local8 != undefined) {
if (_local8.startfunc != undefined) {
fireEvents({f:_local8.startfunc, s:_local8.startscope, a:_local8.startargs}, _local9, _local19);
}
if (_local8.updfunc != undefined) {
fireEvents({f:_local8.updfunc, s:_local8.updscope, a:_local8.updargs}, _local9, _local19);
}
if ((_local8.startfunc != undefined) || (_local8.easyfunc != undefined)) {
fireEvents({f:_local8.func, s:_local8.scope, a:_local8.args, cb:_local8.easyfunc}, _local9, _local19);
}
}
if (_local20 != undefined) {
fireEvents(_local20);
}
}
}
}
}
}
}
if ((_local65 > 0) && (_local19 > 0)) {
if ((_local65 == _aProfiles.length) && (_local27 == "")) {
com.mosesSupposes.fuse.FuseKitCommon.error("118", _sID(), setStart);
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("119", _local67, _local65, _sID());
}
}
return(((_local27 == "") ? null : (_local27.slice(0, -1))));
}
function doTimerTween(actualTargets, duration, delay, trigger, booleans, callback, event) {
var _local2 = {__TweenedDelay:0};
_ZigoEngine.initializeTargets(_local2);
_aTweens.push({targ:_local2, props:["__TweenedDelay"], trigger:trigger, bools:booleans, event:event, actualTargs:actualTargets, targZID:_local2.__zigoID__});
_ZigoEngine.doTween(_local2, "__TweenedDelay", 1, duration, null, delay, callback);
_local2.addListener(this);
}
function onTweenEnd(o) {
if (_nPlaying < 1) {
return(undefined);
}
var _local16 = _global.com.mosesSupposes.fuse.Fuse;
var _local7 = ((_local16 != undefined) ? (_local16.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
if (_local7 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((((("-" + _sID()) + " onTweenEnd: ") + ((typeof(o.target) == "movieclip") ? (o.target._name) : (typeof(o.target)))) + "[") + o.props) + "] [getTimer()=") + getTimer()) + "]");
}
var _local14 = ((!(o.__zigoID__ === undefined)) ? (o.__zigoID__) : (o.target.__zigoID__));
for (var _local15 in _aTweens) {
var _local3 = _aTweens[_local15];
if (_local3.targZID == _local14) {
for (var _local13 in o.props) {
var _local4 = _local3.props;
for (var _local12 in _local4) {
var _local5 = _local4[_local12];
if (_local5 == o.props[_local13]) {
if (_nPlaying == 2) {
if (_local7 > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("120", _sID(), _local5);
}
}
_local4.splice(Number(_local12), 1);
if (_local4.length == 0) {
if (_local3.event != undefined) {
fireEvents(_local3.event, _local3.event.s, _local7);
}
if (_local5 == "__TweenedDelay") {
_ZigoEngine.deinitializeTargets(_local3.targ);
delete _local3.targ;
for (var _local10 in _local3.bools) {
for (var _local9 in _local3.actualTargs) {
_local3.actualTargs[_local9][_local10] = _local3.bools[_local10];
}
}
} else {
var _local6 = false;
for (var _local10 in _local3.bools) {
_local3.targ[_local10] = _local3.bools[_local10];
}
for (var _local11 in _aTweens) {
if ((_local11 != _local15) && (_aTweens[_local11].targ == _local3.targ)) {
_local6 = true;
}
}
if (_local6 == false) {
_local3.targ.removeListener(this);
}
}
if (_local3.trigger == true) {
if (((_bTrigger == false) && (o.isResume != true)) && (_aTweens.length > 1)) {
_bTrigger = true;
if (_local7 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(("-" + _sID()) + " trigger fired!");
}
var breakChainInt;
breakChainInt = setInterval(function (fi) {
clearInterval(breakChainInt);
fi.dispatchRequest("advance", [false]);
}, 1, this);
}
}
_aTweens.splice(Number(_local15), 1);
}
}
}
}
}
}
if (((_aTweens.length == 0) && (_nPlaying == 1)) && (o.isResume != true)) {
complete(_local7);
}
}
function onTweenInterrupt(o) {
if (_nPlaying == -1) {
return(undefined);
}
var _local3 = o.__zigoID__;
var _local7 = _global.com.mosesSupposes.fuse.Fuse;
var _local6 = ((_local7 != undefined) ? (_local7.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
if (_local6 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((((_sID() + " property interrupt caught! ") + o.target) + ",__zigoID__:") + _local3) + "[") + o.props) + "].");
}
if ((_local3 == undefined) || (typeof(o.target) != "string")) {
onTweenEnd(o);
return(undefined);
}
for (var _local4 in _aTweens) {
if (_aTweens[_local4].targZID == _local3) {
_aTweens.splice(Number(_local4), 1);
}
}
if ((_aTweens.length == 0) && (_nPlaying == 1)) {
complete(_local6);
}
}
function complete(outputLevel) {
var trigger = _bTrigger;
stop();
if (trigger != true) {
if (outputLevel == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(("-" + _sID()) + " complete.");
}
}
var breakChainInt;
breakChainInt = setInterval(function (fi) {
clearInterval(breakChainInt);
fi.dispatchRequest("advance", [trigger]);
}, 1, this);
}
function parseClock(str) {
if (str.indexOf(":") != 2) {
com.mosesSupposes.fuse.FuseKitCommon.error("121");
return(_ZigoEngine.DURATION || 0);
}
var _local4 = 0;
var _local3 = str.split(":");
_local3.reverse();
var _local2;
if ((String(_local3[0]).length == 2) && (_global.isNaN(_local2 = Math.abs(Number(_local3[0]))) == false)) {
_local4 = _local4 + (_local2 / 100);
}
if (((String(_local3[1]).length == 2) && (_global.isNaN(_local2 = Math.abs(Number(_local3[1]))) == false)) && (_local2 < 60)) {
_local4 = _local4 + _local2;
}
if (((String(_local3[2]).length == 2) && (_global.isNaN(_local2 = Math.abs(Number(_local3[2]))) == false)) && (_local2 < 60)) {
_local4 = _local4 + (_local2 * 60);
}
if (((String(_local3[3]).length == 2) && (_global.isNaN(_local2 = Math.abs(Number(_local3[3]))) == false)) && (_local2 < 24)) {
_local4 = _local4 + (_local2 * 3600);
}
return(_local4);
}
function fireEvents(o, scope, outputLevel) {
var s = ((o.s != null) ? (o.s) : (scope));
if (o.e == undefined) {
if ((typeof(o.cb) == "string") && (o.cb.length > 0)) {
var parsed = _global.com.mosesSupposes.fuse.Shortcuts.parseStringTypeCallback(o.cb);
if (parsed.func != undefined) {
fireEvents({s:parsed.scope, f:parsed.func, a:parsed.args});
} else if (outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("122");
}
}
if (o.f == undefined) {
return(undefined);
}
var f = o.f;
if ((typeof(o.f) == "string") && (s[o.f] == undefined)) {
if (_global[o.f] != undefined) {
f = _global[o.f];
}
if (_level0[o.f] != undefined) {
f = _level0[o.f];
}
}
if (typeof(f) != "function") {
if (typeof(s[o.f]) == "function") {
f = s[o.f];
} else {
f = eval (o.f);
}
}
if (f == undefined) {
if (outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("123");
}
} else {
var args = ((o.a instanceof Function) ? (o.a.apply(s)) : (o.a));
if ((args != undefined) && (!(args instanceof Array))) {
args = [args];
}
f.apply(s, args);
}
} else {
var type = ((o.e instanceof Function) ? (String(o.e.apply(s))) : (String(o.e)));
if ((type != "undefined") && (type.length > 0)) {
if ("|onStart|onStop|onPause|onResume|onAdvance|onComplete|".indexOf(("|" + type) + "|") > -1) {
if (outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("124", type);
}
} else {
var fuse = _global.com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID);
var evObj = ((o.ep instanceof Function) ? (o.ep.apply(s)) : (o.ep));
if ((evObj == null) || (typeof(evObj) != "object")) {
evObj = {};
}
evObj.target = fuse;
evObj.type = type;
fuse.dispatchEvent.call(fuse, evObj);
}
} else if (outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("125", _sID());
}
}
}
static var registryKey = "fuseItem";
static var ADD_UNDERSCORES = true;
var _nPlaying = -1;
var _bStartSet = false;
var _bTrigger = false;
}
Symbol 517 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 518 MovieClip [__Packages.actionscript.Interface] Frame 0
class actionscript.Interface extends MovieClip
{
var _x, _y, game, _parent, info2_txt, info_txt, w2, w3, w4, w5, upgrade_btn, sell_btn, life_btn, _w1Desc, _w2Desc, _w3Desc, _w4Desc, _w5Desc, _weaponSelected, _money, _lives, _score, _hours, _minutes, _seconds, w1, money_txt, lives_txt, level_txt, score_txt, minutes_txt, hours_txt, menu_btn, credits_mc, lives_mc, level_mc, time_mc, pause_btn, sfx_btn, music_btn, seconds_txt;
function Interface () {
super();
_x = 460;
_y = 0;
game = _parent;
info_txt.html = (info2_txt.html = true);
info_txt.wordWrap = (info2_txt.html = true);
info_txt.multiline = (info2_txt.html = true);
info2_txt.html = (info2_txt.html = true);
info2_txt.wordWrap = (info2_txt.html = true);
info2_txt.multiline = (info2_txt.html = true);
init();
}
function init() {
w2.gotoAndStop("locked");
w3.gotoAndStop("locked");
w4.gotoAndStop("locked");
w5.gotoAndStop("locked");
upgrade_btn.gotoAndStop("idle");
sell_btn.gotoAndStop("idle");
life_btn.gotoAndStop("idle");
var _local3 = game.textMessages;
_w1Desc = _local3._beansDesc;
_w2Desc = _local3._friesDesc;
_w3Desc = _local3._pepsiDesc;
_w4Desc = _local3._wingsDesc;
_w5Desc = _local3._burgerDesc;
_weaponSelected = false;
_money = game._money;
_lives = game._lives;
_score = 0;
_hours = 0;
_minutes = 0;
_seconds = 0;
var _local2 = 1;
while (_local2 <= 5) {
this["w" + _local2]._active = false;
_local2++;
}
life_btn._active = false;
_local2 = 2;
while (_local2 <= 5) {
this["w" + _local2]._available = false;
_local2++;
}
w1._available = true;
setText(money_txt, _money);
setText(lives_txt, _lives);
setText(level_txt, game._lvl);
setText(score_txt, _score);
setText(minutes_txt, "00");
setText(hours_txt, "00");
initButtonStates();
checkButtons();
}
function initButtonStates() {
var _local2 = game.textMessages;
w1.onPress = actionscript.Proxy.create(this, createWeapon, w1);
w1.onRollOver = actionscript.Proxy.create(this, showInfo, w1);
w1.useHandCursor = true;
w2.onPress = actionscript.Proxy.create(this, createWeapon, w2);
w2.onRollOver = actionscript.Proxy.create(this, showInfo, w2);
w2.useHandCursor = true;
w3.onPress = actionscript.Proxy.create(this, createWeapon, w3);
w3.onRollOver = actionscript.Proxy.create(this, showInfo, w3);
w3.useHandCursor = true;
w4.onPress = actionscript.Proxy.create(this, createWeapon, w4);
w4.onRollOver = actionscript.Proxy.create(this, showInfo, w4);
w4.useHandCursor = true;
w5.onPress = actionscript.Proxy.create(this, createWeapon, w5);
w5.onRollOver = actionscript.Proxy.create(this, showInfo, w5);
w5.useHandCursor = true;
life_btn.onPress = actionscript.Proxy.create(this, addLife);
life_btn.onRollOver = actionscript.Proxy.create(this, showInfo, life_btn);
life_btn.useHandCursor = true;
menu_btn.onPress = actionscript.Proxy.create(this, callMenu);
menu_btn.onRollOver = actionscript.Proxy.create(this, setText, info_txt, _local2._menuOver);
menu_btn.useHandCursor = true;
credits_mc.onRollOver = actionscript.Proxy.create(this, setText, info_txt, _local2._creditsOver);
lives_mc.onRollOver = actionscript.Proxy.create(this, setText, info_txt, _local2._livesOver);
level_mc.onRollOver = actionscript.Proxy.create(this, setText, info_txt, _local2._levelOver);
time_mc.onRollOver = actionscript.Proxy.create(this, setText, info_txt, _local2._timeOver);
upgrade_btn.onRollOver = actionscript.Proxy.create(this, setText, info_txt, _local2._upgradeOver);
upgrade_btn.useHandCursor = true;
sell_btn.onRollOver = actionscript.Proxy.create(this, setText, info_txt, _local2._sellOver);
sell_btn.useHandCursor = true;
pause_btn.onPress = actionscript.Proxy.create(this, pauseResume);
pause_btn.useHandCursor = true;
sfx_btn.onPress = actionscript.Proxy.create(this, toggleSfx);
sfx_btn.useHandCursor = true;
music_btn.onPress = actionscript.Proxy.create(this, toggleMusic);
music_btn.useHandCursor = true;
for (var _local3 in this) {
if (((this[_local3] instanceof MovieClip) && (this[_local3] != _parent)) && (this[_local3].onRollOver != undefined)) {
this[_local3].onRollOut = actionscript.Proxy.create(this, setText, info_txt, "");
}
}
}
function toggleSfx() {
if (game._sfxOn) {
sfx_btn.gotoAndStop("off");
game._sfxOn = false;
} else {
sfx_btn.gotoAndStop("on");
game._sfxOn = true;
}
}
function toggleMusic() {
if (game._musicOn) {
stopAllSounds();
music_btn.gotoAndStop("off");
game._musicOn = false;
} else {
game.startSound(game._loopSoundName, true);
music_btn.gotoAndStop("on");
game._musicOn = true;
}
}
function pauseResume() {
if (game._gamePaused) {
pause_btn.gotoAndStop("pause");
game.resumeGame();
} else {
pause_btn.gotoAndStop("resume");
game.pauseGame();
var _local2 = game.textMessages;
menu_btn.onPress = actionscript.Proxy.create(this, callMenu);
menu_btn.onRollOver = actionscript.Proxy.create(this, setText, info_txt, _local2._menuOver);
pause_btn.onPress = actionscript.Proxy.create(this, pauseResume);
pause_btn.useHandCursor = true;
menu_btn.useHandCursor = true;
}
}
function resumeGame() {
}
function deleteButtonStates() {
for (var _local2 in this) {
if ((this[_local2] instanceof MovieClip) && (this[_local2] != _parent)) {
this[_local2].useHandCursor = false;
this[_local2].onRelease = undefined;
this[_local2].onPress = undefined;
this[_local2].onRollOver = undefined;
this[_local2].onRollOut = undefined;
}
}
}
function callMenu() {
pause_btn.onPress = undefined;
pause_btn.gotoAndStop("pause");
game.callMenu();
}
function showInfo(mW) {
var _local2 = game.wValue;
var _local3 = game.unlockLevel;
if ((!mW._available) && (mW != life_btn)) {
switch (mW) {
case w2 :
setText(info_txt, ((("Fries: " + _local2.Fries1) + " CREDITS<br><br>This weapon will be available at Level ") + _local3.Fries) + "!");
break;
case w3 :
setText(info_txt, ((("Pepsi: " + _local2.Pepsi1) + " CREDITS<br><br>This weapon will be available at Level ") + _local3.Pepsi) + "!");
break;
case w4 :
setText(info_txt, ((("Chicken Wings: " + _local2.Wings1) + " CREDITS<br><br>This weapon will be available at Level ") + _local3.Wings) + "!");
break;
case w5 :
setText(info_txt, ((("Big Daddy Burger: " + _local2.Burger1) + " CREDITS<br><br>This weapon will be available at Level ") + _local3.Burger) + "!");
break;
}
return(undefined);
}
switch (mW) {
case w1 :
setText(info_txt, (("Beans: " + _local2.Beans1) + " CREDITS <br>") + _w1Desc);
break;
case w2 :
setText(info_txt, (("Fries: " + _local2.Fries1) + " CREDITS<br>") + _w2Desc);
break;
case w3 :
setText(info_txt, (("Pepsi: " + _local2.Pepsi1) + " CREDITS<br>") + _w3Desc);
break;
case w4 :
setText(info_txt, (("Chicken Wings: " + _local2.Wings1) + " CREDITS<br>") + _w4Desc);
break;
case w5 :
setText(info_txt, (("Big Daddy Burger: " + _local2.Burger1) + " CREDITS<br>") + _w5Desc);
break;
case life_btn :
if (_lives < game._maxLives) {
setText(info_txt, ("LIFE:<br>Buy 1 life for " + game._lifeValue) + " CREDITS.");
} else {
setText(info_txt, ("Maximum " + game._maxLives) + " lives.");
}
break;
}
}
function addSeconds() {
_seconds++;
if (_seconds == 60) {
_seconds = 0;
_minutes++;
if (_minutes == 60) {
_minutes = 0;
_hours++;
if (_hours < 10) {
setText(hours_txt, "0" + _hours);
} else {
setText(hours_txt, _hours);
}
}
}
if (_minutes < 10) {
setText(minutes_txt, "0" + _minutes);
} else {
setText(minutes_txt, _minutes);
}
if (_seconds < 10) {
setText(seconds_txt, "0" + _seconds);
} else {
setText(seconds_txt, _seconds);
}
}
function createWeapon(mW) {
if (game.currentWeapon != undefined) {
closeWeaponOptions(game.currentWeapon);
}
if (((game._draggingWeapon || (game._stopped)) || (!mW._active)) || (!mW._available)) {
return(undefined);
}
switch (mW) {
case w1 :
game.attachMovie("Weapon", "Beans" + game.w1_counter, game.getNextHighestDepth(), {_x:-100, _y:-100, _drag:true, _type:"Beans"});
game.w1_counter++;
game._draggingWeapon = true;
break;
case w2 :
game.attachMovie("Weapon", "Fries" + game.w2_counter, game.getNextHighestDepth(), {_x:-100, _y:-100, _drag:true, _type:"Fries"});
game.w2_counter++;
game._draggingWeapon = true;
break;
case w3 :
game.attachMovie("Weapon", "Pepsi" + game.w3_counter, game.getNextHighestDepth(), {_x:-100, _y:-100, _drag:true, _type:"Pepsi"});
game.w3_counter++;
game._draggingWeapon = true;
break;
case w4 :
game.attachMovie("Weapon", "Wings" + game.w4_counter, game.getNextHighestDepth(), {_x:-100, _y:-100, _drag:true, _type:"Wings"});
game.w4_counter++;
game._draggingWeapon = true;
break;
case w5 :
game.attachMovie("Weapon", "Burger" + game.w5_counter, game.getNextHighestDepth(), {_x:-100, _y:-100, _drag:true, _type:"Burger"});
game.w5_counter++;
game._draggingWeapon = true;
break;
}
}
function attachWeaponOptions(mWeapon) {
sell_btn.gotoAndStop("normal");
sell_btn.onPress = actionscript.Proxy.create(this, sell, mWeapon);
checkButtons();
}
function upgrade(mW) {
if ((mW._upgradeCost <= _money) && (mW._wLevel < 3)) {
addSubtractMoney(-mW._upgradeCost);
mW.upgradeWeapon();
} else if (mW._upgradeCost > _money) {
setText(info_txt, ("You don't have enough money to upgrade. You need " + mW._upgradeCost) + " CREDITS");
} else if (mW._wLevel >= 3) {
setText(info_txt, "You reached the max level for this weapon");
}
}
function sell(mW) {
mW.sellWeapon();
}
function closeWeaponOptions(mW) {
initButtonStates();
sell_btn.gotoAndStop("idle");
sell_btn.onPress = undefined;
upgrade_btn.gotoAndStop("idle");
upgrade_btn.onPress = undefined;
game.currentWeapon = undefined;
game._SellUpgrade = false;
mW.radius._visible = false;
checkButtons();
}
function setText(tTextField, nText) {
tTextField.htmlText = nText.toString();
}
function addSubtractMoney(nAmount) {
_money = _money + nAmount;
setText(money_txt, _money);
checkButtons();
}
function addScore(nAmount) {
_score = Math.round(_score + nAmount);
setText(score_txt, _score);
}
function loseLife() {
_lives--;
if (_lives <= 0) {
game.gameOver();
}
setText(lives_txt, _lives);
}
function addLife() {
if (!life_btn._active) {
return(undefined);
}
if (_lives < game._maxLives) {
_lives++;
setText(lives_txt, _lives);
addSubtractMoney(-game._lifeValue);
} else {
return(undefined);
}
}
function checkButtons() {
if (w1._active && (_money < game.wValue.Beans1)) {
w1.gotoAndStop("idle");
w1._active = false;
} else if ((!w1._active) && (_money >= game.wValue.Beans1)) {
w1.gotoAndStop("normal");
w1._active = true;
}
if (w2._active && (_money < game.wValue.Fries1)) {
w2.gotoAndStop("idle");
w2._active = false;
} else if (((!w2._active) && (_money >= game.wValue.Fries1)) && (w2._available)) {
w2.gotoAndStop("normal");
w2._active = true;
} else if (((!w2._active) && (_money < game.wValue.Fries1)) && (w2._available)) {
w2.gotoAndStop("idle");
}
if (w3._active && (_money < game.wValue.Pepsi1)) {
w3.gotoAndStop("idle");
w3._active = false;
} else if (((!w3._active) && (_money >= game.wValue.Pepsi1)) && (w3._available)) {
w3.gotoAndStop("normal");
w3._active = true;
} else if (((!w3._active) && (_money < game.wValue.Pepsi1)) && (w3._available)) {
w3.gotoAndStop("idle");
}
if (w4._active && (_money < game.wValue.Wings1)) {
w4.gotoAndStop("idle");
w4._active = false;
} else if (((!w4._active) && (_money >= game.wValue.Wings1)) && (w4._available)) {
w4.gotoAndStop("normal");
w4._active = true;
} else if (((!w4._active) && (_money < game.wValue.Wings1)) && (w4._available)) {
w4.gotoAndStop("idle");
}
if (w5._active && (_money < game.wValue.Burger1)) {
w5.gotoAndStop("idle");
w5._active = false;
} else if (((!w5._active) && (_money >= game.wValue.Burger1)) && (w5._available)) {
w5.gotoAndStop("normal");
w5._active = true;
} else if (((!w5._active) && (_money < game.wValue.Burger1)) && (w5._available)) {
w5.gotoAndStop("idle");
}
if (life_btn._active && (_money < game._lifeValue)) {
life_btn.gotoAndStop("idle");
life_btn._active = false;
} else if ((!life_btn._active) && (_money >= game._lifeValue)) {
life_btn.gotoAndStop("normal");
life_btn._active = true;
}
if (game._SellUpgrade) {
if ((game.currentWeapon._upgradeCost <= _money) && (game.currentWeapon._wLevel < 3)) {
upgrade_btn.gotoAndStop("normal");
upgrade_btn.onPress = actionscript.Proxy.create(this, upgrade, game.currentWeapon);
} else if (game.currentWeapon._upgradeCost > _money) {
upgrade_btn.gotoAndStop("idle");
upgrade_btn.onPress = undefined;
}
if (game.currentWeapon._wLevel == 3) {
upgrade_btn.gotoAndStop("idle");
upgrade_btn.onPress = undefined;
}
}
}
}
Symbol 519 MovieClip [__Packages.actionscript.Proxy] Frame 0
class actionscript.Proxy
{
function Proxy () {
}
static function create(oTarget, fFunction) {
var aParameters = new Array();
var _local2 = 2;
while (_local2 < arguments.length) {
aParameters[_local2 - 2] = arguments[_local2];
_local2++;
}
var _local4 = function () {
var _local2 = arguments.concat(aParameters);
fFunction.apply(oTarget, _local2);
};
return(_local4);
}
}
Symbol 520 MovieClip [__Packages.actionscript.Trail] Frame 0
class actionscript.Trail extends MovieClip
{
var _x, _y, hAreas, wHitAreaCounter, game, _parent, attachMovie, getNextHighestDepth;
function Trail () {
super();
_x = 0;
_y = 0;
hAreas = 14;
wHitAreaCounter = 1;
game = _parent;
var _local3 = 1;
while (_local3 <= hAreas) {
this["c" + _local3]._hit = false;
this["c" + _local3]._visible = false;
this["h" + _local3]._visible = false;
_local3++;
}
}
function isColliding(mMc) {
if (mMc == undefined) {
return(undefined);
}
var _local2 = 1;
while (_local2 <= hAreas) {
if (mMc.hitTest(this["h" + _local2])) {
return(true);
}
_local2++;
}
_local2 = 1;
while (_local2 < wHitAreaCounter) {
if (mMc.hitTest(this["WeaponHitArea" + _local2])) {
return(true);
}
_local2++;
}
}
function attachWeaponHitArea(nX, nY, mW) {
mW._wCounter = wHitAreaCounter;
attachMovie("WeaponHitArea", "WeaponHitArea" + wHitAreaCounter, getNextHighestDepth(), {_x:nX, _y:nY, _alpha:0});
wHitAreaCounter++;
}
function removeWeaponHitAreas() {
var _local2 = 1;
while (_local2 <= wHitAreaCounter) {
this["WeaponHitArea" + _local2].removeMovieClip();
_local2++;
}
wHitAreaCounter = 1;
}
}
Symbol 521 MovieClip [__Packages.actionscript.Weapon] Frame 0
class actionscript.Weapon extends MovieClip
{
var game, _parent, _bulletSpeed, _wLevel, _enemyDetected, _canBePlaced, _SellUpgrade, _type, w_mc, radius, gotoAndStop, _sdTime, _sdMult, _damage, _upgradeCost, _value, _sellingValue, _delay, _range, rangeCircle, _wCounter, removeMovieClip, _x, _y, bullet_mc, attachMovie, getNextHighestDepth, wInterval, _info, _drag, weapon, cross, swapDepths, hitTest;
function Weapon () {
super();
game = _parent;
_bulletSpeed = 700;
_wLevel = 1;
_enemyDetected = false;
_canBePlaced = false;
_SellUpgrade = false;
updateWeapon(_type);
updateInfo();
game.currentWeapon = this;
w_mc.numbers._visible = false;
radius.setMask(game.gameMask_mc);
radius._visible = false;
(gotoAndStop(_type));// not popped
}
function updateWeapon(sType) {
if (sType == "Pepsi") {
_sdTime = game.sdTime[sType + _wLevel];
_sdMult = game.sdMult[sType + _wLevel];
}
_damage = game.damage[sType + _wLevel];
_upgradeCost = game.upgradeCost[sType + _wLevel];
_value = game.wValue[sType + _wLevel];
_sellingValue = Math.floor((_value / 100) * 75);
_delay = game.delay[sType + _wLevel];
_range = game.range[sType + _wLevel];
rangeCircle._radius = _range / 2;
radius._xscale = (radius._yscale = _range);
}
function upgradeWeapon() {
if (_wLevel >= 3) {
return(undefined);
}
_wLevel++;
w_mc.numbers.gotoAndStop(_wLevel);
updateWeapon(_type);
clearWInterval();
updateInfo();
game.interface_mc.checkButtons();
}
function sellWeapon() {
game.interface_mc.addSubtractMoney(_sellingValue);
game.interface_mc.closeWeaponOptions(this);
removeWeapon();
}
function removeWeapon() {
game.trail_mc["WeaponHitArea" + _wCounter].removeMovieClip();
removeMovieClip();
}
function circlesColliding(cCircle1, cCircle2) {
var _local7 = cCircle1._xCenter;
var _local5 = cCircle1._yCenter;
var _local10 = cCircle1._radius;
var _local6 = cCircle2._xCenter;
var _local3 = cCircle2._yCenter;
var _local9 = cCircle2._radius;
var _local2 = calcDistance(_local7, _local5, _local6, _local3);
if (_local2 <= (_local10 + _local9)) {
return(true);
}
return(false);
}
function calcDistance(p1x, p1y, p2x, p2y) {
var _local2 = Math.abs(p1x - p2x);
var _local1 = Math.abs(p1y - p2y);
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
return(_local3);
}
function shoot(nx, ny, t_mc) {
var _local9;
var _local7;
var _local5;
var _local10;
var _local3;
var _local4;
var _local12;
var _local2;
var _local6;
var _local11 = nx + _x;
var _local8 = ny + _y;
_local7 = Math.abs(_local11 - _x);
_local5 = Math.abs(_local8 - _y);
_local12 = Math.atan(_local5 / _local7);
_local2 = (_local12 * 180) / Math.PI;
_local9 = Math.sqrt((_local7 * _local7) + (_local5 * _local5));
_local10 = 20;
_local3 = (_local10 * _local7) / _local9;
_local4 = (_local10 * _local5) / _local9;
if (_local11 <= _x) {
if (_local8 <= _y) {
_local6 = 1;
_local3 = -_local3;
_local4 = -_local4;
} else {
_local6 = 4;
_local3 = -_local3;
_local2 = 360 - _local2;
}
} else if (_local8 <= _y) {
_local6 = 2;
_local4 = -_local4;
_local2 = 180 - _local2;
} else {
_local6 = 3;
_local2 = _local2 + 180;
}
bullet_mc = attachMovie("Bullet", "Bullet", getNextHighestDepth(), {_damage:_damage, _type:_type, _speedX:_local3, _speedY:_local4, _targetX:nx, _targetY:ny, _rotation:_local2, _distance:_local9, _wLevel:_wLevel, _q:_local6, tMc:t_mc});
if (wInterval == undefined) {
waitTimer(_delay, this);
}
}
function waitTimer(nDelay, mMc) {
function test() {
if (mMc._enemyDetected) {
mMc._enemyDetected = false;
} else {
mMc.clearWInterval();
}
}
if (game._stopped) {
return(undefined);
}
var _local2 = _delay * 1000;
wInterval = setInterval(test, _local2);
}
function clearWInterval() {
clearInterval(wInterval);
wInterval = undefined;
_enemyDetected = false;
}
function updateInfo() {
_info = (((((((((((_type + ":<br><br> Weapon Level: ") + _wLevel) + "<br> Damage: ") + _damage) + "<br> Range: ") + (_range / 10)) + "<br> Rate: ") + _delay) + " second(s)") + "<br> Sell for: ") + _sellingValue) + " credit(s)";
if (_upgradeCost != undefined) {
_info = _info + (("<br> Upgrade cost: " + _upgradeCost) + " credits");
} else {
_info = _info + "<br> Upgrade cost: Max Level Reached";
}
if (_type == "Pepsi") {
_info = _info + (((("<br>Reduce speed by: " + (100 - (_sdMult * 100))) + "%<br> Duration:") + _sdTime) + " seconds");
}
}
function onEnterFrame() {
if (game._stopped) {
return(undefined);
}
if (_drag) {
if (((!weapon.hitTest(game.interface_mc)) && (!radius._visible)) && (_drag)) {
radius._visible = true;
}
if ((weapon.hitTest(game.interface_mc) && (radius._visible)) && (_drag)) {
radius._visible = false;
}
if ((!game.trail_mc.isColliding(cross)) && (!_canBePlaced)) {
(gotoAndStop(_type));// not popped
var _local9 = game.interface_mc;
var _local10 = game.textMessages;
_local9.setText(_local9.info_txt, _local10._wCanBePlaced);
radius._xscale = (radius._yscale = _range);
radius.setMask(game.gameMask_mc);
_canBePlaced = true;
w_mc.numbers._visible = false;
}
if (game.trail_mc.isColliding(weapon) && (_canBePlaced)) {
var _local9 = game.interface_mc;
var _local10 = game.textMessages;
(gotoAndStop("Red"));// not popped
_local9.setText(_local9.info_txt, _local10._wCannotBePlaced);
radius._xscale = (radius._yscale = _range);
radius.setMask(game.gameMask_mc);
_canBePlaced = false;
}
} else if ((!_drag) && (!_enemyDetected)) {
var _local2 = 1;
while (_local2 <= game._enemyNumber) {
if ((game["Enemy" + _local2] != undefined) && (!game["Enemy" + _local2]._killed)) {
var _local4 = game["Enemy" + _local2]._x;
var _local3 = game["Enemy" + _local2]._y;
var _local5 = new Object({_xCenter:_local4, _yCenter:_local3, _radius:15});
if (circlesColliding(rangeCircle, _local5)) {
_enemyDetected = true;
shoot(_local4 - _x, _local3 - _y, game["Enemy" + _local2]);
}
}
if (_enemyDetected) {
return(undefined);
}
_local2++;
}
}
}
function onMouseMove() {
if (_drag) {
setProperty(this, _x , _parent._xmouse);
setProperty(this, _y , _parent._ymouse);
updateAfterEvent();
}
}
function onRollOver() {
if ((!_drag) && (!_SellUpgrade)) {
var _local3;
var _local2 = game.interface_mc;
if (game._SellUpgrade) {
_local3 = game.textMessages._weaponOptions;
} else {
_local3 = game.textMessages._weaponOver;
}
_local2.setText(_local2.info_txt, _info);
_local2.setText(_local2.info2_txt, _local3);
}
}
function onRollOut() {
if ((!_drag) && (!_SellUpgrade)) {
game.interface_mc.setText(game.interface_mc.info_txt, "");
game.interface_mc.setText(game.interface_mc.info2_txt, "");
}
}
function onRelease() {
if (game._stopped) {
return(undefined);
}
if (!_drag) {
var _local2 = game.interface_mc;
if (!radius._visible) {
if (game.currentWeapon != undefined) {
_local2.closeWeaponOptions(game.currentWeapon);
}
w_mc.gotoAndPlay("play");
game.currentWeapon = this;
game._SellUpgrade = true;
var _local3 = game.textMessages._weaponOptions;
_local2.setText(_local2.info2_txt, _local3);
_local2.attachWeaponOptions(this);
radius._visible = true;
swapDepths(_parent.getNextHighestDepth());
} else {
_local2.closeWeaponOptions(this);
}
} else {
if (!_canBePlaced) {
return(undefined);
}
if (weapon.hitTest(game.interface_mc)) {
game._draggingWeapon = false;
removeMovieClip();
return(undefined);
}
if (hitTest(game.interface_mc)) {
}
_drag = (game._draggingWeapon = false);
game.trail_mc.attachWeaponHitArea(_x, _y, this);
onMouseMove = undefined;
w_mc.numbers._visible = true;
game.interface_mc.addSubtractMoney(-_value);
game.currentWeapon = undefined;
rangeCircle = new Object({_xCenter:_x, _yCenter:_y, _radius:_range / 2});
radius._visible = false;
}
}
}
Symbol 522 MovieClip [__Packages.actionscript.Bullet] Frame 0
class actionscript.Bullet extends MovieClip
{
var _hitTheTarget, _maxDistance, _canSlowDown, game, _parent, gotoAndStop, _type, _x, _speedX, _y, _speedY, _distance, tMc, removeMovieClip, _damage, _wLevel;
function Bullet () {
super();
_hitTheTarget = false;
_maxDistance = false;
_canSlowDown = true;
game = _parent._parent;
(gotoAndStop(_type));// not popped
if (game._sfxOn) {
var _local3 = new Sound();
_local3.attachSound(_type + "_sound");
_local3.start();
}
}
function calcDistance(p1x, p1y, p2x, p2y) {
var _local2 = Math.abs(p1x - p2x);
var _local1 = Math.abs(p1y - p2y);
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
return(_local3);
}
function onEnterFrame() {
_x = _x + _speedX;
_y = _y + _speedY;
if (calcDistance(0, 0, _x, _y) > _distance) {
if (((((_type == "Fries") && (tMc._type == "Ping Pangs")) || ((_type == "Pepsi") && (tMc._type == "Skull"))) || ((_type == "Wings") && (tMc._type == "Pang Pangs"))) || ((_type == "Pepsi") && (tMc._type == "Orangupangs"))) {
_canSlowDown = false;
removeMovieClip();
} else {
tMc.loseEnergy(_damage);
}
if ((_type == "Pepsi") && (_canSlowDown)) {
tMc.slowDownEnemy(_wLevel);
}
removeMovieClip();
}
}
function removeBullet() {
removeMovieClip();
}
}
Symbol 523 MovieClip [__Packages.actionscript.HungerStrike] Frame 0
class actionscript.HungerStrike extends MovieClip
{
var myListener, _musicOn, _sfxOn, gameMask_mc, attachMovie, getNextHighestDepth, trail_mc, interface_mc, brain_mc, _parent, _lvl, _money, _lives, _enemyValue, _enemyUpdates, _tCounter, _gameTimer, w1_counter, w2_counter, w3_counter, w4_counter, w5_counter, _maxEnemySpeed, _maxEnemyNumber, _maxBossNumber, _maxEnemyEnergy, _maxBossEnergy, _bossMoney, _maxBossMoney, _minEnemyTimeGap, _energyMultiplier, _lastLevel, _maxEnemyValue, _maxLives, _powerBarsVisible, _gamePaused, _keysLocked, _lifeValue, _loopSoundName, _levelMessage, textMessages, enemyEnergy, enemySpeed, enemyNumber, enemyType, enemyTimeGap, enemyValue, range, damage, delay, upgradeCost, wValue, unlockLevel, sdTime, sdMult, _draggingWeapon, _enemyCounter, _enemyKilled, intervalID, _stopped, currentWeapon, finalwd, panel_mc, target_mc, createEmptyMovieClip;
function HungerStrike () {
super();
com.mosesSupposes.fuse.ZigoEngine.register(com.mosesSupposes.fuse.Fuse);
myListener = new Object();
Key.addListener(myListener);
myListener.onKeyDown = actionscript.Proxy.create(this, keyDownFunction);
myListener.onKeyUp = actionscript.Proxy.create(this, keyUpFunction);
initWeaponVariables();
initEnemyVariables();
initStartVariables();
_musicOn = true;
_sfxOn = true;
gameMask_mc = attachMovie("Mask", "Mask", getNextHighestDepth(), {_x:0, _y:0});
trail_mc = attachMovie("Trail", "Trail", getNextHighestDepth());
interface_mc = attachMovie("Interface", "Interface", getNextHighestDepth());
brain_mc = _parent.attachMovie("Brain", "Brain", _parent.getNextHighestDepth(), {_x:16, _y:-2});
gameMask_mc._visible = false;
startLevel(_lvl);
startTimer();
pauseGame();
}
function initStartVariables() {
_lvl = 1;
_money = 40;
_lives = 3;
_enemyValue = 1;
_enemyUpdates = 0;
_tCounter = 0;
_gameTimer = 0;
w1_counter = 1;
w2_counter = 1;
w3_counter = 1;
w4_counter = 1;
w5_counter = 1;
_maxEnemySpeed = 4;
_maxEnemyNumber = 20;
_maxBossNumber = 3;
_maxEnemyEnergy = 50000;
_maxBossEnergy = 250000 /* 0x03D090 */;
_bossMoney = 25;
_maxBossMoney = 1000;
_minEnemyTimeGap = 600;
_energyMultiplier = 5.4;
_lastLevel = 48;
_maxEnemyValue = 100;
_maxLives = 10;
_powerBarsVisible = true;
_gamePaused = false;
_keysLocked = false;
_lifeValue = 50;
_loopSoundName = "loop1";
_levelMessage = "";
textMessages = new Object({_beansDesc:"Minimal damage with a high rate of fire.", _friesDesc:"Medium damage and a high rate of fire. Useless against Ping Pangs", _pepsiDesc:"Minimal damage with a low rate of fire, but good for slowing movement", _wingsDesc:"Maximum damage with a low rate of fire. Useless against Pang Pangs", _burgerDesc:"Maximum damage and a medium rate of fire", _e1Desc:"Immune to the Pepsi Weapon!", _e1Desc2:"Immune to the Pepsi Weapon!", _e2Desc:"Immune to the Fries Weapon!", _e3Desc:"", _e4Desc:"Immune to the Chicken Weapon!", _e5Desc:"", _e6Desc:"Immune to the Pepsi Weapon!", _e6Desc2:"Immune to both the Pepsi and Chicken Weapons!", _weaponOptions:"Press U to upgrade or S to sell.", _weaponOff:"This Weapon is not available yet", _weaponOver:"Click to select this Weapon", _menuOver:"Click to access to the Main Menu", _creditsOver:"Credits left", _levelOver:"Current Level", _livesOver:"Lives left", _timeOver:"Hunger kept at bay for:", _sellOver:"Sell the selected Weapon", _sellOver2:"Select a Tower to sell", _upgradeOver:"Upgrade the selected Weapon", _upgradeOver2:"Select a Weapon to upgrade", _upgradeOver3:"You don\u2019t have enough credit to upgrade this Weapon", _levDef:"Are you satisfied yet? Well, let's move on to the next level!", _levBoss1:"Boss Level!", _levBoss2:"Double Boss - immune to Pepsi! Upgrade!", _levBoss3:"Triple Boss - immune to Pepsi and Chicken!", _levNewTower:"New Weapon unlocked!", _levImFries:"Ping Pangs - immune to Fries! Upgrade!", _levImPepsi:"Orangupangs - immune to Pepsi! Upgrade!", _levImWings:"Pang Pangs - immune to Chicken! Upgrade!", _wCannotBePlaced:"This Weapon cannot be placed here", _wCanBePlaced:"Click to place the Weapon"});
}
function startSound(sName, bLoop) {
this[sName] = new Sound();
this[sName].attachSound(sName);
if (bLoop) {
this[sName].start(0, 99);
} else {
this[sName].start();
}
}
function stopSound(sName) {
this[sName].stop();
}
function setLevelMessage(nLvl) {
switch (nLvl) {
case 3 :
return(textMessages._levNewTower);
case 5 :
return(textMessages._levNewTower);
case 6 :
return(textMessages._levBoss1);
case 8 :
return(textMessages._levImFries);
case 11 :
return(textMessages._levNewTower);
case 12 :
return(textMessages._levBoss2);
case 13 :
return(textMessages._levImPepsi);
case 16 :
return(textMessages._levImWings);
case 17 :
return(textMessages._levNewTower);
case 18 :
return(textMessages._levBoss3);
case 19 :
return(textMessages._levImPepsi);
case 24 :
return(textMessages._levBoss3);
case 30 :
return(textMessages._levBoss3);
case 36 :
return(textMessages._levBoss3);
}
return("empty");
}
function initEnemyVariables() {
enemyEnergy = new Array(null, 30, 40, 45, 50, 60, 1000, 180, 160, 260, 300, 360, 3000, 360, 280, 400, 500, 600, 6000, 900, 800, 960, 1000, 1100, 8000, 1300, 1100, 1350, 1400, 1500, 10000, 3000, 2600, 3500, 3800, 4200, 30000, 5000, 5500, 6000, 6500, 7000, 50000, 8000, 10000, 12000, 13000, 16000, 200000);
enemySpeed = new Array(null, 1.3, 1.4, 1.6, 1.7, 1.5, 1);
enemyNumber = new Array(null, 10, 12, 14, 16, 18, 1);
enemyType = new Array(null, "Orangupangs", "Ping Pangs", "Wu-Pang Clan", "Pang Pangs", "The Big Pang", "Skull");
enemyTimeGap = new Array(null, 1500, 1000, 800, 800, 700, 800);
enemyValue = new Array(null, 1, 1, 2, 2, 2, 100);
}
function initWeaponVariables() {
range = new Object({Beans1:150, Beans2:200, Beans3:250, Fries1:180, Fries2:240, Fries3:280, Pepsi1:150, Pepsi2:200, Pepsi3:250, Wings1:250, Wings2:280, Wings3:320, Burger1:150, Burger2:180, Burger3:220});
damage = new Object({Beans1:4, Beans2:8, Beans3:20, Fries1:40, Fries2:70, Fries3:100, Pepsi1:10, Pepsi2:10, Pepsi3:10, Wings1:400, Wings2:800, Wings3:1200, Burger1:500, Burger2:1000, Burger3:2000});
delay = new Object({Beans1:0.8, Beans2:0.5, Beans3:0.5, Fries1:0.8, Fries2:0.6, Fries3:0.5, Pepsi1:2, Pepsi2:1.7, Pepsi3:1.5, Wings1:1.8, Wings2:1.5, Wings3:1.2, Burger1:1.4, Burger2:1, Burger3:0.6});
upgradeCost = new Object({Beans1:24, Beans2:60, Fries1:60, Fries2:100, Pepsi1:80, Pepsi2:180, Wings1:300, Wings2:800, Burger1:800, Burger2:2000});
wValue = new Object({Beans1:8, Beans2:upgradeCost.Beans1, Beans3:upgradeCost.Beans2, Fries1:30, Fries2:upgradeCost.Fries1, Fries3:upgradeCost.Fries2, Pepsi1:40, Pepsi2:upgradeCost.Pepsi1, Pepsi3:upgradeCost.Pepsi2, Wings1:120, Wings2:upgradeCost.Wings1, Wings3:upgradeCost.Wings2, Burger1:300, Burger2:upgradeCost.Burger1, Burger3:upgradeCost.Burger2});
unlockLevel = new Object({Beans:1, Fries:3, Pepsi:5, Wings:11, Burger:17});
sdTime = new Object({Pepsi1:3, Pepsi2:5, Pepsi3:8});
sdMult = new Object({Pepsi1:0.7, Pepsi2:0.6, Pepsi3:0.5});
}
function setVariables(nLevel) {
var _local3 = nLevel % 6;
if (_local3 == 0) {
_local3 = 6;
while (_enemyUpdates < (Math.floor(nLevel / 6) - 1)) {
updateEnemyVariables();
}
} else {
while (_enemyUpdates < Math.floor(nLevel / 6)) {
updateEnemyVariables();
}
}
var _local4 = setLevelMessage(_lvl);
if (_local4 != "empty") {
interface_mc.info2_txt.text = _local4;
} else if (_lvl != 1) {
interface_mc.info2_txt.text = textMessages._levDef;
}
if (nLevel == 13) {
_lifeValue = 100;
} else if (nLevel == 19) {
_lifeValue = 200;
}
if ((nLevel % 6) == 0) {
interface_mc.addSubtractMoney(_bossMoney);
_bossMoney = _bossMoney * 2;
if (_bossMoney > _maxBossMoney) {
_bossMoney = _maxBossMoney;
}
}
if ((nLevel >= unlockLevel.Fries) && (!interface_mc.w2._available)) {
interface_mc.w2._available = true;
}
if ((nLevel >= unlockLevel.Pepsi) && (!interface_mc.w3._available)) {
interface_mc.w3._available = true;
}
if ((nLevel >= unlockLevel.Wings) && (!interface_mc.w4._available)) {
interface_mc.w4._available = true;
}
if ((nLevel >= unlockLevel.Burger) && (!interface_mc.w5._available)) {
interface_mc.w5._available = true;
}
interface_mc.checkButtons();
_draggingWeapon = false;
_enemyCounter = 1;
_enemyKilled = 0;
_enemySpeed = enemySpeed[_local3];
_enemyNumber = enemyNumber[_local3];
_enemyType = enemyType[_local3];
_enemyTimeGap = enemyTimeGap[_local3];
_enemyEnergy = enemyEnergy[_lvl];
if ((_lvl > 41) && (_lvl < 48)) {
_enemyValue = enemyValue[_local3] * 2;
} else {
_enemyValue = enemyValue[_local3];
}
if (nLevel == 48) {
_enemyNumber = 1;
_enemySpeed = 0.6;
_enemyTimeGap = 1500;
}
traceEnemyProperties();
}
function traceEnemyProperties() {
}
function updateEnemyVariables() {
_enemyUpdates++;
enemyNumber[6]++;
if (enemyNumber[6] > _maxBossNumber) {
enemyNumber[6] = _maxBossNumber;
}
var _local2 = 1;
while (_local2 <= 5) {
enemySpeed[_local2] = enemySpeed[_local2] + 0.2;
if (enemySpeed[_local2] > _maxEnemySpeed) {
enemySpeed[_local2] = _maxEnemySpeed;
}
enemyNumber[_local2] = enemyNumber[_local2] + 5;
if (enemyNumber[_local2] > _maxEnemyNumber) {
enemyNumber[_local2] = _maxEnemyNumber;
}
enemyValue[_local2] = enemyValue[_local2] + 2;
if (enemyValue[_local2] > _maxEnemyValue) {
enemyValue[_local2] = _maxEnemyValue;
}
enemyTimeGap[_local2] = enemyTimeGap[_local2] - 200;
if (enemyTimeGap[_local2] < _minEnemyTimeGap) {
enemyTimeGap[_local2] = _minEnemyTimeGap;
}
_local2++;
}
_energyMultiplier = _energyMultiplier - 2;
}
function showHidePowerBars() {
if (_powerBarsVisible) {
var _local2 = 1;
while (_local2 <= _enemyCounter) {
this["Enemy" + _enemyCounter].powerbar._visible = false;
_local2++;
}
_powerBarsVisible = false;
} else {
var _local2 = 1;
while (_local2 <= _enemyCounter) {
this["Enemy" + _enemyCounter].powerbar._visible = true;
_local2++;
}
_powerBarsVisible = true;
}
}
function startTimer() {
intervalID = setInterval(mx.utils.Delegate.create(this, timer), 100);
}
function timer() {
if (_stopped) {
return(undefined);
}
_tCounter++;
_gameTimer++;
interface_mc.addSeconds();
if ((_tCounter * 100) >= _enemyTimeGap) {
if (_enemyCounter <= _enemyNumber) {
attachEnemy();
}
_tCounter = 0;
}
}
function startLevel(nLevel) {
setVariables(nLevel);
_stopped = false;
attachEnemy();
}
function attachEnemy() {
attachMovie("Enemy", "Enemy" + _enemyCounter, getNextHighestDepth(), {_type:_enemyType, _value:_enemyValue});
_enemyCounter++;
if ((currentWeapon != undefined) && (currentWeapon._drag)) {
currentWeapon.swapDepths(getNextHighestDepth());
}
}
function randomizeEnemies(sCurrentEnemy) {
var _local2;
_local2 = random(enemyType.length - 2) + 1;
while (sCurrentEnemy == enemyType[_local2]) {
_local2 = random(enemyType.length - 2) + 1;
}
_enemyType = enemyType[_local2];
}
function removeEnemies() {
var _local2 = 1;
while (_local2 <= _enemyCounter) {
this["Enemy" + _local2].removeMovieClip();
_local2++;
}
}
function removeWeapons() {
var _local2 = 1;
while (_local2 <= w1_counter) {
this["Beans" + _local2].removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 <= w2_counter) {
this["Fries" + _local2].removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 <= w3_counter) {
this["Pepsi" + _local2].removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 <= w4_counter) {
this["Wings" + _local2].removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 <= w5_counter) {
this["Burger" + _local2].removeMovieClip();
_local2++;
}
}
function gameOver() {
clearWeaponIntervals();
if (_draggingWeapon) {
currentWeapon.removeMovieClip();
}
if (interface_mc.wOption != undefined) {
interface_mc.wOption.removeMovieClip();
}
_stopped = true;
clearInterval(intervalID);
if (_lvl == 48) {
finalwd = attachMovie("FinalWellDone", "FinalWellDone", getNextHighestDepth());
finalwd.gotoAndStop("badLuck");
finalwd._x = 350.1;
finalwd._y = 258.15;
finalwd.h.text = interface_mc._hours + "h";
finalwd.m.text = interface_mc._minutes + "m";
finalwd.s.text = interface_mc._seconds + "s";
finalwd.submit_btn.onPress = actionscript.Proxy.create(this, enterSubmitDetails);
finalwd.try_again_btn.onPress = actionscript.Proxy.create(this, restartGame);
} else {
panel_mc = attachMovie("Panel", "Panel", getNextHighestDepth());
var _local2;
var _local3;
panel_mc.h.text = interface_mc._hours + "h";
panel_mc.m.text = interface_mc._minutes + "m";
panel_mc.s.text = interface_mc._seconds + "s";
panel_mc.try_again_btn.onPress = actionscript.Proxy.create(this, restartGame);
panel_mc.submit_btn.onPress = actionscript.Proxy.create(this, enterSubmitDetails);
centerMovieClip(panel_mc, this);
}
}
function enterSubmitDetails() {
panel_mc.removeMovieClip();
finalwd.removeMovieClip();
interface_mc.deleteButtonStates();
_parent._parent.gotoAndStop("login");
}
function wellDone() {
addLevelBonus();
clearWeaponIntervals();
_tCounter = 0;
_stopped = true;
clearInterval(intervalID);
if (_lvl == _lastLevel) {
finalWellDone();
return(undefined);
}
if ((_lvl % 6) == 0) {
wait(2, "nextLevel");
} else {
nextLevel();
}
}
function wait(nSec, fFunc) {
var _local2 = new com.mosesSupposes.fuse.Fuse();
_local2.scope = this;
_local2.push({delay:nSec, func:fFunc});
_local2.start();
}
function finalWellDone() {
finalwd = attachMovie("FinalWellDone", "FinalWellDone", getNextHighestDepth());
finalwd._x = 350.1;
finalwd._y = 258.15;
finalwd.h.text = interface_mc._hours + "h";
finalwd.m.text = interface_mc._minutes + "m";
finalwd.s.text = interface_mc._seconds + "s";
finalwd.submit_btn.onPress = actionscript.Proxy.create(this, enterSubmitDetails);
finalwd.try_again_btn.onPress = actionscript.Proxy.create(this, restartGame);
}
function nextLevel() {
panel_mc.removeMovieClip();
_lvl++;
interface_mc.setText(interface_mc.level_txt, _lvl);
startLevel(_lvl);
startTimer();
}
function restartGame() {
triggerTracker();
clearWeaponIntervals();
clearInterval(intervalID);
intervalID = undefined;
panel_mc.removeMovieClip();
finalwd.removeMovieClip();
trail_mc.removeWeaponHitAreas();
removeEnemies();
removeWeapons();
initStartVariables();
initEnemyVariables();
interface_mc.init();
startLevel(_lvl);
startTimer();
}
function centerMovieClip(mTarget_mc, mParent_mc) {
mTarget_mc._x = (mParent_mc._width / 2) - (mTarget_mc._width / 2);
mTarget_mc._y = (mParent_mc._height / 2) - (mTarget_mc._height / 2);
}
function clearWeaponIntervals() {
var _local2 = 1;
while (_local2 <= w1_counter) {
this["Beans" + _local2].clearWInterval();
_local2++;
}
_local2 = 1;
while (_local2 <= w2_counter) {
this["Fries" + _local2].clearWInterval();
_local2++;
}
_local2 = 1;
while (_local2 <= w3_counter) {
this["Pepsi" + _local2].clearWInterval();
_local2++;
}
_local2 = 1;
while (_local2 <= w4_counter) {
this["Wings" + _local2].clearWInterval();
_local2++;
}
_local2 = 1;
while (_local2 <= w5_counter) {
this["Burger" + _local2].clearWInterval();
_local2++;
}
}
function addLevelBonus() {
var _local2;
_local2 = Math.round((_enemyNumber + _enemyValue) / 2);
interface_mc.addSubtractMoney(_local2);
}
function pauseGame() {
_stopped = true;
_gamePaused = true;
interface_mc.deleteButtonStates();
}
function resumeGame() {
_stopped = false;
_gamePaused = false;
interface_mc.initButtonStates();
}
function callMenu() {
pauseGame();
_parent._parent.gotoAndStop("pause");
}
function keyUpFunction() {
_keysLocked = false;
}
function triggerTracker() {
target_mc = createEmptyMovieClip("target_mc", getNextHighestDepth());
var _local2 = "http://ts.t-viral.com/1/tracking/link/QAKU4VvJQrR2cQ5E";
target_mc.loadVariables(_local2, "get");
}
function keyDownFunction() {
var _local2 = Key.getCode();
if (_keysLocked) {
return(undefined);
}
if (_local2 == 83) {
if ((currentWeapon != undefined) && (!currentWeapon._drag)) {
currentWeapon.sellWeapon();
}
} else if (_local2 == 85) {
if ((currentWeapon != undefined) && (!currentWeapon._drag)) {
interface_mc.upgrade(currentWeapon);
}
}
_keysLocked = true;
}
function addCheats(nKey) {
switch (nKey) {
case 67 :
break;
case 76 :
break;
case 77 :
interface_mc.addSubtractMoney(500);
break;
case 78 :
interface_mc.addSubtractMoney(-50);
break;
case 79 :
interface_mc.loseLife();
break;
case 38 :
var _local2 = 1;
while (_local2 <= _enemyCounter) {
this["Enemy" + _local2]._speed = 5;
_local2++;
}
break;
case 40 :
_local2 = 1;
while (_local2 <= _enemyCounter) {
this["Enemy" + _local2]._speed = _enemySpeed;
_local2++;
}
break;
case 80 :
if (!_gamePaused) {
pauseGame();
} else {
resumeGame();
}
break;
}
}
var _enemySpeed = 0;
var _enemyNumber = 0;
var _enemyType = "";
var _enemyTimeGap = 0;
var _enemyEnergy = 0;
var _loopStarted = false;
}
Symbol 61 MovieClip [__Packages.npb.NPBTracker] Frame 0
class npb.NPBTracker extends MovieClip
{
var trackerVersion, trackerVersiontxt, eventCount, npbso, watch, autohide, _visible, productID, clientID, passkey, createEmptyMovieClip, instance, status, display, machineID, _url;
function NPBTracker () {
super();
trackerVersion = "1.2";
trackerVersiontxt.text = trackerVersion;
setStatus("NPB Tracker", true);
eventCount = 0;
AsBroadcaster.initialize(this);
npbso = getSharedObject();
System.security.allowDomain(SCRIPT_DOMAIN);
_global.npbTracker = this;
}
function onLoad() {
if (!init()) {
watch("productID", init);
watch("clientID", init);
watch("passkey", init);
} else {
if (autohide) {
_visible = false;
}
recordEvent("load");
}
}
function getSharedObject() {
return(SharedObject.getLocal("NPBTracker" + productID, "/"));
}
function init() {
if (productID < 0) {
setStatus("Error: Product ID not specified", true);
return(false);
}
if (clientID == -1) {
setStatus("Error: ClientID not specified", true);
return(false);
}
if (passkey == "") {
setStatus("Error: Passkey not specified", true);
return(false);
}
setStatus("Initialised", true);
return(true);
}
function onRelease() {
if (isDebug) {
recordEvent("Test Event");
}
}
function recordEvent(eventName) {
if (isDisabled()) {
setStatus("Error: This Tracker has been remotely disabled");
return(undefined);
}
if (!isValid) {
setStatus("Error: Invalid clientid / password combination");
return(undefined);
}
if (!isValidConnection) {
setStatus("Error: Connection unavailable");
return(undefined);
}
var me = this;
var sendEvent = createEmptyMovieClip("sendEvent" + eventCount, eventCount);
var e = sendEvent.createEmptyMovieClip("e", 0);
eventCount++;
e.eventName = eventName;
e.instance = instance;
e.productID = productID;
e.domain = domain;
e.clientID = clientID;
e.trackerversion = trackerVersion;
e.passkey = passkey;
e.machineid = getMachineID();
sendEvent.onData = function () {
var interval;
var timeout = 0;
trace("sendEvent.onData");
interval = setInterval(function () {
if ((timeout++) < 100) {
if (e.eventid || ((timeout++) > 100)) {
clearInterval(interval);
trace("SendEvent::onData");
me.setStatus((("recieve:'" + eventName) + "':") + e.eventid);
me.setStatus("recieve:'isvalid':" + e.isvalid);
me.setStatus("recieve:'machineid':" + e.machineid);
if (me.machineID != Number(e.machineid)) {
me.setMachineID(e.machineid);
}
if (e.disableDate != undefined) {
var dd = e.disableDate.split("|");
var checkBack = new Date(dd[0], dd[1] - 1, dd[2], 12, 0, 0);
me.disable(checkBack);
}
me.isValid = e.isvalid;
me.broadcastMessage("onData", sendEvent);
}
} else {
this.isValidConnection = false;
}
}, 100);
};
if (isDev) {
SCRIPT_URL = TEST_SCRIPT_URL;
}
trace("NPBTracker::recordEvent" + SCRIPT_URL);
e.loadMovie(SCRIPT_URL, "POST");
setStatus((("send:'" + eventName) + "':") + eventCount);
}
function setStatus(str, reset) {
if (reset) {
status = str + newline;
} else {
status = status + (str + newline);
}
display.scroll = display.maxscroll;
}
function getMachineID() {
machineID = npbso.data.machineID;
if (machineID == "") {
trace("no machine id set");
machineID = -1;
}
return(Number(machineID));
}
function setMachineID(id) {
npbso.data.machineID = id;
npbso.flush();
}
function isDisabled() {
trace("Checking Enable");
if (npbso.data.disabled != undefined) {
var now = new Date();
if (now.getTime() < npbso.data.disabled.getTime()) {
trace(npbso.data.disabled);
return(true);
}
trace("time elaspsed: " + npbso.data.disabled);
enable();
}
return(false);
}
function disable(d) {
npbso.data.disabled = d;
npbso.flush();
trace("disabled");
}
function enable() {
npbso.data.disabled = null;
delete npbso.data.disabled;
npbso.flush();
delete npbso;
npbso = getSharedObject();
trace("enabled");
}
var domain = _url;
var SCRIPT_PROTOCOL = "http://";
var SCRIPT_DOMAIN = "www.npbmedia.com";
var TEST_SCRIPT_DOMAIN = "devserver2";
var SCRIPT_URL = (npb.NPBTracker.prototype.SCRIPT_PROTOCOL + npb.NPBTracker.prototype.SCRIPT_DOMAIN) + "/tracker/tracker_recorder.php";
var TEST_SCRIPT_URL = (npb.NPBTracker.prototype.SCRIPT_PROTOCOL + npb.NPBTracker.prototype.TEST_SCRIPT_DOMAIN) + "/tracker_1_1/tracker_recorder.php";
var isDev = false;
var isDebug = true;
var isValid = true;
var isValidConnection = true;
}
Symbol 358 MovieClip [__Packages.npb_contextmenu] Frame 0
class npb_contextmenu extends MovieClip
{
var _visible, tf;
function npb_contextmenu () {
super();
if (autoHide) {
_visible = false;
}
var _local6 = new ContextMenu();
if (!showBuiltIns) {
_local6.hideBuiltInItems();
}
var _local4 = 0;
while (_local4 < labels.length) {
var _local5 = new ContextMenuItem(labels[_local4], null);
_local5.onSelect = function (m, obj) {
npb_contextmenu.openWindow(obj.i);
};
_local5.i = links[_local4];
_local6.customItems.push(_local5);
_local4++;
}
_local4 = 0;
while (_local4 < seperators.length) {
_local6.customItems[seperators[_local4]].separatorBefore = true;
_local4++;
}
_root.menu = _local6;
}
static function openWindow(url) {
getURL (url, "_blank");
}
function onPress() {
if (tf.text == "") {
tf.text = "Labels: Labels of the items in the content menu\n\nLinks: URL which the corresponding label goes to when clicked\n\nSeperators: You can specify a list of optional numbers to display seperators before labels. For example 1 will place a seperator before the second label and after the first.\n\nShowBuildIns: Hide or show built in menu items\nautoHide: Hide the component at runtime";
} else {
tf.text = "";
}
}
var labels = new Array();
var links = new Array();
var seperators = new Array();
var showBuiltIns = new Boolean();
var autoHide = new Boolean();
}
Symbol 363 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndStop ("over");
};
this.onRollOut = function () {
gotoAndStop ("normal");
};
Symbol 363 MovieClip Frame 10
stop();
Symbol 363 MovieClip Frame 20
stop();
Symbol 365 MovieClip [GameBase] Frame 1
#initclip 24
Object.registerClass("GameBase", actionscript.HungerStrike);
#endinitclip
Symbol 369 MovieClip Frame 10
stop();
Symbol 378 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndStop ("over");
};
this.onRollOut = function () {
gotoAndStop ("normal");
};
this.onPress = function () {
gotoAndStop ("press");
};
Symbol 378 MovieClip Frame 10
stop();
Symbol 378 MovieClip Frame 20
stop();
Symbol 382 Button
on (release) {
getURL ("http://www.bigdaddyboxmeal.co.uk/termsconditions.htm", "_blank");
}
Symbol 384 Button
on (release) {
getURL ("http://www.bigdaddyboxmeal.co.uk/privacypolicy.htm", "_blank");
}
Symbol 389 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndStop ("over");
};
this.onRollOut = function () {
gotoAndStop ("normal");
};
this.onPress = function () {
gotoAndStop ("press");
};
Symbol 389 MovieClip Frame 10
stop();
Symbol 389 MovieClip Frame 20
stop();
Symbol 392 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndStop ("over");
};
this.onRollOut = function () {
gotoAndStop ("normal");
};
this.onPress = function () {
gotoAndStop ("press");
};
Symbol 392 MovieClip Frame 10
stop();
Symbol 392 MovieClip Frame 20
stop();
Symbol 398 Button
on (release) {
getURL ("mailto:?subject=Check out Hunger Strike!&body=Cool tower game, try it out at http://www.bigdaddyboxmeal.co.uk");
}
Symbol 401 MovieClip Frame 12
stop();
Symbol 404 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndStop ("over");
};
this.onRollOut = function () {
gotoAndStop ("normal");
};
this.onPress = function () {
gotoAndStop ("press");
};
Symbol 404 MovieClip Frame 10
stop();
Symbol 404 MovieClip Frame 20
stop();
Symbol 407 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndStop ("over");
};
this.onRollOut = function () {
gotoAndStop ("normal");
};
this.onPress = function () {
gotoAndStop ("press");
};
Symbol 407 MovieClip Frame 10
stop();
Symbol 407 MovieClip Frame 20
stop();
Symbol 412 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndStop ("over");
};
this.onRollOut = function () {
gotoAndStop ("normal");
};
this.onPress = function () {
gotoAndStop ("press");
};
Symbol 412 MovieClip Frame 10
stop();
Symbol 412 MovieClip Frame 20
stop();
Symbol 477 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndStop ("over");
};
this.onRollOut = function () {
gotoAndStop ("normal");
};
this.onPress = function () {
gotoAndStop ("press");
};
Symbol 477 MovieClip Frame 10
stop();
Symbol 477 MovieClip Frame 20
stop();
Symbol 479 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndStop ("over");
};
this.onRollOut = function () {
gotoAndStop ("normal");
};
this.onPress = function () {
gotoAndStop ("press");
};
Symbol 479 MovieClip Frame 10
stop();
Symbol 479 MovieClip Frame 20
stop();
Symbol 481 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndStop ("over");
};
this.onRollOut = function () {
gotoAndStop ("normal");
};
this.onPress = function () {
gotoAndStop ("press");
};
Symbol 481 MovieClip Frame 10
stop();
Symbol 481 MovieClip Frame 20
stop();
Symbol 488 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndStop ("over");
};
this.onRollOut = function () {
gotoAndStop ("normal");
};
this.onPress = function () {
gotoAndStop ("press");
};
Symbol 488 MovieClip Frame 10
stop();
Symbol 488 MovieClip Frame 20
stop();
Symbol 490 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndStop ("over");
};
this.onRollOut = function () {
gotoAndStop ("normal");
};
this.onPress = function () {
gotoAndStop ("press");
};
Symbol 490 MovieClip Frame 10
stop();
Symbol 490 MovieClip Frame 20
stop();
Symbol 493 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndStop ("over");
};
this.onRollOut = function () {
gotoAndStop ("normal");
};
this.onPress = function () {
gotoAndStop ("press");
};
Symbol 493 MovieClip Frame 10
stop();
Symbol 493 MovieClip Frame 20
stop();
Symbol 499 MovieClip Frame 1
stop();
Symbol 499 MovieClip Frame 10
stop();
Symbol 504 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 10
stop();
Symbol 507 MovieClip Frame 1
stop();
Symbol 507 MovieClip Frame 10
stop();
Symbol 508 MovieClip Frame 1
stop();
_parent.page = 1;
previous_btn.onRelease = function () {
_parent.page--;
if (_parent.page < 1) {
_parent.page = 3;
}
gotoAndStop("p" + _parent.page);
};
next_btn.onRelease = function () {
_parent.page++;
if (_parent.page > 3) {
_parent.page = 1;
}
gotoAndStop("p" + _parent.page);
};
p2.onRelease = function () {
gotoAndStop(this._name);
};
p3.onRelease = function () {
gotoAndStop(this._name);
};
Symbol 508 MovieClip Frame 20
stop();
_parent.page = 2;
p1.onRelease = function () {
gotoAndStop(this._name);
};
p3.onRelease = function () {
gotoAndStop(this._name);
};
Symbol 508 MovieClip Frame 40
stop();
_parent.page = 3;
p1.onRelease = function () {
gotoAndStop(this._name);
};
p2.onRelease = function () {
gotoAndStop(this._name);
};
Symbol 509 MovieClip Frame 1
stop();
starburstVisible = true;
var gameStarted = false;
continue_btn.onRelease = function () {
gotoAndStop ("main");
};
Symbol 509 MovieClip Frame 10
stop();
if (!starburstVisible) {
starburst.swapDepths(this.getNextHighestDepth());
starburst.removeMovieClip();
}
instructions_btn.onRelease = function () {
gotoAndStop ("instructions");
};
play_btn.onRelease = function () {
_global.npbTracker.recordEvent("LoadSection::StartGame");
gotoAndStop ("game");
gameStarted = true;
container_mc.GameBase.restartGame();
};
sendToAFriend_btn.onRelease = function () {
getURL ("mailto:you@somedomain.com");
};
Symbol 509 MovieClip Frame 20
stop();
var game = container_mc.GameBase;
resume_btn.onRelease = (closeMain_btn.onRelease = function () {
gotoAndStop ("game");
game.interface_mc.pauseResume();
});
restart_btn.onRelease = function () {
gotoAndStop ("game");
game.restartGame();
};
instructions_btn.onRelease = function () {
gotoAndStop ("instructions");
};
leaderboard_btn.onRelease = function () {
gotoAndStop ("leaderboard");
};
sendToAFriend_btn.onRelease = function () {
gotoAndStop ("sendtoafriend");
};
Symbol 509 MovieClip Frame 30
stop();
var page = 1;
close_btn.onRelease = function () {
if (!gameStarted) {
gotoAndStop ("main");
} else {
gotoAndStop ("pause");
}
};
Symbol 509 MovieClip Frame 40
stop();