Frame 1
Frame 2
stop();
Frame 22
Stage.align = "TL";
Stage.showMenu = false;
Stage.scaleMode = "noScale";
var stageobj = new Object();
stageobj.onResize = function () {
init();
};
Stage.addListener(stageobj);
init = function () {
bg._x = Math.round((Stage.width - home._width) / 2);
bg._y = Math.round((Stage.height - home._height) / 2);
};
init();
Instance of Symbol 58 MovieClip [Fuse] in Frame 22
//component parameters
onClipEvent (construct) {
add_easy_globals = true;
extend_MovieClip = true;
extend_TextField = true;
hide_on_publish = false;
trace_version = true;
}
Frame 23
_global.randRange = function (min, max) {
return(Math.floor(Math.random() * ((max - min) + 1)) + min);
};
stop();
Symbol 9 MovieClip Frame 1
stop();
Symbol 9 MovieClip Frame 2
stop();
Symbol 30 MovieClip [block6_ID] Frame 1
#initclip 26
Object.registerClass("block6_ID", RKBlock);
#endinitclip
Symbol 34 MovieClip [block5_ID] Frame 1
#initclip 21
Object.registerClass("block5_ID", RKBlock);
#endinitclip
Symbol 38 MovieClip [block4_ID] Frame 1
#initclip 22
Object.registerClass("block4_ID", RKBlock);
#endinitclip
Symbol 42 MovieClip [block3_ID] Frame 1
#initclip 23
Object.registerClass("block3_ID", RKBlock);
#endinitclip
Symbol 46 MovieClip [block2_ID] Frame 1
#initclip 24
Object.registerClass("block2_ID", RKBlock);
#endinitclip
Symbol 50 MovieClip [block1_ID] Frame 1
#initclip 25
Object.registerClass("block1_ID", RKBlock);
#endinitclip
Symbol 58 MovieClip [Fuse] Frame 1
#initclip 20
Object.registerClass("Fuse", com.mosesSupposes.fuse.components.Fuse);
#endinitclip
stop();
Symbol 149 MovieClip [__Packages.RKBlock] Frame 0
class RKBlock extends MovieClip
{
var _name, _visible, _parent;
function RKBlock () {
super();
if (_name.indexOf("non") == -1) {
_visible = _parent["nonAnimBlock_mc" + _name.split("block_mc")[1]];
}
}
}
Symbol 51 MovieClip [__Packages.com.mosesSupposes.fuse.components.Zigo_Engine] Frame 0
class com.mosesSupposes.fuse.components.Zigo_Engine extends MovieClip
{
var extend_MovieClip, extend_TextField, add_easy_globals, gotoAndStop, hide_on_publish, _visible, url_btn, trace_version;
function Zigo_Engine () {
super();
com.mosesSupposes.fuse.ZigoEngine.tweenHolder = this;
if (extend_MovieClip == true) {
com.mosesSupposes.fuse.ZigoEngine.initialize(MovieClip.prototype);
}
if (extend_TextField == true) {
com.mosesSupposes.fuse.ZigoEngine.initialize(TextField.prototype);
} else if (extend_MovieClip == false) {
com.mosesSupposes.fuse.ZigoEngine.initialize();
}
if (add_easy_globals == true) {
_global.ZigoEngine = com.mosesSupposes.fuse.ZigoEngine;
}
gotoAndStop(2);
if (hide_on_publish == true) {
_visible = false;
} else {
url_btn.onPress = function () {
this._parent.getURL("http://www.mosessupposes.com/Fuse", "_blank");
};
}
if (trace_version == true) {
traceVersion();
}
}
function traceVersion() {
trace("Running Zigo Engine version " + com.mosesSupposes.fuse.ZigoEngine.VERSION);
}
}
Symbol 52 MovieClip [__Packages.com.mosesSupposes.fuse.components.Fuse] Frame 0
class com.mosesSupposes.fuse.components.Fuse extends com.mosesSupposes.fuse.components.Zigo_Engine
{
var add_easy_globals;
function Fuse () {
super();
if (add_easy_globals == true) {
_global.Fuse = com.mosesSupposes.fuse.Fuse;
}
}
function traceVersion() {
super.traceVersion();
trace("Running Fuse " + com.mosesSupposes.fuse.Fuse.VERSION);
}
}
Symbol 59 MovieClip [__Packages.com.mosesSupposes.fuse.penner_easing.Back] Frame 0
class com.mosesSupposes.fuse.penner_easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static function easeOutIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) - s)) + 1)) + b);
}
}
Symbol 60 MovieClip [__Packages.com.mosesSupposes.fuse.penner_easing.Bounce] Frame 0
class com.mosesSupposes.fuse.penner_easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeOutIn(t, b, c, d) {
if (t < (d / 2)) {
return((easeOut(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeIn((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
}
Symbol 61 MovieClip [__Packages.com.mosesSupposes.fuse.penner_easing.Circ] Frame 0
class com.mosesSupposes.fuse.penner_easing.Circ
{
function Circ () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
t = t - 2;
return(((c / 2) * (Math.sqrt(1 - (t * t)) + 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return(((c / 2) * Math.sqrt(1 - (t * t))) + b);
}
t--;
return(((c / 2) * (2 - Math.sqrt(1 - (t * t)))) + b);
}
}
Symbol 62 MovieClip [__Packages.com.mosesSupposes.fuse.penner_easing.Cubic] Frame 0
class com.mosesSupposes.fuse.penner_easing.Cubic
{
function Cubic () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((c * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((c / 2) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((t * t) * t) + 2)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((t * t) * t) + 1)) + b);
}
}
Symbol 63 MovieClip [__Packages.com.mosesSupposes.fuse.penner_easing.Elastic] Frame 0
class com.mosesSupposes.fuse.penner_easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static function easeOutIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + (c / 2)) + b);
}
return(((c / 2) + (0.5 * ((a * Math.pow(2, 10 * (t - 2))) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)))) + b);
}
}
Symbol 64 MovieClip [__Packages.com.mosesSupposes.fuse.penner_easing.Expo] Frame 0
class com.mosesSupposes.fuse.penner_easing.Expo
{
function Expo () {
}
static function easeIn(t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
}
static function easeOut(t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
}
static function easeInOut(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
t--;
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 2)) + b);
}
static function easeOutIn(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 1)) + b);
}
return(((c / 2) * (Math.pow(2, 10 * (t - 2)) + 1)) + b);
}
}
Symbol 65 MovieClip [__Packages.com.mosesSupposes.fuse.penner_easing.Linear] Frame 0
class com.mosesSupposes.fuse.penner_easing.Linear
{
function Linear () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOutIn(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 66 MovieClip [__Packages.com.mosesSupposes.fuse.penner_easing.Quad] Frame 0
class com.mosesSupposes.fuse.penner_easing.Quad
{
function Quad () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((t * t) - 1)) + b);
}
t--;
return(((c / 2) * ((t * t) + 1)) + b);
}
}
Symbol 67 MovieClip [__Packages.com.mosesSupposes.fuse.penner_easing.Quart] Frame 0
class com.mosesSupposes.fuse.penner_easing.Quart
{
function Quart () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return(((-c) * ((((t * t) * t) * t) - 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((((c / 2) * t) * t) * t) * t) + b);
}
t = t - 2;
return((((-c) / 2) * ((((t * t) * t) * t) - 2)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((((t * t) * t) * t) - 1)) + b);
}
t--;
return(((c / 2) * ((((t * t) * t) * t) + 1)) + b);
}
}
Symbol 68 MovieClip [__Packages.com.mosesSupposes.fuse.penner_easing.Quint] Frame 0
class com.mosesSupposes.fuse.penner_easing.Quint
{
function Quint () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((((t * t) * t) * t) * t) + 1)) + b);
}
}
Symbol 69 MovieClip [__Packages.com.mosesSupposes.fuse.penner_easing.Sine] Frame 0
class com.mosesSupposes.fuse.penner_easing.Sine
{
function Sine () {
}
static function easeIn(t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
}
static function easeOut(t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
}
static function easeInOut(t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.sin((Math.PI * t) / 2)) + b);
}
t--;
return((((-c) / 2) * (Math.cos((Math.PI * t) / 2) - 2)) + b);
}
}
Symbol 70 MovieClip [__Packages.com.mosesSupposes.fuse.ZigoEngine] Frame 0
class com.mosesSupposes.fuse.ZigoEngine
{
static var updateTime, tweenHolder, playing, ints, lockedTweens, tweenList, now, updateIntId;
function ZigoEngine () {
}
static function simpleSetup() {
initialize(MovieClip.prototype, TextField.prototype);
}
static function initialize() {
com.mosesSupposes.fuse.penner_easing.Back;
com.mosesSupposes.fuse.penner_easing.Bounce;
com.mosesSupposes.fuse.penner_easing.Circ;
com.mosesSupposes.fuse.penner_easing.Cubic;
com.mosesSupposes.fuse.penner_easing.Elastic;
com.mosesSupposes.fuse.penner_easing.Expo;
com.mosesSupposes.fuse.penner_easing.Linear;
com.mosesSupposes.fuse.penner_easing.Quad;
com.mosesSupposes.fuse.penner_easing.Quart;
com.mosesSupposes.fuse.penner_easing.Quint;
com.mosesSupposes.fuse.penner_easing.Sine;
if ((inited != true) || ((!updateTime) && (tweenHolder._name == undefined))) {
if ((MovieClip.prototype.tween != undefined) && (typeof(_global.$tweenManager) == "object")) {
trace("\r**************** TWEEN ENGINE ERROR! ****************\rDO NOT USE #include \"lmc_tween.as\" with this version!\r*****************************************************\r");
}
inited = true;
playing = false;
ints = new Array();
lockedTweens = new Object();
tweenList = new Array();
} else {
cleanUp();
init();
}
if (arguments.length > 0) {
initializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
addShortcutsTo.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
}
}
static function deinitialize() {
var _local2;
if ((arguments.length == 0) && (MovieClip.prototype.__zigoEnabled === true)) {
_local2 = [MovieClip.prototype, TextField.prototype];
} else {
_local2 = arguments;
}
deinitializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, _local2);
removeShortcutsFrom.apply(com.mosesSupposes.fuse.ZigoEngine, _local2);
}
static function getUpdateInterval() {
return(updateTime);
}
static function setUpdateInterval(time) {
if (playing) {
deinit();
updateTime = time;
init();
} else {
updateTime = time;
}
}
static function getControllerDepth() {
return(_th_depth);
}
static function setControllerDepth(v) {
if (_global.isNaN(v) == true) {
return(undefined);
}
if (tweenHolder._name != undefined) {
tweenHolder.swapDepths(v);
} else {
_th_depth = v;
}
}
static function doShortcut(obj, methodName) {
if ((inited != true) || ((!updateTime) && (tweenHolder._name == undefined))) {
initialize();
}
if (shortcuts == null) {
initShortcuts();
}
if (shortcuts[methodName] == undefined) {
return(undefined);
}
obj = arguments.shift();
methodName = String(arguments.shift());
if (obj instanceof Array) {
for (var _local4 in obj) {
shortcuts[methodName].apply(obj[_local4], arguments);
}
} else {
shortcuts[methodName].apply(obj, arguments);
}
}
static function doTween(obj, props, pEnd, seconds, animType, delay, callback, extra1, extra2) {
if (obj instanceof Array) {
obj = arguments.shift();
for (var i in obj) {
doTween.apply(com.mosesSupposes.fuse.ZigoEngine, [obj[i]].concat(arguments));
}
return(undefined);
}
if (isTweenLocked(obj)) {
trace("Tween not added, this target is locked: " + obj);
return(undefined);
}
if (arguments.length < 2) {
trace("Tween not added, missing props and/or end values.");
return(undefined);
}
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
if (!(pEnd instanceof Array)) {
pEnd = [pEnd];
while (pEnd.length < props.length) {
pEnd.push(pEnd[0]);
}
}
if (seconds == undefined) {
seconds = 2;
} else if (seconds < 0.01) {
seconds = 0;
}
if ((delay < 0.01) || (delay == undefined)) {
delay = 0;
}
switch (typeof(animType)) {
case "string" :
animType = animType.toLowerCase();
if (animType == "linear") {
var eqf = com.mosesSupposes.fuse.penner_easing.Linear.easeNone;
} else if (animType.indexOf("easeoutin") == 0) {
var t = animType.substr(9);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.mosesSupposes.fuse.penner_easing[t].easeOutIn;
} else if (animType.indexOf("easeinout") == 0) {
var t = animType.substr(9);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.mosesSupposes.fuse.penner_easing[t].easeInOut;
} else if (animType.indexOf("easein") == 0) {
var t = animType.substr(6);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.mosesSupposes.fuse.penner_easing[t].easeIn;
} else if (animType.indexOf("easeout") == 0) {
var t = animType.substr(7);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.mosesSupposes.fuse.penner_easing[t].easeOut;
}
if (eqf == undefined) {
var eqf = com.mosesSupposes.fuse.penner_easing.Expo.easeOut;
}
break;
case "function" :
var eqf = animType;
break;
case "object" :
if ((animType.ease != undefined) && (animType.pts != undefined)) {
var eqf = animType.ease;
extra1 = animType.pts;
} else {
var eqf = com.mosesSupposes.fuse.penner_easing.Expo.easeOut;
}
break;
default :
var eqf = com.mosesSupposes.fuse.penner_easing.Expo.easeOut;
}
switch (typeof(callback)) {
case "function" :
callback = {func:callback, scope:obj._parent};
break;
case "string" :
var ilp;
var funcp;
var scope;
var args;
var a;
ilp = callback.indexOf("(");
funcp = callback.slice(0, ilp);
scope = eval (funcp.slice(0, funcp.lastIndexOf(".")));
var func = eval (funcp);
args = callback.slice(ilp + 1, callback.lastIndexOf(")")).split(",");
var i = 0;
while (i < args.length) {
a = eval (args[i]);
if (a != undefined) {
args[i] = a;
}
i++;
}
callback = {func:func, scope:scope, args:args};
}
if (AUTOSTOP == true) {
removeTween(obj);
}
if ((inited != true) || ((!updateTime) && (tweenHolder._name == undefined))) {
initialize();
}
if (obj.__zigoEnabled == undefined) {
initializeTargets(obj);
obj.__zigoEnabled = "temporary";
}
if (delay > 0) {
addTweenWithDelay(delay, obj, props, pEnd, seconds, eqf, callback, extra1, extra2);
} else {
addTween(obj, props, pEnd, seconds, eqf, callback, extra1, extra2);
}
}
static function getColorTransObj(type, amt, rgb) {
switch (type) {
case "brightness" :
var _local4 = 100 - Math.abs(amt);
var _local6 = 0;
if (amt > 0) {
_local6 = 256 * (amt / 100);
}
return({ra:_local4, rb:_local6, ga:_local4, gb:_local6, ba:_local4, bb:_local6});
case "brightOffset" :
_local6 = 256 * (amt / 100);
return({ra:100, rb:_local6, ga:100, gb:_local6, ba:100, bb:_local6});
case "contrast" :
var _local2 = {};
_local2.ra = (_local2.ga = (_local2.ba = amt));
_local2.rb = (_local2.gb = (_local2.bb = 128 - (1.28 * amt)));
return(_local2);
case "invertColor" :
_local2 = {};
_local2.ra = (_local2.ga = (_local2.ba = 100 - (2 * amt)));
_local2.rb = (_local2.gb = (_local2.bb = amt * 2.55));
return(_local2);
case "tint" :
if ((rgb == undefined) || (rgb == null)) {
} else {
var _local8 = rgb >> 16;
var _local9 = (rgb >> 8) & 255;
var _local7 = rgb & 255;
var _local5 = amt / 100;
_local2 = {rb:_local8 * _local5, gb:_local9 * _local5, bb:_local7 * _local5};
_local2.ra = (_local2.ga = (_local2.ba = 100 - amt));
return(_local2);
}
}
return({rb:0, ra:100, gb:0, ga:100, bb:0, ba:100});
}
static function initializeTargets() {
for (var _local5 in arguments) {
var _local4 = arguments[_local5];
if (_local4.__zigoEnabled == undefined) {
_local4.__zigoEnabled = true;
_global.ASSetPropFlags(_local4, "__zigoEnabled", 1, true);
if ((targetPath(_local4) == undefined) && (_local4.__proto__ == undefined)) {
_local4.targetPath = "__zigoTempID_" + objTempID;
_global.ASSetPropFlags(_local4, "targetPath", 1, true);
objTempID++;
}
if ((_local4._listeners != undefined) && (_local4.addListener != undefined)) {
continue;
}
if (_local4.__proto__ != undefined) {
_local4.addListener = function () {
if (!this._listeners) {
AsBroadcaster.initialize(this);
}
this.addListener.apply(this, arguments);
};
} else {
AsBroadcaster.initialize(_local4);
}
_global.ASSetPropFlags(_local4, "addListener", 1, true);
}
}
}
static function deinitializeTargets() {
for (var _local4 in arguments) {
var _local3 = arguments[_local4];
_global.ASSetPropFlags(_local3, "__zigoEnabled", 4, true);
delete _local3.__zigoEnabled;
if (_local3.targetPath.indexOf("__zigoTempID") > -1) {
_global.ASSetPropFlags(_local3, "targetPath", 4, true);
delete _local3.targetPath;
}
}
}
static function addShortcutsTo() {
if (shortcuts == null) {
initShortcuts();
}
for (var _local5 in arguments) {
var _local3 = arguments[_local5];
if ((_local3 == MovieClip.prototype) || (typeof(_local3) == "movieclip")) {
for (var _local4 in mcshortcuts) {
_local3[_local4] = mcshortcuts[_local4];
_global.ASSetPropFlags(_local3, _local4, 1, true);
}
_local3.addProperty("_frame", _local3.getFrame, _local3.setFrame);
_global.ASSetPropFlags(_local3, "_frame", 1, true);
}
for (var _local4 in shortcuts) {
_local3[_local4] = shortcuts[_local4];
_global.ASSetPropFlags(_local3, _local4, 1, true);
}
}
}
static function removeShortcutsFrom() {
if (shortcuts == null) {
initShortcuts();
}
for (var _local5 in arguments) {
var _local3 = arguments[_local5];
if ((_local3 == MovieClip.prototype) || (typeof(_local3) == "movieclip")) {
for (var _local4 in mcshortcuts) {
delete _local3[_local4];
_global.ASSetPropFlags(_local3, "_frame", 4, true);
delete _local3._frame;
}
}
for (var _local4 in shortcuts) {
_global.ASSetPropFlags(_local3, _local4, 4, true);
if (_local3[_local4] != undefined) {
delete _local3[_local4];
}
}
}
}
static function addTween(obj, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
if (typeof(__oDetour.AT) == "function") {
if (__oDetour.AT.apply(__oDetour.scope, arguments) === true) {
return(undefined);
}
}
var _local4;
var _local13;
var _local6;
var _local3;
var _local2;
if (!playing) {
init();
}
var _local12 = [];
for (_local4 in props) {
_local13 = props[_local4];
_local6 = true;
if (_local13.substr(0, 4) != "_ct_") {
var _local17 = ((typeof(pEnd[_local4]) == "string") ? (Number(pEnd[_local4])) : (pEnd[_local4] - obj[_local13]));
if (AUTOOVERWRITE == true) {
for (_local3 in tweenList) {
_local2 = tweenList[_local3];
if ((_local2.obj == obj) && (_local2.pp == _local13)) {
_local2.ps = obj[_local13];
_local2.ch = _local17;
_local2.ts = now;
_local2.d = sec * 1000;
_local2.ef = eqFunc;
_local2.cb = callback;
_local2.e1 = extra1;
_local2.e2 = extra2;
_local2.pt = -1;
_local6 = false;
_local12.push(_local2.pp);
break;
}
}
}
if (_local6) {
tweenList.unshift({obj:obj, pp:_local13, ps:obj[_local13], ch:_local17, ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2, pt:-1});
}
} else {
var _local16 = new Color(obj);
var _local20 = _local16.getTransform();
var _local19 = {};
for (_local3 in pEnd[_local4]) {
if ((pEnd[_local4][_local3] != _local20[_local3]) && (pEnd[_local4][_local3] != undefined)) {
_local19[_local3] = ((typeof(pEnd[_local4][_local3]) == "string") ? (_local20[_local3] + Number(pEnd[_local4][_local3])) : (pEnd[_local4][_local3] - _local20[_local3]));
}
}
if (AUTOOVERWRITE == true) {
for (_local3 in tweenList) {
_local2 = tweenList[_local3];
if ((_local2.obj == obj) && (_local2.ctm != undefined)) {
_local2.c = _local16;
_local2.stm = _local20;
(_local2.ctm = _local19);
(_local2.ts = now);
_local2.d = sec * 1000;
_local2.ef = eqFunc;
_local2.cb = callback;
_local2.e1 = extra1;
_local2.e2 = extra2;
_local2.pt = -1;
_local6 = false;
_local12.push("_ct_");
break;
}
}
}
if (_local6) {
tweenList.unshift({obj:obj, c:_local16, stm:_local20, ctm:_local19, ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2, pt:-1});
}
}
}
if (BROADCAST_EVENTS) {
if (_local12.length > 0) {
obj.broadcastMessage("onTweenInterrupt", {target:obj, props:_local12});
}
obj.broadcastMessage("onTweenStart", {target:obj, props:props});
}
if (callback.startfunc != undefined) {
var _local27 = callback.startfunc;
if ((typeof(_local27) == "string") && (callback.startscope != undefined)) {
_local27 = callback.startscope[_local27];
}
_local27.apply(callback.startscope, callback.startargs);
}
if (sec == 0) {
update();
}
}
static function addTweenWithDelay(delay, obj, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
if (typeof(__oDetour.ATWD) == "function") {
if (__oDetour.ATWD.apply(__oDetour.scope, arguments) === true) {
return(undefined);
}
}
var il;
var _local2;
il = ints.length;
_local2 = setInterval(function () {
com.mosesSupposes.fuse.ZigoEngine.removeDelayedTween(il);
if (obj.__zigoEnabled != undefined) {
com.mosesSupposes.fuse.ZigoEngine.addTween(obj, props, pEnd, sec, eqFunc, callback, extra1, extra2);
}
}, delay * 1000);
ints[il] = {obj:obj, props:props, pend:pEnd, intid:_local2, st:getTimer(), delay:delay * 1000, args:arguments.slice(1), pt:-1};
if (!playing) {
init();
}
}
static function removeTween(obj, props) {
var _local7;
var _local2;
var _local4;
_local7 = false;
if ((props == undefined) && (BROADCAST_EVENTS != true)) {
_local7 = true;
}
_local2 = tweenList.length;
var _local3 = {};
while (_local2--) {
if (tweenList[_local2].obj == obj) {
if (_local7) {
tweenList.splice(_local2, 1);
} else {
for (_local4 in props) {
if (tweenList[_local2].pp == props[_local4]) {
tweenList.splice(_local2, 1);
if (_local3[targetPath(obj)] == undefined) {
_local3[targetPath(obj)] = {t:obj, p:[]};
}
_local3[targetPath(obj)].p.push(props[_local4]);
} else if (((props[_local4] == "_ct_") && (tweenList[_local2].ctm != undefined)) && (tweenList[_local2].obj == obj)) {
tweenList.splice(_local2, 1);
if (_local3[targetPath(obj)] == undefined) {
_local3[targetPath(obj)] = {t:obj, p:[]};
}
_local3[targetPath(obj)].p.push("_ct_");
}
}
}
}
}
_local2 = ints.length;
while (_local2--) {
if (ints[_local2].obj == obj) {
if (_local7) {
removeDelayedTween(Number(_local2));
} else {
for (_local4 in props) {
for (var _local10 in ints[_local2].props) {
if (ints[_local2].props[_local10] == props[_local4]) {
ints[_local2].props.splice(_local10, 1);
ints[_local2].pend.splice(_local10, 1);
if (_local3[targetPath(obj)] == undefined) {
_local3[targetPath(obj)] = {t:obj, p:[]};
}
_local3[targetPath(obj)].p.push(props[_local4]);
}
}
if (ints[_local2].props.length == 0) {
clearInterval(ints[_local2].intid);
}
}
}
}
}
if (obj.__zigoEnabled == "temporary") {
if (getTweens(obj) == 0) {
deinitializeTargets(obj);
}
}
if (BROADCAST_EVENTS) {
for (var _local10 in _local3) {
if (_local3[_local10].p.length > 0) {
_local3[_local10].t.broadcastMessage("onTweenInterrupt", {target:_local3[_local10].t, props:_local3[_local10].p});
}
}
}
if (tweenList.length == 0) {
deinit();
}
}
static function isTweening(obj, prop) {
var _local3 = prop == undefined;
for (var _local5 in tweenList) {
var _local1 = tweenList[_local5];
if (((tweenList[_local5].obj == obj) && (tweenList[_local5].pt == -1)) && ((_local3 || (prop == _local1.pp)) || ((prop == "_ct_") && (_local1.ctm != undefined)))) {
return(true);
}
}
return(false);
}
static function getTweens(obj) {
var _local1 = 0;
for (var _local3 in tweenList) {
if (tweenList[_local3].obj == obj) {
_local1++;
}
}
return(_local1);
}
static function lockTween(obj, bool) {
lockedTweens[targetPath(obj)] = bool;
}
static function isTweenLocked(obj) {
if (lockedTweens[targetPath(obj)] == undefined) {
return(false);
}
return(lockedTweens[targetPath(obj)]);
}
static function ffTween(obj, propsObj) {
var _local3 = obj == undefined;
var _local5 = propsObj == undefined;
for (var _local7 in tweenList) {
var _local1 = tweenList[_local7];
if (((_local1.obj == obj) || (_local3)) && (_local5 || (propsObj[_local1.pp] == true))) {
if (_local1.pt != -1) {
_local1.pt = -1;
}
_local1.ts = now - _local1.d;
}
}
for (var _local7 in ints) {
if (ints[_local7] != undefined) {
if ((ints[_local7].obj == obj) || (_local3)) {
if (ints[_local7].obj.__zigoEnabled != undefined) {
var _local2 = ints[_local7].args;
_local2[3] = 0;
addTween.apply(com.mosesSupposes.fuse.ZigoEngine, _local2);
}
removeDelayedTween(Number(_local7));
}
}
}
update();
}
static function rewTween(obj, propsObj) {
var _local2 = obj == undefined;
var _local4 = propsObj == undefined;
for (var _local6 in tweenList) {
var _local1 = tweenList[_local6];
if (((_local1.obj == obj) || (_local2)) && (_local4 || (propsObj[_local1.pp] == true))) {
if (_local1.pt != -1) {
_local1.pt = -1;
}
_local1.ts = now;
}
}
for (var _local6 in ints) {
if (ints[_local6] != undefined) {
if ((ints[_local6].obj == obj) || (_local2)) {
if (ints[_local6].obj.__zigoEnabled != undefined) {
addTween.apply(com.mosesSupposes.fuse.ZigoEngine, ints[_local6].args);
}
removeDelayedTween(Number(_local6));
}
}
}
update();
}
static function isTweenPaused(obj, prop) {
if (obj == undefined) {
return(null);
}
var _local4 = prop == undefined;
for (var _local5 in tweenList) {
var _local1 = tweenList[_local5];
if ((tweenList[_local5].obj == obj) && ((_local4 || (prop == _local1.pp)) || ((prop == "_ct_") && (_local1.ctm != undefined)))) {
return(Boolean(tweenList[_local5].pt != -1));
}
}
for (var _local5 in ints) {
if ((ints[_local5] != undefined) && (ints[_local5].obj == obj)) {
return(Boolean(ints[_local5].pt != -1));
}
}
return(false);
}
static function pauseTween(obj, propsObj) {
var _local2 = obj == undefined;
if ((_local2 == false) && (isTweenPaused(obj) == true)) {
return(undefined);
}
var _local5 = propsObj == undefined;
for (var _local6 in tweenList) {
var _local1 = tweenList[_local6];
if (((_local1.pt == -1) && ((_local1.obj == obj) || (_local2))) && ((_local5 || (propsObj[_local1.pp] == true)) || ((propsObj._ct_ != undefined) && (_local1.ctm != undefined)))) {
_local1.pt = now;
}
}
for (var _local6 in ints) {
if (ints[_local6] != undefined) {
if ((ints[_local6].pt == -1) && ((ints[_local6].obj == obj) || (_local2))) {
ints[_local6].pt = now;
}
}
}
}
static function unpauseTween(obj, propsObj) {
var _local3 = obj == undefined;
if ((_local3 == true) && (isTweenPaused(obj) === false)) {
return(undefined);
}
var _local6 = propsObj == undefined;
if (!playing) {
init();
}
for (var _local1 in tweenList) {
var _local2 = tweenList[_local1];
if ((((_local2.pt != -1) && ((_local2.obj == obj) || (_local3))) && (_local6 || (propsObj[_local2.pp] == true))) || ((propsObj._ct_ != undefined) && (_local2.ctm != undefined))) {
_local2.ts = now - (_local2.pt - _local2.ts);
_local2.pt = -1;
}
}
for (var _local1 in ints) {
if (ints[_local1] != undefined) {
if ((ints[_local1].pt != -1) && ((ints[_local1].obj == obj) || (_local3))) {
ints[_local1].delay = ints[_local1].delay - (ints[_local1].pt - ints[_local1].st);
ints[_local1].st = now;
ints[_local1].intid = setInterval(function (id) {
com.mosesSupposes.fuse.ZigoEngine.addTween.apply(com.mosesSupposes.fuse.ZigoEngine, com.mosesSupposes.fuse.ZigoEngine.ints[id].args);
clearInterval(com.mosesSupposes.fuse.ZigoEngine.ints[id].intid);
com.mosesSupposes.fuse.ZigoEngine.ints[id] = undefined;
}, ints[_local1].delay, _local1);
}
}
}
}
static function pauseAll() {
pauseTween();
}
static function unpauseAll() {
unpauseTween();
}
static function stopAll() {
for (var _local1 in ints) {
removeDelayedTween(Number(_local1));
}
tweenList = new Array();
deinit();
}
static function init() {
if (updateTime > 0) {
clearInterval(updateIntId);
updateIntId = setInterval(function () {
com.mosesSupposes.fuse.ZigoEngine.update();
}, updateTime);
} else {
if (tweenHolder._name == undefined) {
tweenHolder = _root.createEmptyMovieClip("_th_", _th_depth);
}
tweenHolder.onEnterFrame = function () {
com.mosesSupposes.fuse.ZigoEngine.update.call(com.mosesSupposes.fuse.ZigoEngine);
};
}
playing = true;
now = getTimer();
}
static function deinit() {
playing = false;
clearInterval(updateIntId);
delete tweenHolder.onEnterFrame;
}
static function update() {
var _local1;
var _local9;
var _local2;
var _local12 = false;
_local9 = tweenList.length;
if (BROADCAST_EVENTS) {
var _local4;
var _local7;
var _local5;
var _local8;
_local4 = {};
_local7 = {};
_local5 = {};
_local8 = {};
}
while (_local9--) {
_local1 = tweenList[_local9];
if (_local1.obj.__zigoEnabled == undefined) {
_local12 = true;
continue;
}
if (_local1.pt != -1) {
continue;
}
if ((_local1.ts + _local1.d) > now) {
if (_local1.ctm == undefined) {
if (ROUND_RESULTS == true) {
_local1.obj[_local1.pp] = Math.round(_local1.ef(now - _local1.ts, _local1.ps, _local1.ch, _local1.d, _local1.e1, _local1.e2));
} else {
_local1.obj[_local1.pp] = _local1.ef(now - _local1.ts, _local1.ps, _local1.ch, _local1.d, _local1.e1, _local1.e2);
}
} else {
var _local3 = {};
for (_local2 in _local1.ctm) {
if (ROUND_RESULTS == true) {
_local3[_local2] = Math.round(_local1.ef(now - _local1.ts, _local1.stm[_local2], _local1.ctm[_local2], _local1.d, _local1.e1, _local1.e2));
} else {
_local3[_local2] = _local1.ef(now - _local1.ts, _local1.stm[_local2], _local1.ctm[_local2], _local1.d, _local1.e1, _local1.e2);
}
}
_local1.c.setTransform(_local3);
}
if (BROADCAST_EVENTS) {
if (_local4[targetPath(_local1.obj)] == undefined) {
_local4[targetPath(_local1.obj)] = _local1.obj;
}
if (_local5[targetPath(_local1.obj)] == undefined) {
_local5[targetPath(_local1.obj)] = [];
}
_local5[targetPath(_local1.obj)].push(((_local1.ctm != undefined) ? "_ct_" : (_local1.pp)));
}
if (_local1.cb.updfunc != undefined) {
var _local6 = _local1.cb.updfunc;
if ((typeof(_local6) == "string") && (_local1.cb.updscope != undefined)) {
_local6 = _local1.cb.updscope[_local6];
}
_local6.apply(_local1.cb.updscope, _local1.cb.updargs);
}
} else {
if (_local1.ctm == undefined) {
if (ROUND_RESULTS == true) {
_local1.obj[_local1.pp] = Math.round(_local1.ps + _local1.ch);
} else {
_local1.obj[_local1.pp] = _local1.ps + _local1.ch;
}
} else {
var _local3 = {};
if (ROUND_RESULTS == true) {
for (_local2 in _local1.ctm) {
_local3[_local2] = Math.round(_local1.stm[_local2] + _local1.ctm[_local2]);
}
_local1.c.setTransform(_local3);
} else {
for (_local2 in _local1.ctm) {
_local3[_local2] = _local1.stm[_local2] + _local1.ctm[_local2];
}
_local1.c.setTransform(_local3);
}
}
if (BROADCAST_EVENTS) {
if (_local4[targetPath(_local1.obj)] == undefined) {
_local4[targetPath(_local1.obj)] = _local1.obj;
}
if (_local7[targetPath(_local1.obj)] == undefined) {
_local7[targetPath(_local1.obj)] = _local1.obj;
}
if (_local5[targetPath(_local1.obj)] == undefined) {
_local5[targetPath(_local1.obj)] = [];
}
_local5[targetPath(_local1.obj)].push(((_local1.ctm != undefined) ? "_ct_" : (_local1.pp)));
if (_local8[targetPath(_local1.obj)] == undefined) {
_local8[targetPath(_local1.obj)] = [];
}
_local8[targetPath(_local1.obj)].push(((_local1.ctm != undefined) ? "_ct_" : (_local1.pp)));
}
if (_local1.cb.updfunc != undefined) {
var _local6 = _local1.cb.updfunc;
if ((typeof(_local6) == "string") && (_local1.cb.updscope != undefined)) {
_local6 = _local1.cb.updscope[_local6];
}
_local6.updfunc.apply(_local1.cb.updscope, _local1.cb.updargs);
}
if (endt == undefined) {
var endt = new Array();
}
endt.push(_local9);
}
}
if (_local12) {
cleanUp();
}
for (_local2 in _local4) {
_local4[_local2].broadcastMessage("onTweenUpdate", {target:_local4[_local2], props:_local5[_local2]});
}
if (endt != undefined) {
endTweens(endt);
}
for (_local2 in _local7) {
_local7[_local2].broadcastMessage("onTweenEnd", {target:_local7[_local2], props:_local8[_local2]});
}
now = getTimer();
if (updateTime > 0) {
updateAfterEvent();
}
}
static function endTweens(tid_arr) {
var _local1;
var _local9;
var _local2;
var _local4;
var _local8;
_local1 = [];
_local9 = tid_arr.length;
_local2 = 0;
while (_local2 < _local9) {
var _local5 = tweenList[tid_arr[_local2]].obj;
_local4 = tweenList[tid_arr[_local2]].cb;
if (_local4 != undefined) {
var _local6 = true;
for (_local8 in _local1) {
if (_local1[_local8] == _local4) {
_local6 = false;
break;
}
}
if (_local6) {
_local1.push(_local4);
}
}
tweenList.splice(tid_arr[_local2], 1);
if (_local5.__zigoEnabled == "temporary") {
if (getTweens(_local5) == 0) {
deinitializeTargets(_local5);
}
}
_local2++;
}
_local2 = 0;
while (_local2 < _local1.length) {
var _local3 = _local1[_local2].func;
if ((typeof(_local3) == "string") && (_local1[_local2].scope != undefined)) {
_local3 = _local1[_local2].scope[_local3];
}
_local3.apply(_local1[_local2].scope, _local1[_local2].args);
_local2++;
}
if (tweenList.length == 0) {
deinit();
}
}
static function removeDelayedTween(index) {
clearInterval(ints[index].intid);
ints[index] = undefined;
var _local1 = true;
for (var _local2 in ints) {
if (ints[_local2] != undefined) {
_local1 = false;
break;
}
}
if (_local1) {
ints = [];
}
}
static function cleanUp() {
if (!((tweenList instanceof Array) && (tweenList.length > 0))) {
return(undefined);
}
for (var _local1 in tweenList) {
if (tweenList[_local1].obj.__zigoEnabled == undefined) {
tweenList.splice(Number(_local1), 1);
}
}
if (tweenList.length == 0) {
tweenList = [];
deinit();
}
for (var _local1 in ints) {
if ((ints[_local1] != undefined) && (ints[_local1].obj.__zigoEnabled == undefined)) {
removeDelayedTween(Number(_local1));
}
}
}
static function initShortcuts() {
shortcuts = new Object();
shortcuts.tween = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween.apply(this, [this].concat(arguments));
};
shortcuts.stopTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.doEngineCall(this, "removeTween", props, true);
};
shortcuts.isTweening = function (prop) {
return(com.mosesSupposes.fuse.ZigoEngine.isTweening(this, prop));
};
shortcuts.getTweens = function () {
return(com.mosesSupposes.fuse.ZigoEngine.getTweens(this));
};
shortcuts.lockTween = function () {
com.mosesSupposes.fuse.ZigoEngine.lockTween(this, true);
};
shortcuts.unlockTween = function () {
com.mosesSupposes.fuse.ZigoEngine.lockTween(this, false);
};
shortcuts.isTweenLocked = function () {
return(com.mosesSupposes.fuse.ZigoEngine.isTweenLocked(this));
};
shortcuts.isTweenPaused = function (prop) {
return(com.mosesSupposes.fuse.ZigoEngine.isTweenPaused(this, prop));
};
shortcuts.pauseTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.doEngineCall(this, "pauseTween", props);
};
shortcuts.unpauseTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.doEngineCall(this, "unpauseTween", props);
};
shortcuts.pauseAllTweens = function () {
com.mosesSupposes.fuse.ZigoEngine.pauseTween();
};
shortcuts.unpauseAllTweens = function () {
com.mosesSupposes.fuse.ZigoEngine.unpauseTween();
};
shortcuts.stopAllTweens = function () {
com.mosesSupposes.fuse.ZigoEngine.stopAll();
};
shortcuts.ffTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.doEngineCall(this, "ffTween", props);
};
shortcuts.rewTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.doEngineCall(this, "rewTween", props);
};
shortcuts.alphaTo = function (destAlpha, seconds, animType, delay, callback, extra1, extra2) {
com.mosesSupposes.fuse.ZigoEngine.doTween.apply(this, [this, ["_alpha"], [destAlpha], seconds, animType, delay, callback, extra1, extra2]);
};
shortcuts.scaleTo = function (destScale, seconds, animType, delay, callback, extra1, extra2) {
com.mosesSupposes.fuse.ZigoEngine.doTween.apply(this, [this, ["_xscale", "_yscale"], [destScale, destScale], seconds, animType, delay, callback, extra1, extra2]);
};
shortcuts.sizeTo = function (destSize, seconds, animType, delay, callback, extra1, extra2) {
com.mosesSupposes.fuse.ZigoEngine.doTween.apply(this, [this, ["_width", "_height"], [destSize, destSize], seconds, animType, delay, callback, extra1, extra2]);
};
shortcuts.slideTo = function (destX, destY, seconds, animType, delay, callback, extra1, extra2) {
com.mosesSupposes.fuse.ZigoEngine.doTween.apply(this, [this, ["_x", "_y"], [destX, destY], seconds, animType, delay, callback, extra1, extra2]);
};
shortcuts.rotateTo = function (destRotation, seconds, animType, delay, callback, extra1, extra2) {
com.mosesSupposes.fuse.ZigoEngine.doTween.apply(this, [this, ["_rotation"], [destRotation], seconds, animType, delay, callback, extra1, extra2]);
};
shortcuts.brightnessTo = function (bright, seconds, animType, delay, callback, extra1, extra2) {
com.mosesSupposes.fuse.ZigoEngine.doTween.apply(this, [this, ["_ct_"], [com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("brightness", bright)], seconds, animType, delay, callback, extra1, extra2]);
};
shortcuts.brightOffsetTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
com.mosesSupposes.fuse.ZigoEngine.doTween.apply(this, [this, ["_ct_"], [com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("brightOffset", percent)], seconds, animType, delay, callback, extra1, extra2]);
};
shortcuts.contrastTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
com.mosesSupposes.fuse.ZigoEngine.doTween.apply(this, [this, ["_ct_"], [com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("contrast", percent)], seconds, animType, delay, callback, extra1, extra2]);
};
shortcuts.colorTo = function (rgb, seconds, animType, delay, callback, extra1, extra2) {
com.mosesSupposes.fuse.ZigoEngine.doTween.apply(this, [this, ["_ct_"], [com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, rgb)], seconds, animType, delay, callback, extra1, extra2]);
};
shortcuts.colorTransformTo = function (ra, rb, ga, gb, ba, bb, aa, ab, seconds, animType, delay, callback, extra1, extra2) {
com.mosesSupposes.fuse.ZigoEngine.doTween.apply(this, [this, ["_ct_"], [{ra:ra, rb:rb, ga:ga, gb:gb, ba:ba, bb:bb, aa:aa, ab:ab}], seconds, animType, delay, callback, extra1, extra2]);
};
shortcuts.invertColorTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
com.mosesSupposes.fuse.ZigoEngine.doTween.apply(this, [this, ["_ct_"], [com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("invertColor", percent)], seconds, animType, delay, callback, extra1, extra2]);
};
shortcuts.tintTo = function (rgb, percent, seconds, animType, delay, callback, extra1, extra2) {
com.mosesSupposes.fuse.ZigoEngine.doTween.apply(this, [this, ["_ct_"], [com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", percent, rgb)], seconds, animType, delay, callback, extra1, extra2]);
};
mcshortcuts = new Object();
mcshortcuts.getFrame = function () {
return(this._currentframe);
};
mcshortcuts.setFrame = function (fr) {
this.gotoAndStop(Math.round(fr));
};
mcshortcuts.frameTo = function (endframe, duration, animType, delay, callback, extra1, extra2) {
com.mosesSupposes.fuse.ZigoEngine.doTween.apply(this, [this, "_frame", ((endframe != undefined) ? (endframe) : (this._totalframes)), duration, animType, delay, callback, extra1, extra2]);
};
}
static function doEngineCall(obj, method, props, useArray) {
var _local2;
if (props != undefined) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
if (useArray == true) {
_local2 = props;
} else {
_local2 = {};
for (var _local3 in props) {
_local2[props[_local3]] = true;
}
}
com.mosesSupposes.fuse.ZigoEngine[method](obj, _local2);
}
}
static var VERSION = "1.0";
static var AUTHOR = "Original version by Ladislav Zigo (http://laco.wz.cz/tween/), supported by Moses Gunesch (fuse@mosessupposes.com, http://www.mosessupposes.com/Fuse)";
static var BROADCAST_EVENTS = false;
static var AUTOSTOP = false;
static var AUTOOVERWRITE = true;
static var ROUND_RESULTS = false;
static var inited = false;
static var _th_depth = 6789;
static var shortcuts = null;
static var mcshortcuts = null;
static var __oDetour = null;
static var objTempID = 0;
}
Symbol 71 MovieClip [__Packages.com.mosesSupposes.fuse.Fuse] Frame 0
class com.mosesSupposes.fuse.Fuse extends Array
{
var _nID, _aDefaultTargs, _nIndex, length, dispatchEvent, scope, _oDel1, addEventListener, removeEventListener;
function Fuse () {
super();
if (AUTOCLEAR == true) {
clearAll();
}
mx.events.EventDispatcher.initialize(this);
_nID = registerInstance(this);
_sState = "stopped";
_aDefaultTargs = new Array();
if (arguments.length > 0) {
splice.apply(this, [0, 0].concat(arguments));
}
}
static function simpleSetup() {
com.mosesSupposes.fuse.ZigoEngine.simpleSetup();
_global.Fuse = com.mosesSupposes.fuse.Fuse;
}
static function getInstance(id) {
return(_aInstances[id]);
}
static function getNumInstances() {
var _local1 = 0;
for (var _local2 in _aInstances) {
if (_aInstances[_local2] != null) {
_local1++;
}
}
return(_local1);
}
static function clearAll() {
if ((_oBuildMode != null) && (_oBuildMode.curID > -1)) {
close();
}
for (var _local1 in _aInstances) {
removeInstanceAt(Number(_local1));
}
_aInstances = new Array();
}
static function stopAll() {
if ((_oBuildMode != null) && (_oBuildMode.curID > -1)) {
close();
}
for (var _local1 in _aInstances) {
_aInstances[_local1].stop();
}
}
static function pauseAll() {
if ((_oBuildMode != null) && (_oBuildMode.curID > -1)) {
close();
}
for (var _local1 in _aInstances) {
if (_aInstances[_local1].state == "playing") {
_aInstances[_local1].pause();
}
}
}
static function unpauseAll() {
if ((_oBuildMode != null) && (_oBuildMode.curID > -1)) {
close();
}
for (var _local1 in _aInstances) {
if (_aInstances[_local1].state == "paused") {
_aInstances[_local1].resume();
}
}
}
function get id() {
return(_nID);
}
function get state() {
return(_sState);
}
function get currentIndex() {
return(_nIndex);
}
function get currentLabel() {
return(this[_nIndex]._oParams.label);
}
function get target() {
return(((_aDefaultTargs.length == 1) ? (_aDefaultTargs[0]) : (_aDefaultTargs)));
}
function set target(v) {
delete _aDefaultTargs;
if (v != null) {
addTarget(v);
}
//return(target);
}
function addTarget() {
if (_aDefaultTargs == null) {
_aDefaultTargs = new Array();
}
for (var _local3 in arguments) {
if (arguments[_local3] instanceof Array) {
_aDefaultTargs = _aDefaultTargs.concat(arguments[_local3]);
} else {
_aDefaultTargs.unshift(arguments[_local3]);
}
}
}
function removeTargets() {
if (_aDefaultTargs == null) {
return(undefined);
}
for (var _local4 in arguments) {
for (var _local3 in _aDefaultTargs) {
if (arguments[_local4] == _aDefaultTargs[_local3]) {
_aDefaultTargs.splice(Number(_local3), 1);
}
}
}
}
function push() {
splice.apply(this, [length, 0].concat(arguments));
return(length);
}
function pop() {
var _local2 = this[length - 1]._initObj;
splice(length - 1, 1);
return(_local2);
}
function unshift() {
splice.apply(this, [0, 0].concat(arguments));
return(length);
}
function shift() {
var _local2 = this[0]._initObj;
splice(0, 1);
return(_local2);
}
function splice(startIndex, deleteCount) {
stop(true);
var _local6 = Number(arguments.shift());
if (_local6 < 0) {
_local6 = length - _local6;
}
deleteCount = Number(arguments.shift());
var _local7 = new Array();
var _local4 = 0;
while (_local4 < arguments.length) {
var _local5 = ((arguments[_local4] instanceof com.mosesSupposes.fuse.FuseItem) ? (arguments[_local4]) : (makeItem(_local6 + _local4, arguments[_local4])));
_local7.push(_local5);
_local4++;
}
deleteItems(super.splice.apply(this, [_local6, deleteCount].concat(_local7)));
_local4 = 0;
while (_local4 < length) {
this[_local4]._nItemID = _local4;
_local4++;
}
}
function slice(indexA, indexB) {
var _local6 = super.slice(indexA, indexB);
var _local5 = new Array();
var _local4 = 0;
while (_local4 < arguments.length) {
_local5.push(this[_local4]._initObj);
_local4++;
}
return(_local5);
}
function concat() {
var _local4 = new Array();
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = ((arguments[_local2] instanceof com.mosesSupposes.fuse.Fuse) ? (arguments[_local2].slice(0, arguments[_local2].length)) : (arguments[_local2]));
if (_local3 instanceof Array) {
_local4 = _local4.concat(_local3);
}
_local2++;
}
var _local5 = new com.mosesSupposes.fuse.Fuse();
_local5.splice.apply(_local5, [0, 0].concat(_local4));
return(_local5);
}
function sort() {
trace("sort() is not supported by this version of Fuse.");
}
function sortOn() {
trace("sortOn() is not supported by this version of Fuse.");
}
function reverse() {
stop(true);
super.reverse();
var _local3 = 0;
while (_local3 < length) {
this[_local3]._nItemID = _local3;
_local3++;
}
}
function traceItems(indexA, indexB) {
var _local4 = super.slice(indexA, indexB);
trace(((this + " traceItems:") + newline) + "----------");
var _local3 = 0;
while (_local3 < _local4.length) {
if (_local4[_local3] instanceof com.mosesSupposes.fuse.Fuse) {
trace((((("Fuse#" + _nID) + ">Item#") + _local3) + ": [Nested Fuse] ") + _local4[_local3]);
} else {
trace(_local4[_local3]);
}
_local3++;
}
trace("----------");
}
function toString() {
return(((("Fuse#" + String(_nID)) + " (contains ") + length) + " items)");
}
function setStartProps() {
var _local6 = (arguments.length == 0) || (arguments[0] === true);
dispatchEvent({target:this, type:"evtSetStart", all:_local6, filter:(((arguments.length == 1) && (arguments[0] instanceof Array)) ? (arguments[0]) : arguments), targs:_aDefaultTargs, scope:scope});
return(this);
}
function start(setStart) {
stop(true);
if ((setStart != null) && (setStart != false)) {
setStartProps.apply(this, arguments);
}
_sState = "playing";
dispatchEvent({target:this, type:"onStart"});
playCurrentItem();
return(this);
}
function stop() {
if (_sState != "stopped") {
this[_nIndex].stop();
}
if (!((arguments[0] === true) && (_sState == "stopped"))) {
dispatchEvent({target:this, type:"onStop"});
}
_sState = "stopped";
_nIndex = 0;
clearInterval(_nDelay);
_nTimeCache = (_nDelay = -1);
if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) {
this[_nIndex].removeEventListener("onComplete", _oDel1);
}
}
function skipTo(index) {
if (typeof(index) == "string") {
var _local3 = 0;
while (_local3 < length) {
if (this[_local3]._oParams.label == index) {
index = _local3;
break;
}
_local3++;
}
if (typeof(index) == "string") {
trace("skipTo label failed! Label not found: " + index);
return(undefined);
}
}
if (_global.isNaN(index) == true) {
index = 0;
} else if (index < 0) {
index = length - index;
}
if (index > (length - 1)) {
stop(false);
dispatchEvent({target:this, type:"onComplete"});
return(undefined);
}
this[_nIndex].stop();
if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) {
this[_nIndex].removeEventListener("onComplete", _oDel1);
}
if (_sState == "playing") {
_nIndex = index;
playCurrentItem();
} else {
resume();
}
return(this);
}
function pause() {
if (_sState != "playing") {
return(undefined);
}
this[_nIndex].pause();
_sState = "paused";
if (_nTimeCache != -1) {
_nTimeCache = _nTimeCache - getTimer();
clearInterval(_nDelay);
}
dispatchEvent({target:this, type:"onPause"});
}
function resume() {
dispatchEvent({target:this, type:"onResume"});
switch (_sState) {
case "stopped" :
start();
return(undefined);
case "playing" :
advance();
break;
case "paused" :
if (_nTimeCache != -1) {
clearInterval(_nDelay);
_nTimeCache = getTimer() + _nTimeCache;
_nDelay = setInterval(this, "playCurrentItem", _nTimeCache, true);
}
this[_nIndex].pause(true);
}
_sState = "playing";
}
function destroy() {
stop(true);
splice(0, length);
_aDefaultTargs = null;
scope = null;
for (var _local2 in this) {
if (_local2 != "_nID") {
delete this[_local2];
}
}
removeInstanceAt(_nID, true);
}
function advance() {
if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) {
this[_nIndex].removeEventListener("onComplete", _oDel1);
}
do {
_nIndex++;
} while (((this[_nIndex]._oParams.nTypes === 0) || (this[_nIndex].length === 0)) && (_nIndex < length));
if (_nIndex >= length) {
stop(false);
dispatchEvent({target:this, type:"onComplete"});
return(undefined);
}
playCurrentItem();
dispatchEvent({target:this, type:"onAdvance"});
}
function playCurrentItem(postDelay) {
clearInterval(_nDelay);
if (!(postDelay === true)) {
var _local2 = this[_nIndex].evalDelay(scope) || 0;
if ((_nIndex == 0) && (_local2 == 0)) {
_local2 = 0.01;
}
if (_local2 > 0) {
_nTimeCache = getTimer() + (_local2 * 1000);
_nDelay = setInterval(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);
}
this[_nIndex].addEventListener("onComplete", _oDel1);
}
this[_nIndex].startItem(_aDefaultTargs, scope);
}
function makeItem(stackIndex, o) {
var _local2 = ((o instanceof com.mosesSupposes.fuse.Fuse) ? (o) : (new com.mosesSupposes.fuse.FuseItem(stackIndex, o, _nID)));
if (!(_local2._oParams.nTypes === 0)) {
addEventListener("onStop", _local2);
addEventListener("evtSetStart", _local2);
}
return(_local2);
}
function deleteItems() {
for (var _local3 in arguments) {
removeEventListener("onStop", arguments[_local3]);
removeEventListener("evtSetStart", arguments[_local3]);
if (arguments[_local3] instanceof com.mosesSupposes.fuse.Fuse) {
arguments[_local3].removeEventListener("onComplete", _oDel1);
} else {
arguments[_local3].destroy();
delete this[arguments[_local3]._nItemID];
}
}
}
function evtSetStart(o) {
setStartProps.apply(this, o.filter);
}
function startItem(targs, scope) {
if (target == null) {
target = (targs);
}
if (scope == null) {
}
start();
}
static function registerInstance(s) {
if (_aInstances == null) {
_aInstances = new Array();
}
return(_aInstances.push(s) - 1);
}
static function removeInstanceAt(id, isDestroyCall) {
if (isDestroyCall != true) {
_aInstances[id].destroy();
}
delete _aInstances[id];
}
static function open(fuseOrID) {
if (_oBuildMode == null) {
_oBuildMode = {curID:-1, prevID:-1, curGroup:null, oldAS:com.mosesSupposes.fuse.ZigoEngine.AUTOSTOP};
} else if (_oBuildMode.curID > -1) {
close();
}
if (fuseOrID != null) {
if (fuseOrID instanceof com.mosesSupposes.fuse.Fuse) {
_oBuildMode.curID = fuseOrID.id;
} else if ((typeof(fuseOrID) == "number") && (getInstance(fuseOrID) != null)) {
_oBuildMode.curID = fuseOrID;
} else {
trace("Fuse :: id not found - Aborting open().");
return(undefined);
}
} else {
_oBuildMode.curID = (new com.mosesSupposes.fuse.Fuse()).id;
}
_oBuildMode.prevID = _oBuildMode.curID;
_oBuildMode.oldAS = com.mosesSupposes.fuse.ZigoEngine.AUTOSTOP;
com.mosesSupposes.fuse.ZigoEngine.AUTOSTOP = false;
com.mosesSupposes.fuse.ZigoEngine.__oDetour = {scope:com.mosesSupposes.fuse.Fuse, AT:addBuildItem, ATWD:addBuildItemWD};
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;
com.mosesSupposes.fuse.ZigoEngine.AUTOSTOP = _oBuildMode.oldAS;
com.mosesSupposes.fuse.ZigoEngine.__oDetour = null;
}
static function closeAndStart() {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
return(undefined);
}
var _local1 = getInstance(_oBuildMode.curID);
close();
_local1.start();
}
static function startRecent() {
var _local1 = getInstance(_oBuildMode.prevID);
if (_local1 != null) {
_local1.start();
} else {
trace("No recent Fuse found to start.");
}
}
static function addCommand(commandOrScope, indexOrFunc) {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
return(undefined);
}
if (typeof(commandOrScope) == "string") {
getInstance(_oBuildMode.curID).push({command:commandOrScope, commandargs:indexOrFunc});
} else {
getInstance(_oBuildMode.curID).push({scope:commandOrScope, func:indexOrFunc, args:arguments.slice(2)});
}
}
static function addBuildItem() {
if (_oBuildMode.curGroup != null) {
_oBuildMode.curGroup.push({tweenargs:arguments});
} else {
getInstance(_oBuildMode.curID).push({tweenargs:arguments});
}
return(true);
}
static function addBuildItemWD() {
var _local2 = arguments.shift();
if (_oBuildMode.curGroup != null) {
_oBuildMode.curGroup.push({tweenargs:arguments, delay:_local2});
} else {
getInstance(_oBuildMode.curID).push({tweenargs:arguments, delay:_local2});
}
return(true);
}
static var VERSION = "1.0";
static var AUTHOR = "Moses Gunesch :: http://www.mosessupposes.com/Fuse :: fuse@mosessupposes.com";
static var AUTOCLEAR = false;
static var ADD_UNDERSCORES = true;
var _sState = "stopped";
var _nDelay = -1;
var _nTimeCache = -1;
static var _aInstances = null;
static var _oBuildMode = null;
}
Symbol 72 MovieClip [__Packages.com.mosesSupposes.fuse.FuseItem] Frame 0
class com.mosesSupposes.fuse.FuseItem
{
var _nItemID, _nFuseID, _initObj, _sID, _oParams, _sImage, _aTweens, _oTrigger, _aBools, _bStartSet;
function FuseItem (id, o, fuseID) {
_nItemID = id;
_nFuseID = fuseID;
_initObj = o;
_sID = (("Fuse#" + _nFuseID) + ">Item#") + String(_nItemID);
var _local7 = ((o instanceof Array) ? (o) : ([o]));
_oParams = {nTypes:0, d:null, label:null, ds:null, oCmd:null, aFuncOnly:null, bSt:false, aProfiles:[]};
var _local4 = 0;
while (_local4 < _local7.length) {
if (typeof(_local7[_local4]) != "object") {
} else {
var _local5 = _local7[_local4];
var _local12 = false;
if ((_local5.tweenargs != null) && (_local5.tweenargs instanceof Array)) {
if (_oParams.aProfiles.length == 0) {
_oParams.nTypes++;
}
_oParams.aProfiles[_local4] = _local5;
} else {
if (_local5.action != null) {
_local12 = true;
_local5 = _local5.action;
}
for (var _local20 in _local5) {
var _local6 = _local5[_local20];
if (_local20 == "label") {
_oParams.label = String(_local6);
} else if (_local20.indexOf("command") == 0) {
if (_oParams.oCmd == null) {
_oParams.oCmd = {};
_oParams.nTypes++;
}
_oParams.oCmd[_local20] = _local6;
} else {
if (_oParams.aProfiles[_local4] == null) {
_oParams.aProfiles[_local4] = {oFunc:null, oFuncCopy:null, d:0, oTw:null, nS:null, sE:null, extra1:null, extra2:null, aTarg:null, bAddTarg:false, bTrigger:null};
}
var _local3 = _oParams.aProfiles[_local4];
if (_local20.toLowerCase().indexOf("target") > -1) {
_local3.aTarg = ((_local6 instanceof Array) ? _local6 : [_local6]);
if (_local20.slice(0, 3) == "add") {
_local3.bAddTarg = true;
}
continue;
}
if (_local20 == "delay") {
_local3.d = _local6;
if (_oParams.d == null) {
_oParams.d = 0;
_oParams.nTypes++;
}
if (typeof(_local6) == "function") {
_oParams.d = _local6;
_oParams.ds = _local5.scope;
} else if ((_global.isNaN(Number(_local6)) == false) && (typeof(_oParams.d) != "function")) {
_oParams.d = Math.max(_oParams.d, Number(_local6));
}
continue;
}
if (((_local20.indexOf("func") > -1) || (_local20.indexOf("scope") > -1)) || (_local20.indexOf("args") > -1)) {
if (_local3.oFunc == null) {
_local3.oFunc = {};
}
_local3.oFunc[_local20] = _local6;
continue;
}
if (_local20.indexOf("eas") == 0) {
_local3.sE = _local6;
continue;
}
if ((_local20 == "seconds") || (_local20 == "duration")) {
_local3.nS = _local6;
continue;
}
if (_local20.indexOf("extra") == 0) {
_local3[_local20] = _local6;
continue;
}
if (_local20 == "trigger") {
_local3.bTrigger = true;
continue;
}
if (_local3.oTw == null) {
_local3.oTw = {};
_oParams.nTypes++;
}
if (_local20.indexOf("start") == 0) {
_oParams.bSt = true;
}
_local3.oTw[_local20] = _local6;
}
}
if (_local12 == true) {
for (var _local20 in _local7[_local4]) {
var _local6 = _local7[_local4][_local20];
if (_local20.toLowerCase().indexOf("target") > -1) {
_oParams.aProfiles[_local4].aTarg = ((_local6 instanceof Array) ? (_local6) : ([_local6]));
if (_local20.slice(0, 3) == "add") {
_oParams.aProfiles[_local4].bAddTarg = true;
}
continue;
}
}
}
}
}
_local4++;
}
cleanUpParams();
}
function toString() {
return((_sID + ": ") + _sImage);
}
function evalDelay(scope) {
if (!((_oParams.d != null) && ((_oParams.aProfiles == null) || (_oParams.aProfiles.length == 0)))) {
return(0);
}
var _local3 = _oParams.d;
if (typeof(_local3) == "function") {
_local3 = _oParams.d.apply(((_oParams.ds != null) ? (_oParams.ds) : (scope)));
}
if (_global.isNaN(Number(_local3)) == true) {
_local3 = 0;
}
return(_local3);
}
function startItem(targs, scope) {
if (_aTweens.length > 0) {
stop();
}
if (_oParams.aFuncOnly != null) {
for (var _local8 in _oParams.aFuncOnly) {
var _local7 = _oParams.aFuncOnly[_local8];
var _local2 = ((_local7.scope != null) ? (_local7.scope) : (scope));
if ((_local2 != null) && (typeof(_local7.func) == "string")) {
_local7.func = _local2[_local7.func];
}
var _local3 = ((typeof(_local7.args) == "function") ? (_local7.args.apply(_local2)) : (_local7.args));
_local7.func.apply(_local2, _local3);
}
}
if (_oParams.oCmd != null) {
var _local7 = _oParams.oCmd;
var _local5 = _local7.command;
var _local6 = _local7.commandargs;
var _local9 = ((_local7.commandscope != null) ? (_local7.commandscope) : (scope));
if (typeof(_local5) == "function") {
_local5 = String(_local5.apply(_local9));
}
if (typeof(_local6) == "function") {
_local6 = _local6.apply(_local9);
}
dispatchRequest(String(_local5), _local6);
}
if ((_oParams.aProfiles == null) || (_oParams.aProfiles.length == 0)) {
if ((_oParams.oCmd == null) || ((_local5 == "skipTo") && (_local6 == null))) {
dispatchRequest("advance");
}
} else {
delete _oTrigger;
com.mosesSupposes.fuse.ZigoEngine.BROADCAST_EVENTS = true;
doTweens(targs, scope);
_bPlaying = true;
}
}
function stop() {
for (var _local2 in _aTweens) {
_aTweens[_local2].targ.removeListener(this);
com.mosesSupposes.fuse.ZigoEngine.removeTween(_aTweens[_local2].targ, _aTweens[_local2].props);
delete _aTweens[_local2];
}
_aTweens = new Array();
_aBools = new Array();
_bPlaying = false;
}
function pause(resume) {
if ((resume == true) && ((_oParams.aProfiles == null) || (_oParams.aProfiles.length == 0))) {
stop();
dispatchRequest("advance");
return(undefined);
}
for (var _local10 in _aTweens) {
var _local2 = _aTweens[_local10].targ;
var _local3 = _aTweens[_local10].props;
if (resume == true) {
var _local4 = [];
var _local5 = _aTweens.length;
for (var _local7 in _local3) {
if (com.mosesSupposes.fuse.ZigoEngine.isTweenPaused(_local2, _local3[_local7]) == false) {
_local4.push(_local3[_local7]);
}
}
if (_local4.length > 0) {
onTweenEnd({target:_local2, props:_local4});
}
if (_aTweens.length == _local5) {
_local2.addListener(this);
com.mosesSupposes.fuse.ZigoEngine.doEngineCall(_local2, "unpauseTween", _aTweens[_local10].props);
}
} else {
_local2.removeListener(this);
com.mosesSupposes.fuse.ZigoEngine.doEngineCall(_local2, "pauseTween", _local3);
}
}
}
function onStop(o) {
_bStartSet = false;
}
function evtSetStart(o) {
if (_oParams.bSt == false) {
return(undefined);
}
if (o.all != true) {
var _local3 = false;
for (var _local4 in o.filter) {
if (o.filter[_local4] == _nItemID) {
_local3 = true;
}
}
if (_local3 == false) {
return(undefined);
}
}
doTweens(o.targs, o.scope, true);
_bStartSet = true;
}
function dispatchRequest(type, args) {
var _local3 = com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID);
if ((args != null) && (!(args instanceof Array))) {
args = [args];
}
_local3[type].apply(_local3, args);
}
function cleanUpParams() {
_sImage = "Contains: ";
if (_oParams.d != null) {
_sImage = _sImage + "delay, ";
}
var _local3 = "";
var _local5 = false;
pr = null;
if (_oParams.aProfiles != null) {
for (var _local6 in _oParams.aProfiles) {
var pr = _oParams.aProfiles[_local6];
if ((pr.oTw == null) && (pr.tweenargs == null)) {
if (pr.oFunc.func != null) {
if (_oParams.aFuncOnly == null) {
_oParams.aFuncOnly = [];
_oParams.nTypes++;
}
_oParams.aFuncOnly.push(pr.oFunc);
}
_oParams.aProfiles[_local6] = null;
_local5 = true;
} else if (_oParams.oCmd == null) {
if (pr.tweenargs != null) {
var _local2 = 0;
while (_local2 < pr.tweenargs[1].length) {
if (_local3.indexOf((" " + pr.tweenargs[1][_local2]) + ",") == -1) {
_local3 = _local3 + (pr.tweenargs[1][_local2] + ", ");
}
_local2++;
}
} else {
for (var _local4 in pr.oTw) {
if (_local3.indexOf((" " + _local4) + ",") == -1) {
_local3 = _local3 + (_local4 + ", ");
}
}
}
}
}
if (_local5 == true) {
for (var _local6 in _oParams.aProfiles) {
if (_oParams.aProfiles[_local6] == null) {
_oParams.aProfiles.splice(Number(_local6), 1);
}
}
if (_oParams.aProfiles.length == 0) {
if (_oParams.aProfiles.length > 0) {
_oParams.nTypes--;
}
_oParams.aProfiles = null;
}
}
}
if (_oParams.oCmd != null) {
if ((typeof(_oParams.oCmd.command) == null) || ((typeof(_oParams.oCmd.command) != "string") && (typeof(_oParams.oCmd.command) != "function"))) {
_oParams.oCmd = null;
_oParams.nTypes--;
_sImage = _sImage + "(command - not valid), ";
} else {
_sImage = _sImage + (("command:\"" + _oParams.oCmd.command) + "\", ");
if (_oParams.aProfiles.length > 0) {
_oParams.nTypes--;
}
_oParams.aProfiles = null;
}
}
if (_oParams.nTypes == 0) {
trace(("Warning: " + _sID) + " contained no valid params.");
_sImage = _sImage + "ERROR: no valid params. [Item will be skipped.]";
} else if ((_oParams.oCmd == null) && (_oParams.aProfiles != null)) {
if (_oParams.aProfiles.length == 1) {
_sImage = _sImage + ("props:[" + _local3);
} else {
_sImage = _sImage + ((_oParams.aProfiles.length + " objs with props:[") + _local3);
}
if (_sImage.slice(-2) == ", ") {
_sImage = _sImage.slice(0, _sImage.length - 2);
}
_sImage = _sImage + "], ";
} else if (_oParams.aFuncOnly != null) {
if (_oParams.aFuncOnly.length == 1) {
_sImage = _sImage + "1 non-tween function-call, ";
} else {
_sImage = _sImage + (_oParams.aFuncOnly.length + " non-tween function-calls, ");
}
}
if (_sImage.slice(-2) == ", ") {
_sImage = _sImage.slice(0, _sImage.length - 2);
}
}
function destroy() {
for (var _local2 in _aTweens) {
_aTweens[_local2].targ.removeListener(this);
_aTweens[_local2].targ.stopTween(_aTweens[_local2].props);
}
for (var _local2 in this) {
delete this[_local2];
}
}
function doTweens(targs, scope, setStart) {
if (_aTweens == null) {
_aTweens = new Array();
}
_aBools = new Array();
var _local34 = 0;
for (var _local37 in _oParams.aProfiles) {
var _local4 = _oParams.aProfiles[_local37];
if (_local4.tweenargs != null) {
_local4.tweenargs[0].addListener(this);
if ((_local4.delay != null) && (_local4.delay > 0)) {
com.mosesSupposes.fuse.ZigoEngine.addTweenWithDelay.apply(com.mosesSupposes.fuse.ZigoEngine, [_local4.delay].concat(_local4.tweenargs));
} else {
com.mosesSupposes.fuse.ZigoEngine.addTween.apply(com.mosesSupposes.fuse.ZigoEngine, _local4.tweenargs);
}
_aTweens.push({targ:_local4.tweenargs[0], props:_local4.tweenargs[1].concat()});
continue;
}
if (_local4.oFunc != null) {
if (_local4.oFuncCopy != null) {
delete _local4.oFunc;
_local4.oFunc = _local4.oFuncCopy;
}
delete _local4.oFuncCopy;
_local4.oFuncCopy = _local4.oFunc;
if (_local4.oFunc.scope != null) {
scope = _local4.oFunc.scope;
} else {
_local4.oFunc.scope = scope;
if ((_local4.oFunc.updfunc != null) && (_local4.oFunc.updscope == null)) {
_local4.oFunc.updscope = scope;
}
if ((_local4.oFunc.startfunc != null) && (_local4.oFunc.startscope == null)) {
_local4.oFunc.startscope = scope;
}
}
if (typeof(_local4.oFunc.args) == "function") {
_local4.oFunc.args = _local4.oFunc.args.apply(scope);
}
if (typeof(_local4.oFunc.updargs) == "function") {
_local4.oFunc.updargs = _local4.oFunc.updargs.apply(scope);
}
if (typeof(_local4.oFunc.startargs) == "function") {
_local4.oFunc.startargs = _local4.oFunc.startargs.apply(scope);
}
}
var _local11 = ((_local4.aTarg == null) ? ([]) : (_local4.aTarg.slice()));
if ((_local11.length == 0) || (_local4.bAddTarg == true)) {
_local11 = _local11.concat(targs);
}
var _local7 = [];
for (var _local36 in _local11) {
if (_local11[_local36] == undefined) {
continue;
}
var _local17 = ((typeof(_local11[_local36]) == "function") ? (_local11[_local36].apply(scope)) : (_local11[_local36]));
var _local15 = false;
for (var _local28 in _local7) {
if (_local7[_local28] == _local17) {
_local15 = true;
}
}
if (_local15 == false) {
_local7.unshift(_local17);
}
}
if (_local7.length == 0) {
_local34++;
}
var _local8 = {p:[], v:[], ref:{}};
var _local6 = {p:[], v:[], ref:{}};
var _local30 = {};
var _local12 = _local4.oTw;
var _local26 = "|x|y|xscale|yscale|scale|width|height|size|rotation|alpha|visible|";
var _local20 = "|rgb|tint|color|brightness|brightOffset|contrast|invertColor|colorTransform|";
for (var _local31 in _local12) {
if (_local31.indexOf("tintPercent") > -1) {
continue;
}
var _local14 = _local31;
var _local5;
if (_local31.indexOf("start_") > -1) {
var _local31 = _local31.slice(6);
_local5 = _local8;
} else {
_local5 = _local6;
}
var _local10 = -1;
if (_local20.indexOf(("|" + _local31.slice(1)) + "|") > -1) {
_local10 = 0;
} else if (_local20.indexOf(("|" + _local31) + "|") > -1) {
_local10 = 1;
}
if (((com.mosesSupposes.fuse.Fuse.ADD_UNDERSCORES == true) && (_local26.indexOf(("|" + _local31) + "|") > -1)) || (_local10 == 1)) {
var _local31 = "_" + _local31;
}
var _local3;
if (typeof(_local12[_local14]) == "function") {
_local3 = _local12[_local14].apply(scope);
} else {
_local3 = _local12[_local14];
}
if (((((_global.isNaN(_local3) == true) && (typeof(_local3) != "string")) && (!(_local3 === true))) && (!(_local3 === false))) && (((_local3 === null) && (_local10 > -1)) == false)) {
trace((_sID + " invalid value encountered:") + _local3);
}
if (_local10 > -1) {
if (typeof(_local3) == "string") {
_local3 = Number(_local3);
}
_local5.p.push("_ct_");
if ((_local3 == null) || (((_local31 == "_rgb") || (_local31 == "_tint")) || (_local31 == "_color"))) {
var _local19 = (_local12.tintPercent || (_local12._tintPercent)) || 100;
_local5.v.push(com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", _local19, _local3));
} else if (_local31 == "_colorTransform") {
_local5.v.push(_local3);
} else {
_local5.v.push(com.mosesSupposes.fuse.ZigoEngine.getColorTransObj(_local31.slice(1), _local3));
}
} else {
switch (_local31.toLowerCase()) {
case "_scale" :
_local5.p = _local5.p.concat(["_xscale", "_yscale"]);
_local5.v = _local5.v.concat([_local3, _local3]);
_local5.ref._xscale = (_local5.ref._yscale = _local3);
break;
case "_size" :
_local5.p = _local5.p.concat(["_width", "_height"]);
_local5.v = _local5.v.concat([_local3, _local3]);
_local5.ref._width = (_local5.ref._height = _local3);
break;
default :
if (((_local3 === true) || (_local3 === false)) && (_local5 == _local6)) {
_aBools.push({prop:_local31, val:_local3});
} else {
_local5.p.push(_local31);
_local5.v.push(_local3);
_local5.ref[_local31] = _local3;
}
}
}
for (var _local31 in _local8.ref) {
if (_local6.ref[_local31] == undefined) {
if (_local10 > -1) {
_local6.p.push("_ct_");
_local6.v.push(com.mosesSupposes.fuse.ZigoEngine.getColorTransObj());
continue;
}
var _local9 = null;
if ((((_local31 == "_xscale") || (_local31 == "_yscale")) || (_local31 == "_alpha")) || (_local31 == "_contrast")) {
_local9 = 100;
} else if (_local31 == "_rotation") {
_local9 = 0;
}
if (_local9 != null) {
_local6.p.push(_local31);
_local6.v.push(_local9);
_local6.ref[_local31] = _local9;
}
}
}
}
if ((_bStartSet != true) || (setStart == true)) {
for (var _local36 in _local7) {
for (var _local28 in _local8.p) {
if (typeof(_local8.v[_local28]) == "string") {
_local7[_local36][_local8.p[_local28]] = _local7[_local36][_local8.p[_local28]] + Number(_local8.v[_local28]);
} else if (_local8.p[_local28] == "_ct_") {
new Color(_local7[_local36]).setTransform(_local8.v[_local28]);
} else {
_local7[_local36][_local8.p[_local28]] = _local8.v[_local28];
}
}
}
}
if ((_local6.p.length == 0) || (setStart == true)) {
continue;
}
var _local18 = _local4.sE;
if (_local18 instanceof Function) {
if (typeof(_local18(1, 1, 1, 1)) != "number") {
_local18 = _local18.apply(scope);
}
}
var _local21 = _local4.oFunc;
for (var _local36 in _local7) {
var _local16 = new Array();
for (var _local28 in _local6.p) {
_local16[_local28] = _local6.p[_local28];
}
_aTweens.push({targ:_local7[_local36], props:_local16});
com.mosesSupposes.fuse.ZigoEngine.doTween(_local7[_local36], _local6.p, _local6.v, _local4.nS, _local18, _local4.d, _local21, _local4.extra1, _local4.extra2);
_local7[_local36].addListener(this);
_local21 = null;
if (((_local4.bTrigger != null) && (_oTrigger == null)) && (_oParams.aProfiles.length > 1)) {
_oTrigger = {done:false, targ:_local7[_local36], prop:_local6.p[0]};
}
}
}
if (setStart == true) {
return(undefined);
}
if (_local34 > 0) {
trace(("Error: Missing targets in " + ((_local34 == 1) ? "" : (_local34 + " objects in "))) + _sID);
if (_aTweens.length == 0) {
trace("\t\t[Skipping the item.]");
stop();
dispatchRequest("advance");
}
}
if (_aTweens.length == 0) {
for (var _local36 in _local7) {
for (var _local32 in _aBools) {
_local7[_local36][_aBools[_local32].prop] = _aBools[_local32].val;
}
}
for (var _local37 in _oParams.aProfiles) {
delete _oParams.aProfiles[_local37].oTw;
}
var _local38 = ((_oParams.d != null) && (_oParams.d != 0)) && (_oParams.aProfiles != null);
cleanUpParams();
if ((_local38 == true) && (_oParams.aProfiles == null)) {
dispatchRequest("playCurrentItem");
return(undefined);
}
if (_oParams.aFuncOnly != null) {
delete _oParams.aProfiles;
startItem();
return(undefined);
}
stop();
dispatchRequest("advance");
}
}
function onTweenEnd(o) {
if ((o.target == null) || (o.props.length <= 0)) {
return(undefined);
}
for (var _local8 in _aTweens) {
if (_aTweens[_local8].targ == o.target) {
for (var _local7 in o.props) {
for (var _local6 in _aTweens[_local8].props) {
if (_oTrigger.done === false) {
if (_aTweens[_local8].targ == _oTrigger.targ) {
if ((_oTrigger.prop === true) || (_aTweens[_local8].props[_local6] == _oTrigger.prop)) {
_oTrigger.done = true;
dispatchRequest("advance");
}
}
}
if (_aTweens[_local8].props[_local6] == o.props[_local7]) {
_aTweens[_local8].props.splice(Number(_local6), 1);
if (_aTweens[_local8].props.length == 0) {
var _local2 = false;
for (var _local5 in _aTweens) {
if ((_local5 != _local8) && (_aTweens[_local5].targ == o.target)) {
_local2 = true;
}
}
if (_local2 == false) {
for (var _local4 in _aBools) {
_aTweens[_local4].targ[_aBools[_local4].prop] = _aBools[_local4].val;
}
_aTweens[_local8].targ.removeListener(this);
}
_aTweens.splice(Number(_local8), 1);
if (_aTweens.length == 0) {
stop();
if (!(_oTrigger.done === true)) {
dispatchRequest("advance");
}
return(undefined);
}
}
}
}
}
}
}
}
function onTweenInterrupt(o) {
if (_bPlaying == false) {
return(undefined);
}
onTweenEnd(o);
}
var _bPlaying = false;
}
Symbol 73 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 74 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 88 MovieClip Frame 1
function getPercentLoaded(target) {
return(Math.round((target.getBytesLoaded() / target.getBytesTotal()) * 100));
}
onEnterFrame = function () {
var _local3 = getPercentLoaded(_root);
percent_txt.text = String(_local3) + "%";
if (_local3 == 100) {
onEnterFrame = null;
_parent.play();
}
};
Symbol 103 MovieClip Frame 1
stop();
snap_mc._visible = false;
crackle_mc._visible = false;
pop_mc._visible = false;
Symbol 103 MovieClip Frame 48
snap_mc._visible = true;
crackle_mc._visible = true;
pop_mc._visible = true;
Symbol 103 MovieClip Frame 92
stop();
Symbol 103 MovieClip Frame 93
snap_mc._visible = true;
crackle_mc._visible = true;
pop_mc._visible = true;
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 2
stop();
Symbol 141 MovieClip Frame 1
txt1.text = _parent.playerCount1;
Symbol 141 MovieClip Frame 2
stop();
txt1.text = _parent.playerCount1;
Symbol 141 MovieClip Frame 3
txt.text = _parent.playerCount1;
Symbol 141 MovieClip Frame 4
stop();
txt.text = _parent.playerCount1;
Symbol 146 MovieClip Frame 1
txt1.text = _parent.playerCount2;
Symbol 146 MovieClip Frame 2
stop();
txt1.text = _parent.playerCount2;
Symbol 146 MovieClip Frame 3
txt.text = _parent.playerCount2;
Symbol 146 MovieClip Frame 4
stop();
txt.text = _parent.playerCount2;
Symbol 147 MovieClip Frame 1
function newSound(soundId, volume) {
var _local3 = this.createEmptyMovieClip("soundMcObj" + soundCount, 9985 + soundCount);
var _local2 = new Sound(_local3);
_local2.attachSound(soundId);
if (volume != null) {
_local2.setVolume(volume);
}
soundCount++;
return(_local2);
}
function toggleSound() {
if (isSoundOn) {
danger_sound.setVolume(0);
easy_sound.setVolume(0);
ok_sound.setVolume(0);
tumble_sound.setVolume(0);
isSoundOn = false;
sound_btn.gotoAndStop(2);
} else {
danger_sound.setVolume(100);
easy_sound.setVolume(100);
ok_sound.setVolume(100);
tumble_sound.setVolume(100);
isSoundOn = true;
sound_btn.gotoAndStop(1);
}
}
function onNonAnimBlockPress() {
blockVisArray[this.i] = false;
alphaMotionArray.push(this);
Fuse.openGroup();
var _local2 = ((this.blockType == "left1") || (this.blockType == "mid1")) || (this.blockType == "right1");
var _local4 = (_local2 ? -120 : 120);
var _local3 = (_local2 ? 30 : 70);
this.alphaTo(0, 0.5, "linear", 0.25, this._parent.alphaMotionEnd);
this.slideTo(this._x + _local4, this._y + _local3, 0.5, "linear");
Fuse.closeGroup();
Fuse.closeAndStart();
blockCount--;
this.enabled = false;
this._parent["playerCount" + currentPlayer]++;
currentPlayer = ((currentPlayer == 1) ? 2 : 1);
this._parent[("player" + currentPlayer) + "_mc"].gotoAndPlay(3);
this._parent[("player" + String(((currentPlayer == 1) ? 2 : 1))) + "_mc"].gotoAndPlay(1);
player1_mc.txt1.text = playerCount1;
player1_mc.txt.text = playerCount1;
player2_mc.txt1.text = playerCount2;
player2_mc.txt.text = playerCount2;
}
function onNonAnimBlockRollOver() {
this.brightnessTo(60, 0.2, "linear");
}
function onNonAnimBlockRollOut() {
this.brightnessTo(0, 0.2, "linear");
}
function alphaMotionEnd() {
var _local2 = alphaMotionArray.shift();
_local2._visible = false;
if ((((((((!this["nonAnimBlock_mc" + (_local2.i + 1)].enabled) || (!this["nonAnimBlock_mc" + (_local2.i - 1)].enabled)) && ((_local2.blockType == "mid1") || (_local2.blockType == "mid2"))) || ((!this["nonAnimBlock_mc" + (_local2.i + 1)].enabled) && ((_local2.blockType == "left1") || (_local2.blockType == "left2")))) || ((!this["nonAnimBlock_mc" + (_local2.i - 1)].enabled) && ((_local2.blockType == "right1") || (_local2.blockType == "right2")))) && (!isFalling)) && (_local2.i != 27)) && (_local2.i != 25)) {
isFalling = true;
trace("this._parent.elves_mc: " + this._parent.elves_mc);
this._parent.elves_mc.gotoAndPlay("fall");
tumble_sound.start();
replayInterval = setInterval(this, "replayCallback", 3500);
gotoAndPlay ("fall");
} else if ((randRange(1, 100) <= 50) && (!isFalling)) {
trace("DANGER");
danger_sound.start();
gotoAndPlay ("tip");
} else if (blockCount >= 24) {
trace("EASY");
easy_sound.start();
} else {
trace("OK");
ok_sound.start();
}
}
function replayCallback() {
_parent.end_mc.winner_txt.text = ("PLAYER " + ((playerCount1 < playerCount2) ? "1" : "2")) + " IS THE WINNER!";
_parent.end_mc._visible = true;
_parent.end_mc.alphaTo(100, 1);
clearInterval(replayInterval);
}
function reset() {
stopAllSounds();
blockCount = 27;
isFalling = false;
currentPlayer = 1;
playerCount1 = 0;
playerCount2 = 0;
player1_mc.txt1.text = "0";
player2_mc.txt1.text = "0";
player1_mc.txt.text = "0";
player2_mc.txt.text = "0";
player1_mc.gotoAndPlay(3);
player2_mc.gotoAndPlay(1);
i = 1;
while (i <= 27) {
blockVisArray[i] = true;
this["nonAnimBlock_mc" + i]._x = this["nonAnimBlock_mc" + i].initialX;
this["nonAnimBlock_mc" + i]._y = this["nonAnimBlock_mc" + i].initialY;
this["nonAnimBlock_mc" + i]._alpha = 0;
this["nonAnimBlock_mc" + i]._visible = true;
this["nonAnimBlock_mc" + i].enabled = true;
Fuse.openGroup();
this["nonAnimBlock_mc" + i].alphaTo(100, 0.1, "easeInQuad", 0.1 * i);
this["nonAnimBlock_mc" + i].brightnessTo(0, 0.1, "linear");
Fuse.closeGroup();
Fuse.closeAndStart();
i++;
}
this._parent.elves_mc.gotoAndPlay("appear");
}
function setAllPropertiesTo(property, value) {
i = 1;
while (i <= 27) {
this["nonAnimBlock_mc" + i][property] = value;
i++;
}
}
function setProperVisStatus() {
i = 1;
while (i <= 27) {
this["nonAnimBlock_mc" + i]._visible = false;
this["block_mc" + i]._visible = blockVisArray[i];
i++;
}
}
var soundCount = 0;
var currentPlayer;
var playerCount1;
var playerCount2;
var isSoundOn = true;
var danger_sound = newSound("danger_sound");
var easy_sound = newSound("easy_sound");
var ok_sound = newSound("ok_sound");
var tumble_sound = newSound("tumble_sound");
sound_btn.onPress = toggleSound;
var alphaMotionArray = new Array();
var slideDirectionArray = new Array();
var blockVisArray = new Array();
var isFalling;
var blockCount;
var replayInterval;
i = 1;
while (i <= 27) {
this["block_mc" + i]._visible = true;
this["nonAnimBlock_mc" + i].i = i;
this["nonAnimBlock_mc" + i].initialX = this["nonAnimBlock_mc" + i]._x;
this["nonAnimBlock_mc" + i].initialY = this["nonAnimBlock_mc" + i]._y;
if (i != 26) {
this["nonAnimBlock_mc" + i].onRollOver = onNonAnimBlockRollOver;
this["nonAnimBlock_mc" + i].onRollOut = onNonAnimBlockRollOut;
this["nonAnimBlock_mc" + i].onPress = onNonAnimBlockPress;
} else {
this["nonAnimBlock_mc" + i].onRollOver = function () {
this.tintTo(13369344, 40, 0.2);
cantprompt_mc._alpha = 0;
cantprompt_mc._visible = true;
cantprompt_mc.alphaTo(100, 0.8);
};
this["nonAnimBlock_mc" + i].onRollOut = function () {
this.tintTo(13369344, 0, 0.2);
cantprompt_mc.alphaTo(0, 0.8);
};
}
var blockType = "";
if (((((i == 1) || (i == 7)) || (i == 13)) || (i == 19)) || (i == 25)) {
blockType = "left1";
} else if (((((i == 2) || (i == 8)) || (i == 14)) || (i == 20)) || (i == 26)) {
blockType = "mid1";
} else if (((((i == 3) || (i == 9)) || (i == 15)) || (i == 21)) || (i == 27)) {
blockType = "right1";
} else if ((((i == 4) || (i == 10)) || (i == 16)) || (i == 22)) {
blockType = "left2";
} else if ((((i == 5) || (i == 11)) || (i == 17)) || (i == 23)) {
blockType = "mid2";
} else if ((((i == 6) || (i == 12)) || (i == 18)) || (i == 24)) {
blockType = "right2";
}
this["nonAnimBlock_mc" + i].blockType = blockType;
i++;
}
Instance of Symbol 50 MovieClip [block1_ID] "nonAnimBlock_mc1" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 46 MovieClip [block2_ID] "nonAnimBlock_mc2" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 42 MovieClip [block3_ID] "nonAnimBlock_mc3" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 38 MovieClip [block4_ID] "nonAnimBlock_mc6" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 34 MovieClip [block5_ID] "nonAnimBlock_mc5" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 30 MovieClip [block6_ID] "nonAnimBlock_mc4" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 50 MovieClip [block1_ID] "nonAnimBlock_mc7" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 46 MovieClip [block2_ID] "nonAnimBlock_mc8" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 42 MovieClip [block3_ID] "nonAnimBlock_mc9" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 38 MovieClip [block4_ID] "nonAnimBlock_mc12" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 34 MovieClip [block5_ID] "nonAnimBlock_mc11" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 30 MovieClip [block6_ID] "nonAnimBlock_mc10" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 50 MovieClip [block1_ID] "nonAnimBlock_mc13" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 46 MovieClip [block2_ID] "nonAnimBlock_mc14" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 42 MovieClip [block3_ID] "nonAnimBlock_mc15" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 38 MovieClip [block4_ID] "nonAnimBlock_mc18" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 34 MovieClip [block5_ID] "nonAnimBlock_mc17" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 30 MovieClip [block6_ID] "nonAnimBlock_mc16" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 50 MovieClip [block1_ID] "nonAnimBlock_mc19" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 46 MovieClip [block2_ID] "nonAnimBlock_mc20" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 42 MovieClip [block3_ID] "nonAnimBlock_mc21" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 38 MovieClip [block4_ID] "nonAnimBlock_mc24" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 34 MovieClip [block5_ID] "nonAnimBlock_mc23" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 30 MovieClip [block6_ID] "nonAnimBlock_mc22" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 50 MovieClip [block1_ID] "nonAnimBlock_mc25" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 46 MovieClip [block2_ID] "nonAnimBlock_mc26" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 42 MovieClip [block3_ID] "nonAnimBlock_mc27" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 134 MovieClip "cantprompt_mc" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 147 MovieClip Frame 2
stop();
reset();
Symbol 147 MovieClip Frame 3
stop();
i = 1;
while (i <= 27) {
this["nonAnimBlock_mc" + i]._visible = blockVisArray[i];
i++;
}
Symbol 147 MovieClip Frame 4
setProperVisStatus();
Symbol 147 MovieClip Frame 31
gotoAndStop (3);
Symbol 147 MovieClip Frame 32
setProperVisStatus();
Symbol 147 MovieClip Frame 74
stop();
Symbol 148 MovieClip Frame 1
function gotoURL(url, target) {
if (System.capabilities.playerType == "External") {
trace(((("-- getURL(); url:" + url) + ", target:") + target) + " --");
} else {
getURL (url, target);
}
}
function yesCallback() {
end_mc._visible = false;
}
stop();
sharemagic_btn.onRelease = function () {
gotoURL(_root.sharemagic, "_blank");
};
endgame_btn.onRelease = function () {
gotoURL(_root.playground, "_blank");
};
playground_btn.onRelease = endgame_btn.onRelease;
rk_btn.onRelease = function () {
gotoURL(_root.home, "_blank");
};
end_mc.yes_mc.onRelease = function () {
this._parent._parent.game_mc.gotoAndPlay(2);
this._parent.alphaTo(0, 1, "linear", null, yesCallback);
};
end_mc.no_mc.onRelease = function () {
gotoURL(_root.playground, "_blank");
};
Instance of Symbol 124 MovieClip "playground_btn" in Symbol 148 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 26 MovieClip [end_mc] "end_mc" in Symbol 148 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
_alpha = 0;
}