Frame 1
function updateLoad() {
var _local2 = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
mLoader.mBaseMask._y = (_local2 * -3.5) + 377;
mLoader.mUpperMask._y = mLoader.mBaseMask._y - 10;
if (_local2 == 100) {
clearInterval(intLoad);
_root.gotoAndStop(3);
}
}
stop();
mLoader.mPukeWord._visible = false;
mLoader.mBaseMask._y = (mLoader.mUpperMask._y = 377);
intLoad = setInterval(this, "updateLoad", 100);
Frame 3
var pointage = 0;
var app = (new puker.App(this.createEmptyMovieClip("mHolder", this.getNextHighestDepth())));
var mMute = this.attachMovie("_mMute", "mMute", this.getNextHighestDepth(), {_x:800, _y:380});
this.mute = new Sound();
this.mute.setVolume(100);
mMute.gotoAndStop(1);
mMute.onPress = function () {
if (this._parent.mute.getVolume() == 100) {
this._parent.mute.setVolume(0);
this.gotoAndStop(2);
} else {
this._parent.mute.setVolume(100);
this.gotoAndStop(1);
}
};
stop();
Symbol 3 MovieClip Frame 1
stop();
Symbol 10 MovieClip [_mWalker] Frame 1
stop();
Symbol 595 MovieClip [__Packages.puker.Hud] Frame 0
class puker.Hud extends MovieClip
{
var mPukometer, intUpdate, _app, mDistometer, removeMovieClip;
function Hud () {
super();
init();
}
function init() {
mPukometer.mBaseMask.gotoAndPlay(30);
mPukometer.mPukeWord.gotoAndStop(1);
updateHud();
clearInterval(intUpdate);
intUpdate = setInterval(this, "updateHud", 200);
mPukometer.mBaseMask.onEnterFrame = mx.utils.Delegate.create(this, updateBaseMask);
}
function updateBaseMask() {
mPukometer.mBaseMask._y = mPukometer.mBaseMask._y - ((mPukometer.mBaseMask._y - mPukometer.mUpperMask._y) / 10);
}
function updateHud() {
mDistometer.mBar._x = (_app.distLevel * 5.75) + DIST_MIN;
mPukometer.mUpperMask._y = PUKE_MIN - (_app.pukeLevel * 2);
_app.mSndDrone.snd.setVolume(_app.pukeLevel / 4);
if ((++cnt) > 20) {
cnt = Math.random() * 10;
_app.soundControl.playSound("_sndRetch0" + Math.ceil(Math.random() * 5), (Math.random() * 10) + 10);
}
if (_app.distLevel > nextPickupPoint) {
_app.addPickup();
nextPickupPoint = nextPickupPoint + 10;
_app.instScroller.addHitItem();
} else if (_app.distLevel > 100) {
_app.distBarFull();
clearInterval(intUpdate);
}
if (mPukometer.mBaseMask._y < PUKE_MAX) {
if (_app.distLevel < 70) {
_app.pukeBarFull(1);
} else {
_app.pukeBarFull(2);
}
clearInterval(intUpdate);
} else if (mPukometer.mUpperMask._y < (PUKE_MAX + 30)) {
mPukometer.mPukeWord.play();
} else {
mPukometer.mPukeWord.gotoAndStop(1);
}
}
function pauseHit(pauseState) {
if (pauseState) {
clearInterval(intUpdate);
} else {
clearInterval(intUpdate);
intUpdate = setInterval(this, "updateHud", 200);
}
}
function destroy() {
clearInterval(intUpdate);
removeMovieClip();
}
static var PUKE_MIN = 335;
static var PUKE_MAX = 27;
static var DIST_MIN = 75;
var nextPickupPoint = 10;
var cnt = 0;
}
Symbol 596 MovieClip [__Packages.puker.App] Frame 0
class puker.App
{
var lRoot, soundControl, mSndIntroMusic, mSndDrone, mInfoScreens, keyListener, mSndAmbient, mLevelHolder, instScroller, mHud, mDan, mSubGame;
function App (_lRoot) {
com.mosesSupposes.fuse.ZigoEngine.simpleSetup(com.mosesSupposes.fuse.Shortcuts, com.mosesSupposes.fuse.PennerEasing, com.mosesSupposes.fuse.FuseItem, com.mosesSupposes.fuse.FuseFMP);
lRoot = _lRoot;
soundControl = new com.happylander.utils.SoundControl(lRoot);
init();
}
function init() {
mSndIntroMusic = soundControl.playSoundFade("_sndIntroMusic", 0.5, 100, true);
mSndDrone = soundControl.playSound("_sndDrone", 0, true);
mInfoScreens = lRoot.attachMovie("_mInfoScreens", "mInfoScreens", 200, {_app:this});
var lc = this;
keyListener = new Object();
keyListener.onKeyUp = function () {
if (Key.getCode() == 80) {
if (this.pauseState) {
this.pauseState = false;
} else {
this.pauseState = true;
}
lc.instScroller.pauseHit(this.pauseState);
lc.mDan.pauseHit(this.pauseState);
lc.mHud.pauseHit(this.pauseState);
lc.mSubGame.pauseHit(this.pauseState);
} else if ((Key.getCode() == 27) || (Key.getCode() == 81)) {
trace("quit");
}
};
}
function addPause() {
Key.addListener(keyListener);
}
function removePause() {
Key.removeListener(keyListener);
}
function initGame() {
_quality = "LOW";
curSpeed = 0;
pukeLevel = 0;
distLevel = 0;
runLevelOver = false;
pointage = 0;
mSndAmbient = soundControl.playSoundFade("_sndAmbient0" + gameLevel, 0.5, 50, true);
mLevelHolder = lRoot.createEmptyMovieClip("mLevelHolder", 100);
instScroller = new puker.SkewScroller(mLevelHolder.createEmptyMovieClip("mInstScroller", mLevelHolder.getNextHighestDepth()), this);
mHud = mLevelHolder.attachMovie("_mHud", "mHud", mLevelHolder.getNextHighestDepth(), {_app:this});
mDan = instScroller.lRoot.attachMovie("_mDan", "mDan", instScroller.lRoot.getNextHighestDepth(), {_app:this});
instScroller.init();
}
function initSubGame() {
_quality = "LOW";
soundControl.fadeTo(mSndAmbient, 0, 0.5);
instScroller.destroy();
mHud.destroy();
mSubGame = lRoot.attachMovie("_mSubGame_" + gameLevel, "mSubGame", lRoot.getNextHighestDepth(), {_app:this});
Key.addListener(keyListener);
}
function addPickup() {
instScroller.addPickup();
}
function distBarFull() {
pointage = pointage + (300 + ((160 - pukeLevel) * 5));
removePause();
runLevelOver = true;
mDan.walkOffScreen();
instScroller.fadeOutItems();
subLevel = 3;
}
function pukeBarFull(_subLevel) {
pointage = pointage + (_subLevel * 100);
removePause();
runLevelOver = true;
subLevel = _subLevel;
mDan.startRetching();
instScroller.goQueazy();
instScroller.fadeOutItems();
}
function destroySubGame() {
mSubGame.destroy();
mSubGame.removeMovieClip();
}
var curSpeed = 0;
var gameLevel = 1;
var subLevel = 1;
var pukeLevel = 0;
var distLevel = 0;
var runLevelOver = false;
var pauseState = false;
var pointage = 0;
}
Symbol 597 MovieClip [__Packages.puker.SkewScroller] Frame 0
class puker.SkewScroller
{
var lRoot, app, oOnGround, mWall, mForeground, mWalker, mLight, intWalker;
function SkewScroller (_lRoot, _app) {
lRoot = _lRoot;
app = _app;
oOnGround = new Object();
}
function init() {
mWall = lRoot.attachMovie("_mWall_" + app.gameLevel, "mWall", 5, {_y:150});
mForeground = lRoot.attachMovie("_mForeground_" + app.gameLevel, "mForeground", 500, {_y:350});
mWalker = lRoot.attachMovie("_mWalker", "mWalker", 150, {_x:850, _y:165});
mWalker.xInc = 3;
mWalker.mc.stop();
getRandomFrame(mForeground);
var _local2 = 0;
while (_local2 < tileTot) {
var _local3 = lRoot.attachMovie("_mFloor_" + app.gameLevel, "mTile" + _local2, 50 + _local2, {_y:150, _x:(STAGEWIDTH / 2) * _local2});
var _local4 = _local3.transform.matrix;
_local3.mtxWall = _local4;
_local3 = lRoot.attachMovie("_mBkItem_" + app.gameLevel, "mBkItem" + _local2, 100 + _local2, {_y:155, _x:(STAGEWIDTH / 2) * _local2});
getRandomFrame(_local3);
_local2++;
}
_local2 = 0;
while (_local2 < (4 + app.gameLevel)) {
addHitItem();
_local2++;
}
mLight = lRoot.attachMovie("_mLight_" + app.gameLevel, "mLight", 450, {_y:0, _x:STAGEWIDTH / 2});
startScroll();
}
function addWalker() {
getRandomFrame(mWalker);
mWalker.mc.play();
mWalker.onEnterFrame = mx.utils.Delegate.create(this, updateWalker);
}
function updateWalker() {
mWalker._x = mWalker._x - (mWalker.xInc + app.curSpeed);
if (mWalker._x < -50) {
mWalker._x = 850;
mWalker.mc.stop();
delete mWalker.onEnterFrame;
}
}
function addPickup() {
newNumber++;
var _local2 = lRoot.attachMovie("_mPickup", "mPickup" + newNumber, lRoot.getNextHighestDepth());
_local2.Blur_blurY = 0;
_local2.id = "mPickup" + newNumber;
_local2.style = "once";
_local2.contact = true;
oOnGround[_local2.id] = _local2;
findClearGround(_local2);
}
function addHitItem() {
if ((++itemTot) < MAX_ITEMS) {
newNumber++;
var _local2 = lRoot.attachMovie("_mItem_" + app.gameLevel, "mItem" + newNumber, lRoot.getNextHighestDepth());
_local2.Blur_blurY = 0;
_local2.id = "mItem" + newNumber;
_local2.style = "repeat";
_local2.contact = false;
oOnGround[_local2.id] = _local2;
findClearGround(_local2);
}
}
function itemOffScreen(mc) {
if (mc.style == "repeat") {
findClearGround(mc);
} else {
delete oOnGround[mc.id];
mc.removeMovieClip();
}
}
function findClearGround(mc) {
delete oOnGround[mc.id];
var _local4 = (Math.random() * 170) + 175;
var _local5 = (STAGEWIDTH + 50) + (Math.random() * 300);
if ((Math.random() * 1) < 0.2) {
_local4 = app.mDan._y;
}
for (var _local9 in oOnGround) {
var _local2 = lRoot[_local9];
var _local3 = true;
var _local6 = 0;
while (_local3) {
_local3 = false;
if ((_local2._x > (_local5 - 100)) && (_local2._x < (_local5 + 100))) {
if ((_local2._y > (_local4 - 50)) && (_local2._y < (_local4 + 50))) {
_local4 = (Math.random() * 170) + 175;
_local5 = (STAGEWIDTH + 50) + (Math.random() * 300);
trace("== POSITION OVERLAP ==");
_local3 = true;
}
}
_local6++;
if (_local6 > 10) {
trace("============ POSITION EJECT ============");
_local3 = false;
}
}
}
mc._x = _local5;
mc._y = _local4;
depthCheck(mc);
getRandomFrame(mc);
var _local8 = ((mc._y / 8) + 70) / 100;
mc._xscale = (mc._yscale = _local8 * 100);
var _local10 = new flash.geom.Transform(mc);
_local10.colorTransform = new flash.geom.ColorTransform(_local8, _local8, _local8, 1, 0, 0, 0, 0);
if ((Math.random() * 1) > 0.5) {
mc.mc._xscale = mc.mc._xscale * -1;
}
mc.mc.gotoAndStop(1);
mc.contact = false;
mc._rotation = (mc.mc._rotation = (mc._rotation = (mc.mc.mc._rotation = 0)));
delete mc.mc.onEnterFrame;
oOnGround[mc.id] = mc;
}
function depthCheck(mc) {
var _local3 = Math.round(mc._y);
var _local2 = true;
var _local4 = 0;
while (_local2) {
_local2 = false;
if (lRoot.getInstanceAtDepth(_local3)) {
_local3++;
trace("== DEPTH OVERLAP == ");
_local2 = true;
}
_local4++;
if (_local4 > 10) {
trace("============ DEPTH EJECT ============");
_local2 = false;
}
}
mc.swapDepths(_local3);
}
function startScroll() {
lRoot.onEnterFrame = mx.utils.Delegate.create(this, updatePersp);
if (mWalker._x < 850) {
mWalker.mc.play();
mWalker.onEnterFrame = mx.utils.Delegate.create(this, updateWalker);
}
clearInterval(intWalker);
intWalker = setInterval(this, "addWalker", 10000);
}
function stopScroll() {
delete lRoot.onEnterFrame;
delete mWalker.onEnterFrame;
mWalker.mc.stop();
clearInterval(intWalker);
}
function updatePersp() {
if (((mWall._x = mWall._x - app.curSpeed)) < -200) {
mWall._x = mWall._x + 200;
}
if (((mForeground._x = mForeground._x - (app.curSpeed * 4))) < (-STAGEWIDTH)) {
mForeground._x = mForeground._x + (STAGEWIDTH * 2);
getRandomFrame(mForeground);
}
if (((mLight._x = mLight._x - (app.curSpeed * 1.5))) < -100) {
mLight._x = mLight._x + (STAGEWIDTH + 200);
}
var _local5 = 0;
while (_local5 < tileTot) {
var _local2 = lRoot["mTile" + _local5];
_local2.mtxWall.tx = _local2.mtxWall.tx - app.curSpeed;
if (_local2.mtxWall.tx < 0) {
_local2.mtxWall.tx = _local2.mtxWall.tx + (STAGEWIDTH + 400);
getRandomFrame(_local2);
}
_local2.mtxWall.c = (_local2.mtxWall.tx - 600) * 0.0048;
_local2.transform.matrix = _local2.mtxWall;
_local2 = lRoot["mBkItem" + _local5];
_local2._x = _local2._x - app.curSpeed;
if (_local2._x < -300) {
_local2._x = _local2._x + (STAGEWIDTH + 350);
getRandomFrame(_local2);
}
_local5++;
}
var _local3 = 40;
var _local4 = 20;
for (_local5 in oOnGround) {
var _local2 = lRoot[_local5];
_local2._x = _local2._x - (app.curSpeed * (1 + ((_local2._y - 150) / 200)));
_local2.Blur_blurX = app.curSpeed * (_local2._xscale / 75);
if (!_local2.contact) {
if ((_local2._x > (app.mDan._x - _local3)) && (_local2._x < (app.mDan._x + _local3))) {
if ((_local2._y > (app.mDan._y - _local4)) && (_local2._y < (app.mDan._y + _local4))) {
hitThis(_local2);
}
}
}
if (_local2._x < -50) {
itemOffScreen(_local2);
}
}
}
function hitThis(mc) {
switch (mc.hitType) {
case "person" :
mc.mc.gotoAndPlay(2);
mc.contact = true;
app.mDan.hitItem(10, "hitPerson", mc._y < app.mDan._y, true);
app.soundControl.playSound("_sndHitPerson0" + Math.ceil(Math.random() * 3), 50);
app.soundControl.playSound("_sndHitObject01", 100);
break;
case "large" :
mc.contact = true;
app.mDan.hitItem(15, "hitLarge", mc._y < app.mDan._y, true);
app.soundControl.playSound("_sndHitObject0" + Math.ceil(Math.random() * 3), 200);
com.mosesSupposes.fuse.ZigoEngine.doTween({target:mc.mc, start_rotation:(Math.random() * 10) + 5, _rotation:0, ease:"easeOutElastic", seconds:1});
break;
case "medium" :
mc.contact = true;
app.mDan.hitItem(8, "hitMedium", mc._y < app.mDan._y, false);
app.soundControl.playSound("_sndHitObject0" + Math.ceil(Math.random() * 3), 200);
com.mosesSupposes.fuse.ZigoEngine.doTween({target:mc.mc.mc, _rotation:90, ease:"easeOutBounce", seconds:1.5});
break;
case "small" :
mc.contact = true;
kickThis(mc.mc);
app.mDan.hitItem(5, "hitSmall", mc._y < app.mDan._y, false);
app.soundControl.playSound("_sndHitObject0" + Math.ceil(Math.random() * 3), 200);
break;
case "pickup" :
mc.contact = true;
mc.mc.gotoAndPlay("drink");
app.pukeLevel = app.pukeLevel - 25;
app.mDan.hitDrink();
break;
}
}
function kickThis(mc) {
mc.yInc = (Math.random() * -8) - 8;
mc.xInc = app.curSpeed * 2;
mc.yStart = mc._y;
mc.rotTarg = (Math.ceil(Math.random() * 3) * 90) + 180;
mc.realRot = 0;
mc.onEnterFrame = function () {
this._y = this._y + ((this.yInc = this.yInc + 1));
this._parent._x = this._parent._x + ((this.xInc = this.xInc * 0.95));
this.realRot = this.realRot + ((mc.rotTarg - this.realRot) / 10);
this._rotation = this.realRot;
if (this._y > this.yStart) {
this._y = this.yStart;
this.yInc = this.yInc * -0.4;
this.xInc = this.xInc * 0.7;
}
};
}
function goQueazy() {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:lRoot, _tint:"0x93DF20", _tintPercent:25, ease:"easeInQuad", seconds:3});
}
function fadeOutItems() {
for (var _local6 in oOnGround) {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:oOnGround[_local6], _alpha:0, ease:"easeInQuad", seconds:0.5});
}
}
function getRandomFrame(mc) {
mc.gotoAndStop(Math.ceil(Math.random() * mc._totalframes));
}
function pauseHit(pauseState) {
if (pauseState) {
stopScroll();
} else {
startScroll();
}
}
function destroy() {
stopScroll();
lRoot.removeMovieClip();
}
var XMID = 0;
var xAngle = null;
var xGap = 120;
var tileTot = 3;
var itemTot = 0;
static var STAGEWIDTH = 800;
static var STAGEHEIGHT = 350;
static var MAX_ITEMS = 9;
var tileGap = 0;
var startDepth = 10;
var newNumber = 0;
}
Symbol 598 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 599 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);
} else {
trace(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 600 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 601 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 602 MovieClip [__Packages.com.happylander.utils.SoundControl] Frame 0
class com.happylander.utils.SoundControl
{
var _lRoot;
function SoundControl (lRoot) {
com.mosesSupposes.fuse.ZigoEngine.simpleSetup(com.mosesSupposes.fuse.Shortcuts, com.mosesSupposes.fuse.PennerEasing, com.mosesSupposes.fuse.FuseItem);
_lRoot = lRoot;
}
function playSound(sndName, vol, loop, pan) {
var _local3 = _lRoot[sndName];
if (_local3 == undefined) {
_local3 = _lRoot.createEmptyMovieClip(sndName, _lRoot.getNextHighestDepth());
}
var _local2 = new Sound(_local3);
_local2.attachSound(sndName);
_local3.snd = _local2;
_local2.setVolume(vol);
_local2.setPan(pan);
if (loop) {
_local2.start(0, 999999);
} else {
_local2.start(0);
}
return(_local3);
}
function playSoundFade(sndName, secs, vol, loop, pan) {
var _local2 = playSound(sndName, 0, loop);
_local2.soundFade = _local2.snd.getVolume();
_local2.watch("soundFade", soundFadeWatcher, _local2);
com.mosesSupposes.fuse.ZigoEngine.doTween({target:_local2, scope:this, soundFade:vol, ease:"easeInQuad", seconds:secs, func:"volReached", args:_local2});
return(_local2);
}
function fadeTo(mc, vol, secs) {
mc.soundFade = mc.snd.getVolume();
mc.watch("soundFade", soundFadeWatcher, mc);
com.mosesSupposes.fuse.ZigoEngine.doTween({target:mc, scope:this, soundFade:vol, ease:"easeInQuad", seconds:secs, func:"volReached", args:mc});
}
function panTo(mc, pan, secs) {
mc.soundPan = mc.snd.getPan();
mc.watch("soundPan", soundPanWatcher, mc);
com.mosesSupposes.fuse.ZigoEngine.doTween({target:mc, scope:this, soundPan:pan, ease:"linear", seconds:secs, func:"panReached", args:mc});
}
function volReached(mc) {
mc.unwatch("soundFade");
}
function panReached(mc) {
mc.unwatch("soundPan");
}
function soundFadeWatcher(prop, oldVal, newVal, target_mc) {
target_mc.snd.setVolume(newVal);
return(newVal);
}
function soundPanWatcher(prop, oldVal, newVal, target_mc) {
target_mc.snd.setPan(newVal);
return(newVal);
}
}
Symbol 603 MovieClip [__Packages.com.mosesSupposes.fuse.Shortcuts] Frame 0
class com.mosesSupposes.fuse.Shortcuts
{
function Shortcuts () {
}
static function initialize() {
if (shortcuts == null) {
initShortcuts();
}
}
static function doShortcut(obj, methodName) {
initialize();
var _local5 = shortcuts[methodName];
if (_local5 == undefined) {
if (typeof(obj) == "movieclip") {
_local5 = mcshortcuts[methodName];
}
}
if (_local5 == undefined) {
return(null);
}
obj = arguments.shift();
methodName = String(arguments.shift());
if (!(obj instanceof Array)) {
obj = [obj];
}
var _local3 = "";
for (var _local6 in obj) {
var _local2 = String(_local5.apply(obj[_local6], arguments));
if ((_local2 != null) && (_local2.length > 0)) {
if (_local3.length > 0) {
_local3 = (_local2 + "|") + _local3;
} else {
_local3 = _local2;
}
}
}
return(((_local3 == "") ? null : (_local3)));
}
static function addShortcutsTo() {
initialize();
var _local5 = function (o, so) {
for (var _local5 in so) {
var _local2 = so[_local5];
if (_local2.getter || (_local2.setter)) {
o.addProperty(_local5, _local2.getter, _local2.setter);
_global.ASSetPropFlags(o, _local5, 3, 1);
} else {
o[_local5] = _local2;
_global.ASSetPropFlags(o, _local5, 7, 1);
}
}
};
for (var _local7 in arguments) {
var _local4 = arguments[_local7];
if ((_local4 == MovieClip.prototype) || (typeof(_local4) == "movieclip")) {
_local5(_local4, mcshortcuts);
}
_local5(_local4, shortcuts);
}
}
static function removeShortcutsFrom() {
initialize();
var _local5 = function (o, so) {
for (var _local5 in so) {
_global.ASSetPropFlags(o, _local5, 0, 2);
var _local2 = so[_local5];
if (_local2.getter || (_local2.setter)) {
o.addProperty(_local5, null, null);
}
delete o[_local5];
}
};
for (var _local7 in arguments) {
var _local3 = arguments[_local7];
if ((_local3 == MovieClip.prototype) || (typeof(_local3) == "movieclip")) {
_local5(_local3, mcshortcuts);
}
_local5(_local3, shortcuts);
}
}
static function parseStringTypeCallback(callbackStr) {
var evaluate = function (val) {
var first = val.charAt(0);
if ((first == val.slice(-1)) && ((first == "\"") || (first == "'"))) {
return(val.slice(1, -1));
}
if (val == "true") {
return(Object(true));
}
if (val == "false") {
return(Object(false));
}
if (val == "null") {
return(Object(null));
}
if (_global.isNaN(Number(val)) == false) {
return(Object(Number(val)));
}
return(Object(eval (val)));
};
var trimWhite = function (str) {
while (str.charAt(0) == " ") {
str = str.slice(1);
}
while (str.slice(-1) == " ") {
str = str.slice(0, -1);
}
return(str);
};
var evaluateList = function (list) {
var _local11 = [];
var _local4 = 0;
while (_local4 < list.length) {
var _local3 = list[_local4];
_local3 = trimWhite(_local3);
var _local5 = (_local3.charAt(0) == "{") && ((_local3.indexOf("}") > -1) || (_local3.indexOf(":") > -1));
var _local10 = _local3.charAt(0) == "[";
if ((_local5 || (_local10)) == true) {
var _local6 = ((_local5 == true) ? ({}) : ([]));
var _local2 = _local4;
while (_local2 < list.length) {
if (_local2 == _local4) {
_local3 = _local3.slice(1);
}
var _local1;
var _local8 = (_local1.slice(-1) == ((_local5 == true) ? "}" : "]")) || (_local2 == (list.length - 1));
if (_local8 == true) {
_local1 = _local1.slice(0, -1);
}
if ((_local5 == true) && (_local1.indexOf(":") > -1)) {
var _local7 = _local1.split(":");
_local6[trimWhite(_local7[0])] = evaluate(trimWhite(_local7[1]));
} else if (_local10 == true) {
_local6.push(evaluate(trimWhite(_local1)));
}
if (_local8 == true) {
_local11.push(_local6);
_local4 = _local2;
break;
}
_local2++;
}
} else {
_local11.push(evaluate(trimWhite(_local3)));
}
_local4++;
}
return(_local11);
};
var parts = callbackStr.split("(");
var p0 = parts[0];
var p1 = parts[1];
return({func:p0.slice(p0.lastIndexOf(".") + 1), scope:eval (p0.slice(0, p0.lastIndexOf("."))), args:evaluateList(p1.slice(0, p1.lastIndexOf(")")).split(","))});
}
static function initShortcuts() {
shortcuts = new Object();
var methods = {alphaTo:"_alpha", scaleTo:"_scale", sizeTo:"_size", rotateTo:"_rotation", brightnessTo:"_brightness", brightOffsetTo:"_brightOffset", contrastTo:"_contrast", colorTo:"_tint", tintPercentTo:"_tintPercent", colorResetTo:"_colorReset", invertColorTo:"_invertColor"};
var _local4 = _global.com.mosesSupposes.fuse.FuseFMP.getAllShortcuts();
var _local6 = {blur:1, blurX:1, blurY:1, strength:1, shadowAlpha:1, highlightAlpha:1, angle:1, distance:1, alpha:1, color:1};
for (var _local9 in _local4) {
if (_local6[_local4[_local9].split("_")[1]] === 1) {
methods[_local4[_local9] + "To"] = _local4[_local9];
}
}
var _local7 = {__resolve:function (name) {
var propName = methods[name];
return(function () {
var _local4 = _global.com.mosesSupposes.fuse.ZigoEngine.doTween.apply(com.mosesSupposes.fuse.ZigoEngine, new Array(this, propName).concat(arguments));
return(_local4);
});
}};
var _local5 = {__resolve:function (name) {
var prop = name.slice(1);
var _local3 = {getter:function () {
return(_global.com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(this)[prop]);
}};
if ((prop == "tintString") || (prop == "tint")) {
_local3.setter = function (v) {
_global.com.mosesSupposes.fuse.ZigoEngine.setColorByKey(this, "tint", _global.com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(this).tintPercent || 100, v);
};
} else if (prop == "tintPercent") {
_local3.setter = function (v) {
_global.com.mosesSupposes.fuse.ZigoEngine.setColorByKey(this, "tint", v, _global.com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(this).tint);
};
} else if (prop == "colorReset") {
_local3.setter = function (v) {
var _local3 = _global.com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(this);
_global.com.mosesSupposes.fuse.ZigoEngine.setColorByKey(this, "tint", Math.min(100, Math.max(0, Math.min(_local3.tintPercent, 100 - v))), _local3.tint);
};
} else {
_local3.setter = function (v) {
_global.com.mosesSupposes.fuse.ZigoEngine.setColorByKey(this, prop, v);
};
}
return(_local3);
}};
for (var _local9 in methods) {
shortcuts[_local9] = _local7[_local9];
if (_local9 == "colorTo") {
shortcuts._tintString = _local5._tintString;
}
if ((((((_local9.indexOf("bright") == 0) || (_local9 == "contrastTo")) || (_local9 == "colorTo")) || (_local9 == "invertColor")) || (_local9 == "tintPercentTo")) || (_local9 == "colorResetTo")) {
shortcuts[methods[_local9]] = _local5[methods[_local9]];
}
}
shortcuts.tween = function (props, endVals, seconds, ease, delay, callback) {
if ((arguments.length == 1) && (typeof(props) == "object")) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, action:props}));
}
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, props, endVals, seconds, ease, delay, callback));
};
shortcuts.removeTween = (shortcuts.stopTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.removeTween(this, props);
});
shortcuts.removeAllTweens = (shortcuts.stopAllTweens = function () {
com.mosesSupposes.fuse.ZigoEngine.removeTween("ALL");
});
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.pauseTween(this, props);
};
shortcuts.resumeTween = (shortcuts.unpauseTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.unpauseTween(this, props);
});
shortcuts.pauseAllTweens = function () {
com.mosesSupposes.fuse.ZigoEngine.pauseTween("ALL");
};
shortcuts.resumeAllTweens = (shortcuts.unpauseAllTweens = function () {
com.mosesSupposes.fuse.ZigoEngine.unpauseTween("ALL");
});
shortcuts.ffTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.ffTween(this, props);
};
shortcuts.rewTween = function (props, suppressStartEvents) {
com.mosesSupposes.fuse.ZigoEngine.rewTween(this, props, false, suppressStartEvents);
};
shortcuts.rewAndPauseTween = function (props, suppressStartEvents) {
com.mosesSupposes.fuse.ZigoEngine.rewTween(this, props, true, suppressStartEvents);
};
shortcuts.fadeIn = function (seconds, ease, delay, callback) {
this._visible = true;
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_alpha", 100, seconds, ease, delay));
};
shortcuts.fadeOut = function (seconds, ease, delay, callback) {
if (this.__fadeOutEnd == undefined) {
this.__fadeOutEnd = {__owner:this, onTweenEnd:function (o) {
this.onTweenInterrupt(o);
if ((String(o.props.join(",")).indexOf("_alpha") > -1) && (this.__owner._alpha < 1)) {
o.target._visible = false;
}
}, onTweenInterrupt:function (o) {
if ((o.target == this.__owner) && (String(o.props.join(",")).indexOf("_alpha") > -1)) {
this.__owner.removeListener(this);
com.mosesSupposes.fuse.ZigoEngine.removeListener(this);
}
}};
_global.ASSetPropFlags(this, "__fadeOutEnd", 7, 1);
}
this.addListener(this.__fadeOutEnd);
var _local3 = com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_alpha", 0, seconds, ease, delay, callback);
com.mosesSupposes.fuse.ZigoEngine.addListener(this.__fadeOutEnd);
return(_local3);
};
shortcuts.bezierTo = function (destX, destY, controlX, controlY, seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_bezier_", {x:destX, y:destY, controlX:controlX, controlY:controlY}, seconds, ease, delay, callback));
};
shortcuts.colorTransformTo = function (ra, rb, ga, gb, ba, bb, aa, ab, seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_colorTransform", {ra:ra, rb:rb, ga:ga, gb:gb, ba:ba, bb:bb, aa:aa, ab:ab}, seconds, ease, delay, callback));
};
shortcuts.tintTo = function (rgb, percent, seconds, ease, delay, callback) {
var _local3 = {};
_local3.rgb = arguments.shift();
_local3.percent = arguments.shift();
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_tint", {tint:rgb, percent:percent}, seconds, ease, delay, callback));
};
shortcuts.slideTo = function (destX, destY, seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_x,_y", [destX, destY], seconds, ease, delay, callback));
};
shortcuts._size = {getter:function () {
return(((this._width == this._height) ? (this._width) : null));
}, setter:function (v) {
com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_size", v, 0);
}};
shortcuts._scale = {getter:function () {
return(((this._xscale == this._yscale) ? (this._xscale) : null));
}, setter:function (v) {
com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_scale", v, 0);
}};
mcshortcuts = new Object();
mcshortcuts._frame = {getter:function () {
return(this._currentframe);
}, setter:function (v) {
this.gotoAndStop(Math.round(v));
}};
mcshortcuts.frameTo = function (endframe, seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_frame", ((endframe != undefined) ? (endframe) : (this._totalframes)), seconds, ease, delay, callback));
};
}
static var registryKey = "shortcuts";
static var shortcuts = null;
static var mcshortcuts = null;
}
Symbol 604 MovieClip [__Packages.com.mosesSupposes.fuse.PennerEasing] Frame 0
class com.mosesSupposes.fuse.PennerEasing
{
function PennerEasing () {
}
static function linear(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInQuad(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOutQuad(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOutQuad(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 easeInExpo(t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
}
static function easeOutExpo(t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
}
static function easeInOutExpo(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 easeOutInExpo(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);
}
static function easeInElastic(t, b, c, d, a, p) {
var _local5;
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;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p))) + b);
}
static function easeOutElastic(t, b, c, d, a, p) {
var _local5;
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;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOutElastic(t, b, c, d, a, p) {
var _local5;
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;
_local5 = p / 4;
} else {
_local5 = (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) - _local5) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static function easeOutInElastic(t, b, c, d, a, p) {
var _local5;
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;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p))) + (c / 2)) + b);
}
return(((c / 2) + (0.5 * ((a * Math.pow(2, 10 * (t - 2))) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p)))) + b);
}
static function easeInBack(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 easeOutBack(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 easeInOutBack(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 easeOutInBack(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);
}
static function easeOutBounce(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 easeInBounce(t, b, c, d) {
return((c - easeOutBounce(d - t, 0, c, d)) + b);
}
static function easeInOutBounce(t, b, c, d) {
if (t < (d / 2)) {
return((easeInBounce(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOutBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeOutInBounce(t, b, c, d) {
if (t < (d / 2)) {
return((easeOutBounce(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeInBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeInCubic(t, b, c, d) {
t = t / d;
return((((c * t) * t) * t) + b);
}
static function easeOutCubic(t, b, c, d) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
}
static function easeInOutCubic(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 easeOutInCubic(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((t * t) * t) + 1)) + b);
}
static function easeInQuart(t, b, c, d) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
}
static function easeOutQuart(t, b, c, d) {
t = (t / d) - 1;
return(((-c) * ((((t * t) * t) * t) - 1)) + b);
}
static function easeInOutQuart(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 easeOutInQuart(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);
}
static function easeInQuint(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOutQuint(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOutQuint(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 easeOutInQuint(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInSine(t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
}
static function easeOutSine(t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
}
static function easeInOutSine(t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
}
static function easeOutInSine(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);
}
static function easeInCirc(t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
static function easeOutCirc(t, b, c, d) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
}
static function easeInOutCirc(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 easeOutInCirc(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);
}
static var registryKey = "pennerEasing";
}
Symbol 605 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 606 MovieClip [__Packages.com.mosesSupposes.fuse.FuseFMP] Frame 0
class com.mosesSupposes.fuse.FuseFMP
{
static var $fclasses, $shortcuts, $gro, $sro;
function FuseFMP () {
}
static function simpleSetup() {
initialize(MovieClip.prototype, Button.prototype, TextField.prototype);
_global.FuseFMP = com.mosesSupposes.fuse.FuseFMP;
for (var _local2 in $fclasses) {
_global[_local2] = $fclasses[_local2];
}
}
static function initialize(target) {
if ($fclasses == undefined) {
$shortcuts = {getFilterName:function (f) {
return(com.mosesSupposes.fuse.FuseFMP.getFilterName(f));
}, getFilterIndex:function (f) {
return(com.mosesSupposes.fuse.FuseFMP.getFilterIndex(this, f));
}, getFilter:function (f, createNew) {
return(com.mosesSupposes.fuse.FuseFMP.getFilter(this, f, createNew));
}, writeFilter:function (f, pObj) {
return(com.mosesSupposes.fuse.FuseFMP.writeFilter(this, f, pObj));
}, removeFilter:function (f) {
return(com.mosesSupposes.fuse.FuseFMP.removeFilter(this, f));
}, getFilterProp:function (prop, createNew) {
return(com.mosesSupposes.fuse.FuseFMP.getFilterProp(this, prop, createNew));
}, setFilterProp:function (prop, v) {
com.mosesSupposes.fuse.FuseFMP.setFilterProp(this, prop, v);
}, setFilterProps:function (fOrPObj, pObj) {
com.mosesSupposes.fuse.FuseFMP.setFilterProps(this, fOrPObj, pObj);
}, traceAllFilters:function () {
com.mosesSupposes.fuse.FuseFMP.traceAllFilters();
}};
$fclasses = {BevelFilter:flash.filters.BevelFilter, BlurFilter:flash.filters.BlurFilter, ColorMatrixFilter:flash.filters.ColorMatrixFilter, ConvolutionFilter:flash.filters.ConvolutionFilter, DisplacementMapFilter:flash.filters.DisplacementMapFilter, DropShadowFilter:flash.filters.DropShadowFilter, GlowFilter:flash.filters.GlowFilter, GradientBevelFilter:flash.filters.GradientBevelFilter, GradientGlowFilter:flash.filters.GradientGlowFilter};
$gro = {__resolve:function (name) {
var _local4 = function () {
var _local3 = this;
if (_local3.filters != undefined) {
var _local2 = name.split("_");
if (_local2[1] == "blur") {
_local2[1] = "blurX";
}
return(com.mosesSupposes.fuse.FuseFMP.getFilter(this, _local2[0] + "Filter", false)[_local2[1]]);
}
};
return(_local4);
}};
$sro = {__resolve:function (name) {
var _local3 = function (val) {
var _local2 = this;
if (_local2.filters != undefined) {
com.mosesSupposes.fuse.FuseFMP.setFilterProp(this, name, val);
}
};
return(_local3);
}};
}
if (arguments[0] == null) {
return(undefined);
}
var _local6 = [MovieClip, Button, TextField];
for (var _local13 in arguments) {
var _local7 = false;
for (var _local10 in _local6) {
if ((arguments[_local13] instanceof _local6[_local10]) || (arguments[_local13] == Function(_local6[_local10]).prototype)) {
_local7 = true;
break;
}
}
if (!_local7) {
com.mosesSupposes.fuse.FuseKitCommon.error("201", _local13);
continue;
}
for (var _local11 in $fclasses) {
var _local5 = new $fclasses[_local11]();
for (var _local8 in _local5) {
if (typeof(_local5[_local8]) == "function") {
continue;
}
var _local4 = (_local11.substr(0, -6) + "_") + _local8;
arguments[_local13].addProperty(_local4, $gro[_local4], $sro[_local4]);
_global.ASSetPropFlags(arguments[_local13], _local4, 3, 1);
if (_local8 == "blurX") {
_local4 = _local4.slice(0, -1);
arguments[_local13].addProperty(_local4, $gro[_local4], $sro[_local4]);
_global.ASSetPropFlags(arguments[_local13], _local4, 3, 1);
}
}
}
for (var _local9 in $shortcuts) {
arguments[_local13][_local9] = $shortcuts[_local9];
_global.ASSetPropFlags(arguments[_local13], _local9, 7, 1);
}
}
}
static function deinitialize() {
if ($fclasses == undefined) {
return(undefined);
}
if (arguments.length == 0) {
arguments.push(MovieClip.prototype, Button.prototype, TextField.prototype);
}
for (var _local8 in arguments) {
for (var _local7 in $fclasses) {
var _local4 = new $fclasses[_local7]();
for (var _local5 in _local4) {
if (typeof(_local4[_local5]) == "function") {
continue;
}
var _local3 = (_local7.substr(0, -6) + "_") + _local5;
_global.ASSetPropFlags(arguments[_local8], _local3, 0, 2);
arguments[_local8].addProperty(_local3, null, null);
delete arguments[_local8][_local3];
}
}
for (var _local6 in $shortcuts) {
_global.ASSetPropFlags(arguments[_local8], _local6, 0, 2);
delete arguments[_local8][_local6];
}
}
}
static function getFilterName($myFilter) {
if ($fclasses == undefined) {
initialize(null);
}
for (var _local1 in $fclasses) {
if ($myFilter.__proto__ == Function($fclasses[_local1]).prototype) {
return(_local1);
}
}
return(null);
}
static function getFilterIndex($obj, $myFilter) {
if ($fclasses == undefined) {
initialize(null);
}
$myFilter = $getInstance($myFilter);
if ($myFilter === null) {
return(-1);
}
var _local2 = $obj.filters;
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].__proto__ == $myFilter.__proto__) {
return(_local1);
}
_local1++;
}
return(-1);
}
static function getFilter($obj, $myFilter, $createNew) {
var _local1 = getFilterIndex($obj, $myFilter);
if (_local1 == -1) {
if ($createNew != true) {
return(null);
}
_local1 = writeFilter($obj, $myFilter);
if (_local1 == -1) {
return(null);
}
}
return($obj.filters[_local1]);
}
static function writeFilter($obj, $myFilter, $propsObj) {
if ($fclasses == undefined) {
initialize(null);
}
$myFilter = $getInstance($myFilter);
if ($myFilter === null) {
return(-1);
}
var _local4 = $obj.filters;
var _local2 = getFilterIndex($obj, $myFilter);
if (_local2 == -1) {
_local4.push($myFilter);
} else {
_local4[_local2] = $myFilter;
}
$obj.filters = _local4;
if (typeof($propsObj) == "object") {
setFilterProps($obj, $myFilter, $propsObj);
}
_local2 = getFilterIndex($obj, $myFilter);
return(_local2);
}
static function removeFilter($obj, $myFilter) {
if ($fclasses == undefined) {
initialize(null);
}
$myFilter = $getInstance($myFilter);
var _local2 = $obj.filters;
var _local1 = getFilterIndex($obj, $myFilter);
if (_local1 == -1) {
return(false);
}
_local2.splice(_local1, 1);
$obj.filters = _local2;
return(true);
}
static function getFilterProp($obj, $filtername, $createNew) {
var _local1 = $filtername.split("_");
if (_local1[1] == "blur") {
_local1[1] = "blurX";
}
return(getFilter($obj, _local1[0] + "Filter", $createNew)[_local1[1]]);
}
static function setFilterProp($obj, $propname, $val) {
if ($fclasses == undefined) {
initialize(null);
}
var _local7 = $propname.split("_");
var _local8 = _local7[0] + "Filter";
if ($fclasses[_local8] == undefined) {
return(undefined);
}
var _local2 = new $fclasses[_local8]();
var _local6 = _local7[1];
var _local3 = $obj.filters.length || 0;
while (_local3-- , _local3 > -1) {
var _local1 = $obj.filters[_local3];
if (_local1.__proto__ == _local2.__proto__) {
_local2 = _local1;
break;
}
}
if (_local6 == "blur") {
_local2.blurX = $val;
_local2.blurY = $val;
} else {
if (_local6.indexOf("lor") > -1) {
if ((typeof($val) == "string") && (_local6.charAt(2) != "l")) {
if ($val.charAt(0) == "#") {
$val = $val.slice(1);
}
$val = (($val.charAt(1).toLowerCase() != "x") ? (Number("0x" + $val)) : (Number($val)));
}
}
_local2[_local6] = $val;
}
if (_local3 == -1) {
$obj.filters = [_local2];
} else {
var _local9 = $obj.filters;
_local9[_local3] = _local2;
$obj.filters = _local9;
}
}
static function setFilterProps($obj, $filterOrPropsObj, $propsObj) {
if ($fclasses == undefined) {
initialize(null);
}
if (!($obj instanceof Array)) {
$obj = [$obj];
}
var _local4 = new Object();
var _local3;
var _local2;
if (arguments.length == 3) {
for (var _local12 in $obj) {
var _local5 = getFilter($obj[_local12], $filterOrPropsObj, true);
if (_local5 == null) {
continue;
}
var _local8 = getFilterName(_local5).substr(0, -6) + "_";
for (_local3 in $propsObj) {
_local4[_local3] = $propsObj[_local3];
}
for (_local3 in _local4) {
_local2 = _local4[_local3];
if (_local3.indexOf(_local8) == 0) {
_local3 = _local3.slice(_local8.length);
}
if (_local3 == "blur") {
flash.filters.BlurFilter(_local5).blurX = Number(_local2);
flash.filters.BlurFilter(_local5).blurY = Number(_local2);
} else if (((_local3.indexOf("lor") > -1) && (_local3.charAt(2) != "l")) && (typeof(_local2) == "string")) {
if (_local2.charAt(0) == "#") {
_local2 = _local2.slice(1);
}
_local2 = ((_local2.charAt(1).toLowerCase() != "x") ? (Number("0x" + _local2)) : (Number(_local2)));
} else {
_local5[_local3] = _local2;
}
}
writeFilter($obj[_local12], _local5);
}
} else if (typeof($filterOrPropsObj) == "object") {
$propsObj = $filterOrPropsObj;
for (_local3 in $propsObj) {
var _local9 = _local3.split("_");
var _local10 = _local9[0] + "Filter";
if ($fclasses[_local10] == undefined) {
continue;
}
if (_local4[_local10] == undefined) {
_local4[_local10] = {};
}
if (_local9[1] == "blur") {
flash.filters.BlurFilter(_local4[_local10]).blurX = $propsObj[_local3];
flash.filters.BlurFilter(_local4[_local10]).blurY = $propsObj[_local3];
} else {
_local4[_local10][_local9[1]] = $propsObj[_local3];
}
}
for (var _local12 in $obj) {
for (var _local10 in _local4) {
var _local5 = getFilter($obj[_local12], _local10, true);
if (_local5 == null) {
continue;
}
for (_local3 in _local4[_local10]) {
_local2 = _local4[_local10][_local3];
if (((_local3.indexOf("lor") > -1) && (_local3.charAt(2) != "l")) && (typeof(_local2) == "string")) {
if (_local2.charAt(0) == "#") {
_local2 = _local2.slice(1);
}
_local2 = ((_local2.charAt(1).toLowerCase() != "x") ? (Number("0x" + _local2)) : (Number(_local2)));
}
_local5[_local3] = _local2;
}
writeFilter($obj[_local12], _local5);
}
}
}
}
static function getAllShortcuts() {
if ($fclasses == undefined) {
initialize(null);
}
var _local2 = [];
for (var _local4 in $fclasses) {
var _local1 = new $fclasses[_local4]();
for (var _local3 in _local1) {
if (typeof(_local1[_local3]) == "function") {
continue;
}
_local2.push((_local4.substr(0, -6) + "_") + _local3);
if (_local3 == "blurX") {
_local2.push(_local4.substr(0, -6) + "_blur");
}
}
}
return(_local2);
}
static function traceAllFilters() {
if ($fclasses == undefined) {
initialize(null);
}
var _local1 = "------ FuseFMP filter properties ------\n";
for (var _local4 in $fclasses) {
_local1 = _local1 + _local4;
var _local2 = new $fclasses[_local4]();
for (var _local3 in _local2) {
if (typeof(_local2[_local3]) == "function") {
continue;
}
_local1 = _local1 + ((("\t- " + _local4.substr(0, -6)) + "_") + _local3);
if (_local3 == "blurX") {
_local1 = _local1 + (("\t- " + _local4.substr(0, -6)) + "_blur");
}
}
_local1 = _local1 + newline;
}
com.mosesSupposes.fuse.FuseKitCommon.output(_local1);
}
static function $getInstance($myFilter) {
if ($myFilter instanceof flash.filters.BitmapFilter) {
return(flash.filters.BitmapFilter($myFilter));
}
if (typeof($myFilter) == "function") {
for (var _local3 in $fclasses) {
if ($myFilter == $fclasses[_local3]) {
return(new $fclasses[_local3]());
}
}
}
if (typeof($myFilter) == "string") {
var _local2 = String($myFilter);
if (_local2.substr(-6) != "Filter") {
_local2 = _local2 + "Filter";
}
for (var _local3 in $fclasses) {
if (_local3 == _local2) {
return(new $fclasses[_local3]());
}
}
}
return(null);
}
static var registryKey = "fuseFMP";
static var VERSION = com.mosesSupposes.fuse.FuseKitCommon.VERSION;
}
Symbol 607 MovieClip [__Packages.puker.InfoScreens] Frame 0
class puker.InfoScreens extends MovieClip
{
var keyListener, intDelay, gotoAndStop, _quality, mPlayBut, mInstructBut, mHighscoreBut, _app, mBackBut, td, mEnterBut, mLinkBut, mFrankBut;
function InfoScreens () {
super();
init();
}
function init() {
keyListener = new Object();
changeScreen("open");
}
function changeScreen(nextScreen) {
Key.removeListener(keyListener);
clearInterval(intDelay);
gotoAndStop(nextScreen);
trace("dressing screen: " + nextScreen);
switch (nextScreen) {
case "open" :
_quality = "HIGH";
mPlayBut.onRelease = mx.utils.Delegate.create(this, function () {
this.playButSnd();
this.changeScreen("intro1");
});
mPlayBut.onRollOver = (mPlayBut.onDragOver = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _tint:"0x899427", _tintPercent:30, ease:"easeOutQuad", seconds:0.3});
});
mPlayBut.onRollOut = (mPlayBut.onDragOut = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _brightness:0, ease:"easeOutQuad", seconds:0.3});
});
mInstructBut.onRelease = mx.utils.Delegate.create(this, function () {
this.playButSnd();
this.changeScreen("instruct");
});
mInstructBut.onRollOver = (mInstructBut.onDragOver = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _tint:"0xB1B00A", _tintPercent:30, ease:"easeOutQuad", seconds:0.3});
});
mInstructBut.onRollOut = (mInstructBut.onDragOut = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _brightness:0, ease:"easeOutQuad", seconds:0.3});
});
mHighscoreBut.onRelease = mx.utils.Delegate.create(this, function () {
this.playButSnd();
this.changeScreen("highscores");
});
mHighscoreBut.onRollOver = (mHighscoreBut.onDragOver = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _tint:"0xBB8300", _tintPercent:30, ease:"easeOutQuad", seconds:0.3});
});
mHighscoreBut.onRollOut = (mHighscoreBut.onDragOut = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _brightness:0, ease:"easeOutQuad", seconds:0.3});
});
setKeyListener("intro1");
break;
case "highscores" :
_app.gameLevel = 1;
setKeyListener("playLevel");
mBackBut.onRelease = mx.utils.Delegate.create(this, function () {
this.playButSnd();
this.changeScreen("open");
});
mBackBut.onRollOver = (mBackBut.onDragOver = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _tint:"0xBB8300", _tintPercent:30, ease:"easeOutQuad", seconds:0.3});
});
mBackBut.onRollOut = (mBackBut.onDragOut = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _brightness:0, ease:"easeOutQuad", seconds:0.3});
});
break;
case "instruct" :
_app.gameLevel = 1;
setKeyListener("playLevel");
mBackBut.onRelease = mx.utils.Delegate.create(this, function () {
this.playButSnd();
this.changeScreen("open");
});
mBackBut.onRollOver = (mBackBut.onDragOver = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _tint:"0xBB8300", _tintPercent:30, ease:"easeOutQuad", seconds:0.3});
});
mBackBut.onRollOut = (mBackBut.onDragOut = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _brightness:0, ease:"easeOutQuad", seconds:0.3});
});
break;
case "intro1" :
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, start_alpha:0, _alpha:100, ease:"easeOutQuad", seconds:0.5});
_app.gameLevel = 1;
setKeyListener("playLevel");
intDelay = setInterval(this, "changeScreen", 2500, "playLevel");
break;
case "intro2" :
_quality = "HIGH";
_app.destroySubGame();
_app.soundControl.fadeTo(_app.mSndIntroMusic, 100, 0.5);
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, start_alpha:0, _alpha:100, ease:"easeOutQuad", seconds:0.5});
_app.gameLevel = 2;
setKeyListener("playLevel");
intDelay = setInterval(this, "changeScreen", 2500, "playLevel");
break;
case "intro3" :
_quality = "HIGH";
_app.destroySubGame();
_app.soundControl.fadeTo(_app.mSndIntroMusic, 100, 0.5);
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, start_alpha:0, _alpha:100, ease:"easeOutQuad", seconds:0.5});
_app.gameLevel = 3;
setKeyListener("playLevel");
intDelay = setInterval(this, "changeScreen", 2500, "playLevel");
break;
case "playLevel" :
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, scope:this, _alpha:0, ease:"easeInQuad", seconds:0.5, func:"changeScreen", args:"hideMe"});
_app.soundControl.fadeTo(_app.mSndIntroMusic, 0, 0.5);
_app.initGame();
break;
case "endGameGood" :
case "endGameBad" :
_quality = "HIGH";
_app.soundControl.fadeTo(_app.mSndIntroMusic, 100, 0.5);
_app.destroySubGame();
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, start_alpha:0, _alpha:100, ease:"easeOutQuad", seconds:0.5});
_app.pointage = Math.round(_app.pointage * 10);
td.text = String(_app.pointage);
mEnterBut.onRelease = mx.utils.Delegate.create(this, function () {
this.playButSnd();
this.changeScreen("enterHighscore");
});
mEnterBut.onRollOver = (mEnterBut.onDragOver = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _tint:"0x899427", _tintPercent:30, ease:"easeOutQuad", seconds:0.3});
});
mEnterBut.onRollOut = (mEnterBut.onDragOut = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _brightness:0, ease:"easeOutQuad", seconds:0.3});
});
mFrankBut.onRelease = (mLinkBut.onRelease = function () {
this.getURL("http://talktofrank.com/drugs.aspx?id=172", "_blank");
});
mFrankBut.onRollOver = (mFrankBut.onDragOver = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _tint:"0xB1B00A", _tintPercent:30, ease:"easeOutQuad", seconds:0.3});
});
mFrankBut.onRollOut = (mFrankBut.onDragOut = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _brightness:0, ease:"easeOutQuad", seconds:0.3});
});
mHighscoreBut.onRelease = mx.utils.Delegate.create(this, function () {
this.playButSnd();
this.changeScreen("enterHighscore");
});
mHighscoreBut.onRollOver = (mHighscoreBut.onDragOver = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _tint:"0xBB8300", _tintPercent:30, ease:"easeOutQuad", seconds:0.3});
});
mHighscoreBut.onRollOut = (mHighscoreBut.onDragOut = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _brightness:0, ease:"easeOutQuad", seconds:0.3});
});
mBackBut.onRelease = mx.utils.Delegate.create(this, function () {
this.playButSnd();
this.changeScreen("open");
});
mBackBut.onRollOver = (mBackBut.onDragOver = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _tint:"0xBB8300", _tintPercent:30, ease:"easeOutQuad", seconds:0.3});
});
mBackBut.onRollOut = (mBackBut.onDragOut = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _brightness:0, ease:"easeOutQuad", seconds:0.3});
});
setKeyListener("enterHighscore");
_root.pointage = _app.pointage;
break;
case "enterHighscore" :
mBackBut.onRelease = mx.utils.Delegate.create(this, function () {
this.playButSnd();
this.changeScreen("open");
});
mBackBut.onRollOver = (mBackBut.onDragOver = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _tint:"0xBB8300", _tintPercent:30, ease:"easeOutQuad", seconds:0.3});
});
mBackBut.onRollOut = (mBackBut.onDragOut = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _brightness:0, ease:"easeOutQuad", seconds:0.3});
});
mPlayBut.onRelease = mx.utils.Delegate.create(this, function () {
this.playButSnd();
this.changeScreen("intro1");
});
mPlayBut.onRollOver = (mPlayBut.onDragOver = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _tint:"0x899427", _tintPercent:30, ease:"easeOutQuad", seconds:0.3});
});
mPlayBut.onRollOut = (mPlayBut.onDragOut = function () {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _brightness:0, ease:"easeOutQuad", seconds:0.3});
});
break;
case "hideMe" :
}
}
function playButSnd() {
_app.soundControl.playSound("_sndRetch0" + Math.ceil(Math.random() * 5), 50);
}
function setKeyListener(nextScreen) {
keyListener.onKeyUp = mx.utils.Delegate.create(this, function () {
this.changeScreen(nextScreen);
});
Key.addListener(keyListener);
}
}
Symbol 608 MovieClip [__Packages.puker.Debris] Frame 0
class puker.Debris extends MovieClip
{
var xAcc, yAcc, _xscale, _yscale, onEnterFrame, _x, _y, _alpha, removeMovieClip;
function Debris () {
super();
init();
}
function init() {
xAcc = (Math.random() * 10) + 2;
yAcc = (Math.random() * 10) - 5;
_xscale = (Math.random() * _scale) + _scale;
_yscale = (Math.random() * _scale) + _scale;
onEnterFrame = fly;
}
function fly() {
_x = _x + ((xAcc = xAcc * 0.96));
_y = _y + ((yAcc = yAcc + 0.3));
_alpha = _alpha - 4;
if (_alpha < 0) {
destroy();
}
}
function destroy() {
delete onEnterFrame;
removeMovieClip();
}
var _scale = 2;
}
Symbol 609 MovieClip [__Packages.puker.SubGame] Frame 0
class puker.SubGame extends MovieClip
{
var gotoAndStop, _app, bmpHolder, mBmp, createEmptyMovieClip, getNextHighestDepth, mSprayHolder, mSplatterHolder, mMask, mPukometer, attachMovie, mRecepArea, mBk, mSndSplatter, mHint, mTarg, intDelay, intCanvas, mFiller, _quality;
function SubGame () {
super();
init();
}
function init() {
gotoAndStop(_app.subLevel);
_app.soundControl.fadeTo(_app.mSndDrone, 50, 0.5);
var _local4 = 0;
bmpHolder = new flash.display.BitmapData(800, 380, true, 0);
mBmp = createEmptyMovieClip("mBmp", getNextHighestDepth());
mBmp.attachBitmap(bmpHolder, 0);
mSprayHolder = createEmptyMovieClip("mSprayHolder", getNextHighestDepth());
var _local3 = 0;
while (_local3 < PUKETOT) {
var _local2 = mSprayHolder.attachMovie("_mPukeLine", "mPukeLine" + _local3, mSprayHolder.getNextHighestDepth());
_local2.mc.gotoAndPlay(_local3 * 3);
_local2._x = 400;
_local2._y = 400;
_local2._yscale = 0;
_local2.mc._y = _local4;
_local2.mc._yscale = (_local2.mc._xscale = 100 - (_local3 * 10));
_local4 = _local2.mc._y - (75 * (_local2.mc._yscale / 100));
_local2.mc.mToMask.setMask(_local2.mc.mMask);
_local3++;
}
mSplatterHolder = createEmptyMovieClip("mSplatterHolder", getNextHighestDepth());
mSplatterHolder.setMask(mMask);
mPukometer = attachMovie("_mPukometer", "mPukometer", getNextHighestDepth(), {_x:-75});
mPukometer.mBaseMask.gotoAndPlay(30);
mPukometer.mBaseMask._yscale = mPukometer.mBaseMask._yscale * -1;
mPukometer.mUpperMask._yscale = mPukometer.mUpperMask._yscale * -1;
mRecepArea.gotoAndStop(1);
com.mosesSupposes.fuse.ZigoEngine.doTween({target:mBk, scope:this, start_alpha:100, _alpha:50, start_Blur_blurX:50, Blur_blurX:15, start_scale:120, _scale:100, ease:"easeOutBounce", seconds:2.5, func:"initGame"});
}
function initGame() {
_app.soundControl.playSound("_sndStartPuke", 100);
mSndSplatter = _app.soundControl.playSoundFade("_sndSplatter", 1, 100, true);
com.mosesSupposes.fuse.ZigoEngine.doTween({target:mPukometer, _x:15, ease:"easeOutBack", seconds:1});
com.mosesSupposes.fuse.ZigoEngine.doTween({target:mHint, _alpha:0, ease:"easeInQuad", seconds:0.5});
mTarg = attachMovie("_mTarg", "mTarg", getNextHighestDepth(), {_alpha:0});
mTarg._x = 400;
mTarg._y = 400;
xPull = (Math.random() * 1) - 0.5;
yPull = -1;
com.mosesSupposes.fuse.ZigoEngine.doTween({target:mTarg, _alpha:100, ease:"easeInQuad", seconds:0.5});
mTarg.onEnterFrame = mx.utils.Delegate.create(this, updateMove);
clearInterval(intDelay);
intDelay = setInterval(this, "addPuke", 50);
clearInterval(intCanvas);
intCanvas = setInterval(this, "updateCanvas", 500);
}
function updateMove() {
if (Key.isDown(39)) {
xInc = Math.min((xInc = xInc + 1.5), MAXSPEED);
} else if (Key.isDown(37)) {
xInc = Math.max((xInc = xInc - 1.5), -MAXSPEED);
} else {
xInc = xInc * 0.9;
}
if (Key.isDown(40)) {
yInc = Math.min((yInc = yInc + 2), MAXSPEED);
} else if (Key.isDown(38)) {
yInc = Math.max((yInc = yInc - 2), -MAXSPEED);
} else {
yInc = yInc * 0.9;
}
mTarg.mc._x = (Math.random() * 8) - 4;
mTarg.mc._y = (Math.random() * 8) - 4;
xInc = xInc + xPull;
yInc = yInc + yPull;
if ((++cnt) > (PERCENT_TARG + (_app.gameLevel * 5))) {
xPull = (Math.random() * 1) - 0.5;
yPull = (Math.random() * 1) - 0.5;
cnt = Math.random() * 30;
_app.soundControl.playSound("_sndRetch0" + Math.ceil(Math.random() * 5), (Math.random() * 10) + 10);
}
var _local2 = mSprayHolder.mPukeLine0;
_local2.scalePrev = _local2._yscale;
_local2.rotPrev2 = _local2.rotPrev1;
_local2.rotPrev1 = _local2._rotation;
_local2._rotation = Math.atan2(mTarg._x - 400, -(mTarg._y - 400)) / RADIAN;
_local2._yscale = Math.sqrt(((mTarg._x - 400) * (mTarg._x - 400)) + ((-(mTarg._y - 380)) * (-(mTarg._y - 380)))) * 0.32;
var _local3 = 1;
while (_local3 < PUKETOT) {
_local2 = mSprayHolder["mPukeLine" + _local3];
_local2.scalePrev = _local2._yscale;
_local2.rotPrev2 = _local2.rotPrev1;
_local2.rotPrev1 = _local2._rotation;
_local2._rotation = mSprayHolder["mPukeLine" + (_local3 - 1)].rotPrev2;
_local2._yscale = mSprayHolder["mPukeLine" + (_local3 - 1)].scalePrev;
_local3++;
}
mTarg._x = mTarg._x + xInc;
mTarg._y = mTarg._y + yInc;
if (mTarg._x > 800) {
mTarg._x = 800;
} else if (mTarg._x < 0) {
mTarg._x = 0;
}
if (mTarg._y > 300) {
mTarg._y = 300;
} else if (mTarg._y < 0) {
mTarg._y = 0;
}
}
function updateCanvas() {
bmpHolder.draw(mSplatterHolder);
mSplatterHolder.removeMovieClip();
mSplatterHolder = createEmptyMovieClip("mSplatterHolder", getNextHighestDepth());
mSplatterHolder.setMask(mMask);
}
function addPuke() {
mBk._alpha = Math.random() * 75;
mPukometer.mBaseMask._y = (mPukometer.mUpperMask._y = mPukometer.mUpperMask._y - 2);
allPercent = Math.round(100 - (((mPukometer.mBaseMask._y - 21) / 330) * 100));
if (allPercent >= 100) {
endGame();
return(undefined);
}
var _local2 = mSplatterHolder.attachMovie("_mPuke", "mPuke", mSplatterHolder.getNextHighestDepth());
var _local3 = mSprayHolder["mPukeLine" + (PUKETOT - 1)];
_local2._x = ((Math.random() * 50) + 375) + ((_local3._yscale * 3.2) * Math.cos(RADIAN * (_local3._rotation - 90)));
_local2._y = ((Math.random() * 50) + 375) + ((_local3._yscale * 3.2) * Math.sin(RADIAN * (_local3._rotation - 90)));
_local2._xscale = (_local2._yscale = (Math.random() * 15) + 15);
if (mRecepArea.hitTest(_local2._x, _local2._y, true)) {
_local2._rotation = ((Math.random() * 90) - 45) + (Math.atan2(-(_local2._x - mRecepArea._x), _local2._y - mRecepArea._y) / RADIAN);
mFiller._alpha = mFiller._alpha + 2;
mRecepArea.gotoAndStop(1);
inPercent = allPercent - outPercent;
if (inPercent >= (PERCENT_TARG + (_app.gameLevel * 5))) {
mTarg.gotoAndStop(2);
}
if (inPercent > 9) {
mTarg.td.text = inPercent + "%";
} else {
mTarg.td.text = ("0" + inPercent) + "%";
}
} else {
_local2._rotation = Math.random() * 360;
var _local4 = mSplatterHolder.attachMovie("_mPuddle", "mPuddle", mSplatterHolder.getNextHighestDepth(), {_rotation:Math.random() * 360, _x:_local2._x, _y:_local2._y, _alpha:(Math.random() * 20) + 15});
_local4.gotoAndStop(Math.ceil(Math.random() * _local4._totalframes));
outPercent = allPercent - inPercent;
if (inPercent < (PERCENT_TARG + (_app.gameLevel * 5))) {
mRecepArea.play();
}
}
_local2._alpha = (Math.random() * 50) + 25;
}
function endGame() {
clearInterval(intDelay);
clearInterval(intCanvas);
delete mTarg.onEnterFrame;
_quality = "HIGH";
_app.removePause();
_app.soundControl.fadeTo(mSndSplatter, 0, 0.5);
_app.soundControl.fadeTo(_app.mSndDrone, 0, 0.5);
com.mosesSupposes.fuse.ZigoEngine.doTween({target:mPukometer, _x:-75, ease:"easeInQuad", seconds:0.5});
com.mosesSupposes.fuse.ZigoEngine.doTween({target:mTarg.mc, _alpha:0, ease:"easeInQuad", seconds:0.5});
com.mosesSupposes.fuse.ZigoEngine.doTween({target:mTarg, scope:this, scale:150, _x:mFiller._x, _y:mFiller._y + 50, ease:"easeOutBack", seconds:2, func:"showResult"});
var _local2 = 0;
while (_local2 < PUKETOT) {
var _local3 = mSprayHolder["mPukeLine" + _local2];
com.mosesSupposes.fuse.ZigoEngine.doTween({target:_local3, _alpha:0, ease:"easeInQuad", seconds:(_local2 + 1) * 0.1});
_local2++;
}
allPercent = 100;
mRecepArea.gotoAndStop(1);
}
function showResult() {
var _local2;
_app.soundControl.playSound("_sndSpit", 100);
_app.pointage = _app.pointage + (inPercent * 2);
if (inPercent >= (PERCENT_TARG + (_app.gameLevel * 5))) {
_local2 = attachMovie("_mResultGood", "mResult", getNextHighestDepth());
if (_app.gameLevel == 3) {
_app.mInfoScreens.setKeyListener("endGameGood");
} else {
_app.mInfoScreens.setKeyListener("intro" + (_app.gameLevel + 1));
}
} else {
_local2 = attachMovie("_mResultBad", "mResult", getNextHighestDepth());
_app.mInfoScreens.setKeyListener("endGameBad");
}
_local2.gotoAndStop(Math.ceil(Math.random() * _local2._totalframes));
com.mosesSupposes.fuse.ZigoEngine.doTween({target:_local2, start_y:200, _y:0, ease:"easeOutBack", seconds:0.5});
}
function pauseHit(pauseState) {
if (pauseState) {
delete mTarg.onEnterFrame;
clearInterval(intDelay);
clearInterval(intCanvas);
} else {
mTarg.onEnterFrame = mx.utils.Delegate.create(this, updateMove);
clearInterval(intDelay);
intDelay = setInterval(this, "addPuke", 50);
clearInterval(intCanvas);
intCanvas = setInterval(this, "updateCanvas", 500);
}
}
function destroy() {
bmpHolder.dispose();
}
static var MAXSPEED = 25;
static var RADIAN = (Math.PI/180);
static var PUKETOT = 7;
static var PERCENT_TARG = 45;
var xInc = 0;
var yInc = 0;
var xPull = 0;
var yPull = 0;
var cnt = 40;
var allPercent = 0;
var inPercent = 0;
var outPercent = 0;
var fade = 0.95;
}
Symbol 610 MovieClip [__Packages.puker.Dan] Frame 0
class puker.Dan extends MovieClip
{
var _x, _y, yInc, gotoAndStop, mc, isWalking, _xscale, _yscale, _app, mRadius, xInc, _parent, swapDepths, attachMovie, getNextHighestDepth, onEnterFrame, removeMovieClip;
function Dan () {
super();
init();
}
function init() {
_x = -50;
_y = 300;
yInc = 0;
gotoAndStop("walk");
mc.gotoAndPlay("seq" + Math.ceil(Math.random() * 2));
isWalking = true;
_xscale = (_yscale = (_y / 8) + 60);
depthCheck();
_app.distLevel = _app.distLevel + (_app.curSpeed / 100);
_app.pukeLevel = Math.max((_app.pukeLevel = _app.pukeLevel + 0.2), 0);
mRadius._xscale = 40 + (_app.pukeLevel / 6);
mRadius._yscale = mRadius._xscale / 2;
com.mosesSupposes.fuse.ZigoEngine.doTween({target:_app, curSpeed:WALKSPEED, ease:"easeInQuad", delay:0.5, seconds:1});
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, scope:this, _x:200, ease:"easeOutQuad", seconds:2, func:"onScreen"});
}
function updateMove() {
if (inControl) {
if (Key.isDown(39) || (Key.isDown(68))) {
xInc = ((350 + ((_y - 225) / 10)) - _x) / 35;
_x = _x + xInc;
_app.curSpeed = Math.min((_app.curSpeed = _app.curSpeed + 0.2), MAXSPEED) + (xInc / 5);
_app.pukeLevel = _app.pukeLevel + 0.075;
if (isWalking) {
gotoAndStop("run");
mc.gotoAndPlay("seq" + Math.ceil(Math.random() * 2));
isWalking = false;
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
xInc = ((50 + ((_y - 225) / 10)) - _x) / 35;
_x = _x + xInc;
_app.curSpeed = Math.max((_app.curSpeed = _app.curSpeed * 0.9), MINSPEED) + (xInc / 5);
if (!isWalking) {
gotoAndStop("walk");
mc.gotoAndPlay("seq" + Math.ceil(Math.random() * 2));
isWalking = true;
}
} else {
xInc = ((200 + ((_y - 225) / 10)) - _x) / 40;
_x = _x + xInc;
_app.curSpeed = Math.max((_app.curSpeed = _app.curSpeed * 0.9), WALKSPEED) + (xInc / 5);
if (!isWalking) {
gotoAndStop("walk");
mc.gotoAndPlay("seq" + Math.ceil(Math.random() * 2));
isWalking = true;
}
}
if (Key.isDown(38) || (Key.isDown(87))) {
yInc = Math.max(yInc - (WALKSPEED / (_app.curSpeed * 1.5)), -5);
} else if (Key.isDown(40) || (Key.isDown(83))) {
yInc = Math.min(yInc + (WALKSPEED / (_app.curSpeed * 1.5)), 5);
} else {
yInc = yInc * 0.7;
}
}
_y = _y + yInc;
if (_y > MAXY) {
_y = MAXY;
yInc = 0;
} else if (_y < MINY) {
_y = MINY;
yInc = 0;
}
_xscale = (_yscale = (_y / 8) + 60);
depthCheck();
_app.distLevel = _app.distLevel + (_app.curSpeed / 100);
_app.pukeLevel = _app.pukeLevel + 0.15;
mRadius._xscale = 40 + (_app.pukeLevel / 6);
mRadius._yscale = mRadius._xscale / 2;
}
function depthCheck() {
var _local3 = Math.round(_y);
var _local2 = _parent.getInstanceAtDepth(_local3);
if (_local2 && (_local2 != this)) {
swapDepths(_local2);
} else {
swapDepths(_local3);
}
}
function hitItem(addPuke, reactStyle, inFront, fullStop) {
if (inControl) {
_app.pukeLevel = _app.pukeLevel + addPuke;
inControl = false;
gotoAndStop(reactStyle);
isWalking = true;
if (fullStop) {
_app.curSpeed = -1;
com.mosesSupposes.fuse.ZigoEngine.doTween({target:_app, curSpeed:0, ease:"easeInQuad", seconds:0.2});
} else {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:_app, curSpeed:0, ease:"easeInQuad", seconds:0.2});
}
xInc = (yInc = 0);
if (inFront) {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _y:Math.min(_y + 20, MAXY), ease:"easeOutQuad", seconds:0.3});
} else {
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, _y:Math.max(_y - 20, MINY), ease:"easeOutQuad", seconds:0.3});
}
var _local2 = 0;
while (_local2 < 5) {
attachMovie("_mDribble", "mDribble", getNextHighestDepth(), {_y:-110});
_local2++;
}
}
}
function hitDrink() {
_app.curSpeed = -1;
com.mosesSupposes.fuse.ZigoEngine.doTween({target:_app, curSpeed:0, ease:"easeInQuad", seconds:0.2});
inControl = false;
gotoAndStop("drink");
isWalking = true;
xInc = (yInc = 0);
}
function seqDone() {
if (!_app.runLevelOver) {
gotoAndStop("walk");
inControl = true;
com.mosesSupposes.fuse.ZigoEngine.doTween({target:_app, curSpeed:WALKSPEED, ease:"easeInQuad", seconds:0.2});
} else {
startRetching();
}
}
function walkOffScreen() {
inControl = false;
delete onEnterFrame;
gotoAndStop("run");
com.mosesSupposes.fuse.ZigoEngine.doTween({target:_app, curSpeed:0, _x:0, ease:"easeOutQuad", seconds:0.5});
com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, scope:this, _x:850, ease:"linear", seconds:1.5, func:"runLevelOver"});
}
function startRetching() {
inControl = false;
delete onEnterFrame;
gotoAndStop("retch");
com.mosesSupposes.fuse.ZigoEngine.doTween({target:_app, curSpeed:0, _x:0, ease:"easeOutQuad", seconds:0.2});
}
function runLevelOver() {
_app.initSubGame();
removeMovieClip();
}
function onScreen() {
onEnterFrame = updateMove;
_app.addPause();
}
function pauseHit(pauseState) {
if (pauseState) {
delete onEnterFrame;
mc.stop();
} else {
onEnterFrame = updateMove;
mc.play();
}
}
static var MAXSPEED = 12;
static var WALKSPEED = 6;
static var MINSPEED = 4;
static var MAXY = 340;
static var MINY = 175;
var inControl = true;
}
Symbol 84 MovieClip [_mFloor_1] Frame 1
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 65
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 25
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 33
stop();
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 72
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 64
stop();
Symbol 121 MovieClip [_mItem_1] Frame 1
hitType = "large";
Symbol 121 MovieClip [_mItem_1] Frame 2
hitType = "large";
Symbol 121 MovieClip [_mItem_1] Frame 3
hitType = "large";
Symbol 121 MovieClip [_mItem_1] Frame 4
hitType = "medium";
Symbol 121 MovieClip [_mItem_1] Frame 5
hitType = "small";
Symbol 121 MovieClip [_mItem_1] Frame 6
hitType = "person";
Symbol 121 MovieClip [_mItem_1] Frame 7
hitType = "person";
Symbol 121 MovieClip [_mItem_1] Frame 8
hitType = "person";
Symbol 121 MovieClip [_mItem_1] Frame 9
hitType = "person";
Symbol 121 MovieClip [_mItem_1] Frame 10
hitType = "large";
Symbol 121 MovieClip [_mItem_1] Frame 11
hitType = "person";
Symbol 121 MovieClip [_mItem_1] Frame 12
hitType = "small";
Symbol 131 MovieClip Frame 21
this.gotoAndPlay(1);
Symbol 131 MovieClip Frame 42
this.gotoAndPlay("seq2");
Symbol 208 MovieClip Frame 14
gotoAndPlay (1);
Symbol 208 MovieClip Frame 28
gotoAndPlay ("seq2");
Symbol 212 MovieClip Frame 14
var i = 0;
while (i < 5) {
this.attachMovie("_mDribble", "mDribble", this.getNextHighestDepth(), {_x:30, _y:-60});
i++;
}
Symbol 212 MovieClip Frame 43
var i = 0;
while (i < 5) {
this.attachMovie("_mDribble", "mDribble", this.getNextHighestDepth(), {_x:5, _y:-50});
i++;
}
Symbol 212 MovieClip Frame 64
stop();
this._parent.runLevelOver();
Symbol 215 MovieClip Frame 1
this.gotoAndPlay("seq" + Math.ceil(Math.random() * 2));
Symbol 215 MovieClip Frame 39
this._parent.seqDone();
Symbol 215 MovieClip Frame 66
this._parent.seqDone();
Symbol 217 MovieClip Frame 70
this._parent.seqDone();
Symbol 219 MovieClip Frame 28
this._parent.seqDone();
Symbol 220 MovieClip Frame 36
this._parent.seqDone();
Symbol 223 MovieClip Frame 34
this._parent.seqDone();
Symbol 224 MovieClip [_mDan] Frame 1
#initclip 23
Object.registerClass("_mDan", puker.Dan);
#endinitclip
Symbol 232 MovieClip [_mHud] Frame 1
#initclip 17
Object.registerClass("_mHud", puker.Hud);
#endinitclip
Symbol 275 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 10
stop();
Symbol 276 MovieClip [_mPickup] Frame 1
hitType = "pickup";
Symbol 311 MovieClip Frame 1
this._visible = false;
Symbol 321 Button
on (release) {
gameURL = ("http://www.miniclip.com/" + gamename) + ".htm";
getURL (gameURL, "_blank");
}
Symbol 323 MovieClip Frame 1
System.security.allowDomain("www.miniclip.com");
Instance of Symbol 311 MovieClip "mcHighscores" in Symbol 323 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 323 MovieClip Frame 2
if ((((_url.indexOf("miniclip.com") == -1) && (_url.indexOf("miniclip.net") == -1)) && (_url.indexOf("miniclip.co.uk") == -1)) && (_url.indexOf("miniclips.com"))) {
gotoAndStop(_currentframe + 1);
} else {
var noCache = (getTimer() + random(100000));
mcTarget.loadMovie("http://www.miniclip.com/swfcontent/highscore.swf?noCache=" + noCache);
stop();
}
Symbol 323 MovieClip Frame 3
stop();
Symbol 327 MovieClip [_mInfoScreens] Frame 1
#initclip 18
Object.registerClass("_mInfoScreens", puker.InfoScreens);
#endinitclip
Instance of Symbol 323 MovieClip "comHighscores" in Symbol 327 MovieClip [_mInfoScreens] Frame 8
//component parameters
onClipEvent (construct) {
scoreLocation = "_root.pointage";
gamename = "puker";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Instance of Symbol 323 MovieClip "comHighscores" in Symbol 327 MovieClip [_mInfoScreens] Frame 9
//component parameters
onClipEvent (construct) {
scoreLocation = "_root.pointage";
gamename = "puker";
saveScore = false;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Symbol 329 MovieClip [_mDribble] Frame 1
#initclip 19
Object.registerClass("_mDribble", puker.Debris);
#endinitclip
Symbol 400 MovieClip [_mItem_3] Frame 1
hitType = "medium";
Symbol 400 MovieClip [_mItem_3] Frame 2
hitType = "small";
Symbol 400 MovieClip [_mItem_3] Frame 3
hitType = "person";
Symbol 400 MovieClip [_mItem_3] Frame 4
hitType = "person";
Symbol 400 MovieClip [_mItem_3] Frame 5
hitType = "person";
Symbol 400 MovieClip [_mItem_3] Frame 6
hitType = "person";
Symbol 400 MovieClip [_mItem_3] Frame 7
hitType = "person";
Symbol 400 MovieClip [_mItem_3] Frame 8
hitType = "medium";
Symbol 400 MovieClip [_mItem_3] Frame 9
hitType = "medium";
Symbol 400 MovieClip [_mItem_3] Frame 10
hitType = "large";
Symbol 400 MovieClip [_mItem_3] Frame 11
hitType = "large";
Symbol 400 MovieClip [_mItem_3] Frame 12
hitType = "small";
Symbol 400 MovieClip [_mItem_3] Frame 13
hitType = "large";
Symbol 419 MovieClip [_mPuke] Frame 7
this.gotoAndStop("splat" + Math.ceil(Math.random() * 3));
Symbol 474 MovieClip [_mSubGame_1] Frame 1
#initclip 20
Object.registerClass("_mSubGame_1", puker.SubGame);
#endinitclip
Symbol 499 MovieClip [_mSubGame_2] Frame 1
#initclip 21
Object.registerClass("_mSubGame_2", puker.SubGame);
#endinitclip
Symbol 530 MovieClip [_mSubGame_3] Frame 1
#initclip 22
Object.registerClass("_mSubGame_3", puker.SubGame);
#endinitclip
Symbol 535 MovieClip [_mTarg] Frame 1
stop();
Symbol 560 MovieClip [_mFloor_2] Frame 1
stop();
Symbol 569 MovieClip [_mItem_2] Frame 1
hitType = "medium";
Symbol 569 MovieClip [_mItem_2] Frame 2
hitType = "person";
Symbol 569 MovieClip [_mItem_2] Frame 3
hitType = "person";
Symbol 569 MovieClip [_mItem_2] Frame 4
hitType = "person";
Symbol 569 MovieClip [_mItem_2] Frame 5
hitType = "person";
Symbol 569 MovieClip [_mItem_2] Frame 6
hitType = "person";
Symbol 569 MovieClip [_mItem_2] Frame 7
hitType = "small";
Symbol 569 MovieClip [_mItem_2] Frame 8
hitType = "small";
Symbol 572 MovieClip [_mLight_2] Frame 1
stop();
Symbol 594 MovieClip Frame 1
stop();