Combined Code
movieClip 2 statBox {
}
// unknown tag 88 length 80
movieClip 6 {
}
movieClip 8 blackBox {
}
movieClip 18 newMC {
}
movieClip 22 newTeamSize {
frame 1 {
closeBTN.onRelease = function () {
removeMovieClip(closeBTN._parent);
_root.initStats(0);
};
}
}
movieClip 27 tutDrop {
frame 1 {
closeBTN.onRelease = function () {
removeMovieClip(closeBTN._parent);
};
}
}
movieClip 34 tutKhanh {
}
movieClip 41 tutKeep {
frame 1 {
closeBTN.onRelease = function () {
removeMovieClip(closeBTN._parent);
removeMovieClip(_root.Qtut);
removeMovieClip(_root.Wtut);
removeMovieClip(_root.Etut);
};
}
}
movieClip 43 {
}
movieClip 45 {
}
movieClip 47 sponsorLogo {
frame 1 {
BTN.onRelease = function () {
getURL('http://www.stickpage.com/', '_blank');
};
}
}
frame 1 {
function deadClick() {}
var urls_allowed = new Array('www.stickpage.com');
lock = false;
stop();
domain_parts = _url.split('://');
real_domain = domain_parts[1].split('/');
domain.text = real_domain[0];
for (var t in urls_allowed) {
if (urls_allowed[t] == real_domain[0]) {
lock = false;
}
}
if (_root.lock) {
_root._alpha = 0;
}
_quality = 'MEDIUM';
var myMenu_cm = new ContextMenu();
myMenu_cm.hideBuiltInItems();
myMenu_cm.builtInItems.quality = true;
var figureTXT = new ContextMenuItem('© 2012 Michael Moy', deadClick);
figureTXT.enabled = false;
myMenu_cm.customItems.push(figureTXT);
_root.menu = myMenu_cm;
stickbtn.onRelease = function () {
getURL('http://www.stickpage.com/', '_blank');
};
fbBTN.onRelease = function () {
getURL('http://www.facebook.com/Stickpage', '_blank');
};
ytBTN.onRelease = function () {
getURL('http://www.youtube.com/user/stickpagestudios', '_blank');
};
SIbtn.onRelease = function () {
getURL('http://www.stickpage.com/slushinvadersplay.shtml', '_blank');
};
ggBTN.onRelease = function () {
getURL('http://www.youtube.com/user/gildedguy', '_blank');
};
playBTN._visible = false;
onEnterFrame = function () {
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
splash.loadBar._xscale = getPercent * 86.2;
loadText.text = Math.round(getPercent * 100) + '%';
if (bytes_loaded == bytes_total && !lock) {
statTXT.text = 'Loaded! Let\'s go!';
loadText._visible = false;
playBTN._visible = true;
playBTN.onRelease = function () {
play();
delete onEnterFrame;
};
} else {
gotoAndStop(1);
}
};
}
movieClip 52 {
}
movieClip 53 countrySkyC {
}
movieClip 56 highwayA {
}
movieClip 60 {
}
movieClip 62 lvl1map {
}
movieClip 64 distBar {
}
movieClip 65 {
frame 1 {
bgb.titleTXT.text = '';
}
frame 1 {
bg.titleTXT.text = '';
}
}
movieClip 88 {
}
movieClip 89 {
}
movieClip 91 {
}
movieClip 95 {
}
movieClip 97 {
}
movieClip 99 {
}
movieClip 12490 __Packages.com.greensock.easing.Linear {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.easing) {
_global.com.greensock.easing = new Object();
}
if (!_global.com.greensock.easing.Linear) {
var v1 = function () {};
com.greensock.easing.Linear = v1;
var v2 = v1.prototype;
v1.easeNone = function (t, b, c, d) {
return c * t / d + b;
};
v1.easeIn = function (t, b, c, d) {
return c * t / d + b;
};
v1.easeOut = function (t, b, c, d) {
return c * t / d + b;
};
v1.easeInOut = function (t, b, c, d) {
return c * t / d + b;
};
ASSetPropFlags(com.greensock.easing.Linear.prototype, null, 1);
}
#endinitclip
}
movieClip 12491 __Packages.com.greensock.core.TweenCore {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.core) {
_global.com.greensock.core = new Object();
}
if (!_global.com.greensock.core.TweenCore) {
var v1 = function (duration, vars) {
this.vars = vars || {};
this.cachedTotalDuration = duration || 0;
this.cachedDuration = this.cachedTotalDuration;
this._delay = Number(this.vars.delay) || 0;
this.cachedTimeScale = this.vars.timeScale || 1;
this.active = Boolean(duration == 0 && this._delay == 0 && this.vars.immediateRender != false);
this.cachedTime = 0;
this.cachedTotalTime = 0;
this.data = this.vars.data;
this.cachedReversed = false;
this.cachedPaused = this.cachedReversed;
this.cacheIsDirty = this.cachedReversed;
this.initted = this.cachedReversed;
this.gc = this.cachedReversed;
this._rawPrevTime = -1;
if (!com.greensock.core.TweenCore._classInitted) {
if (com.greensock.TweenLite.rootFrame == undefined && com.greensock.TweenLite.initClass != undefined) {
com.greensock.TweenLite.initClass();
com.greensock.core.TweenCore._classInitted = true;
} else {
return undefined;
}
}
var v2 = this.vars.timeline instanceof com.greensock.core.SimpleTimeline ? this.vars.timeline : ((this.vars.useFrames == true) ? com.greensock.TweenLite.rootFramesTimeline : com.greensock.TweenLite.rootTimeline);
v2.insert(this, v2.cachedTotalTime);
if (this.vars.reversed) {
this.cachedReversed = true;
}
if (this.vars.paused) {
this.__set__paused(true);
}
};
com.greensock.core.TweenCore = v1;
var v2 = v1.prototype;
v2.play = function () {
this.__set__reversed(false);
this.__set__paused(false);
};
v2.pause = function () {
this.__set__paused(true);
};
v2.resume = function () {
this.__set__paused(false);
};
v2.restart = function (includeDelay, suppressEvents) {
this.__set__reversed(false);
this.__set__paused(false);
this.setTotalTime(includeDelay ? -this._delay : 0, Boolean(suppressEvents != false));
};
v2.reverse = function (forceResume) {
this.__set__reversed(true);
if (forceResume != false) {
this.__set__paused(false);
} else {
if (this.gc) {
this.setEnabled(true, false);
}
}
};
v2.renderTime = function (time, suppressEvents, force) {};
v2.complete = function (skipRender, suppressEvents) {
if (!skipRender) {
this.renderTime(this.__get__totalDuration(), suppressEvents, false);
return undefined;
}
if (this.timeline.autoRemoveChildren) {
this.setEnabled(false, false);
} else {
this.active = false;
}
if (!suppressEvents) {
if (this.vars.onComplete && this.cachedTotalTime >= this.cachedTotalDuration && !this.cachedReversed) {
this.vars.onComplete.apply(this.vars.onCompleteScope, this.vars.onCompleteParams);
} else {
if (this.cachedReversed && this.cachedTotalTime == 0 && this.vars.onReverseComplete) {
this.vars.onReverseComplete.apply(this.vars.onReverseCompleteScope, this.vars.onReverseCompleteParams);
}
}
}
};
v2.invalidate = function () {};
v2.setEnabled = function (enabled, ignoreTimeline) {
this.gc = !enabled;
if (enabled) {
this.active = Boolean(!this.cachedPaused && this.cachedTotalTime > 0 && this.cachedTotalTime < this.cachedTotalDuration);
if (ignoreTimeline != true && this.cachedOrphan) {
this.timeline.insert(this, this.cachedStartTime - this._delay);
}
return false;
}
this.active = false;
if (ignoreTimeline != true && !this.cachedOrphan) {
this.timeline.remove(this, true);
}
return false;
};
v2.kill = function () {
this.setEnabled(false, false);
};
v2.setDirtyCache = function (includeSelf) {
var v2 = (includeSelf != false) ? this : this.timeline;
while (v2) {
v2.cacheIsDirty = true;
v2 = v2.timeline;
}
};
v2.setTotalTime = function (time, suppressEvents) {
if (this.timeline) {
var v3 = this.cachedPaused ? this.cachedPauseTime : this.timeline.cachedTotalTime;
if (this.cachedReversed) {
var v4 = this.cacheIsDirty ? this.__get__totalDuration() : this.cachedTotalDuration;
this.cachedStartTime = v3 - (v4 - time) / this.cachedTimeScale;
} else {
this.cachedStartTime = v3 - time / this.cachedTimeScale;
}
if (!this.timeline.cacheIsDirty) {
this.setDirtyCache(false);
}
if (this.cachedTotalTime != time) {
this.renderTime(time, suppressEvents, false);
}
}
};
v2.__get__delay = function () {
return this._delay;
};
v2.__set__delay = function (n) {
this.startTime += n - this._delay;
this._delay = n;
return this.__get__delay();
};
v2.__get__duration = function () {
return this.cachedDuration;
};
v2.__set__duration = function (n) {
var v2 = n / this.cachedDuration;
this.cachedTotalDuration = n;
this.cachedDuration = this.cachedTotalDuration;
if (this.active && !this.cachedPaused && n != 0) {
this.setTotalTime(this.cachedTotalTime * v2, true);
}
this.setDirtyCache(false);
return this.__get__duration();
};
v2.__get__totalDuration = function () {
return this.cachedTotalDuration;
};
v2.__set__totalDuration = function (n) {
this.__set__duration(n);
return this.__get__totalDuration();
};
v2.__get__currentTime = function () {
return this.cachedTime;
};
v2.__set__currentTime = function (n) {
this.setTotalTime(n, false);
return this.__get__currentTime();
};
v2.__get__totalTime = function () {
return this.cachedTotalTime;
};
v2.__set__totalTime = function (n) {
this.setTotalTime(n, false);
return this.__get__totalTime();
};
v2.__get__startTime = function () {
return this.cachedStartTime;
};
v2.__set__startTime = function (n) {
if (this.timeline != undefined && (n != this.cachedStartTime || this.gc)) {
this.timeline.insert(this, n - this._delay);
} else {
this.cachedStartTime = n;
}
return this.__get__startTime();
};
v2.__get__reversed = function () {
return this.cachedReversed;
};
v2.__set__reversed = function (b) {
if (b != this.cachedReversed) {
this.cachedReversed = b;
this.setTotalTime(this.cachedTotalTime, true);
}
return this.__get__reversed();
};
v2.__get__paused = function () {
return this.cachedPaused;
};
v2.__set__paused = function (b) {
if (b != this.cachedPaused && this.timeline) {
if (b) {
this.cachedPauseTime = this.timeline.rawTime;
} else {
this.cachedStartTime += this.timeline.__get__rawTime() - this.cachedPauseTime;
this.cachedPauseTime = NaN;
this.setDirtyCache(false);
}
this.cachedPaused = b;
this.active = Boolean(!this.cachedPaused && this.cachedTotalTime > 0 && this.cachedTotalTime < this.cachedTotalDuration);
}
if (!b && this.gc) {
this.setTotalTime(this.cachedTotalTime, false);
this.setEnabled(true, false);
}
return this.__get__paused();
};
v1.version = 1.64;
v2.addProperty('currentTime', v2.__get__currentTime, v2.__set__currentTime);
v2.addProperty('delay', v2.__get__delay, v2.__set__delay);
v2.addProperty('duration', v2.__get__duration, v2.__set__duration);
v2.addProperty('paused', v2.__get__paused, v2.__set__paused);
v2.addProperty('reversed', v2.__get__reversed, v2.__set__reversed);
v2.addProperty('startTime', v2.__get__startTime, v2.__set__startTime);
v2.addProperty('totalDuration', v2.__get__totalDuration, v2.__set__totalDuration);
v2.addProperty('totalTime', v2.__get__totalTime, v2.__set__totalTime);
ASSetPropFlags(com.greensock.core.TweenCore.prototype, null, 1);
}
#endinitclip
}
movieClip 12492 __Packages.com.greensock.core.SimpleTimeline {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.core) {
_global.com.greensock.core = new Object();
}
if (!_global.com.greensock.core.SimpleTimeline) {
var v1 = function (vars) {
super(0, vars);
};
com.greensock.core.SimpleTimeline = v1;
com.greensock.core.SimpleTimeline extends com.greensock.core.TweenCore;
var v2 = v1.prototype;
v2.insert = function (tween, time) {
if (time == undefined) {
time = 0;
}
if (!tween.cachedOrphan && tween.timeline != undefined) {
tween.timeline.remove(tween, true);
}
tween.timeline = this;
tween.cachedStartTime = Number(time) + tween.__get__delay();
if (tween.gc) {
tween.setEnabled(true, true);
}
if (tween.cachedPaused) {
tween.cachedPauseTime = tween.cachedStartTime + (this.__get__rawTime() - tween.cachedStartTime) / tween.cachedTimeScale;
}
if (this._lastChild) {
this._lastChild.nextNode = tween;
tween.prevNode = this._lastChild;
this._lastChild = tween;
tween.nextNode = undefined;
tween.cachedOrphan = false;
return tween;
}
this._firstChild = tween;
tween.prevNode = this._lastChild;
this._lastChild = tween;
tween.nextNode = undefined;
tween.cachedOrphan = false;
return tween;
};
v2.remove = function (tween, skipDisable) {
if (tween.cachedOrphan) {
return undefined;
} else {
if (skipDisable != true) {
tween.setEnabled(false, true);
}
}
if (tween.nextNode) {
tween.nextNode.prevNode = tween.prevNode;
} else {
if (this._lastChild == tween) {
this._lastChild = tween.prevNode;
}
}
if (tween.prevNode) {
tween.prevNode.nextNode = tween.nextNode;
} else {
if (this._firstChild == tween) {
this._firstChild = tween.nextNode;
}
}
tween.cachedOrphan = true;
};
v2.renderTime = function (time, suppressEvents, force) {
var v2 = this._firstChild;
var v4;
var v5;
this.cachedTotalTime = time;
this.cachedTime = time;
while (v2) {
v5 = v2.nextNode;
if (v2.active || time >= v2.cachedStartTime && !v2.cachedPaused && !v2.gc) {
if (!v2.cachedReversed) {
v2.renderTime((time - v2.cachedStartTime) * v2.cachedTimeScale, suppressEvents, false);
} else {
v4 = v2.cacheIsDirty ? v2.__get__totalDuration() : v2.cachedTotalDuration;
v2.renderTime(v4 - (time - v2.cachedStartTime) * v2.cachedTimeScale, suppressEvents, false);
}
}
v2 = v5;
}
};
v2.__get__rawTime = function () {
return this.cachedTotalTime;
};
v2.addProperty('rawTime', v2.__get__rawTime, function () {});
ASSetPropFlags(com.greensock.core.SimpleTimeline.prototype, null, 1);
}
#endinitclip
}
movieClip 12493 __Packages.com.greensock.TweenLite {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.TweenLite) {
var v1 = function (target, duration, vars) {
super(duration, vars);
if (com.greensock.TweenLite._timingClip.onEnterFrame != com.greensock.TweenLite.updateAll) {
com.greensock.TweenLite.jumpStart(_root);
}
this.ratio = 0;
this.target = target;
this._targetID = com.greensock.TweenLite.getID(target, true);
if (this.vars.timeScale != undefined && this.target instanceof com.greensock.core.TweenCore) {
this.cachedTimeScale = 1;
}
this.propTweenLookup = {};
this._ease = com.greensock.TweenLite.defaultEase;
this._overwrite = (vars.overwrite == undefined || !com.greensock.TweenLite.overwriteManager.enabled && vars.overwrite > 1) ? com.greensock.TweenLite.overwriteManager.mode : Number(vars.overwrite);
var v5 = com.greensock.TweenLite.masterList[this._targetID].tweens;
if (v5.length == 0) {
v5[0] = this;
} else {
if (this._overwrite == 1) {
var v4 = v5.length;
while (--v4 > -1) {
if (!v5[v4].gc) {
v5[v4].setEnabled(false, false);
}
}
com.greensock.TweenLite.masterList[this._targetID].tweens = [this];
} else {
v5[v5.length] = this;
}
}
if (this.active || this.vars.immediateRender) {
this.renderTime(0, false, true);
}
};
com.greensock.TweenLite = v1;
com.greensock.TweenLite extends com.greensock.core.TweenCore;
var v2 = v1.prototype;
v1.initClass = function () {
com.greensock.TweenLite.rootFrame = 0;
com.greensock.TweenLite.rootTimeline = new com.greensock.core.SimpleTimeline(null);
com.greensock.TweenLite.rootFramesTimeline = new com.greensock.core.SimpleTimeline(null);
com.greensock.TweenLite.rootFramesTimeline.autoRemoveChildren = true;
com.greensock.TweenLite.rootTimeline.autoRemoveChildren = com.greensock.TweenLite.rootFramesTimeline.autoRemoveChildren;
com.greensock.TweenLite.rootTimeline.cachedStartTime = getTimer() * 0.001;
com.greensock.TweenLite.rootFramesTimeline.cachedTotalTime = 0;
com.greensock.TweenLite.rootTimeline.cachedTotalTime = 0;
com.greensock.TweenLite.rootFramesTimeline.cachedStartTime = com.greensock.TweenLite.rootFrame;
if (com.greensock.TweenLite.overwriteManager == undefined) {
com.greensock.TweenLite.overwriteManager = {'mode': 1, 'enabled': false};
}
com.greensock.TweenLite.jumpStart(_root);
};
v2.init = function () {
if (this.vars.onInit) {
this.vars.onInit.apply(null, this.vars.onInitParams);
}
var v2;
var v5;
var v3;
var v6;
var v7;
if (typeof this.vars.ease == 'function') {
this._ease = this.vars.ease;
}
if (this.vars.easeParams != undefined) {
this.vars.proxiedEase = this._ease;
this._ease = this.easeProxy;
}
this.cachedPT1 = undefined;
this.propTweenLookup = {};
for (v2 in this.vars) {
if (com.greensock.TweenLite._reservedProps[v2] && !(v2 == 'timeScale' && this.target instanceof com.greensock.core.TweenCore)) {
} else {
if (com.greensock.TweenLite.plugins[v2] && v3.onInitTween(this.target, this.vars[v2], this)) {
this.cachedPT1 = new com.greensock.core.PropTween(v3, 'changeFactor', 0, 1, (v3.overwriteProps.length == 1) ? v3.overwriteProps[0] : '_MULTIPLE_', true, this.cachedPT1);
if (this.cachedPT1.name == '_MULTIPLE_') {
v5 = v3.overwriteProps.length;
while (--v5 > -1) {
this.propTweenLookup[v3.overwriteProps[v5]] = this.cachedPT1;
}
} else {
this.propTweenLookup[this.cachedPT1.name] = this.cachedPT1;
}
if (v3.priority) {
this.cachedPT1.priority = v3.priority;
v6 = true;
}
if (v3.onDisable || v3.onEnable) {
this._notifyPluginsOfEnabled = true;
}
this._hasPlugins = true;
} else {
this.cachedPT1 = new com.greensock.core.PropTween(this.target, v2, Number(this.target[v2]), (typeof this.vars[v2] == 'number') ? Number(this.vars[v2]) - this.target[v2] : Number(this.vars[v2]), v2, false, this.cachedPT1);
this.propTweenLookup[v2] = this.cachedPT1;
}
}
}
if (v6) {
com.greensock.TweenLite.onPluginEvent('onInitAllProps', this);
}
if (this.vars.runBackwards) {
var v4 = this.cachedPT1;
while (v4) {
v4.start += v4.change;
v4.change = -v4.change;
v4 = v4.nextNode;
}
}
this._hasUpdate = Boolean(typeof this.vars.onUpdate == 'function');
if (this._overwrittenProps) {
this.killVars(this._overwrittenProps);
if (this.cachedPT1 == undefined) {
this.setEnabled(false, false);
}
}
if (this._overwrite > 1 && this.cachedPT1 && v7 && v7.length > 1) {
if (com.greensock.TweenLite.overwriteManager.manageOverwrites(this, this.propTweenLookup, v7, this._overwrite)) {
this.init();
}
}
this.initted = true;
};
v2.renderTime = function (time, suppressEvents, force) {
var v4;
var v5 = this.cachedTime;
if (time >= this.cachedDuration) {
this.cachedTime = this.cachedDuration;
this.cachedTotalTime = this.cachedTime;
this.ratio = 1;
v4 = true;
if (this.cachedDuration == 0) {
if ((time == 0 || this._rawPrevTime < 0) && this._rawPrevTime != time) {
force = true;
}
this._rawPrevTime = time;
}
} else {
if (time <= 0) {
this.ratio = 0;
this.cachedTime = 0;
this.cachedTotalTime = 0;
if (time < 0) {
this.active = false;
if (this.cachedDuration == 0) {
if (this._rawPrevTime >= 0) {
force = true;
v4 = true;
}
this._rawPrevTime = time;
}
}
if (this.cachedReversed && v5 != 0) {
v4 = true;
}
} else {
this.cachedTime = time;
this.cachedTotalTime = this.cachedTime;
this.ratio = this._ease(time, 0, 1, this.cachedDuration);
}
}
if (this.cachedTime == v5 && !force) {
return undefined;
} else {
if (!this.initted) {
this.init();
if (!v4 && this.cachedTime) {
this.ratio = this._ease(this.cachedTime, 0, 1, this.cachedDuration);
}
}
}
if (!this.active && !this.cachedPaused) {
this.active = true;
}
if (v5 == 0 && this.vars.onStart && (this.cachedTime != 0 || this.cachedDuration == 0) && !suppressEvents) {
this.vars.onStart.apply(this.vars.onStartScope, this.vars.onStartParams);
}
var v2 = this.cachedPT1;
while (v2) {
v2.target[v2.property] = v2.start + this.ratio * v2.change;
v2 = v2.nextNode;
}
if (this._hasUpdate && !suppressEvents) {
this.vars.onUpdate.apply(this.vars.onUpdateScope, this.vars.onUpdateParams);
}
if (v4 && !this.gc) {
if (this._hasPlugins && this.cachedPT1) {
com.greensock.TweenLite.onPluginEvent('onComplete', this);
}
this.complete(true, suppressEvents);
}
};
v2.killVars = function (vars, permanent) {
if (this._overwrittenProps == undefined) {
this._overwrittenProps = {};
}
var v3;
var v2;
var v5;
for (v3 in vars) {
if (this.propTweenLookup[v3]) {
v2 = this.propTweenLookup[v3];
if (v2.isPlugin && v2.name == '_MULTIPLE_') {
v2.target.killProps(vars);
if (v2.target.overwriteProps.length == 0) {
v2.name = '';
}
if (v3 != v2.target.propName || v2.name == '') {
delete this.propTweenLookup[v3];
}
}
if (v2.name != '_MULTIPLE_') {
if (v2.nextNode) {
v2.nextNode.prevNode = v2.prevNode;
}
if (v2.prevNode) {
v2.prevNode.nextNode = v2.nextNode;
} else {
if (this.cachedPT1 == v2) {
this.cachedPT1 = v2.nextNode;
}
}
if (v2.isPlugin && v2.target.onDisable) {
v2.target.onDisable();
if (v2.target.activeDisable) {
v5 = true;
}
}
delete this.propTweenLookup[v3];
}
}
if (permanent != false && vars != this._overwrittenProps) {
this._overwrittenProps[v3] = 1;
}
}
return v5;
};
v2.invalidate = function () {
if (this._notifyPluginsOfEnabled) {
com.greensock.TweenLite.onPluginEvent('onDisable', this);
}
this.cachedPT1 = undefined;
this._overwrittenProps = undefined;
this._notifyPluginsOfEnabled = false;
this.active = this._notifyPluginsOfEnabled;
this.initted = this._notifyPluginsOfEnabled;
this._hasUpdate = this._notifyPluginsOfEnabled;
this.propTweenLookup = {};
};
v2.setEnabled = function (enabled, ignoreTimeline) {
if (enabled) {
var v3 = com.greensock.TweenLite.masterList[this._targetID].tweens;
if (v3) {
v3[v3.length] = this;
} else {
com.greensock.TweenLite.masterList[this._targetID] = {'target': this.target, 'tweens': [this]};
}
}
super.setEnabled(enabled, ignoreTimeline);
if (this._notifyPluginsOfEnabled && this.cachedPT1) {
return com.greensock.TweenLite.onPluginEvent(enabled ? 'onEnable' : 'onDisable', this);
}
return false;
};
v2.easeProxy = function (t, b, c, d) {
return this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams));
};
v1.to = function (target, duration, vars) {
return new com.greensock.TweenLite(target, duration, vars);
};
v1.from = function (target, duration, vars) {
vars.runBackwards = true;
if (vars.immediateRender != false) {
vars.immediateRender = true;
}
return new com.greensock.TweenLite(target, duration, vars);
};
v1.delayedCall = function (delay, onComplete, onCompleteParams, onCompleteScope, useFrames) {
return new com.greensock.TweenLite(onComplete, 0, {'delay': delay, 'onComplete': onComplete, 'onCompleteParams': onCompleteParams, 'onCompleteScope': onCompleteScope, 'immediateRender': false, 'useFrames': useFrames, 'overwrite': 0});
};
v1.updateAll = function () {
com.greensock.TweenLite.rootTimeline.renderTime((getTimer() * 0.001 - com.greensock.TweenLite.rootTimeline.cachedStartTime) * com.greensock.TweenLite.rootTimeline.cachedTimeScale, false, false);
++com.greensock.TweenLite.rootFrame;
com.greensock.TweenLite.rootFramesTimeline.renderTime((com.greensock.TweenLite.rootFrame - com.greensock.TweenLite.rootFramesTimeline.cachedStartTime) * com.greensock.TweenLite.rootFramesTimeline.cachedTimeScale, false, false);
if (!(com.greensock.TweenLite.rootFrame % 60)) {
var v3 = com.greensock.TweenLite.masterList;
var v2;
var v1;
for (var v4 in v3) {
v1 = v3[v4].tweens;
v2 = v1.length;
while (--v2 > -1) {
if (v1[v2].gc) {
v1.splice(v2, 1);
}
}
if (v1.length == 0) {
delete v3[v4];
}
}
}
};
v1.killTweensOf = function (target, complete, vars) {
var v6 = com.greensock.TweenLite.getID(target, true);
var v4 = com.greensock.TweenLite.masterList[v6].tweens;
var v3;
var v1;
if (v4 != undefined) {
v3 = v4.length;
while (--v3 > -1) {
v1 = v4[v3];
if (!v1.gc) {
if (complete == true) {
v1.complete(false, false);
}
if (vars != undefined) {
v1.killVars(vars);
}
if (vars == undefined || v1.cachedPT1 == undefined && v1.initted) {
v1.setEnabled(false, false);
}
}
}
if (vars == undefined) {
delete com.greensock.TweenLite.masterList[v6];
}
}
};
v1.getID = function (target, lookup) {
var v2;
if (lookup) {
var v1 = com.greensock.TweenLite.masterList;
if (typeof target == 'movieclip') {
if (v1[String(target)] != undefined) {
return String(target);
} else {
v2 = String(target);
com.greensock.TweenLite.masterList[v2] = {'target': target, 'tweens': []};
return v2;
}
++com.greensock.TweenLite._cnt;
v2 = 't' + com.greensock.TweenLite._cnt;
com.greensock.TweenLite.masterList[v2] = {'target': target, 'tweens': []};
return v2;
}
for (var v3 in v1) {
if (v1[v3].target == target) {
return v3;
}
}
}
++com.greensock.TweenLite._cnt;
v2 = 't' + com.greensock.TweenLite._cnt;
com.greensock.TweenLite.masterList[v2] = {'target': target, 'tweens': []};
return v2;
};
v1.easeOut = function (t, b, c, d) {
t /= d;
return -1 * t * (t - 2);
};
v1.findSubloadedSWF = function (mc) {
for (var v3 in mc) {
if (typeof mc[v3] == 'movieclip') {
if (mc[v3]._url != _root._url && mc[v3].getBytesLoaded() != undefined) {
return mc[v3];
} else {
if (com.greensock.TweenLite.findSubloadedSWF(mc[v3]) != undefined) {
return com.greensock.TweenLite.findSubloadedSWF(mc[v3]);
}
}
}
}
return undefined;
};
v1.jumpStart = function (root) {
if (com.greensock.TweenLite._timingClip != undefined) {
com.greensock.TweenLite._timingClip.removeMovieClip();
}
var v2 = (root.getBytesLoaded() == undefined) ? com.greensock.TweenLite.findSubloadedSWF(root) : root;
var v1 = 999;
while (v2.getInstanceAtDepth(v1) != undefined) {
++v1;
}
com.greensock.TweenLite._timingClip = v2.createEmptyMovieClip('__tweenLite' + ((String(com.greensock.TweenLite.version)).split('.')).join('_'), v1);
com.greensock.TweenLite._timingClip.onEnterFrame = com.greensock.TweenLite.updateAll;
com.greensock.TweenLite.to({}, 0, {});
com.greensock.TweenLite.rootTimeline.cachedTotalTime = (getTimer() * 0.001 - com.greensock.TweenLite.rootTimeline.cachedStartTime) * com.greensock.TweenLite.rootTimeline.cachedTimeScale;
com.greensock.TweenLite.rootTimeline.cachedTime = com.greensock.TweenLite.rootTimeline.cachedTotalTime;
};
v1.version = 11.65;
v1.plugins = {};
v1.killDelayedCallsTo = com.greensock.TweenLite.killTweensOf;
v1.defaultEase = com.greensock.TweenLite.easeOut;
v1.masterList = {};
v1._cnt = -16000;
v1._reservedProps = {'ease': 1, 'delay': 1, 'overwrite': 1, 'onComplete': 1, 'onCompleteParams': 1, 'useFrames': 1, 'runBackwards': 1, 'startAt': 1, 'onUpdate': 1, 'onUpdateParams': 1, 'onStart': 1, 'onStartParams': 1, 'onReverseComplete': 1, 'onReverseCompleteParams': 1, 'onRepeat': 1, 'onRepeatParams': 1, 'proxiedEase': 1, 'easeParams': 1, 'yoyo': 1, 'onCompleteListener': 1, 'onUpdateListener': 1, 'onStartListener': 1, 'orientToBezier': 1, 'timeScale': 1, 'immediateRender': 1, 'repeat': 1, 'repeatDelay': 1, 'timeline': 1, 'data': 1, 'paused': 1};
ASSetPropFlags(com.greensock.TweenLite.prototype, null, 1);
}
#endinitclip
}
movieClip 12494 __Packages.com.greensock.core.PropTween {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.core) {
_global.com.greensock.core = new Object();
}
if (!_global.com.greensock.core.PropTween) {
var v1 = function (target, property, start, change, name, isPlugin, nextNode, priority) {
this.target = target;
this.property = property;
this.start = start;
this.change = change;
this.name = name;
this.isPlugin = isPlugin;
if (nextNode) {
nextNode.prevNode = this;
this.nextNode = nextNode;
}
this.priority = priority || 0;
};
com.greensock.core.PropTween = v1;
var v2 = v1.prototype;
ASSetPropFlags(com.greensock.core.PropTween.prototype, null, 1);
}
#endinitclip
}
movieClip 12495 __Packages.com.greensock.plugins.TweenPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.TweenPlugin) {
var v1 = function () {
this._tweens = [];
this._changeFactor = 0;
};
com.greensock.plugins.TweenPlugin = v1;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
this.addTween(target, this.propName, target[this.propName], value, this.propName);
return true;
};
v2.addTween = function (object, propName, start, end, overwriteProp) {
if (end != undefined) {
var v3 = (typeof end == 'number') ? Number(end) - start : Number(end);
if (v3 != 0) {
this._tweens[this._tweens.length] = new com.greensock.core.PropTween(object, propName, start, v3, overwriteProp || propName);
}
}
};
v2.updateTweens = function (changeFactor) {
var v3 = this._tweens.length;
var v2;
if (this.round) {
var v4;
while (--v3 > -1) {
v2 = this._tweens[v3];
v4 = v2.start + v2.change * changeFactor;
if (v4 > 0) {
v2.target[v2.property] = v4 + 0.5 >> 0;
} else {
v2.target[v2.property] = v4 - 0.5 >> 0;
}
}
} else {
while (--v3 > -1) {
v2 = this._tweens[v3];
v2.target[v2.property] = v2.start + v2.change * changeFactor;
}
}
};
v2.__get__changeFactor = function () {
return this._changeFactor;
};
v2.__set__changeFactor = function (n) {
this.updateTweens(n);
this._changeFactor = n;
return this.__get__changeFactor();
};
v2.killProps = function (lookup) {
var v2 = this.overwriteProps.length;
while (--v2 > -1) {
if (lookup[this.overwriteProps[v2]]) {
this.overwriteProps.splice(v2, 1);
}
}
v2 = this._tweens.length;
while (--v2 > -1) {
if (lookup[this._tweens[v2].name]) {
this._tweens.splice(v2, 1);
}
}
};
v1.onTweenEvent = function (type, tween) {
var v1 = tween.cachedPT1;
var v5;
if (type == 'onInitAllProps') {
var v3 = [];
var v2 = 0;
while (v1) {
v3[v2++] = v1;
v1 = v1.nextNode;
}
v3.sortOn('priority', Array.NUMERIC | Array.DESCENDING);
while (--v2 > -1) {
v3[v2].nextNode = v3[v2 + 1];
v3[v2].prevNode = v3[v2 - 1];
}
tween.cachedPT1 = v3[0];
v1 = tween.cachedPT1;
}
while (v1) {
if (v1.isPlugin && v1.target[type]) {
if (v1.target.activeDisable) {
v5 = true;
}
v1.target[type]();
}
v1 = v1.nextNode;
}
return v5;
};
v1.activate = function (plugins) {
com.greensock.TweenLite.onPluginEvent = com.greensock.plugins.TweenPlugin.onTweenEvent;
var v1 = plugins.length;
var v3;
while (v1--) {
if (plugins[v1].API == 1) {
v3 = new plugins[v1]();
com.greensock.TweenLite.plugins[v3.propName] = plugins[v1];
}
}
return true;
};
v1.VERSION = 1.4;
v1.API = 1;
v2.priority = 0;
v2.addProperty('changeFactor', v2.__get__changeFactor, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.TweenPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12496 __Packages.com.greensock.plugins.VisiblePlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.VisiblePlugin) {
var v1 = function () {
super();
this.propName = '_visible';
this.overwriteProps = ['_visible'];
};
com.greensock.plugins.VisiblePlugin = v1;
com.greensock.plugins.VisiblePlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
this._target = target;
this._tween = tween;
this._initVal = Boolean(this._target._visible);
this._visible = Boolean(value);
return true;
};
v2.__set__changeFactor = function (n) {
if (n == 1 && (this._tween.cachedDuration == this._tween.cachedTime || this._tween.cachedTime == 0)) {
this._target._visible = this._visible;
} else {
this._target._visible = this._initVal;
}
return this.__get__changeFactor();
};
v1.API = 1;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.VisiblePlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12497 __Packages.com.greensock.plugins.AutoAlphaPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.AutoAlphaPlugin) {
var v1 = function () {
super();
this.propName = 'autoAlpha';
this.overwriteProps = ['_alpha', '_visible'];
};
com.greensock.plugins.AutoAlphaPlugin = v1;
com.greensock.plugins.AutoAlphaPlugin extends com.greensock.plugins.VisiblePlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
this._target = target;
this.addTween(target, '_alpha', target._alpha, value, '_alpha');
return true;
};
v2.killProps = function (lookup) {
super.killProps(lookup);
this._ignoreVisible = Boolean(lookup._visible != undefined);
};
v2.__set__changeFactor = function (n) {
this.updateTweens(n);
if (!this._ignoreVisible) {
this._target._visible = Boolean(this._target._alpha != 0);
}
return this.__get__changeFactor();
};
v1.API = 1;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.AutoAlphaPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12498 __Packages.com.greensock.plugins.EndArrayPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.EndArrayPlugin) {
var v1 = function () {
super();
this.propName = 'endArray';
this.overwriteProps = ['endArray'];
this._info = [];
};
com.greensock.plugins.EndArrayPlugin = v1;
com.greensock.plugins.EndArrayPlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
if (!(target instanceof Array) || !(value instanceof Array)) {
return false;
}
this.init([target][0], [value][0]);
return true;
};
v2.init = function (start, end) {
this._a = start;
var v2 = end.length;
while (v2--) {
if (start[v2] != end[v2] && start[v2] != undefined) {
this._info[this._info.length] = new com.greensock.plugins.helpers.ArrayTweenInfo(v2, this._a[v2], end[v2] - this._a[v2]);
}
}
};
v2.__set__changeFactor = function (n) {
var v3 = this._info.length;
var v2;
if (this.round) {
while (v3--) {
v2 = this._info[v3];
this._a[v2.index] = Math.round(v2.start + v2.change * n);
}
} else {
while (v3--) {
v2 = this._info[v3];
this._a[v2.index] = v2.start + v2.change * n;
}
}
return this.__get__changeFactor();
};
v1.API = 1;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.EndArrayPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12499 __Packages.com.greensock.plugins.helpers.ArrayTweenInfo {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.helpers) {
_global.com.greensock.plugins.helpers = new Object();
}
if (!_global.com.greensock.plugins.helpers.ArrayTweenInfo) {
var v1 = function (index, start, change) {
this.index = index;
this.start = start;
this.change = change;
};
com.greensock.plugins.helpers.ArrayTweenInfo = v1;
var v2 = v1.prototype;
ASSetPropFlags(com.greensock.plugins.helpers.ArrayTweenInfo.prototype, null, 1);
}
#endinitclip
}
movieClip 12500 __Packages.com.greensock.plugins.FramePlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.FramePlugin) {
var v1 = function () {
super();
this.propName = 'frame';
this.overwriteProps = ['frame'];
this.round = true;
};
com.greensock.plugins.FramePlugin = v1;
com.greensock.plugins.FramePlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
if (typeof target != 'movieclip' || isNaN(value)) {
return false;
}
this._target = MovieClip(target);
this.frame = this._target._currentframe;
this.addTween(this, 'frame', this.frame, value, 'frame');
return true;
};
v2.__set__changeFactor = function (n) {
this.updateTweens(n);
this._target.gotoAndStop(this.frame);
return this.__get__changeFactor();
};
v1.API = 1;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.FramePlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12501 __Packages.com.greensock.plugins.TintPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.TintPlugin) {
var v1 = function () {
super();
this.propName = 'tint';
this.overwriteProps = ['tint'];
};
com.greensock.plugins.TintPlugin = v1;
com.greensock.plugins.TintPlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
if (typeof target != 'movieclip' && !(target instanceof TextField)) {
return false;
}
var v2 = (tween.vars._alpha != undefined) ? tween.vars._alpha : ((tween.vars.autoAlpha != undefined) ? tween.vars.autoAlpha : target._alpha);
var v4 = Number(value);
if (!(value == null || tween.vars.removeTint == true)) {
var v6 = {'rb': v4 >> 16, 'gb': v4 >> 8 & 255, 'bb': v4 & 255, 'ra': 0, 'ga': 0, 'ba': 0, 'aa': v2};
this._ignoreAlpha = true;
this.init(target, v6);
return true;
}
var v6 = {'rb': 0, 'gb': 0, 'bb': 0, 'ab': 0, 'ra': v2, 'ga': v2, 'ba': v2, 'aa': v2};
this._ignoreAlpha = true;
this.init(target, v6);
return true;
};
v2.init = function (target, end) {
this._color = new Color(target);
this._ct = this._color.getTransform();
var v5;
var v2;
for (v2 in end) {
if (this._ct[v2] != end[v2]) {
this._tweens[this._tweens.length] = new com.greensock.core.PropTween(this._ct, v2, this._ct[v2], end[v2] - this._ct[v2], 'tint', false);
}
}
};
v2.__set__changeFactor = function (n) {
var v3 = this._tweens.length;
var v2;
while (v3--) {
v2 = this._tweens[v3];
v2.target[v2.property] = v2.start + v2.change * n;
}
if (this._ignoreAlpha) {
var v5 = this._color.getTransform();
this._ct.aa = v5.aa;
this._ct.ab = v5.ab;
}
this._color.setTransform(this._ct);
return this.__get__changeFactor();
};
v1.API = 1;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.TintPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12502 __Packages.com.greensock.plugins.RemoveTintPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.RemoveTintPlugin) {
var v1 = function () {
super();
this.propName = 'removeTint';
};
com.greensock.plugins.RemoveTintPlugin = v1;
com.greensock.plugins.RemoveTintPlugin extends com.greensock.plugins.TintPlugin;
var v2 = v1.prototype;
v1.API = 1;
ASSetPropFlags(com.greensock.plugins.RemoveTintPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12503 __Packages.com.greensock.plugins.VolumePlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.VolumePlugin) {
var v1 = function () {
super();
this.propName = 'volume';
this.overwriteProps = ['volume'];
};
com.greensock.plugins.VolumePlugin = v1;
com.greensock.plugins.VolumePlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
if (isNaN(value) || typeof target != 'movieclip' && !(target instanceof Sound)) {
return false;
}
if (typeof target != 'movieclip') {
this._sound = Sound(target);
this.volume = this._sound.getVolume();
this.addTween(this, 'volume', this.volume, value, 'volume');
return true;
}
this._sound = new Sound(target);
this.volume = this._sound.getVolume();
this.addTween(this, 'volume', this.volume, value, 'volume');
return true;
};
v2.__set__changeFactor = function (n) {
this.updateTweens(n);
this._sound.setVolume(this.volume);
return this.__get__changeFactor();
};
v1.API = 1;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.VolumePlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12504 __Packages.com.greensock.plugins.FilterPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.FilterPlugin) {
var v1 = function () {
super();
};
com.greensock.plugins.FilterPlugin = v1;
com.greensock.plugins.FilterPlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.initFilter = function (props, defaultFilter, propNames) {
var v6 = this._target.filters;
var v2;
var v3;
var v5;
var v7 = props instanceof flash.filters.BitmapFilter ? {} : props;
this._index = -1;
if (v7.index != undefined) {
this._index = v7.index;
} else {
v3 = v6.length;
while (v3--) {
if (v6[v3] instanceof this._type) {
this._index = v3;
break;
}
}
}
if (this._index == -1 || v6[this._index] == undefined || v7.addFilter == true) {
this._index = (v7.index != undefined) ? v7.index : v6.length;
v6[this._index] = defaultFilter;
this._target.filters = v6;
}
this._filter = v6[this._index];
if (v7.remove == true) {
this._remove = true;
this.onComplete = this.onCompleteTween;
}
v3 = propNames.length;
while (v3--) {
v2 = propNames[v3];
if (props[v2] != undefined && this._filter[v2] != props[v2]) {
if (v2 == 'color' || v2 == 'highlightColor' || v2 == 'shadowColor') {
v5 = new com.greensock.plugins.HexColorsPlugin();
v5.initColor(this._filter, v2, this._filter[v2], props[v2]);
this._tweens[this._tweens.length] = new com.greensock.core.PropTween(v5, 'changeFactor', 0, 1, this.propName);
} else {
if (v2 == 'quality' || v2 == 'inner' || v2 == 'knockout' || v2 == 'hideObject') {
this._filter[v2] = props[v2];
} else {
this.addTween(this._filter, v2, this._filter[v2], props[v2], this.propName);
}
}
}
}
};
v2.onCompleteTween = function () {
if (this._remove) {
var v3 = this._target.filters;
if (!(v3[this._index] instanceof this._type)) {
var v2 = v3.length;
while (v2--) {
if (v3[v2] instanceof this._type) {
v3.splice(v2, 1);
break;
}
}
} else {
v3.splice(this._index, 1);
}
this._target.filters = v3;
}
};
v2.__set__changeFactor = function (n) {
var v2 = this._tweens.length;
var v3;
var v4 = this._target.filters;
while (v2--) {
v3 = this._tweens[v2];
v3.target[v3.property] = v3.start + v3.change * n;
}
if (!(v4[this._index] instanceof this._type)) {
this._index = v4.length;
v2 = this._index;
while (v2--) {
if (v4[v2] instanceof this._type) {
this._index = v2;
break;
}
}
}
v4[this._index] = this._filter;
this._target.filters = v4;
return this.__get__changeFactor();
};
v1.VERSION = 2.03;
v1.API = 1;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.FilterPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12505 __Packages.com.greensock.plugins.HexColorsPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.HexColorsPlugin) {
var v1 = function () {
super();
this.propName = 'hexColors';
this.overwriteProps = [];
this._colors = [];
};
com.greensock.plugins.HexColorsPlugin = v1;
com.greensock.plugins.HexColorsPlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
for (var v4 in value) {
this.initColor(target, v4, Number(target[v4]), Number(value[v4]));
}
return true;
};
v2.initColor = function (target, propName, start, end) {
if (start != end) {
var v3 = start >> 16;
var v5 = start >> 8 & 255;
var v2 = start & 255;
this._colors[this._colors.length] = [target, propName, v3, (end >> 16) - v3, v5, (end >> 8 & 255) - v5, v2, (end & 255) - v2];
this.overwriteProps[this.overwriteProps.length] = propName;
}
};
v2.killProps = function (lookup) {
var v3 = this._colors.length;
while (v3--) {
if (lookup[this._colors[v3][1]] != undefined) {
this._colors.splice(v3, 1);
}
}
super.killProps(lookup);
};
v2.__set__changeFactor = function (n) {
var v4 = this._colors.length;
var v2;
while (v4--) {
v2 = this._colors[v4];
v2[0][v2[1]] = v2[2] + n * v2[3] << 16 | v2[4] + n * v2[5] << 8 | v2[6] + n * v2[7];
}
return this.__get__changeFactor();
};
v1.API = 1;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.HexColorsPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12506 __Packages.com.greensock.plugins.BevelFilterPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.BevelFilterPlugin) {
var v1 = function () {
super();
this.propName = 'bevelFilter';
this.overwriteProps = ['bevelFilter'];
};
com.greensock.plugins.BevelFilterPlugin = v1;
com.greensock.plugins.BevelFilterPlugin extends com.greensock.plugins.FilterPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
this._target = target;
this._type = flash.filters.BevelFilter;
this.initFilter(value, new flash.filters.BevelFilter(0, 0, 16777215, 0.5, 0, 0.5, 2, 2, 0, value.quality || 2), com.greensock.plugins.BevelFilterPlugin._propNames);
return true;
};
v1.API = 1;
v1._propNames = ['distance', 'angle', 'highlightColor', 'highlightAlpha', 'shadowColor', 'shadowAlpha', 'blurX', 'blurY', 'strength', 'quality'];
ASSetPropFlags(com.greensock.plugins.BevelFilterPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12507 __Packages.com.greensock.plugins.BezierPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.BezierPlugin) {
var v1 = function () {
super();
this.propName = 'bezier';
this.overwriteProps = [];
this._future = {};
};
com.greensock.plugins.BezierPlugin = v1;
com.greensock.plugins.BezierPlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
if (!(value instanceof Array)) {
return false;
}
this.init(tween, [value][0], false);
return true;
};
v2.init = function (tween, beziers, through) {
this._target = tween.target;
var v7 = tween.vars;
if (v7.orientToBezier == true) {
this._orientData = [['_x', '_y', '_rotation', 0, 0.01]];
this._orient = true;
} else {
if (v7.orientToBezier instanceof Array) {
this._orientData = v7.orientToBezier;
this._orient = true;
}
}
var v3 = {};
var v4;
var v2;
var v8;
v4 = 0;
while (v4 < beziers.length) {
for (v2 in beziers[v4]) {
if (v3[v2] == undefined) {
v3[v2] = [tween.target[v2]];
}
if (typeof beziers[v4][v2] == 'number') {
v3[v2].push(beziers[v4][v2]);
} else {
v3[v2].push(tween.target[v2] + Number(beziers[v4][v2]));
}
}
++v4;
}
for (v2 in v3) {
this.overwriteProps[this.overwriteProps.length] = v2;
if (v7[v2] != undefined) {
if (typeof v7[v2] == 'number') {
v3[v2].push(v7[v2]);
} else {
v3[v2].push(tween.target[v2] + Number(v7[v2]));
}
v8 = {};
v8[v2] = true;
tween.killVars(v8, false);
delete v7[v2];
}
}
this._beziers = com.greensock.plugins.BezierPlugin.parseBeziers(v3, through);
};
v1.parseBeziers = function (props, through) {
var v2;
var v1;
var v3;
var v4;
var v6 = {};
if (through == true) {
for (v4 in props) {
v1 = props[v4];
v3 = [];
v6[v4] = v3;
if (v1.length > 2) {
v3[v3.length] = [v1[0], v1[1] - (v1[2] - v1[0]) / 4, v1[1]];
v2 = 1;
while (v2 < v1.length - 1) {
v3[v3.length] = [v1[v2], v1[v2] + (v1[v2] - v3[v2 - 1][1]), v1[v2 + 1]];
++v2;
}
} else {
v3[v3.length] = [v1[0], (v1[0] + v1[1]) / 2, v1[1]];
}
}
return v6;
}
for (v4 in props) {
v1 = props[v4];
v3 = [];
v6[v4] = v3;
if (v1.length > 3) {
v3[v3.length] = [v1[0], v1[1], (v1[1] + v1[2]) / 2];
v2 = 2;
while (v2 < v1.length - 2) {
v3[v3.length] = [v3[v2 - 2][2], v1[v2], (v1[v2] + v1[v2 + 1]) / 2];
++v2;
}
v3[v3.length] = [v3[v3.length - 1][2], v1[v1.length - 2], v1[v1.length - 1]];
} else {
if (v1.length == 3) {
v3[v3.length] = [v1[0], v1[1], v1[2]];
} else {
if (v1.length == 2) {
v3[v3.length] = [v1[0], (v1[0] + v1[1]) / 2, v1[1]];
}
}
}
}
return v6;
};
v2.killProps = function (lookup) {
for (var v4 in this._beziers) {
if (lookup[v4] != undefined) {
delete this._beziers[v4];
}
}
super.killProps(lookup);
};
v2.__set__changeFactor = function (n) {
var v3;
var v5;
var v4;
var v6;
var v7;
var v15;
var v16;
if (n == 1) {
for (v5 in this._beziers) {
v3 = this._beziers[v5].length - 1;
this._target[v5] = this._beziers[v5][v3][2];
}
} else {
for (v5 in this._beziers) {
v7 = this._beziers[v5].length;
if (n < 0) {
v3 = 0;
} else {
if (n >= 1) {
v3 = v7 - 1;
} else {
v3 = v7 * n >> 0;
}
}
v6 = (n - v3 * (1 / v7)) * v7;
v4 = this._beziers[v5][v3];
if (this.round) {
this._target[v5] = Math.round(v4[0] + v6 * (2 * (1 - v6) * (v4[1] - v4[0]) + v6 * (v4[2] - v4[0])));
} else {
this._target[v5] = v4[0] + v6 * (2 * (1 - v6) * (v4[1] - v4[0]) + v6 * (v4[2] - v4[0]));
}
}
}
if (this._orient == true) {
v3 = this._orientData.length;
var v9 = {};
var v11;
var v10;
var v2;
var v12;
while (v3-- > 0) {
v2 = this._orientData[v3];
v9[v2[0]] = this._target[v2[0]];
v9[v2[1]] = this._target[v2[1]];
}
var v13 = this._target;
var v14 = this.round;
this._target = this._future;
this.round = false;
this._orient = false;
v3 = this._orientData.length;
while (v3-- > 0) {
v2 = this._orientData[v3];
this.__set__changeFactor(n + (v2[4] || 0.01));
v12 = v2[3] || 0;
v11 = this._future[v2[0]] - v9[v2[0]];
v10 = this._future[v2[1]] - v9[v2[1]];
v13[v2[2]] = Math.atan2(v10, v11) * com.greensock.plugins.BezierPlugin._RAD2DEG + v12;
}
this._target = v13;
this.round = v14;
this._orient = true;
}
return this.__get__changeFactor();
};
v1.API = 1;
v1._RAD2DEG = 57.29577951308232;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.BezierPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12508 __Packages.com.greensock.plugins.BezierThroughPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.BezierThroughPlugin) {
var v1 = function () {
super();
this.propName = 'bezierThrough';
};
com.greensock.plugins.BezierThroughPlugin = v1;
com.greensock.plugins.BezierThroughPlugin extends com.greensock.plugins.BezierPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
if (!(value instanceof Array)) {
return false;
}
this.init(tween, [value][0], true);
return true;
};
v1.API = 1;
ASSetPropFlags(com.greensock.plugins.BezierThroughPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12509 __Packages.com.greensock.plugins.BlurFilterPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.BlurFilterPlugin) {
var v1 = function () {
super();
this.propName = 'blurFilter';
this.overwriteProps = ['blurFilter'];
};
com.greensock.plugins.BlurFilterPlugin = v1;
com.greensock.plugins.BlurFilterPlugin extends com.greensock.plugins.FilterPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
this._target = target;
this._type = flash.filters.BlurFilter;
this.initFilter(value, new flash.filters.BlurFilter(0, 0, value.quality || 2), com.greensock.plugins.BlurFilterPlugin._propNames);
return true;
};
v1.API = 1;
v1._propNames = ['blurX', 'blurY', 'quality'];
ASSetPropFlags(com.greensock.plugins.BlurFilterPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12510 __Packages.com.greensock.plugins.ColorMatrixFilterPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.ColorMatrixFilterPlugin) {
var v1 = function () {
super();
this.propName = 'colorMatrixFilter';
this.overwriteProps = ['colorMatrixFilter'];
};
com.greensock.plugins.ColorMatrixFilterPlugin = v1;
com.greensock.plugins.ColorMatrixFilterPlugin extends com.greensock.plugins.FilterPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
this._target = target;
this._type = flash.filters.ColorMatrixFilter;
var v3 = value;
this.initFilter({'remove': value.remove, 'index': value.index, 'addFilter': value.addFilter}, new flash.filters.ColorMatrixFilter(com.greensock.plugins.ColorMatrixFilterPlugin._idMatrix.slice()), com.greensock.plugins.ColorMatrixFilterPlugin._propNames);
this._matrix = (flash.filters.ColorMatrixFilter(this._filter)).matrix;
var v2 = [];
if (v3.matrix != undefined && v3.matrix instanceof Array) {
v2 = v3.matrix;
this._matrixTween = new com.greensock.plugins.EndArrayPlugin();
this._matrixTween.init(this._matrix, v2);
return true;
}
if (v3.relative == true) {
v2 = this._matrix.slice();
} else {
v2 = com.greensock.plugins.ColorMatrixFilterPlugin._idMatrix.slice();
}
v2 = com.greensock.plugins.ColorMatrixFilterPlugin.setBrightness(v2, v3.brightness);
v2 = com.greensock.plugins.ColorMatrixFilterPlugin.setContrast(v2, v3.contrast);
v2 = com.greensock.plugins.ColorMatrixFilterPlugin.setHue(v2, v3.hue);
v2 = com.greensock.plugins.ColorMatrixFilterPlugin.setSaturation(v2, v3.saturation);
v2 = com.greensock.plugins.ColorMatrixFilterPlugin.setThreshold(v2, v3.threshold);
if (!isNaN(v3.colorize)) {
v2 = com.greensock.plugins.ColorMatrixFilterPlugin.colorize(v2, v3.colorize, v3.amount);
}
this._matrixTween = new com.greensock.plugins.EndArrayPlugin();
this._matrixTween.init(this._matrix, v2);
return true;
};
v2.__set__changeFactor = function (n) {
this._matrixTween.__set__changeFactor(n);
(flash.filters.ColorMatrixFilter(this._filter)).matrix = this._matrix;
super.__set__changeFactor(n);
return this.__get__changeFactor();
};
v1.colorize = function (m, color, amount) {
if (isNaN(color)) {
return m;
var v3 = (color >> 16 & 255) / 255;
var v5 = (color >> 8 & 255) / 255;
var v2 = (color & 255) / 255;
var v4 = 1 - amount;
var v7 = [v4 + amount * v3 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR, amount * v3 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, amount * v3 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, amount * v5 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR, v4 + amount * v5 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, amount * v5 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, amount * v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR, amount * v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, v4 + amount * v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, 0, 0, 0, 1, 0];
return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix(v7, m);
}
if (isNaN(amount)) {
amount = 1;
}
var v3 = (color >> 16 & 255) / 255;
var v5 = (color >> 8 & 255) / 255;
var v2 = (color & 255) / 255;
var v4 = 1 - amount;
var v7 = [v4 + amount * v3 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR, amount * v3 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, amount * v3 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, amount * v5 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR, v4 + amount * v5 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, amount * v5 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, amount * v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR, amount * v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, v4 + amount * v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, 0, 0, 0, 1, 0];
return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix(v7, m);
};
v1.setThreshold = function (m, n) {
if (isNaN(n)) {
return m;
}
var v2 = [com.greensock.plugins.ColorMatrixFilterPlugin._lumR * 256, com.greensock.plugins.ColorMatrixFilterPlugin._lumG * 256, com.greensock.plugins.ColorMatrixFilterPlugin._lumB * 256, 0, -256 * n, com.greensock.plugins.ColorMatrixFilterPlugin._lumR * 256, com.greensock.plugins.ColorMatrixFilterPlugin._lumG * 256, com.greensock.plugins.ColorMatrixFilterPlugin._lumB * 256, 0, -256 * n, com.greensock.plugins.ColorMatrixFilterPlugin._lumR * 256, com.greensock.plugins.ColorMatrixFilterPlugin._lumG * 256, com.greensock.plugins.ColorMatrixFilterPlugin._lumB * 256, 0, -256 * n, 0, 0, 0, 1, 0];
return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix(v2, m);
};
v1.setHue = function (m, n) {
if (isNaN(n)) {
return m;
}
n *= 0.0174532925199433;
var v1 = Math.cos(n);
var v2 = Math.sin(n);
var v4 = [com.greensock.plugins.ColorMatrixFilterPlugin._lumR + v1 * (1 - com.greensock.plugins.ColorMatrixFilterPlugin._lumR) + v2 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumR, com.greensock.plugins.ColorMatrixFilterPlugin._lumG + v1 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumG + v2 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumG, com.greensock.plugins.ColorMatrixFilterPlugin._lumB + v1 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumB + v2 * (1 - com.greensock.plugins.ColorMatrixFilterPlugin._lumB), 0, 0, com.greensock.plugins.ColorMatrixFilterPlugin._lumR + v1 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumR + v2 * 0.143, com.greensock.plugins.ColorMatrixFilterPlugin._lumG + v1 * (1 - com.greensock.plugins.ColorMatrixFilterPlugin._lumG) + v2 * 0.14, com.greensock.plugins.ColorMatrixFilterPlugin._lumB + v1 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumB + v2 * -0.283, 0, 0, com.greensock.plugins.ColorMatrixFilterPlugin._lumR + v1 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumR + v2 * -(1 - com.greensock.plugins.ColorMatrixFilterPlugin._lumR), com.greensock.plugins.ColorMatrixFilterPlugin._lumG + v1 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumG + v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, com.greensock.plugins.ColorMatrixFilterPlugin._lumB + v1 * (1 - com.greensock.plugins.ColorMatrixFilterPlugin._lumB) + v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix(v4, m);
};
v1.setBrightness = function (m, n) {
if (isNaN(n)) {
return m;
}
n = n * 100 - 100;
return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix([1, 0, 0, 0, n, 0, 1, 0, 0, n, 0, 0, 1, 0, n, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], m);
};
v1.setSaturation = function (m, n) {
if (isNaN(n)) {
return m;
}
var v4 = 1 - n;
var v2 = v4 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR;
var v5 = v4 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG;
var v1 = v4 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB;
var v6 = [v2 + n, v5, v1, 0, 0, v2, v5 + n, v1, 0, 0, v2, v5, v1 + n, 0, 0, 0, 0, 0, 1, 0];
return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix(v6, m);
};
v1.setContrast = function (m, n) {
if (isNaN(n)) {
return m;
}
n += 0.01;
var v2 = [n, 0, 0, 0, 128 * (1 - n), 0, n, 0, 0, 128 * (1 - n), 0, 0, n, 0, 128 * (1 - n), 0, 0, 0, 1, 0];
return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix(v2, m);
};
v1.applyMatrix = function (m, m2) {
if (!(m instanceof Array) || !(m2 instanceof Array)) {
return m2;
}
var v7 = [];
var v2 = 0;
var v5 = 0;
var v6;
var v1;
v6 = 0;
while (v6 < 4) {
v1 = 0;
while (v1 < 5) {
if (v1 == 4) {
v5 = m[v2 + 4];
} else {
v5 = 0;
}
v7[v2 + v1] = m[v2] * m2[v1] + m[v2 + 1] * m2[v1 + 5] + m[v2 + 2] * m2[v1 + 10] + m[v2 + 3] * m2[v1 + 15] + v5;
++v1;
}
v2 += 5;
++v6;
}
return v7;
};
v1.API = 1;
v1._propNames = [];
v1._idMatrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
v1._lumR = 0.212671;
v1._lumG = 0.71516;
v1._lumB = 0.072169;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.ColorMatrixFilterPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12511 __Packages.com.greensock.plugins.ColorTransformPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.ColorTransformPlugin) {
var v1 = function () {
super();
this.propName = 'colorTransform';
};
com.greensock.plugins.ColorTransformPlugin = v1;
com.greensock.plugins.ColorTransformPlugin extends com.greensock.plugins.TintPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
if (typeof target != 'movieclip' && !(target instanceof TextField)) {
return false;
}
var v7 = new Color(target);
var v2 = v7.getTransform();
if (value.redMultiplier != undefined) {
v2.ra = value.redMultiplier * 100;
}
if (value.greenMultiplier != undefined) {
v2.ga = value.greenMultiplier * 100;
}
if (value.blueMultiplier != undefined) {
v2.ba = value.blueMultiplier * 100;
}
if (value.alphaMultiplier != undefined) {
v2.aa = value.alphaMultiplier * 100;
}
if (value.redOffset != undefined) {
v2.rb = value.redOffset;
}
if (value.greenOffset != undefined) {
v2.gb = value.greenOffset;
}
if (value.blueOffset != undefined) {
v2.bb = value.blueOffset;
}
if (value.alphaOffset != undefined) {
v2.ab = value.alphaOffset;
}
if (!isNaN(value.tint) || !isNaN(value.color)) {
var v4 = !isNaN(value.tint) ? value.tint : value.color;
if (v4 != null) {
v2.rb = Number(v4) >> 16;
v2.gb = Number(v4) >> 8 & 255;
v2.bb = Number(v4) & 255;
v2.ra = 0;
v2.ga = 0;
v2.ba = 0;
}
}
if (!isNaN(value.tintAmount)) {
var v5 = value.tintAmount / (1 - (v2.ra + v2.ga + v2.ba) / 300);
v2.rb *= v5;
v2.gb *= v5;
v2.bb *= v5;
v2.ba = (1 - value.tintAmount) * 100;
v2.ga = v2.ba;
v2.ra = v2.ba;
} else {
if (!isNaN(value.exposure)) {
v2.bb = 255 * (value.exposure - 1);
v2.gb = v2.bb;
v2.rb = v2.bb;
v2.ba = 100;
v2.ga = 100;
v2.ra = 100;
} else {
if (!isNaN(value.brightness)) {
v2.bb = Math.max(0, (value.brightness - 1) * 255);
v2.gb = v2.bb;
v2.rb = v2.bb;
v2.ba = (1 - Math.abs(value.brightness - 1)) * 100;
v2.ga = v2.ba;
v2.ra = v2.ba;
}
}
}
if (tween.vars._alpha != undefined && value.alphaMultiplier == undefined) {
v2.aa = tween.vars._alpha;
tween.killVars({'alpha': 1});
}
this.init(target, v2);
return true;
};
v1.API = 1;
ASSetPropFlags(com.greensock.plugins.ColorTransformPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12512 __Packages.com.greensock.plugins.DropShadowFilterPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.DropShadowFilterPlugin) {
var v1 = function () {
super();
this.propName = 'dropShadowFilter';
this.overwriteProps = ['dropShadowFilter'];
};
com.greensock.plugins.DropShadowFilterPlugin = v1;
com.greensock.plugins.DropShadowFilterPlugin extends com.greensock.plugins.FilterPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
this._target = target;
this._type = flash.filters.DropShadowFilter;
this.initFilter(value, new flash.filters.DropShadowFilter(0, 45, 0, 0, 0, 0, 1, value.quality || 2, value.inner, value.knockout, value.hideObject), com.greensock.plugins.DropShadowFilterPlugin._propNames);
return true;
};
v1.API = 1;
v1._propNames = ['distance', 'angle', 'color', 'alpha', 'blurX', 'blurY', 'strength', 'quality', 'inner', 'knockout', 'hideObject'];
ASSetPropFlags(com.greensock.plugins.DropShadowFilterPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12513 __Packages.com.greensock.plugins.FrameLabelPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.FrameLabelPlugin) {
var v1 = function () {
super();
this.propName = 'frameLabel';
};
com.greensock.plugins.FrameLabelPlugin = v1;
com.greensock.plugins.FrameLabelPlugin extends com.greensock.plugins.FramePlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
if (typeof tween.target != 'movieclip') {
return false;
}
this._target = MovieClip(target);
this.frame = this._target._currentframe;
var v2 = this._target.duplicateMovieClip('__frameLabelPluginTempMC', this._target._parent.getNextHighestDepth());
v2.gotoAndStop(value);
var v3 = v2._currentframe;
v2.removeMovieClip();
if (this.frame != v3) {
this.addTween(this, 'frame', this.frame, v3, 'frame');
}
return true;
};
v1.API = 1;
ASSetPropFlags(com.greensock.plugins.FrameLabelPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12514 __Packages.com.greensock.plugins.GlowFilterPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.GlowFilterPlugin) {
var v1 = function () {
super();
this.propName = 'glowFilter';
this.overwriteProps = ['glowFilter'];
};
com.greensock.plugins.GlowFilterPlugin = v1;
com.greensock.plugins.GlowFilterPlugin extends com.greensock.plugins.FilterPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
this._target = target;
this._type = flash.filters.GlowFilter;
this.initFilter(value, new flash.filters.GlowFilter(16777215, 0, 0, 0, value.strength || 1, value.quality || 2, value.inner, value.knockout), com.greensock.plugins.GlowFilterPlugin._propNames);
return true;
};
v1.API = 1;
v1._propNames = ['color', 'alpha', 'blurX', 'blurY', 'strength', 'quality', 'inner', 'knockout'];
ASSetPropFlags(com.greensock.plugins.GlowFilterPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12515 __Packages.com.greensock.plugins.RoundPropsPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.RoundPropsPlugin) {
var v1 = function () {
super();
this.propName = 'roundProps';
this.overwriteProps = ['roundProps'];
this.round = true;
this.priority = -1;
this.onInitAllProps = this._initAllProps;
};
com.greensock.plugins.RoundPropsPlugin = v1;
com.greensock.plugins.RoundPropsPlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
this._tween = tween;
var v2 = value;
this.overwriteProps = this.overwriteProps.concat(v2);
return true;
};
v2._initAllProps = function () {
var v3;
var v4;
var v6 = this._tween.vars.roundProps;
var v2;
var v5 = v6.length;
while (--v5 > -1) {
v3 = v6[v5];
v2 = this._tween.cachedPT1;
while (v2) {
if (v2.name == v3) {
if (v2.isPlugin) {
v2.target.round = true;
} else {
this.add(v2.target, v3, v2.start, v2.change);
this._removePropTween(v2);
this._tween.propTweenLookup[v3] = this._tween.propTweenLookup.roundProps;
}
} else {
if (v2.isPlugin && v2.name == '_MULTIPLE_' && !v2.target.round) {
v4 = ' ' + v2.target.overwriteProps.join(' ') + ' ';
if (v4.indexOf(' ' + v3 + ' ') != -1) {
v2.target.round = true;
}
}
}
v2 = v2.nextNode;
}
}
};
v2._removePropTween = function (propTween) {
if (propTween.nextNode) {
propTween.nextNode.prevNode = propTween.prevNode;
}
if (propTween.prevNode) {
propTween.prevNode.nextNode = propTween.nextNode;
} else {
if (this._tween.cachedPT1 == propTween) {
this._tween.cachedPT1 = propTween.nextNode;
}
}
if (propTween.isPlugin && propTween.target.onDisable) {
propTween.target.onDisable();
}
};
v2.add = function (object, propName, start, change) {
this.addTween(object, propName, start, start + change, propName);
this.overwriteProps[this.overwriteProps.length] = propName;
};
v1.API = 1;
ASSetPropFlags(com.greensock.plugins.RoundPropsPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12516 __Packages.com.greensock.plugins.ShortRotationPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.ShortRotationPlugin) {
var v1 = function () {
super();
this.propName = 'shortRotation';
this.overwriteProps = [];
};
com.greensock.plugins.ShortRotationPlugin = v1;
com.greensock.plugins.ShortRotationPlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
if (typeof value == 'number') {
return false;
}
for (var v4 in value) {
this.initRotation(target, v4, target[v4], (typeof value[v4] == 'number') ? Number(value[v4]) : target[v4] + Number(value[v4]));
}
return true;
};
v2.initRotation = function (target, propName, start, end) {
var v2 = (end - start) % 360;
if (v2 != v2 % 180) {
v2 = v2 < 0 ? v2 + 360 : v2 - 360;
}
this.addTween(target, propName, start, start + v2, propName);
this.overwriteProps[this.overwriteProps.length] = propName;
};
v1.API = 1;
ASSetPropFlags(com.greensock.plugins.ShortRotationPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 12517 __Packages.com.greensock.OverwriteManager {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.OverwriteManager) {
var v1 = function () {};
com.greensock.OverwriteManager = v1;
var v2 = v1.prototype;
v1.init = function (defaultMode) {
if (com.greensock.TweenLite.version < 11.6) {
trace('Warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com.');
}
com.greensock.TweenLite.overwriteManager = com.greensock.OverwriteManager;
if (defaultMode != undefined) {
com.greensock.OverwriteManager.mode = defaultMode;
com.greensock.OverwriteManager.enabled = true;
return com.greensock.OverwriteManager.mode;
}
com.greensock.OverwriteManager.mode = 2;
com.greensock.OverwriteManager.enabled = true;
return com.greensock.OverwriteManager.mode;
};
v1.manageOverwrites = function (tween, props, targetTweens, mode) {
var v3;
var v10;
var v1;
if (mode >= 4) {
var v17 = targetTweens.length;
v3 = 0;
while (v3 < v17) {
v1 = targetTweens[v3];
if (v1 != tween) {
if (v1.setEnabled(false, false)) {
v10 = true;
}
} else {
if (mode == 5) {
break;
}
}
++v3;
}
return v10;
}
var v5 = tween.cachedStartTime + 1.0e-010;
var v9 = [];
var v13 = [];
var v15 = 0;
var v12 = 0;
v3 = targetTweens.length;
while (--v3 > -1) {
v1 = targetTweens[v3];
if (v1 == tween || v1.gc || !v1.initted && v5 - v1.cachedStartTime <= 2.0e-010) {
} else {
if (v1.timeline != tween.timeline) {
if (!com.greensock.OverwriteManager.getGlobalPaused(v1)) {
v13[v15++] = v1;
}
} else {
if (v1.cachedStartTime <= v5 && v1.cachedStartTime + v1.__get__totalDuration() + 1.0e-010 > v5 && !v1.cachedPaused && !(tween.cachedDuration == 0 && v5 - v1.cachedStartTime <= 2.0e-010)) {
v9[v12++] = v1;
}
}
}
}
if (v15 != 0) {
var v6 = tween.cachedTimeScale;
var v7 = v5;
var v4;
var v11;
var v2;
v2 = tween.timeline;
while (v2) {
v6 *= v2.cachedTimeScale;
v7 += v2.cachedStartTime;
v2 = v2.timeline;
}
v5 = v6 * v7;
v3 = v15;
while (--v3 > -1) {
v4 = v13[v3];
v6 = v4.cachedTimeScale;
v7 = v4.cachedStartTime;
v2 = v4.timeline;
while (v2) {
v6 *= v2.cachedTimeScale;
v7 += v2.cachedStartTime;
v2 = v2.timeline;
}
v11 = v6 * v7;
if (v11 <= v5 && (v11 + v4.__get__totalDuration() * v6 + 1.0e-010 > v5 || v4.cachedDuration == 0)) {
v9[v12++] = v4;
}
}
}
if (v12 == 0) {
return v10;
}
v3 = v12;
if (mode == 2) {
while (--v3 > -1) {
v1 = v9[v3];
if (v1.killVars(props)) {
v10 = true;
}
if (v1.cachedPT1 == undefined && v1.initted) {
v1.setEnabled(false, false);
}
}
return v10;
}
while (--v3 > -1) {
if (v9[v3].setEnabled(false, false)) {
v10 = true;
}
}
return v10;
};
v1.getGlobalPaused = function (tween) {
while (tween) {
if (tween.cachedPaused) {
return true;
}
tween = tween.timeline;
}
return false;
};
v1.version = 6.1;
v1.NONE = 0;
v1.ALL_IMMEDIATE = 1;
v1.AUTO = 2;
v1.CONCURRENT = 3;
v1.ALL_ONSTART = 4;
v1.PREEXISTING = 5;
ASSetPropFlags(com.greensock.OverwriteManager.prototype, null, 1);
}
#endinitclip
}
movieClip 12518 __Packages.com.greensock.TweenMax {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.TweenMax) {
var v1 = function (target, duration, vars) {
super(target, duration, vars);
if (com.greensock.TweenLite.version < 11.2) {
trace('TweenMax warning: Please update your TweenLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com.');
}
this._cyclesComplete = 0;
this.yoyo = Boolean(this.vars.yoyo);
this._repeat = this.vars.repeat || 0;
this._repeatDelay = this.vars.repeatDelay || 0;
this.cacheIsDirty = true;
if (this.vars.timeScale != undefined && !(this.target instanceof com.greensock.core.TweenCore)) {
this.cachedTimeScale = this.vars.timeScale;
}
};
com.greensock.TweenMax = v1;
com.greensock.TweenMax extends com.greensock.TweenLite;
var v2 = v1.prototype;
v2.init = function () {
if (this.vars.startAt) {
this.vars.startAt.overwrite = 0;
this.vars.startAt.immediateRender = true;
var v3 = new com.greensock.TweenMax(this.target, 0, this.vars.startAt);
}
super.init();
};
v2.invalidate = function () {
this.yoyo = Boolean(this.vars.yoyo);
this._repeat = this.vars.repeat || 0;
this._repeatDelay = this.vars.repeatDelay || 0;
this.setDirtyCache(true);
super.invalidate();
};
v2.updateTo = function (vars, resetDuration) {
var v7 = this.ratio;
if (resetDuration && this.timeline != undefined && this.cachedStartTime < this.timeline.cachedTime) {
this.cachedStartTime = this.timeline.cachedTime;
this.setDirtyCache(false);
if (this.gc) {
this.setEnabled(true, false);
} else {
this.timeline.insert(this, this.cachedStartTime - this._delay);
}
}
for (var v6 in vars) {
this.vars[v6] = vars[v6];
}
if (this.initted) {
if (resetDuration) {
this.initted = false;
} else {
if (this._notifyPluginsOfEnabled && this.cachedPT1) {
com.greensock.TweenLite.onPluginEvent('onDisable', this);
}
if (this.cachedTime / this.cachedDuration > 0.998) {
var v8 = this.cachedTime;
this.renderTime(0, true, false);
this.initted = false;
this.renderTime(v8, true, false);
} else {
if (this.cachedTime > 0) {
this.initted = false;
this.init();
var v5 = 1 / (1 - v7);
var v2 = this.cachedPT1;
var v3;
while (v2) {
v3 = v2.start + v2.change;
v2.change *= v5;
v2.start = v3 - v2.change;
v2 = v2.nextNode;
}
}
}
}
}
};
v2.setDestination = function (property, value, adjustStartValues) {
var v2 = {};
v2[property] = value;
this.updateTo(v2, Boolean(adjustStartValues != false));
};
v2.killProperties = function (names) {
var v3 = {};
var v2 = names.length;
while (--v2 > -1) {
v3[names[v2]] = true;
}
this.killVars(v3);
};
v2.renderTime = function (time, suppressEvents, force) {
var v9 = this.cacheIsDirty ? this.__get__totalDuration() : this.cachedTotalDuration;
var v7 = this.cachedTotalTime;
var v5;
var v11;
var v6;
if (time >= v9) {
this.cachedTotalTime = v9;
this.cachedTime = this.cachedDuration;
this.ratio = 1;
v5 = true;
if (this.cachedDuration == 0) {
if ((time == 0 || this._rawPrevTime < 0) && this._rawPrevTime != time) {
force = true;
}
this._rawPrevTime = time;
}
} else {
if (time <= 0) {
if (time < 0) {
this.active = false;
if (this.cachedDuration == 0) {
if (this._rawPrevTime >= 0) {
force = true;
v5 = true;
}
this._rawPrevTime = time;
}
} else {
if (time == 0 && !this.initted) {
force = true;
}
}
this.ratio = 0;
this.cachedTime = 0;
this.cachedTotalTime = 0;
if (this.cachedReversed && v7 != 0) {
v5 = true;
}
} else {
this.cachedTime = time;
this.cachedTotalTime = this.cachedTime;
v6 = true;
}
}
if (this._repeat != 0) {
var v4 = this.cachedDuration + this._repeatDelay;
var v12 = this._cyclesComplete;
this._cyclesComplete = this.cachedTotalTime / v4 >> 0;
if (this._cyclesComplete == this.cachedTotalTime / v4) {
--this._cyclesComplete;
}
if (v12 != this._cyclesComplete) {
v11 = true;
}
if (v5) {
if (this.yoyo && this._repeat % 2) {
this.ratio = 0;
this.cachedTime = 0;
}
} else {
if (time > 0) {
this.cachedTime = (this.cachedTotalTime / v4 - this._cyclesComplete) * v4;
if (this.yoyo && this._cyclesComplete % 2) {
this.cachedTime = this.cachedDuration - this.cachedTime;
} else {
if (this.cachedTime >= this.cachedDuration) {
this.cachedTime = this.cachedDuration;
this.ratio = 1;
v6 = false;
}
}
if (this.cachedTime <= 0) {
this.ratio = 0;
this.cachedTime = 0;
v6 = false;
}
} else {
this._cyclesComplete = 0;
}
}
}
if (v7 == this.cachedTotalTime && !force) {
return undefined;
} else {
if (!this.initted) {
this.init();
}
}
if (!this.active && !this.cachedPaused) {
this.active = true;
}
if (v6) {
this.ratio = this._ease(this.cachedTime, 0, 1, this.cachedDuration);
}
if (v7 == 0 && this.vars.onStart && (this.cachedTotalTime != 0 || this.cachedDuration == 0) && !suppressEvents) {
this.vars.onStart.apply(this.vars.onStartScope, this.vars.onStartParams);
}
var v2 = this.cachedPT1;
while (v2) {
v2.target[v2.property] = v2.start + this.ratio * v2.change;
v2 = v2.nextNode;
}
if (this._hasUpdate && !suppressEvents) {
this.vars.onUpdate.apply(this.vars.onUpdateScope, this.vars.onUpdateParams);
}
if (v11 && !suppressEvents && !this.gc) {
if (this.vars.onRepeat) {
this.vars.onRepeat.apply(this.vars.onRepeatScope, this.vars.onRepeatParams);
}
}
if (v5 && !this.gc) {
if (this._hasPlugins && this.cachedPT1) {
com.greensock.TweenLite.onPluginEvent('onComplete', this);
}
this.complete(true, suppressEvents);
}
};
v1.to = function (target, duration, vars) {
return new com.greensock.TweenMax(target, duration, vars);
};
v1.from = function (target, duration, vars) {
vars.runBackwards = true;
if (vars.immediateRender != false) {
vars.immediateRender = true;
}
return new com.greensock.TweenMax(target, duration, vars);
};
v1.fromTo = function (target, duration, fromVars, toVars) {
toVars.startAt = fromVars;
if (fromVars.immediateRender) {
toVars.immediateRender = true;
}
return new com.greensock.TweenMax(target, duration, toVars);
};
v1.allTo = function (targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
var v2;
var v3;
var v1;
if (stagger == undefined) {
stagger = 0;
}
var v7 = targets.length;
var v6 = [];
var v5 = vars.delay || 0;
var onCompleteProxy = vars.onComplete;
var onCompleteParamsProxy = vars.onCompleteParams;
var onCompleteScopeProxy = vars.onCompleteScope;
var v9 = v7 - 1;
v2 = 0;
while (v2 < v7) {
v3 = {};
for (v1 in vars) {
v3[v1] = vars[v1];
}
v3.delay = v5;
if (v2 == v9 && onCompleteAll != undefined) {
v3.onComplete = function () {
if (onCompleteProxy != undefined) {
onCompleteProxy.apply(onCompleteScopeProxy, onCompleteParamsProxy);
}
onCompleteAll.apply(onCompleteAllScope, onCompleteAllParams);
};
}
v6[v2] = new com.greensock.TweenMax(targets[v2], duration, v3);
v5 += stagger;
++v2;
}
return v6;
};
v1.allFrom = function (targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
vars.runBackwards = true;
if (vars.immediateRender != false) {
vars.immediateRender = true;
}
return com.greensock.TweenMax.allTo(targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope);
};
v1.allFromTo = function (targets, duration, fromVars, toVars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
toVars.startAt = fromVars;
if (fromVars.immediateRender) {
toVars.immediateRender = true;
}
return com.greensock.TweenMax.allTo(targets, duration, toVars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope);
};
v1.delayedCall = function (delay, onComplete, onCompleteParams, onCompleteScope, useFrames) {
return new com.greensock.TweenMax(onComplete, 0, {'delay': delay, 'onComplete': onComplete, 'onCompleteParams': onCompleteParams, 'onCompleteScope': onCompleteScope, 'immediateRender': false, 'useFrames': useFrames, 'overwrite': 0});
};
v1.getTweensOf = function (target) {
var v2 = com.greensock.TweenLite.masterList[target].tweens;
var v3 = [];
if (v2) {
var v1 = v2.length;
while (--v1 > -1) {
if (!v2[v1].gc) {
v3[v3.length] = v2[v1];
}
}
}
return v3;
};
v1.isTweening = function (target) {
var v3 = com.greensock.TweenMax.getTweensOf(target);
var v2 = v3.length;
var v1;
while (--v2 > -1) {
v1 = v3[v2];
if (v1.active || v1.cachedStartTime == v1.timeline.cachedTime && v1.timeline.active) {
return true;
}
}
return false;
};
v1.getAllTweens = function () {
var v5 = com.greensock.TweenLite.masterList;
var v4 = 0;
var v3 = [];
var v2;
var v1;
for (var v6 in v5) {
v2 = v5[v6].tweens;
v1 = v2.length;
while (--v1 > -1) {
if (!v2[v1].gc) {
v3[v4++] = v2[v1];
}
}
}
return v3;
};
v1.killAll = function (complete, tweens, delayedCalls) {
if (tweens == undefined) {
tweens = true;
}
if (delayedCalls == undefined) {
delayedCalls = true;
}
var v2 = com.greensock.TweenMax.getAllTweens();
var v3;
var v1 = v2.length;
while (--v1 > -1) {
v3 = v2[v1].target == v2[v1].vars.onComplete;
if (v3 == delayedCalls || v3 != tweens) {
if (complete == true) {
v2[v1].complete(false, false);
} else {
v2[v1].setEnabled(false, false);
}
}
}
};
v1.killChildTweensOf = function (parent, complete) {
var v3 = com.greensock.TweenMax.getAllTweens();
var v4;
var v1;
var v2 = v3.length;
while (--v2 > -1) {
v4 = v3[v2].target;
if (v4 instanceof MovieClip) {
v1 = v4._parent;
while (v1) {
if (v1 == parent) {
if (complete == true) {
v3[v2].complete(false, false);
} else {
v3[v2].setEnabled(false, false);
}
}
v1 = v1._parent;
}
}
}
};
v1.pauseAll = function (tweens, delayedCalls) {
com.greensock.TweenMax.changePause(true, tweens, delayedCalls);
};
v1.resumeAll = function (tweens, delayedCalls) {
com.greensock.TweenMax.changePause(false, tweens, delayedCalls);
};
v1.changePause = function (pause, tweens, delayedCalls) {
if (tweens == undefined) {
tweens = true;
}
if (delayedCalls == undefined) {
delayedCalls = true;
}
var v2 = com.greensock.TweenMax.getAllTweens();
var v3;
var v1 = v2.length;
while (--v1 > -1) {
v3 = Boolean(v2[v1].target == v2[v1].vars.onComplete);
if (v3 == delayedCalls || v3 != tweens) {
v2[v1].paused = pause;
}
}
};
v2.__get__currentProgress = function () {
return this.cachedTime / this.__get__duration();
};
v2.__set__currentProgress = function (n) {
if (this._cyclesComplete == 0) {
this.setTotalTime(this.__get__duration() * n, false);
} else {
this.setTotalTime(this.__get__duration() * n + this._cyclesComplete * this.cachedDuration, false);
}
return this.__get__currentProgress();
};
v2.__get__totalProgress = function () {
return this.cachedTotalTime / this.__get__totalDuration();
};
v2.__set__totalProgress = function (n) {
this.setTotalTime(this.__get__totalDuration() * n, false);
return this.__get__totalProgress();
};
v2.__get__currentTime = function () {
return this.cachedTime;
};
v2.__set__currentTime = function (n) {
if (this._cyclesComplete == 0) {
} else {
if (this.yoyo && this._cyclesComplete % 2 == 1) {
n = this.__get__duration() - n + this._cyclesComplete * (this.cachedDuration + this._repeatDelay);
} else {
n += this._cyclesComplete * (this.__get__duration() + this._repeatDelay);
}
}
this.setTotalTime(n, false);
return this.__get__currentTime();
};
v2.__get__totalDuration = function () {
if (this.cacheIsDirty) {
this.cachedTotalDuration = (this._repeat == -1) ? 999999999999.0 : this.cachedDuration * (this._repeat + 1) + this._repeatDelay * this._repeat;
this.cacheIsDirty = false;
}
return this.cachedTotalDuration;
};
v2.__set__totalDuration = function (n) {
if (this._repeat == -1) {
return undefined;
}
this.__set__duration((n - this._repeat * this._repeatDelay) / (this._repeat + 1));
return this.__get__totalDuration();
};
v2.__get__timeScale = function () {
return this.cachedTimeScale;
};
v2.__set__timeScale = function (n) {
if (n == 0) {
n = 0.0001;
}
var v3 = (this.cachedPauseTime || this.cachedPauseTime == 0) ? this.cachedPauseTime : this.timeline.cachedTotalTime;
this.cachedStartTime = v3 - (v3 - this.cachedStartTime) * this.cachedTimeScale / n;
this.cachedTimeScale = n;
this.setDirtyCache(false);
return this.__get__timeScale();
};
v2.__get__repeat = function () {
return this._repeat;
};
v2.__set__repeat = function (n) {
this._repeat = n;
this.setDirtyCache(true);
return this.__get__repeat();
};
v2.__get__repeatDelay = function () {
return this._repeatDelay;
};
v2.__set__repeatDelay = function (n) {
this._repeatDelay = n;
this.setDirtyCache(true);
return this.__get__repeatDelay();
};
v1.__get__globalTimeScale = function () {
return (com.greensock.TweenLite.rootTimeline == undefined) ? 1 : com.greensock.TweenLite.rootTimeline.cachedTimeScale;
};
v1.__set__globalTimeScale = function (n) {
if (n == 0) {
n = 0.0001;
}
if (com.greensock.TweenLite.rootTimeline == undefined) {
com.greensock.TweenLite.to({}, 0, {});
}
var v1 = com.greensock.TweenLite.rootTimeline;
var v2 = getTimer() * 0.001;
v1.cachedStartTime = v2 - (v2 - v1.cachedStartTime) * v1.cachedTimeScale / n;
v1 = com.greensock.TweenLite.rootFramesTimeline;
v2 = com.greensock.TweenLite.rootFrame;
v1.cachedStartTime = v2 - (v2 - v1.cachedStartTime) * v1.cachedTimeScale / n;
com.greensock.TweenLite.rootTimeline.cachedTimeScale = n;
com.greensock.TweenLite.rootFramesTimeline.cachedTimeScale = com.greensock.TweenLite.rootTimeline.cachedTimeScale;
return com.greensock.TweenMax.__get__globalTimeScale();
};
v1.version = 11.68;
v1._activatedPlugins = com.greensock.plugins.TweenPlugin.activate([com.greensock.plugins.AutoAlphaPlugin, com.greensock.plugins.EndArrayPlugin, com.greensock.plugins.FramePlugin, com.greensock.plugins.RemoveTintPlugin, com.greensock.plugins.TintPlugin, com.greensock.plugins.VisiblePlugin, com.greensock.plugins.VolumePlugin, com.greensock.plugins.BevelFilterPlugin, com.greensock.plugins.BezierPlugin, com.greensock.plugins.BezierThroughPlugin, com.greensock.plugins.BlurFilterPlugin, com.greensock.plugins.ColorMatrixFilterPlugin, com.greensock.plugins.ColorTransformPlugin, com.greensock.plugins.DropShadowFilterPlugin, com.greensock.plugins.FrameLabelPlugin, com.greensock.plugins.GlowFilterPlugin, com.greensock.plugins.HexColorsPlugin, com.greensock.plugins.RoundPropsPlugin, com.greensock.plugins.ShortRotationPlugin, {}]);
v1._overwriteMode = com.greensock.OverwriteManager.enabled ? com.greensock.OverwriteManager.mode : com.greensock.OverwriteManager.init(2);
v1.killTweensOf = com.greensock.TweenLite.killTweensOf;
v1.killDelayedCallsTo = com.greensock.TweenLite.killTweensOf;
v2.addProperty('currentProgress', v2.__get__currentProgress, v2.__set__currentProgress);
v2.addProperty('currentTime', v2.__get__currentTime, v2.__set__currentTime);
v1.addProperty('globalTimeScale', v1.__get__globalTimeScale, v1.__set__globalTimeScale);
v2.addProperty('repeat', v2.__get__repeat, v2.__set__repeat);
v2.addProperty('repeatDelay', v2.__get__repeatDelay, v2.__set__repeatDelay);
v2.addProperty('timeScale', v2.__get__timeScale, v2.__set__timeScale);
v2.addProperty('totalDuration', v2.__get__totalDuration, v2.__set__totalDuration);
v2.addProperty('totalProgress', v2.__get__totalProgress, v2.__set__totalProgress);
ASSetPropFlags(com.greensock.TweenMax.prototype, null, 1);
}
#endinitclip
}
movieClip 12519 __Packages.com.greensock.easing.Strong {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.easing) {
_global.com.greensock.easing = new Object();
}
if (!_global.com.greensock.easing.Strong) {
var v1 = function () {};
com.greensock.easing.Strong = v1;
var v2 = v1.prototype;
v1.easeIn = function (t, b, c, d) {
t /= d;
return c * t * t * t * t * t + b;
};
v1.easeOut = function (t, b, c, d) {
t = t / d - 1;
return c * (t * t * t * t * t + 1) + b;
};
v1.easeInOut = function (t, b, c, d) {
t /= d * 0.5;
if (t < 1) {
return c * 0.5 * t * t * t * t * t + b;
}
t -= 2;
return c * 0.5 * (t * t * t * t * t + 2) + b;
};
ASSetPropFlags(com.greensock.easing.Strong.prototype, null, 1);
}
#endinitclip
}
movieClip 12520 __Packages.com.greensock.easing.Elastic {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.easing) {
_global.com.greensock.easing = new Object();
}
if (!_global.com.greensock.easing.Elastic) {
var v1 = function () {};
com.greensock.easing.Elastic = v1;
var v2 = v1.prototype;
v1.easeIn = function (t, b, c, d, a, p) {
if (t == 0) {
return b;
}
t /= d;
if (t == 1) {
return b + c;
}
if (!p) {
p = d * 0.3;
}
var v5;
if (!a || c > 0 && a < c || c < 0 && a < -c) {
a = c;
v5 = p / 4;
t -= 1;
return -(a * Math.pow(2, 10 * t) * Math.sin((t * d - v5) * com.greensock.easing.Elastic._2PI / p)) + b;
}
v5 = (p / com.greensock.easing.Elastic._2PI) * Math.asin(c / a);
t -= 1;
return -(a * Math.pow(2, 10 * t) * Math.sin((t * d - v5) * com.greensock.easing.Elastic._2PI / p)) + b;
};
v1.easeOut = function (t, b, c, d, a, p) {
if (t == 0) {
return b;
}
t /= d;
if (t == 1) {
return b + c;
}
if (!p) {
p = d * 0.3;
}
var v5;
if (!a || c > 0 && a < c || c < 0 && a < -c) {
a = c;
v5 = p / 4;
return a * Math.pow(2, -10 * t) * Math.sin((t * d - v5) * com.greensock.easing.Elastic._2PI / p) + c + b;
}
v5 = (p / com.greensock.easing.Elastic._2PI) * Math.asin(c / a);
return a * Math.pow(2, -10 * t) * Math.sin((t * d - v5) * com.greensock.easing.Elastic._2PI / p) + c + b;
};
v1.easeInOut = function (t, b, c, d, a, p) {
if (t == 0) {
return b;
}
t /= d / 2;
if (t == 2) {
return b + c;
}
if (!p) {
p = d * 0.45;
}
var v5;
if (!a || c > 0 && a < c || c < 0 && a < -c) {
a = c;
v5 = p / 4;
} else {
v5 = (p / com.greensock.easing.Elastic._2PI) * Math.asin(c / a);
}
if (t < 1) {
t -= 1;
return -0.5 * (a * Math.pow(2, 10 * t) * Math.sin((t * d - v5) * com.greensock.easing.Elastic._2PI / p)) + b;
}
t -= 1;
return a * Math.pow(2, -10 * t) * Math.sin((t * d - v5) * com.greensock.easing.Elastic._2PI / p) * 0.5 + c + b;
};
v1._2PI = 6.283185307179586;
ASSetPropFlags(com.greensock.easing.Elastic.prototype, null, 1);
}
#endinitclip
}
movieClip 12521 __Packages.com.greensock.easing.Back {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.easing) {
_global.com.greensock.easing = new Object();
}
if (!_global.com.greensock.easing.Back) {
var v1 = function () {};
com.greensock.easing.Back = v1;
var v2 = v1.prototype;
v1.easeIn = function (t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t /= d;
return c * t * t * ((s + 1) * t - s) + b;
};
v1.easeOut = function (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;
};
v1.easeInOut = function (t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t /= d * 0.5;
if (t < 1) {
s *= 1.525;
return c * 0.5 * (t * t * ((s + 1) * t - s)) + b;
}
t -= 2;
s *= 1.525;
return c * 0.5 * (t * t * ((s + 1) * t + s) + 2) + b;
};
ASSetPropFlags(com.greensock.easing.Back.prototype, null, 1);
}
#endinitclip
}
movieClip 125 zombieMC {
frame 15 {
gotoAndPlay(1);
}
frame 41 {
stop();
}
}
movieClip 140 {
frame 1 {
isPlay = false;
onEnterFrame = function () {
_visible = _root.cam._y - 400 < _y;
if (random(30) == 0) {
if (isPlay) {
stop();
} else {
play();
}
isPlay = !isPlay;
}
};
}
frame 13 {
gotoAndPlay(2);
}
}
movieClip 141 woodC {
}
movieClip 143 woodB {
}
movieClip 145 woodA {
}
movieClip 148 tundraC {
}
movieClip 149 whiteOutC {
}
movieClip 151 whiteOutA {
}
movieClip 153 whiteBox {
}
movieClip 163 effectHitB {
frame 12 {
stop();
removeMovieClip(this);
}
}
movieClip 164 wesBullet {
frame 1 {
stop();
}
frame 14 {
stop();
removeMovieClip(this);
}
}
movieClip 167 {
}
movieClip 172 {
}
movieClip 173 WesShop {
frame 2 {
saber.stop();
}
}
movieClip 297 WesMC {
frame 1 {
stop();
callNode = true;
}
frame 29 {
callNode = true;
fireBullet(66, -26);
fireBullet(-5, 81);
fireBullet(-5, 81, 40, -10);
}
frame 30 {
fireBullet(94, -8);
fireBullet(80, 10);
fireBullet(60, 29);
fireBullet(60, 29, 40, 5);
fireBullet(60, 29, 40, 15);
}
frame 34 {
callNode = true;
}
frame 40 {
callNode = true;
fireBullet(70, -22);
fireBullet(67, 1);
fireBullet(67, 1, 40, 10);
}
frame 41 {
fireBullet(43, -66);
fireBullet(65, -38);
fireBullet(65, -38, 40, -15);
fireBullet(43, -66, 40, -7);
}
frame 45 {
callNode = true;
}
frame 48 {
callNode = true;
fireBullet(41, -27, '20');
fireBullet(-36, -7, '10');
fireBullet(41, -27, '20', 10);
fireBullet(-36, -7, '10', -10);
}
frame 49 {
fireBullet(42, -26, '10');
fireBullet(42, -16, '10', 15);
}
frame 51 {
fireBullet(42, -26, '10');
fireBullet(42, -16, '10', 10);
}
frame 53 {
fireBullet(42, -26, '10');
fireBullet(42, -16, '10', 10);
}
frame 55 {
fireBullet(34, -33, '10');
fireBullet(34, -33, '10', 10);
}
frame 57 {
fireBullet(34, -33, '10');
fireBullet(34, -33, '10', 10);
}
frame 58 {
fireBullet(34, -24, '10');
fireBullet(34, -24, '10', 10);
}
frame 60 {
fireBullet(46, -30, '10');
fireBullet(46, -30, '10', 5);
}
frame 62 {
fireBullet(46, -30, '10');
fireBullet(46, -30, '10', 5);
}
frame 64 {
fireBullet(46, -30, '10');
}
frame 66 {
fireBullet(47, -29, '5');
fireBullet(47, -29, '5', 5);
}
frame 68 {
fireBullet(47, -29, '5');
fireBullet(47, -29, '5', -3);
}
frame 70 {
fireBullet(47, -29, '5');
fireBullet(47, -29, '5', 3);
}
frame 72 {
fireBullet(47, -29, '5');
fireBullet(47, -29, '5', -8);
}
frame 74 {
fireBullet(47, -29, '5');
fireBullet(47, -29, '5', 5);
}
frame 75 {
gotoAndPlay('loop');
}
frame 76 {
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
frame 78 {
stop();
callNode = true;
}
frame 101 {
gotoAndPlay('fallingloop');
}
}
movieClip 302 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 305 {
frame 16 {
stop();
}
}
movieClip 306 WesActiveBox {
}
movieClip 313 {
}
movieClip 316 hangDust {
}
movieClip 349 effectBoom {
frame 27 {
stop();
removeMovieClip(this);
}
}
movieClip 350 USAWaqet {
frame 1 {
stop();
}
frame 23 {
stop();
removeMovieClip(this);
}
}
movieClip 354 {
}
movieClip 357 {
frame 1 {
stop();
}
}
movieClip 361 WaqasShop {
frame 1 {
rocket.smoke._visible = false;
}
}
movieClip 435 {
}
movieClip 532 effectShine {
}
movieClip 556 WaqasMC {
frame 25 {
goBack();
}
frame 62 {
callNode = true;
}
frame 91 {
callNode = true;
}
frame 127 {
callNode = true;
}
frame 156 {
callNode = true;
}
frame 183 {
goBack();
}
frame 194 {
stop();
}
frame 235 {
spawnPortrait();
}
frame 286 {
makeWaqet('USA', _x + 202, _y - 52);
}
frame 294 {
_root.landSound();
}
frame 295 {
makeWaqet('USA', 202, -52);
ultraGo();
}
frame 297 {
makeWaqet();
}
frame 299 {
makeWaqet();
}
frame 301 {
makeWaqet('USA', 202, -52);
}
frame 303 {
makeWaqet();
}
frame 305 {
makeWaqet();
}
frame 307 {
makeWaqet();
}
frame 308 {
makeWaqet();
}
frame 312 {
makeWaqet();
}
frame 319 {
makeWaqet();
}
frame 322 {
makeWaqet();
}
frame 326 {
makeWaqet();
}
frame 330 {
makeWaqet();
}
frame 334 {
makeWaqet();
}
frame 337 {
makeWaqet();
}
frame 338 {
makeWaqet();
}
frame 341 {
makeWaqet();
}
frame 345 {
makeWaqet();
}
frame 349 {
makeWaqet();
}
frame 354 {
makeWaqet();
}
frame 359 {
makeWaqet();
}
frame 364 {
makeWaqet();
}
frame 368 {
makeWaqet();
}
frame 371 {
makeWaqet();
}
frame 372 {
makeWaqet();
}
frame 373 {
makeWaqet();
}
frame 377 {
stop();
ultraRevert();
}
}
movieClip 560 {
}
movieClip 562 {
frame 1 {
_visible = _parent.ultraTimer !== undefined;
}
}
movieClip 566 {
}
movieClip 570 {
}
movieClip 571 fatWaqet {
frame 1 {
stop();
}
frame 23 {
stop();
removeMovieClip(this);
}
}
movieClip 573 {
frame 1 {
rocket.smoke.stop();
}
}
movieClip 574 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 613 {
frame 1 {
onEnterFrame = function () {
gotoAndStop(Math.ceil(_parent.charge / 2) + 1);
};
_parent.showEmblem = function () {
_parent.col._alpha = 100;
_parent.cool._visible = true;
_parent.gray._visible = _parent.cool._visible;
};
_parent.showInput = function (alph) {
if (alph != undefined) {
_parent.col._alpha = 50;
} else {
_parent.col._alpha = 0;
}
_parent.cool._visible = false;
_parent.gray._visible = _parent.cool._visible;
};
}
}
movieClip 614 {
}
movieClip 616 {
}
movieClip 617 WaqasActiveBox {
frame 1 {
if (this.ultraTimer == undefined) {
ultraRDY._visible = false;
}
_root.HUD.ultraBar.updateDisplay();
stop();
}
}
movieClip 620 {
}
movieClip 623 volumeMC {
frame 1 {
stop();
}
}
movieClip 650 {
frame 36 {
stop();
}
}
movieClip 651 {
frame 1 {
stop();
}
}
movieClip 656 {
frame 1 {
stop();
}
}
movieClip 659 {
}
movieClip 665 {
frame 1 {
stop();
}
}
movieClip 668 {
}
movieClip 671 {
}
movieClip 678 {
frame 1 {
stop();
}
frame 1 {
spark.stop();
}
}
movieClip 684 {
frame 1 {
stop();
}
}
movieClip 690 {
frame 1 {
stop();
}
}
movieClip 697 {
frame 1 {
stop();
}
}
movieClip 703 {
frame 1 {
stop();
}
}
movieClip 709 {
frame 1 {
stop();
}
}
movieClip 713 {
}
movieClip 718 {
}
movieClip 723 {
frame 1 {
stop();
}
}
movieClip 729 {
frame 1 {
stop();
}
}
movieClip 734 {
}
movieClip 740 {
frame 1 {
stop();
}
}
movieClip 747 {
frame 1 {
stop();
}
}
movieClip 753 {
frame 1 {
stop();
}
}
movieClip 760 {
frame 1 {
stop();
}
}
movieClip 763 soccerMC {
}
movieClip 769 {
frame 1 {
stop();
}
}
movieClip 775 {
frame 1 {
stop();
}
}
movieClip 781 {
frame 1 {
stop();
}
}
movieClip 785 {
}
movieClip 915 {
}
movieClip 919 {
}
movieClip 923 {
frame 1 {
stop();
dg.gotoAndStop(1);
}
frame 2 {
dg.gotoAndStop(1);
}
}
movieClip 926 {
}
movieClip 932 {
frame 1 {
stop();
}
}
movieClip 939 {
frame 1 {
stop();
}
}
movieClip 946 {
frame 1 {
stop();
}
}
movieClip 953 {
frame 1 {
stop();
}
}
movieClip 960 {
frame 1 {
stop();
}
}
movieClip 966 {
frame 1 {
stop();
}
}
movieClip 972 {
frame 1 {
stop();
}
}
movieClip 979 {
frame 1 {
stop();
}
}
movieClip 985 {
frame 1 {
stop();
}
}
movieClip 991 {
frame 1 {
stop();
}
}
movieClip 997 {
frame 1 {
stop();
}
}
movieClip 1003 {
frame 1 {
stop();
}
}
movieClip 1009 {
frame 1 {
stop();
}
}
movieClip 1015 {
frame 1 {
stop();
}
}
movieClip 1020 {
}
movieClip 1033 {
frame 1 {
stop();
}
}
movieClip 1039 sagarBoard {
}
movieClip 1044 {
frame 1 {
stop();
}
}
movieClip 1051 {
frame 1 {
stop();
}
}
movieClip 1059 {
frame 1 {
stop();
}
}
movieClip 1065 {
frame 1 {
stop();
}
}
movieClip 1068 {
}
movieClip 1073 {
frame 1 {
stop();
}
}
movieClip 1080 {
frame 1 {
stop();
}
}
movieClip 1087 {
frame 1 {
stop();
}
}
movieClip 1096 {
frame 1 {
stop();
}
}
movieClip 1104 {
frame 1 {
stop();
}
}
movieClip 1110 {
frame 1 {
stop();
}
}
movieClip 1116 {
frame 1 {
stop();
}
}
movieClip 1125 {
frame 1 {
stop();
}
}
movieClip 1130 {
}
movieClip 1133 {
}
movieClip 1135 {
}
movieClip 1136 {
frame 1 {
function getPosNow() {
var v1 = {'x': 0, 'y': 0};
var v2 = {'x': 0, 'y': 0};
localToGlobal(v1);
lineMC.localToGlobal(v2);
return {'p1': v1, 'p2': v2};
}
if (rgb == null) {
rgb = 16777215;
}
if (alpha == null) {
alpha = 100;
}
createEmptyMovieClip('shadowMC', 0);
if (shadowMC.shaQueue == null) {
shadowMC.shaQueue = new Array();
shadowMC.queueLen = Math.abs(int(queueLen));
if (shadowMC.queueLen == 0) {
shadowMC.queueLen = 10;
}
var p = getPosNow();
var i = 0;
while (i < shadowMC.queueLen) {
shadowMC.shaQueue.push(p);
++i;
}
}
onEnterFrameFunc = function () {
shadowMC.pushPos();
shadowMC.render();
};
shadowMC.pushPos = function () {
this.shaQueue.shift();
this.shaQueue.push(getPosNow());
};
shadowMC.render = function () {
this.clear();
var v7 = alpha;
var v15 = v7 / this.queueLen;
var v5 = [];
for (var v3 in this.shaQueue) {
var v2 = this.shaQueue[v3].p1;
var v4 = this.shaQueue[v3].p2;
var v10 = {'x': v2.x, 'y': v2.y};
var v8 = {'x': v4.x, 'y': v4.y};
this.globalToLocal(v10);
this.globalToLocal(v8);
v5[v3] = {'p1': v10, 'p2': v8};
}
v3 = v5.length - 1;
while (v3 > 0) {
v2 = v5[v3].p1;
v4 = v5[v3].p2;
var v6 = v5[v3 - 1].p2;
var v9 = v5[v3 - 1].p1;
this.beginFill(rgb, v7);
this.moveTo(v2.x, v2.y);
this.lineTo(v4.x, v4.y);
this.lineTo(v6.x, v6.y);
this.endFill();
this.beginFill(rgb, v7);
this.moveTo(v6.x, v6.y);
this.lineTo(v9.x, v9.y);
this.lineTo(v2.x, v2.y);
this.endFill();
v7 -= v15;
--v3;
}
};
}
}
movieClip 1137 {
frame 1 {
function onEnterFrame() {
sword.onEnterFrameFunc();
}
sword.alpha = 80;
sword.rgb = 26367;
sword.lineMC._visible = false;
sword.queueLen = 5;
}
}
movieClip 1139 {
}
movieClip 1145 {
frame 1 {
stop();
}
}
movieClip 1149 {
}
movieClip 1155 {
frame 1 {
stop();
}
}
movieClip 1161 {
frame 1 {
stop();
}
}
movieClip 1164 JoshC4 {
}
movieClip 1169 JoshMine {
}
movieClip 1171 JoshSemtex {
}
movieClip 1172 {
}
movieClip 1175 {
frame 1 {
stop();
}
}
movieClip 1182 {
frame 1 {
stop();
}
}
movieClip 1188 {
frame 1 {
stop();
}
}
movieClip 1198 {
frame 1 {
stop();
}
}
movieClip 1208 {
frame 1 {
stop();
}
}
movieClip 1213 {
}
movieClip 1219 {
frame 1 {
stop();
}
}
movieClip 1224 {
}
movieClip 1228 {
frame 1 {
stop();
}
}
movieClip 1239 {
frame 1 {
stop();
}
}
movieClip 1247 {
frame 1 {
stop();
}
}
movieClip 1253 {
frame 1 {
stop();
}
}
movieClip 1260 {
frame 1 {
stop();
}
}
movieClip 1266 {
frame 1 {
stop();
}
}
movieClip 1272 {
frame 1 {
stop();
}
}
movieClip 1279 {
frame 1 {
stop();
}
}
movieClip 1285 {
frame 1 {
stop();
}
}
movieClip 1292 {
frame 1 {
stop();
}
}
movieClip 1297 {
}
movieClip 1305 {
frame 1 {
stop();
}
}
movieClip 1316 {
frame 1 {
stop();
}
}
movieClip 1320 {
}
movieClip 1326 {
frame 1 {
stop();
}
}
movieClip 1332 {
frame 1 {
stop();
}
}
movieClip 1340 {
frame 1 {
stop();
}
}
movieClip 1343 tomahawk {
}
movieClip 1349 {
frame 1 {
stop();
}
}
movieClip 1355 {
frame 1 {
stop();
}
}
movieClip 1362 {
frame 1 {
stop();
}
}
movieClip 1370 {
}
movieClip 1373 {
frame 1 {
stop();
}
}
movieClip 1380 {
frame 1 {
stop();
}
}
movieClip 1387 {
frame 1 {
stop();
}
}
movieClip 1394 {
frame 1 {
stop();
}
}
movieClip 1400 {
frame 1 {
stop();
}
}
movieClip 1406 {
frame 1 {
stop();
}
}
movieClip 1412 {
frame 1 {
stop();
}
}
movieClip 1418 {
frame 1 {
stop();
}
}
movieClip 1426 {
frame 1 {
stop();
}
}
movieClip 1432 {
frame 1 {
stop();
}
}
movieClip 1441 {
frame 1 {
stop();
}
}
movieClip 1448 {
frame 1 {
stop();
}
}
movieClip 1452 {
}
movieClip 1458 {
frame 1 {
stop();
}
}
movieClip 1468 {
frame 1 {
stop();
}
}
movieClip 1474 {
frame 1 {
stop();
}
}
movieClip 1482 {
frame 1 {
stop();
}
}
movieClip 1486 PedroActiveBox {
}
movieClip 1490 {
}
movieClip 1497 MarcActiveBox {
frame 1 {
chainTXT._visible = false;
}
}
movieClip 1499 {
}
movieClip 1504 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1506 KhanhIdleBox {
}
movieClip 1508 {
}
movieClip 1516 MattActiveBox {
}
movieClip 1518 {
}
movieClip 1524 {
}
movieClip 1528 KyleIdleBox {
frame 1 {
ultraRDY._visible = false;
}
}
movieClip 1530 {
}
movieClip 1537 {
}
movieClip 1542 BenActiveBox {
frame 1 {
ultraRDY._visible = false;
}
}
movieClip 1544 {
}
movieClip 1550 {
}
movieClip 1556 {
frame 1 {
function onEnterFrame() {
sword.onEnterFrameFunc();
}
sword.alpha = 50;
sword.rgb = 16724736;
sword.lineMC._visible = false;
sword.queueLen = 5;
}
}
movieClip 1562 TuckerIdleBox {
frame 1 {
stop();
}
frame 1 {
ultraRDY._visible = false;
}
}
movieClip 1565 {
}
movieClip 1570 CoreyIdleBox {
frame 1 {
stop();
}
frame 1 {
ultraRDY._visible = false;
}
}
movieClip 1572 {
}
movieClip 1578 BrianIdleBox {
}
movieClip 1580 {
}
movieClip 1587 JKIdleBox {
frame 1 {
stop();
}
}
movieClip 1590 {
}
movieClip 1598 SagarActiveBox {
}
movieClip 1600 {
}
movieClip 1607 HangActiveBox {
frame 1 {
ultraRDY._visible = false;
}
}
movieClip 1609 {
}
movieClip 1616 OmarActiveBox {
frame 1 {
ultraRDY._visible = false;
}
}
movieClip 1620 {
}
movieClip 1625 {
}
movieClip 1627 ThomasActiveBox {
frame 1 {
ultraRDY._visible = false;
}
}
movieClip 1635 {
}
movieClip 1645 EricActiveBox {
frame 1 {
ultraRDY._visible = false;
}
}
movieClip 1648 {
}
movieClip 1650 {
}
movieClip 1657 JoshIdleBox {
frame 1 {
stop();
}
}
movieClip 1659 {
}
movieClip 1666 JamesActiveBox {
frame 1 {
ultraRDY._visible = false;
}
}
movieClip 1668 {
}
movieClip 1675 {
}
movieClip 1676 AddisonActiveBox {
frame 1 {
ultraRDY._visible = false;
stop();
}
}
movieClip 1679 {
}
movieClip 1687 SeanActiveBox {
frame 1 {
ultraRDY._visible = false;
}
}
movieClip 1689 {
}
movieClip 1693 {
}
movieClip 1701 StewartTrail {
frame 1 {
stop();
}
}
movieClip 1706 {
}
movieClip 1707 StewartActiveBox {
frame 1 {
ultraRDY._visible = false;
stop();
}
}
movieClip 1710 {
}
movieClip 1718 {
}
movieClip 1719 DanActiveBox {
}
movieClip 1722 {
}
movieClip 1727 {
}
movieClip 1729 LukeActiveBox {
frame 1 {
ultraRDY._visible = false;
numTXT.text = '';
stop();
}
}
movieClip 1733 {
}
movieClip 1744 MichaelActiveBox {
frame 1 {
ultraRDY._visible = false;
stop();
}
}
movieClip 1747 {
}
movieClip 1752 BriStickActiveBox {
}
movieClip 1755 {
}
movieClip 1765 {
}
movieClip 1767 KirbyActiveBox {
frame 1 {
stop();
}
}
movieClip 1770 {
}
movieClip 1776 JorgeActiveBox {
}
movieClip 1779 {
}
movieClip 1780 {
frame 1 {
}
frame 15 {
flapmc.stop();
}
}
movieClip 1785 upgradeList {
frame 1 {
stop();
}
}
movieClip 1787 unlockBar {
frame 1 {
clearBTN.stop();
clearBTN.onRelease = function () {
with (clearBTN) {
if (_currentframe == 2) {
gotoAndStop(3);
} else {
if (_currentframe == 4) {
gotoAndStop(5);
} else {
if (_currentframe == 6) {
_root.defaultData();
_root.resetBTNfunc();
}
}
}
}
};
clearBTN.onRollOver = function () {
with (clearBTN) {
if (_currentframe == 1) {
gotoAndStop(2);
} else {
if (_currentframe == 3) {
gotoAndStop(4);
} else {
if (_currentframe == 5) {
gotoAndStop(6);
}
}
}
}
};
clearBTN.onRollOut = function () {
with (clearBTN) {
if (_currentframe == 2) {
gotoAndStop(1);
} else {
if (_currentframe == 4) {
gotoAndStop(3);
} else {
if (_currentframe == 6) {
gotoAndStop(5);
}
}
}
}
};
}
}
movieClip 1793 ultraWaqas {
}
movieClip 1797 ultraThomas {
}
movieClip 1798 ultraStars {
}
movieClip 1800 ultraShields {
}
movieClip 1802 ultraPumpkins {
}
movieClip 1804 ultraPhoenix {
}
movieClip 1805 ultraLuke {
frame 1 {
com.greensock.TweenMax.to(a, 0.5, {'_rotation': '360', 'repeat': -1, 'ease': com.greensock.easing.Linear.easeNone});
com.greensock.TweenMax.to(b, 0.7, {'_rotation': '360', 'repeat': -1, 'ease': com.greensock.easing.Linear.easeNone});
com.greensock.TweenMax.to(c, 0.3, {'_rotation': '360', 'repeat': -1, 'ease': com.greensock.easing.Linear.easeNone});
}
}
movieClip 1807 ultraJames {
}
movieClip 1809 ultraHex {
}
movieClip 1812 ultraEric {
}
movieClip 1816 {
}
movieClip 1818 {
}
movieClip 1820 {
}
movieClip 1824 {
}
movieClip 1838 {
}
movieClip 1841 {
}
movieClip 1847 {
}
movieClip 1851 ultraBG {
frame 10 {
com.greensock.TweenMax.to(bloom, 1, {'_rotation': '360', 'repeat': -1, 'ease': com.greensock.easing.Linear.easeNone});
}
frame 13 {
com.greensock.TweenMax.to(bloom, 8, {'_xscale': 86.90000000000001, '_yscale': 168.4, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenMax.to(vortex, 2, {'_rotation': '-360', 'repeat': -1, 'ease': com.greensock.easing.Linear.easeNone});
ggg.gotoAndPlay(9);
}
frame 14 {
com.greensock.TweenMax.to(bloom, 1, {'_rotation': '360', 'repeat': -1, 'ease': com.greensock.easing.Linear.easeNone});
}
}
movieClip 1861 {
frame 13 {
stop();
}
frame 22 {
stop();
}
frame 31 {
stop();
}
}
movieClip 1866 ultraBar {
}
movieClip 1887 tutWASD {
frame 1 {
onEnterFrame = function () {
if (_root.PHASE == 'DONE') {
removeMovieClip(this);
}
};
closeBTN.onRelease = function () {
closeBTN._parent.nextFrame();
};
stop();
}
frame 2 {
closeBTN.onRelease = function () {
_root.Boss.tutReady();
removeMovieClip(closeBTN._parent);
};
}
}
movieClip 1893 tutUltraB {
}
movieClip 1899 tutUltraA {
}
movieClip 1901 tutSpace {
}
movieClip 1910 tutQWE {
frame 1 {
closeBTN.onRelease = function () {
removeMovieClip(closeBTN._parent);
removeMovieClip(_root.Qtut);
removeMovieClip(_root.Wtut);
removeMovieClip(_root.Etut);
};
}
}
movieClip 1919 tutClickFighters {
frame 1 {
stop();
}
}
movieClip 1922 {
}
movieClip 1923 tundraMountain {
}
movieClip 1925 tundraHills {
}
movieClip 1928 lakeB {
}
movieClip 1929 tundraB {
}
movieClip 1932 {
}
movieClip 1934 tundraA {
}
movieClip 1939 TuckerShop {
frame 2 {
saber.stop();
}
}
movieClip 1974 {
}
movieClip 2028 {
frame 47 {
stop();
}
}
movieClip 2047 {
}
movieClip 2104 {
frame 51 {
stop();
}
}
movieClip 2208 {
}
movieClip 2211 effectSwirl {
}
movieClip 2216 TuckerMC {
frame 2 {
stop();
callNode = true;
}
frame 8 {
callNode = true;
}
frame 16 {
callNode = true;
}
frame 19 {
callNode = true;
}
frame 25 {
callNode = true;
}
frame 28 {
callNode = true;
}
frame 31 {
callNode = true;
}
frame 34 {
callNode = true;
}
frame 37 {
callNode = true;
}
frame 41 {
callNode = true;
}
frame 46 {
callNode = true;
}
frame 53 {
callNode = true;
}
frame 61 {
gotoAndStop('RUN');
}
frame 62 {
stop();
callNode = true;
}
frame 67 {
callNode = true;
}
frame 73 {
callNode = true;
}
frame 77 {
callNode = true;
}
frame 85 {
callNode = true;
}
frame 94 {
callNode = true;
}
frame 104 {
callNode = true;
}
frame 105 {
callNode = true;
}
frame 113 {
callNode = true;
}
frame 120 {
gotoAndStop('RUN');
}
frame 121 {
play();
}
frame 147 {
gotoAndStop('RUN');
revert();
}
frame 149 {
stop();
}
frame 200 {
ultraGo();
}
frame 223 {
ultraRevert();
}
}
movieClip 2245 {
}
movieClip 2247 TuckerEEffect {
frame 45 {
removeMovieClip(this);
}
}
movieClip 2250 tryFlag {
}
movieClip 2253 toasterNade {
frame 9 {
detonate();
}
frame 10 {
stop();
removeMovieClip(this);
}
}
movieClip 2259 {
}
movieClip 2281 effectFire {
frame 31 {
stop();
removeMovieClip(this);
}
}
movieClip 2283 effectChoppy {
}
movieClip 2286 effectGreensplode {
frame 31 {
stop();
removeMovieClip(this);
}
}
movieClip 2293 Toaster {
frame 1 {
stop();
}
frame 20 {
fire();
}
frame 27 {
revert();
}
frame 39 {
revert();
}
frame 72 {
deload();
}
}
movieClip 2352 {
frame 1 {
stop();
}
}
movieClip 2354 {
}
movieClip 2357 {
}
movieClip 2360 lvl4map {
}
movieClip 2396 {
}
movieClip 2485 DrabMC {
frame 19 {
gotoAndPlay('REST');
}
frame 25 {
atkFunc();
}
frame 26 {
atkFunc();
}
frame 27 {
atkFunc();
}
frame 28 {
atkFunc();
}
frame 29 {
atkFunc();
}
frame 30 {
atkFunc();
}
frame 31 {
atkFunc();
}
frame 32 {
atkFunc();
}
frame 33 {
atkFunc();
}
frame 38 {
revert();
gotoAndPlay('REST');
}
frame 49 {
revert();
}
frame 67 {
stop();
}
frame 68 {
_root.landSound();
}
frame 97 {
stop();
}
}
movieClip 2492 {
}
movieClip 2496 {
}
movieClip 2515 coreyProt {
}
movieClip 2517 blueProt {
}
movieClip 2531 {
}
movieClip 2540 {
}
movieClip 2542 {
}
movieClip 2544 {
}
movieClip 2545 Cobalt {
frame 26 {
gotoAndPlay(1);
}
frame 61 {
gotoAndPlay(1);
}
}
movieClip 2550 {
}
movieClip 2551 {
}
movieClip 2556 KyleActiveBox {
frame 1 {
ultraRDY._visible = false;
}
}
movieClip 2575 fbAlert {
}
movieClip 2577 gravAlert {
}
movieClip 2579 blueAlert {
}
movieClip 2581 snowAlert {
}
movieClip 2622 {
}
movieClip 2626 {
}
movieClip 2631 {
}
movieClip 2660 tips {
frame 8 {
myBox.rgn._yscale = 60;
myBox.cool._yscale = 80;
myBoxB.rgn._yscale = 20;
myBoxB.cool._yscale = 100;
myBoxB.cool.gotoAndStop(2);
}
frame 14 {
drabA.gotoAndStop(30);
drabB.gotoAndStop(30);
drabA.jetPack.stop();
drabB.jetPack.stop();
}
frame 21 {
bar.gotoAndStop(3);
bar.bar._visible = false;
bar.outline.gotoAndStop(13);
}
frame 23 {
boxA.charge = 100;
boxB.charge = 100;
}
frame 35 {
btnB.onRelease = function () {
getURL('http://www.youtube.com/watch?v=pLhqbO4I7ZA&feature=relmfu', '_blank');
};
}
frame 39 {
btnA.onRelease = function () {
getURL('http://www.youtube.com/user/uNkMyJuNk1/featured', '_blank');
};
}
frame 43 {
btnC.onRelease = function () {
getURL('http://www.youtube.com/watch?v=-696ZQUDOkw', '_blank');
};
}
}
movieClip 2663 {
}
movieClip 2664 tiC {
}
movieClip 2666 tiB {
}
movieClip 2668 tiA {
}
movieClip 2672 ThomasShop {
}
movieClip 2844 {
}
movieClip 2895 {
}
movieClip 3004 {
}
movieClip 3059 {
}
movieClip 3070 {
}
movieClip 3093 ThomasMC {
frame 1 {
stop();
callNode = true;
}
frame 9 {
callNode = true;
}
frame 18 {
callNode = true;
}
frame 22 {
callNode = true;
}
frame 33 {
callNode = true;
}
frame 48 {
callNode = true;
}
frame 55 {
callNode = true;
}
frame 61 {
callNode = true;
}
frame 66 {
callNode = true;
}
frame 73 {
callNode = true;
}
frame 83 {
callNode = true;
}
frame 109 {
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
frame 117 {
stop();
}
frame 142 {
stop();
}
frame 159 {
stop();
}
frame 160 {
play();
}
frame 218 {
ultraGo();
}
frame 222 {
hitFunc('DOWN');
}
frame 234 {
hitFunc('MID');
}
frame 248 {
hitFunc('DOWN');
}
frame 260 {
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
frame 266 {
hitFunc('UP');
}
frame 287 {
hitFunc('DOWN');
}
frame 297 {
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
frame 304 {
hitFunc('UP');
}
frame 315 {
hitFunc('MID');
}
frame 324 {
hitFunc('DOWN');
hitFunc('MID');
hitFunc('UP');
}
frame 335 {
hitFunc('UP');
}
frame 343 {
hitFunc('DOWN');
}
frame 354 {
hitFunc('MID');
}
frame 361 {
hitFunc('MID');
}
frame 368 {
hitFunc('MID');
}
frame 374 {
hitFunc('DOWN');
}
frame 379 {
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
frame 383 {
hitFunc('MID');
}
frame 391 {
hitFunc('DOWN');
}
frame 398 {
hitFunc('MID');
}
frame 409 {
hitFunc('UP');
}
frame 416 {
hitFunc('MID');
}
frame 427 {
hitFunc('UP');
}
frame 443 {
hitFunc('DOWN');
}
frame 452 {
hitFunc('UP');
}
frame 462 {
hitFunc('DOWN');
}
frame 464 {
hitFunc('DOWN');
}
frame 466 {
hitFunc('DOWN');
}
frame 468 {
hitFunc('DOWN');
}
frame 469 {
hitFunc('DOWN');
}
frame 470 {
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
frame 473 {
hitFunc('UP');
}
frame 475 {
hitFunc('UP');
}
frame 477 {
hitFunc('UP');
}
frame 480 {
hitFunc('UP');
}
frame 489 {
hitFunc('DOWN');
}
frame 497 {
hitFunc('UP');
}
frame 525 {
hitFunc('UP');
}
frame 527 {
hitFunc('DOWN');
}
frame 529 {
hitFunc('MID');
}
frame 531 {
hitFunc('UP');
}
frame 533 {
hitFunc('DOWN');
}
frame 535 {
hitFunc('MID');
}
frame 537 {
hitFunc('UP');
}
frame 539 {
hitFunc('DOWN');
}
frame 541 {
hitFunc('MID');
}
frame 543 {
hitFunc('DOWN');
}
frame 545 {
hitFunc('DOWN');
}
frame 547 {
hitFunc('DOWN');
}
frame 565 {
_root.landSound();
}
frame 577 {
ultraRevert();
}
}
movieClip 3095 teamBoostMC {
}
movieClip 3104 {
frame 1 {
function onEnterFrame() {
sword.onEnterFrameFunc();
}
sword.alpha = 70;
sword.rgb = 26367;
sword.lineMC._visible = false;
sword.queueLen = 5;
}
}
movieClip 3106 SuperShortSummaryMC {
}
movieClip 3108 StewartShop {
}
movieClip 3130 {
frame 1 {
stop();
}
frame 5 {
gotoAndStop(1);
}
}
movieClip 3171 StewartMC {
frame 1 {
stop();
callNode = true;
}
frame 15 {
callNode = true;
}
frame 25 {
callNode = true;
}
frame 36 {
callNode = true;
}
frame 50 {
callNode = true;
}
frame 59 {
callNode = true;
}
frame 69 {
callNode = true;
}
frame 77 {
callNode = true;
}
frame 78 {
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
frame 117 {
stop();
}
frame 133 {
gotoAndPlay('LOOP');
}
}
movieClip 3174 star9 {
}
movieClip 3176 star8 {
}
movieClip 3178 star7 {
}
movieClip 3180 star6 {
}
movieClip 3182 star5 {
}
movieClip 3184 star4 {
}
movieClip 3186 star3 {
}
movieClip 3188 star20 {
}
movieClip 3190 star2 {
}
movieClip 3192 star19 {
}
movieClip 3194 star18 {
}
movieClip 3196 star17 {
}
movieClip 3198 star16 {
}
movieClip 3200 star15 {
}
movieClip 3202 star14 {
}
movieClip 3204 star13 {
}
movieClip 3206 star12 {
}
movieClip 3208 star11 {
}
movieClip 3210 star10 {
}
movieClip 3212 star1 {
}
movieClip 3214 {
}
movieClip 3218 stageCleared {
frame 49 {
stop();
}
}
movieClip 3225 spookyObject {
frame 1 {
gotoAndStop(random(5) + 1);
}
}
movieClip 3228 spookyC {
}
movieClip 3230 spookyB {
}
movieClip 3233 spookyA {
}
movieClip 3234 spookyA2 {
}
movieClip 3236 SpawkHit {
}
movieClip 3238 snowMobileEnemy {
frame 1 {
stop();
}
frame 34 {
stop();
}
}
movieClip 3340 Snake {
frame 135 {
stop();
removeMovieClip(this);
}
frame 218 {
stop();
removeMovieClip(this);
}
}
movieClip 3343 slushWingB_TR {
}
movieClip 3345 slushWingB {
}
movieClip 3347 SKULLWaqet {
frame 1 {
stop();
}
frame 23 {
stop();
removeMovieClip(this);
}
}
movieClip 3350 SkipScene {
}
movieClip 3353 SkipIntroMC {
}
movieClip 3355 sidewalkGrassA_TR {
}
movieClip 3359 sidewalkGrassA {
}
movieClip 3374 laneBackB {
}
movieClip 3386 {
}
movieClip 3388 {
}
movieClip 3389 hollyC {
}
movieClip 3392 {
}
movieClip 3394 {
}
movieClip 3397 gingerB_TR {
}
movieClip 3400 {
}
movieClip 3403 gingerB {
}
movieClip 3407 shootingStar {
frame 1 {
com.greensock.TweenLite.to(this, 60, {'_xscale': '200', 'ease': com.greensock.easing.Linear.easeNone});
}
frame 6 {
gotoAndPlay(2);
}
}
movieClip 3408 fireflyC {
}
movieClip 3411 fireflyB {
}
movieClip 3413 {
}
movieClip 3414 bitlandCB {
}
// unknown tag 88 length 83
movieClip 3421 casioC {
}
movieClip 3423 lunaHallC {
}
movieClip 3425 lunaLamp {
}
movieClip 3427 lunaHallA {
}
movieClip 3430 {
}
movieClip 3431 lunaStillB {
}
movieClip 3433 {
}
movieClip 3434 lunaBaseC {
}
movieClip 3442 BigBlaster {
frame 1 {
stop();
}
}
movieClip 3444 moonC {
}
movieClip 3447 {
}
movieClip 3449 {
}
movieClip 3450 moonF {
}
movieClip 3452 moonD {
}
movieClip 3453 {
}
movieClip 3455 closeSidewalkA {
}
movieClip 3460 fieldSidewalkA {
}
movieClip 3462 drillNightA {
}
movieClip 3466 {
}
movieClip 3468 laneCloseA {
}
movieClip 3483 lakeA {
}
movieClip 3506 effectGrass {
}
movieClip 3508 forestTree {
frame 1 {
stop();
}
}
movieClip 3514 hollyA {
}
movieClip 3516 gingerA_TR {
}
movieClip 3521 hollyObject {
frame 1 {
gotoAndStop(random(4) + 1);
}
}
movieClip 3523 gingerA {
}
movieClip 3525 forestA {
}
movieClip 3531 {
frame 1 {
gotoAndPlay(random(30) + 1);
}
frame 94 {
gotoAndPlay(2);
}
}
movieClip 3532 fireflyA {
}
movieClip 3534 bitlandB {
}
// unknown tag 88 length 81
movieClip 3539 casioA {
}
// unknown tag 88 length 132
movieClip 3543 casioB {
}
movieClip 3546 {
}
movieClip 3549 {
}
movieClip 3552 {
}
movieClip 3556 {
}
movieClip 3558 {
}
movieClip 3560 {
}
movieClip 3562 {
}
movieClip 3564 {
}
movieClip 3566 {
}
movieClip 3567 lunaHallB {
}
movieClip 3576 {
}
movieClip 3577 lunaBaseB {
}
movieClip 3579 {
}
movieClip 3580 lunaBaseA {
}
movieClip 3582 moonA {
}
movieClip 3583 {
}
movieClip 3590 {
}
movieClip 3600 couponButton {
}
movieClip 3602 Line {
}
movieClip 3603 shopWindow {
frame 1 {
function updateLoc(num) {
percentage = 0.5 - (scrollBar._x - 50) / 600;
if (num == 0) {
return 350 - initWidth / 2 + (initWidth - 700) * percentage;
} else {
if (num == 1) {
return 350 - bgW / 2 + (bgW - 10 - 700) * percentage;
} else {
if (num == 2) {
return 350 - bgbW / 2 + (bgbW - 10 - 700) * percentage;
}
}
}
}
drag = false;
initWidth = shoplist._width;
percentage = 0;
if (_root.levelWin == true) {
bg.gotoAndStop(_root.user.data.currentLevel - 1);
bgb.gotoAndStop(_root.user.data.currentLevel - 1);
} else {
bg.gotoAndStop(_root.user.data.currentLevel);
bgb.gotoAndStop(_root.user.data.currentLevel);
}
bgW = bg._width;
bgbW = bgb._width;
scrollBar.onPress = function () {
_root.clickA.start();
drag = true;
com.greensock.TweenMax.killTweensOf(shoplist);
com.greensock.TweenMax.killTweensOf(bg);
com.greensock.TweenMax.killTweensOf(bgb);
_root.shopMC.curBTN.releaseFunc(true);
};
onMouseUp = function () {
drag = false;
};
onEnterFrame = function () {
if (drag) {
var v2 = _root._xmouse;
if (v2 < 50) {
scrollBar._x = 50;
} else {
if (v2 > 650) {
scrollBar._x = 650;
} else {
scrollBar._x = v2;
}
}
shoplist._x = updateLoc(0);
bg._x = updateLoc(1);
bgb._x = updateLoc(2);
}
};
shoplist._x = updateLoc(0);
bg._x = updateLoc(1);
bgb._x = updateLoc(2);
}
}
movieClip 3605 shineBar {
}
movieClip 3612 {
}
movieClip 3617 SeanShop {
}
movieClip 3700 SeanMC {
frame 1 {
stop();
callNode = true;
}
frame 10 {
callNode = true;
}
frame 14 {
callNode = true;
}
frame 24 {
callNode = true;
}
frame 34 {
callNode = true;
}
frame 42 {
callNode = true;
}
frame 48 {
callNode = true;
}
frame 57 {
callNode = true;
}
frame 64 {
callNode = true;
}
frame 72 {
stop();
callNode = true;
}
frame 81 {
callNode = true;
}
frame 86 {
callNode = true;
}
frame 95 {
callNode = true;
}
frame 114 {
callNode = true;
}
frame 120 {
callNode = true;
}
frame 124 {
callNode = true;
}
frame 144 {
callNode = true;
}
frame 156 {
callNode = true;
}
frame 167 {
callNode = true;
stop();
}
frame 180 {
stop();
}
frame 182 {
play();
}
frame 228 {
ultraGo();
}
frame 232 {
stop();
}
}
movieClip 3701 SeanEEffect {
frame 17 {
removeMovieClip(this);
}
}
movieClip 3704 scoreTxtB {
}
movieClip 3711 scoreTxt {
}
movieClip 3716 SagarShop {
frame 2 {
saber.stop();
}
}
movieClip 3855 SagarMC {
frame 1 {
stop();
callNode = true;
}
frame 35 {
callNode = true;
}
frame 43 {
callNode = true;
}
frame 49 {
callNode = true;
}
frame 59 {
callNode = true;
}
frame 62 {
checkHit(0);
}
frame 64 {
checkHit(0);
}
frame 66 {
checkHit(0);
}
frame 68 {
checkHit(10);
}
frame 76 {
callNode = true;
}
frame 79 {
callNode = true;
}
frame 88 {
callNode = true;
}
frame 89 {
checkHit(0);
}
frame 94 {
checkHit(-5);
}
frame 96 {
checkHit(-10);
}
frame 98 {
checkHit(-15);
}
frame 100 {
checkHit(-15);
}
frame 102 {
checkHit(-15);
}
frame 104 {
checkHit(-20);
}
frame 106 {
checkHit(-30);
}
frame 108 {
checkHit(-30);
}
frame 110 {
callNode = true;
}
frame 123 {
_root.landSound();
}
frame 138 {
stop();
}
frame 155 {
stop();
}
}
movieClip 3856 {
frame 1 {
function onEnterFrame() {
sword.onEnterFrameFunc();
}
sword.alpha = 70;
sword.rgb = 26367;
sword.lineMC._visible = false;
sword.queueLen = 5;
}
}
movieClip 3862 {
}
movieClip 3863 saberSpin {
}
movieClip 3865 RUSSIAWaqet {
frame 1 {
stop();
}
frame 23 {
stop();
removeMovieClip(this);
}
}
movieClip 3867 roadSidewalkGrassA {
}
movieClip 3868 qualityMC {
frame 1 {
stop();
}
frame 2 {
qTXT.text = _root._quality + ' QUALITY';
}
}
movieClip 3871 pumpkinMCB {
frame 35 {
stop();
}
frame 63 {
stop();
removeMovieClip(this);
}
}
movieClip 3873 {
}
movieClip 3878 {
}
movieClip 3881 pumpkinMC {
frame 35 {
stop();
}
frame 66 {
stop();
removeMovieClip(this);
}
}
movieClip 3889 portraitWaqas {
frame 52 {
stop();
removeMovieClip(this);
}
}
movieClip 3896 portraitTucker {
frame 52 {
stop();
removeMovieClip(this);
}
}
movieClip 3901 portraitThomas {
frame 52 {
stop();
removeMovieClip(this);
}
}
movieClip 3909 portraitSean {
frame 52 {
stop();
removeMovieClip(this);
}
}
movieClip 3915 portraitOmar {
frame 52 {
stop();
removeMovieClip(this);
}
}
movieClip 3922 portraitMichael {
frame 67 {
stop();
removeMovieClip(this);
}
}
movieClip 3931 portraitLuke {
frame 52 {
stop();
removeMovieClip(this);
}
}
movieClip 3937 portraitKyle {
frame 52 {
stop();
removeMovieClip(this);
}
}
movieClip 3943 portraitJames {
frame 52 {
stop();
removeMovieClip(this);
}
}
movieClip 3948 portraitHang {
frame 52 {
stop();
removeMovieClip(this);
}
}
movieClip 3954 portraitEtherLord {
frame 52 {
stop();
removeMovieClip(this);
}
}
movieClip 3961 portraitEric {
frame 52 {
stop();
removeMovieClip(this);
}
}
movieClip 3967 portraitCorey {
frame 52 {
stop();
removeMovieClip(this);
}
}
movieClip 3973 portraitBlueThomas {
frame 52 {
stop();
removeMovieClip(this);
}
}
movieClip 3980 portraitBlueEric {
frame 52 {
stop();
removeMovieClip(this);
}
}
movieClip 3984 {
}
movieClip 3985 {
frame 1 {
stop();
}
}
movieClip 3988 portraitBen {
frame 29 {
MC.gotoAndStop(2);
}
frame 58 {
stop();
removeMovieClip(this);
}
}
movieClip 3995 portraitAddison {
frame 52 {
stop();
removeMovieClip(this);
}
}
movieClip 3998 camMC {
frame 1 {
function camControl() {
rp.x = _x;
rp.y = _y;
var v5 = camH * (_yscale * 0.01);
var v6 = camW * (_xscale * 0.01);
var v3 = sH / v5;
var v4 = sW / v6;
_x2 = (v6 / 2) * v4;
_y2 = (v5 / 2) * v3;
_xscale2 = v4 * 100;
_yscale2 = v3 * 100;
_rotation2 = -_rotation;
_parent.filters = this.filters;
_parent.transform.colorTransform = this.transform.colorTransform;
}
function reset() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
_parent._rotation = 0;
_parent._visible = true;
}
function set_x2(value) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x += value - v2.x;
}
function get_x2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.x;
}
function set_y2(value) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._y += value - v2.y;
}
function get_y2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.y;
}
function get_xscale2() {
return _parent._xscale;
}
function set_xscale2(value) {
setProperty2('_xscale', value);
}
function get_yscale2() {
return _parent._yscale;
}
function set_yscale2(value) {
setProperty2('_yscale', value);
}
function get_rotation2() {
return parent.rotation;
}
function set_rotation2(value) {
setProperty2('_rotation', value);
}
function setProperty2(prop, n) {
var v3 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v3);
_parent[prop] = n;
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x -= v2.x - v3.x;
_parent._y -= v2.y - v3.y;
}
addProperty('_x2', get_x2, set_x2);
addProperty('_y2', get_y2, set_y2);
addProperty('_xscale2', get_xscale2, set_xscale2);
addProperty('_yscale2', get_yscale2, set_yscale2);
addProperty('_rotation2', get_rotation2, set_rotation2);
var oldScaleMode = 'exactFit';
var sW = 700;
var sH = 400;
if (stage !== null) {
stage.scaleMode = 'exactFit';
}
var bounds_obj = this.getBounds(this);
var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin);
var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin);
var rp = {'x': this._x, 'y': this._y};
onEnterFrame = function () {
camControl();
};
this.onUnload = reset;
}
}
movieClip 4008 {
}
movieClip 4010 {
}
movieClip 4024 {
frame 9 {
stop();
}
}
movieClip 4031 {
}
movieClip 4039 {
}
movieClip 4070 pokemonOutro {
frame 155 {
A.stop();
}
frame 214 {
A.play();
}
frame 445 {
_root.finishFunc();
}
frame 465 {
stop();
}
}
movieClip 4095 {
frame 32 {
stop();
}
}
movieClip 4097 {
}
movieClip 4150 pokemonIntro {
frame 325 {
T.gotoAndStop(32);
}
frame 452 {
_root.finishFunc();
}
frame 455 {
stop();
}
}
movieClip 4153 PedroShop {
}
movieClip 4171 {
frame 28 {
stop();
}
frame 34 {
gotoAndPlay(10);
}
}
movieClip 4215 effectChargeMultiple {
}
movieClip 4248 PedroMC {
frame 1 {
stop();
callNode = true;
}
frame 12 {
callNode = true;
}
frame 16 {
callNode = true;
}
frame 19 {
callNode = true;
}
frame 22 {
callNode = true;
}
frame 40 {
callNode = true;
}
frame 45 {
callNode = true;
}
frame 48 {
callNode = true;
}
frame 50 {
callNode = true;
}
frame 58 {
callNode = true;
}
frame 63 {
callNode = true;
}
frame 67 {
callNode = true;
}
frame 69 {
callNode = true;
}
frame 88 {
callNode = true;
}
frame 96 {
callNode = true;
}
frame 105 {
gotoAndStop(1);
}
frame 138 {
stop();
}
frame 141 {
stop();
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
}
movieClip 4250 PedroLaser {
frame 1 {
stop();
}
frame 14 {
stop();
removeMovieClip(this);
}
}
movieClip 4253 {
}
movieClip 4254 PedroBoxB {
frame 1 {
spark.stop();
stop();
}
}
// unknown tag 88 length 83
movieClip 4258 orMC {
}
movieClip 4260 orangePortal {
}
movieClip 4268 OmarUltraEffect {
}
movieClip 4273 OmarShop {
}
movieClip 4286 {
}
movieClip 4352 {
}
movieClip 4450 {
}
movieClip 4491 OmarMC {
frame 1 {
stop();
callNode = true;
}
frame 6 {
callNode = true;
}
frame 17 {
callNode = true;
}
frame 27 {
callNode = true;
}
frame 30 {
callNode = true;
}
frame 39 {
callNode = true;
}
frame 40 {
callNode = true;
}
frame 41 {
callNode = true;
}
frame 42 {
callNode = true;
}
frame 51 {
callNode = true;
}
frame 59 {
callNode = true;
}
frame 61 {
callNode = true;
}
frame 67 {
callNode = true;
}
frame 77 {
callNode = true;
}
frame 104 {
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
frame 108 {
callNode = true;
}
frame 111 {
callNode = true;
}
frame 113 {
callNode = true;
}
frame 115 {
callNode = true;
}
frame 117 {
callNode = true;
}
frame 119 {
callNode = true;
}
frame 121 {
callNode = true;
}
frame 126 {
callNode = true;
}
frame 137 {
callNode = true;
_root.shakeCam(20, 20);
}
frame 150 {
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
frame 153 {
stop();
callNode = true;
}
frame 164 {
stop();
}
frame 216 {
spawnPortrait();
}
frame 276 {
ultraGo();
}
frame 318 {
ultraRevert();
}
frame 335 {
stop();
}
}
movieClip 4537 numText {
frame 1 {
stop();
}
frame 11 {
stop();
}
frame 21 {
stop();
}
frame 31 {
stop();
}
frame 41 {
stop();
}
}
movieClip 4539 numShopText {
}
movieClip 4542 NumHitB {
}
movieClip 4544 NumHit {
}
movieClip 4546 nightSkyC {
}
movieClip 4550 niceTXT {
}
movieClip 4553 NGplusMC {
}
movieClip 4554 NGshop {
}
movieClip 4562 {
}
movieClip 4566 {
}
movieClip 4568 ngMCB {
}
movieClip 4573 ngMC {
}
movieClip 4578 NextBtn {
}
movieClip 4629 newUnlocks {
frame 1 {
if (_root.user.data.hardMode) {
_root.updateSlushUnlock('Stewart', MC);
} else {
_root.updateSlushUnlock('Matt', MC);
}
}
frame 2 {
_root.updateSlushUnlock('Kyle', MC);
_root.newCharSound('Kyle');
}
frame 3 {
_root.updateSlushUnlock('Ben', MC);
_root.newCharSound('Ben');
}
frame 4 {
_root.updateSlushUnlock('Wes', MC);
_root.newCharSound('Wes');
}
frame 5 {
if (_root.user.data.hardMode) {
_root.updateSlushUnlock('Dan', MC);
_root.newCharSound('Dan');
} else {
_root.updateSlushUnlock('Tucker', MC);
_root.newCharSound('Tucker');
}
}
frame 7 {
_root.updateSlushUnlock('Corey', MC);
_root.newCharSound('Corey');
}
frame 9 {
_root.updateSlushUnlock('Brian', MC);
_root.newCharSound('Brian');
}
frame 10 {
if (_root.user.data.hardMode) {
_root.updateSlushUnlock('Kirby', MC);
_root.newCharSound('Kirby');
} else {
_root.updateSlushUnlock('JK', MC);
_root.newCharSound('JK');
}
}
frame 11 {
_root.updateSlushUnlock('Sagar', MC);
_root.newCharSound('Sagar');
}
frame 12 {
_root.updateSlushUnlock('Hang', MC);
_root.newCharSound('Hang');
}
frame 13 {
_root.updateSlushUnlock('Josh', MC);
_root.newCharSound('Josh');
}
frame 14 {
_root.updateSlushUnlock('James', MC);
_root.newCharSound('James');
}
frame 15 {
if (_root.user.data.hardMode) {
_root.updateSlushUnlock('BriStick', MC);
_root.newCharSound('BriStick');
newBTN._x += 500;
btn._y = 179;
} else {
_root.updateSlushUnlock('Omar', MC);
_root.newCharSound('Omar', true);
ty = 0;
newBTN.onRelease = function () {
if (ty == 0) {
_root.updateSlushUnlock('Thomas', MC);
_root.newCharSound('Thomas', true);
MC._y = 333;
com.greensock.TweenMax.to(MC, 0.5, {'_y': 123, 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (ty == 1) {
_root.updateSlushUnlock('Eric', MC);
_root.newCharSound('Eric', true);
MC._y = 333;
com.greensock.TweenMax.to(MC, 0.5, {'_y': 123, 'ease': com.greensock.easing.Strong.easeOut});
newBTN._x += 500;
btn._y = 179;
}
}
++ty;
};
if (!MC._visible) {
newBTN._x += 500;
btn._y = 179;
}
}
}
frame 16 {
_root.updateSlushUnlock('Addison', MC);
_root.newCharSound('Addison');
}
frame 17 {
if (_root.user.data.hardMode) {
_root.updateSlushUnlock('Jorge', MC);
_root.newCharSound('Jorge');
} else {
_root.updateSlushUnlock('Luke', MC);
_root.newCharSound('Luke');
}
}
frame 18 {
_root.updateSlushUnlock('Waqas', MC);
_root.newCharSound('Waqas');
}
frame 19 {
_root.updateSlushUnlock('Sean', MC);
_root.newCharSound('Sean');
}
frame 20 {
_root.updateSlushUnlock('Michael', MC);
_root.newCharSound('Michael');
}
}
movieClip 4631 newTeamOption {
frame 1 {
closeBTN.onRelease = function () {
removeMovieClip(_root.HUD.tutTeamMC);
_root.initStats(0);
};
}
}
movieClip 4633 newMapOption {
frame 1 {
closeBTN.onRelease = function () {
removeMovieClip(_root.HUD.tutMapMC);
_root.initStats(0);
};
}
}
movieClip 4636 musicMC {
frame 1 {
stop();
}
}
movieClip 4638 mountainsB_TR {
}
movieClip 4640 mountainsB {
}
movieClip 4642 {
}
movieClip 4696 {
}
movieClip 4705 {
frame 49 {
stop();
}
}
movieClip 4734 {
frame 37 {
stop();
}
}
movieClip 4752 moonIntro {
frame 424 {
cobalt.mc.stop();
}
frame 427 {
cobaltB.mc.stop();
}
frame 431 {
cobaltC.mc.stop();
}
frame 434 {
_root.finishFunc();
}
frame 447 {
stop();
}
}
movieClip 4755 moonE {
}
movieClip 4757 moonB {
}
movieClip 4761 MichaelShop {
}
movieClip 4890 MichaelMC {
frame 1 {
stop();
callNode = true;
}
frame 12 {
callNode = true;
}
frame 23 {
callNode = true;
}
frame 32 {
callNode = true;
stop();
}
frame 33 {
play();
}
frame 110 {
ultraGo();
}
frame 118 {
callNode = true;
}
frame 126 {
callNode = true;
}
frame 129 {
callNode = true;
}
frame 140 {
callNode = true;
}
frame 148 {
callNode = true;
}
frame 162 {
callNode = true;
}
frame 171 {
callNode = true;
}
frame 177 {
callNode = true;
}
frame 188 {
callNode = true;
_root.shakeCam(20, 40);
}
frame 204 {
callNode = true;
}
frame 212 {
callNode = true;
stop();
}
}
movieClip 4905 MichaelLine {
frame 15 {
stop();
}
frame 36 {
stop();
removeMovieClip(this);
}
}
movieClip 4916 {
}
movieClip 4917 MattShop {
frame 2 {
tutBox._visible = false;
if (_root.user.data.tutArray[8] == false) {
tutBox._visible = true;
user.data.tutArray[8] = true;
}
}
}
movieClip 4945 {
}
movieClip 4985 MattMC {
frame 1 {
stop();
callNode = true;
}
frame 10 {
callNode = true;
}
frame 27 {
callNode = true;
}
frame 31 {
callNode = true;
}
frame 42 {
callNode = true;
}
frame 43 {
callNode = true;
}
frame 44 {
callNode = true;
}
frame 45 {
callNode = true;
}
frame 46 {
callNode = true;
}
frame 47 {
callNode = true;
}
frame 48 {
callNode = true;
}
frame 49 {
callNode = true;
}
frame 65 {
callNode = true;
}
frame 92 {
callNode = true;
}
frame 103 {
callNode = true;
}
frame 109 {
callNode = true;
}
frame 124 {
stop();
}
frame 150 {
gotoAndPlay('fallingloop');
}
}
movieClip 4990 {
}
movieClip 5002 MattDragon {
frame 50 {
stop();
}
}
movieClip 5004 MARV {
}
movieClip 5006 markerMC {
}
movieClip 5009 MarcShop {
}
movieClip 5122 MarcMC {
frame 1 {
stop();
callNode = true;
}
frame 22 {
callNode = true;
}
frame 30 {
callNode = true;
}
frame 40 {
callNode = true;
}
frame 43 {
callNode = true;
}
frame 54 {
callNode = true;
}
frame 56 {
callNode = true;
}
frame 59 {
callNode = true;
}
frame 62 {
callNode = true;
}
frame 86 {
callNode = true;
}
frame 91 {
callNode = true;
}
frame 106 {
callNode = true;
}
frame 118 {
callNode = true;
}
frame 133 {
stop();
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
frame 138 {
stop();
}
frame 139 {
callNode = true;
}
frame 152 {
stop();
}
}
movieClip 5125 {
}
movieClip 5127 campusSkyC {
}
movieClip 5129 drillFieldB {
}
movieClip 5131 {
}
movieClip 5133 MainScreenSplash {
frame 75 {
stop();
_root.initVolume();
}
}
movieClip 5222 MageMC {
frame 40 {
revert();
gotoAndPlay(1);
}
frame 63 {
revert();
}
frame 96 {
stop();
}
}
movieClip 5224 {
}
movieClip 5226 lvlComplete {
frame 49 {
stop();
}
}
movieClip 5229 lvl9map {
}
movieClip 5232 lvl8map {
}
movieClip 5235 lvl7map {
}
movieClip 5238 countryStars {
}
movieClip 5241 lvl6map {
}
movieClip 5246 {
}
movieClip 5248 {
}
movieClip 5250 {
}
movieClip 5253 lvl5map {
}
movieClip 5257 lvl3map {
}
movieClip 5260 lvl2map {
}
movieClip 5262 {
}
movieClip 5264 {
}
movieClip 5266 {
}
movieClip 5270 {
}
movieClip 5274 {
frame 25 {
stop();
}
}
movieClip 5275 {
}
movieClip 5278 {
}
movieClip 5280 lvl21map {
}
movieClip 5284 {
}
movieClip 5286 lvl20map {
}
movieClip 5293 lvl19map {
}
movieClip 5299 lvl18map {
}
movieClip 5306 lvl17map {
}
movieClip 5310 lvl16map {
}
movieClip 5317 lvl15map {
}
movieClip 5322 lvl14map {
}
movieClip 5326 {
}
movieClip 5331 lvl13map {
}
movieClip 5334 lvl12map {
}
movieClip 5337 lvl11map {
}
movieClip 5348 {
}
movieClip 5350 lvl10map {
}
movieClip 5352 lunaStill {
}
movieClip 5358 lunaObject {
frame 1 {
gotoAndStop(random(5) + 1);
}
}
movieClip 5365 LukeShop {
}
movieClip 5400 {
}
movieClip 5406 {
}
movieClip 5412 {
frame 4 {
gotoAndStop(1);
}
}
movieClip 5438 {
}
movieClip 5444 {
}
movieClip 5452 LukeMC {
frame 1 {
stop();
}
frame 33 {
_root.landSound();
}
frame 43 {
stop();
endLeadFunc();
}
frame 45 {
stop();
callNode = true;
}
frame 46 {
stop();
}
frame 47 {
callNode = true;
stop();
}
frame 56 {
stop();
}
frame 72 {
goBack();
}
frame 134 {
ultraGo();
}
frame 135 {
spawnTomahawk(_x - 24 + random(48), _y - 40 + random(16), -85 + random(40));
}
frame 138 {
spawnTomahawk(_x - 24 + random(48), _y - 40 + random(16), -85 + random(20));
}
frame 140 {
spawnTomahawk(_x - 24 + random(48), _y - 40 + random(16), -85 + random(30));
}
frame 145 {
spawnTomahawk(_x - 24 + random(48), _y - 40 + random(16), -80 + random(10));
}
frame 150 {
spawnTomahawk(_x - 24 + random(48), _y - 40 + random(16), -80 + random(40));
}
frame 153 {
spawnTomahawk(_x - 24 + random(48), _y - 40 + random(16), -80 + random(40));
}
frame 155 {
spawnTomahawk(_x - 24 + random(48), _y - 40 + random(16), -80 + random(50));
}
frame 158 {
spawnTomahawk(_x - 24 + random(48), _y - 40 + random(16), -80 + random(40));
}
frame 162 {
spawnTomahawk(_x - 24 + random(48), _y - 40 + random(16), -80 + random(40));
}
frame 176 {
ultraRevert();
stop();
}
}
movieClip 5491 levelOneRetry {
frame 1 {
closeBTN.onRelease = function () {
removeMovieClip(_root.HUD.tutMC);
_root.initStats(0);
};
}
}
movieClip 5506 lampObstacle {
frame 13 {
stop();
}
}
movieClip 5507 lampHalf {
}
movieClip 5508 lakeSkyC {
}
movieClip 5520 {
}
movieClip 5567 kyleStars {
frame 26 {
checkHit();
}
frame 33 {
checkHit();
}
frame 37 {
checkHit();
}
frame 41 {
checkHit();
}
frame 45 {
checkHit();
}
frame 49 {
checkHit();
}
frame 52 {
checkHit();
}
frame 54 {
checkHit();
}
frame 94 {
checkHit();
_root.shakeCam(20, 20);
}
frame 94 {
_root.Kyle.ultraRevert();
}
frame 121 {
stop();
removeMovieClip(this);
}
}
movieClip 5572 KyleShop {
}
movieClip 5767 {
}
movieClip 5768 KyleMC {
frame 1 {
stop();
callNode = true;
}
frame 17 {
callNode = true;
}
frame 30 {
callNode = true;
}
frame 42 {
callNode = true;
}
frame 60 {
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
frame 76 {
stop();
callNode = true;
}
frame 102 {
callNode = true;
}
frame 116 {
callNode = true;
}
frame 121 {
callNode = true;
}
frame 132 {
callNode = true;
}
frame 144 {
callNode = true;
}
frame 156 {
callNode = true;
}
frame 175 {
callNode = true;
stop();
}
frame 176 {
play();
}
frame 229 {
ultraGo();
}
frame 238 {
stop();
}
frame 262 {
stop();
}
frame 263 {
if (KyleBox.techCool == undefined) {
removeMovieClip(this);
}
}
}
movieClip 5792 KyleCloseUp {
frame 26 {
stop();
removeMovieClip(this);
}
}
movieClip 5796 KirbyShop {
}
movieClip 5823 {
frame 29 {
gotoAndPlay('loop');
}
}
movieClip 5850 {
frame 43 {
stop();
}
}
movieClip 5851 KirbyMC {
frame 23 {
stop();
absorb();
}
frame 36 {
stop();
}
}
movieClip 5854 KhanhShop {
}
movieClip 5883 KhanhMC {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 32 {
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
}
movieClip 5888 JoshShop {
frame 2 {
saber.stop();
}
}
movieClip 5976 JoshMC {
frame 1 {
stop();
callNode = true;
}
frame 25 {
callNode = true;
}
frame 37 {
stop();
callNode = true;
}
frame 59 {
revert();
}
frame 69 {
if (_root.user.data.JoshUpgrades[3] == false) {
spawnTex(9, -23);
} else {
spawnTex(8, -25);
spawnTex(9, -23);
spawnTex(10, -20);
}
}
frame 88 {
revert();
}
frame 89 {
play();
}
frame 106 {
revert();
}
frame 129 {
stop();
}
}
movieClip 5995 JoshDetonate {
frame 21 {
stop();
}
}
movieClip 5999 JorgeShop {
}
movieClip 6054 JorgeMC {
frame 1 {
stop();
callNode = true;
}
frame 5 {
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
frame 19 {
callNode = true;
}
frame 32 {
callNode = true;
}
frame 39 {
callNode = true;
}
frame 46 {
callNode = true;
}
frame 50 {
callNode = true;
}
frame 55 {
callNode = true;
}
frame 59 {
callNode = true;
}
frame 65 {
callNode = true;
}
frame 69 {
callNode = true;
}
frame 75 {
callNode = true;
}
frame 76 {
_root.landSound();
}
frame 86 {
_root.groundEffect(this, _root.groundType);
}
frame 92 {
stop();
}
frame 104 {
stop();
}
}
movieClip 6059 JKShop {
frame 2 {
saber.stop();
}
}
movieClip 6080 {
}
movieClip 6129 {
frame 1 {
stop();
}
}
movieClip 6188 JKMC {
frame 30 {
shotFunc();
}
frame 42 {
shotFunc();
}
frame 53 {
shotFunc();
}
frame 77 {
revert();
}
frame 89 {
revert();
}
frame 98 {
stop();
}
}
movieClip 6193 JamesShop {
}
movieClip 6271 JamesMC {
frame 1 {
stop();
callNode = true;
}
frame 13 {
callNode = true;
}
frame 21 {
callNode = true;
}
frame 41 {
callNode = true;
}
frame 54 {
callNode = true;
}
frame 71 {
callNode = true;
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
frame 96 {
callNode = true;
}
frame 109 {
stop();
}
frame 164 {
ultraGo();
}
frame 169 {
stop();
}
}
movieClip 6272 JamesEEffect {
frame 17 {
removeMovieClip(this);
}
}
movieClip 6275 {
}
movieClip 6277 {
}
movieClip 6280 {
}
movieClip 6310 {
}
movieClip 6320 {
}
movieClip 6364 {
}
movieClip 6447 {
}
movieClip 7460 {
}
movieClip 7463 {
}
movieClip 7469 {
}
movieClip 7699 {
}
movieClip 7723 {
}
movieClip 7751 {
}
movieClip 7797 IntroMovieMC {
frame 1820 {
_root.closeIntro();
}
frame 1866 {
_root.startFunc();
}
frame 1883 {
stop();
}
}
movieClip 7800 {
}
movieClip 7817 {
}
movieClip 7822 InstructionsMC {
frame 1 {
ba.rgn._yscale = 100;
bb.rgn._yscale = 75;
bc.rgn._yscale = 15;
}
}
movieClip 7828 BackBtn {
}
movieClip 7830 {
}
movieClip 7833 {
}
movieClip 7837 {
}
movieClip 7840 {
}
movieClip 7851 {
}
movieClip 7866 effectCrit {
frame 36 {
stop();
removeMovieClip(this);
}
frame 37 {
stop();
}
}
movieClip 7885 {
frame 1 {
ba.rgn._yscale = 100;
bb.rgn._yscale = 75;
bc.rgn._yscale = 15;
pedCon.charge = 100;
ubara.gotoAndStop(1);
ubara.outline.gotoAndStop(1);
ubarb.gotoAndStop(2);
ubarb.outline.gotoAndStop(2);
ubarc.gotoAndStop(3);
ubarc.outline.gotoAndStop(3);
}
}
movieClip 7912 ericTrail {
}
movieClip 7916 {
}
movieClip 7917 EricBoxB {
frame 1 {
ultraRDY._visible = false;
stop();
}
}
movieClip 7986 {
frame 1 {
corey.hpbar._visible = false;
coreyB.hpbar._visible = false;
eric.charge = 100;
luke.charge = 100;
}
frame 2 {
hang.hpbar._visible = false;
josh.hpbar._visible = false;
waqas.hpbar._visible = false;
stewart.hpbar._visible = false;
lukeb.charge = 100;
lukec.charge = 100;
addison.charge = 100;
ericb.charge = 100;
waqas.charge = 100;
stewart.charge = 100;
corey.hpbar._visible = false;
coreyB.hpbar._visible = false;
eric.charge = 100;
luke.charge = 100;
}
frame 3 {
thomas.ultraRDY._visible = true;
joshb.hpbar._visible = false;
jk.hpbar._visible = false;
tuckerb.hpbar._visible = false;
tuckerb.ultraRDY._visible = true;
hang.hpbar._visible = false;
josh.hpbar._visible = false;
waqas.hpbar._visible = false;
stewart.hpbar._visible = false;
lukeb.charge = 100;
lukec.charge = 100;
addison.charge = 100;
ericb.charge = 100;
waqas.charge = 100;
stewart.charge = 100;
corey.hpbar._visible = false;
coreyB.hpbar._visible = false;
eric.charge = 100;
luke.charge = 100;
}
}
movieClip 7992 {
}
movieClip 7994 {
}
movieClip 8002 {
}
movieClip 8009 {
}
movieClip 8014 {
}
movieClip 8027 {
frame 1 {
stickbtn.onRelease = function () {
getURL('http://www.stickpage.com/', '_blank');
};
wfBTN.onRelease = function () {
getURL('http://waterflame.newgrounds.com/audio/', '_blank');
};
mmBTN.onRelease = function () {
getURL('http://mooseymaniac.newgrounds.com/audio/', '_blank');
};
wmBTN.onRelease = function () {
getURL('http://watermusic34.newgrounds.com/audio/', '_blank');
};
}
}
movieClip 8034 {
}
movieClip 8036 infoMC {
frame 1 {
stop();
basicBTN.onRelease = function () {
gotoAndStop(1);
};
michaelBTN.onRelease = function () {
gotoAndStop(2);
};
thomasBTN.onRelease = function () {
gotoAndStop(3);
};
jamesBTN.onRelease = function () {
gotoAndStop(4);
};
addBTN.onRelease = function () {
gotoAndStop(5);
};
comboBTN._visible = _root.user.data.ngArray[1] < 3;
comboBTN.onRelease = function () {
gotoAndStop(6);
};
creditBTN.onRelease = function () {
gotoAndStop(7);
};
hundredBTN._visible = _root.checkNumLocks() == 117;
hundredBTN.onRelease = function () {
gotoAndStop(8);
};
}
frame 1 {
removeMovieClip(containMC);
pagenum = 1;
nextBtn.stop();
backBtn.stop();
nextBtn.onRelease = function () {
_root.clickA.start();
if (pagenum < 3) {
backBtn._visible = true;
++pagenum;
com.greensock.TweenMax.to(instructMC, 0.5, {'_x': 350 - (pagenum - 1) * 513, 'ease': com.greensock.easing.Strong.easeOut});
if (pagenum == 3) {
nextBtn._visible = false;
}
}
};
backBtn._visible = false;
backBtn.onRelease = function () {
_root.clickA.start();
if (pagenum > 1) {
nextBtn._visible = true;
--pagenum;
com.greensock.TweenMax.to(instructMC, 0.5, {'_x': 350 - (pagenum - 1) * 513, 'ease': com.greensock.easing.Strong.easeOut});
}
if (pagenum <= 1) {
backBtn._visible = false;
}
};
nextBtn.onRollOver = function () {
_root.rollA.start();
nextBtn.gotoAndStop(2);
};
backBtn.onRollOver = function () {
_root.rollA.start();
backBtn.gotoAndStop(2);
};
nextBtn.onRollOut = function () {
nextBtn.gotoAndStop(1);
};
backBtn.onRollOut = function () {
backBtn.gotoAndStop(1);
};
}
frame 2 {
containMC._x = 363;
containMC._y = -39;
count = 0;
drag = false;
myArray = new Array(1, 2, 3, 5, 8, 10, 11, 12, 20, 21, 25, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46);
for (var i in _root.user.data.unlockedTips) {
for (var m in myArray) {
if (_root.user.data.unlockedTips[i] == myArray[m]) {
var newBox = 'bbox' + containMC.getNextHighestDepth();
containMC.attachMovie('whiteBox', newBox, containMC.getNextHighestDepth(), {'_y': -5 + count * 100, '_width': 628, '_height': 93, '_alpha': 20});
var newTip = 'tip' + containMC.getNextHighestDepth();
containMC.attachMovie('tips', newTip, containMC.getNextHighestDepth(), {'_y': count * 100, '_xscale': 90, '_yscale': 90});
containMC[newTip].gotoAndStop(myArray[m]);
++count;
myArray.splice(m, 1);
}
}
}
initHeight = containMC._height;
if (initHeight < 363) {
initHeight = 363;
}
percentage = 0;
scrollBar.onPress = function () {
_root.clickA.start();
drag = true;
};
onMouseUp = function () {
drag = false;
};
onEnterFrame = function () {
if (drag) {
var v2 = _root._ymouse - 200;
if (v2 < -60) {
scrollBar._y = -60;
} else {
if (v2 > 150) {
scrollBar._y = 150;
} else {
scrollBar._y = v2;
}
}
percentage = 1.07 - (0.5 - (scrollBar._y - 60) / 210);
containMC._y = -39 - (initHeight - 363 + 70) * percentage;
}
};
}
frame 3 {
containBMC._x = 363;
containBMC._y = -39;
count = 0;
drag = false;
myArray = new Array(4, 6, 7, 8, 17, 22, 23, 51, 52, 53);
for (var i in _root.user.data.unlockedTips) {
for (var m in myArray) {
if (_root.user.data.unlockedTips[i] == myArray[m]) {
var newBox = 'bbox' + containBMC.getNextHighestDepth();
containBMC.attachMovie('whiteBox', newBox, containBMC.getNextHighestDepth(), {'_y': -5 + count * 100, '_width': 628, '_height': 93, '_alpha': 20});
var newTip = 'tip' + containBMC.getNextHighestDepth();
containBMC.attachMovie('tips', newTip, containBMC.getNextHighestDepth(), {'_y': count * 100, '_xscale': 90, '_yscale': 90});
containBMC[newTip].gotoAndStop(myArray[m]);
++count;
myArray.splice(m, 1);
}
}
}
initHeight = containBMC._height;
if (initHeight < 363) {
initHeight = 363;
}
percentage = 0;
scrollBarB.onPress = function () {
_root.clickA.start();
drag = true;
};
onMouseUp = function () {
drag = false;
};
onEnterFrame = function () {
if (drag) {
var v2 = _root._ymouse - 200;
if (v2 < -60) {
scrollBarB._y = -60;
} else {
if (v2 > 150) {
scrollBarB._y = 150;
} else {
scrollBarB._y = v2;
}
}
percentage = 1.07 - (0.5 - (scrollBarB._y - 60) / 210);
containBMC._y = -39 - (initHeight - 363 + 70) * percentage;
}
};
}
frame 4 {
containCMC._x = 363;
containCMC._y = -39;
count = 0;
drag = false;
myArray = new Array(13, 14, 15, 16, 18, 19, 26, 47, 48, 49, 50);
for (var i in _root.user.data.unlockedTips) {
for (var m in myArray) {
if (_root.user.data.unlockedTips[i] == myArray[m]) {
var newBox = 'bbox' + containCMC.getNextHighestDepth();
containCMC.attachMovie('whiteBox', newBox, containCMC.getNextHighestDepth(), {'_y': -5 + count * 100, '_width': 628, '_height': 93, '_alpha': 20});
var newTip = 'tip' + containCMC.getNextHighestDepth();
containCMC.attachMovie('tips', newTip, containCMC.getNextHighestDepth(), {'_y': count * 100, '_xscale': 90, '_yscale': 90});
containCMC[newTip].gotoAndStop(myArray[m]);
++count;
myArray.splice(m, 1);
}
}
}
initHeight = containCMC._height;
if (initHeight < 363) {
initHeight = 363;
}
percentage = 0;
scrollBarC.onPress = function () {
_root.clickA.start();
drag = true;
};
onMouseUp = function () {
drag = false;
};
onEnterFrame = function () {
if (drag) {
var v2 = _root._ymouse - 200;
if (v2 < -60) {
scrollBarC._y = -60;
} else {
if (v2 > 150) {
scrollBarC._y = 150;
} else {
scrollBarC._y = v2;
}
}
percentage = 1.07 - (0.5 - (scrollBarC._y - 60) / 210);
containCMC._y = -39 - (initHeight - 363 + 70) * percentage;
}
};
}
frame 5 {
pagenum = 1;
nextBtn.stop();
backBtn.stop();
nextBtn.onRelease = function () {
_root.clickA.start();
if (pagenum < 5) {
backBtn._visible = true;
++pagenum;
com.greensock.TweenMax.to(instructMC, 0.5, {'_x': 350 - (pagenum - 1) * 510, 'ease': com.greensock.easing.Strong.easeOut});
if (pagenum == 5) {
nextBtn._visible = false;
}
}
};
backBtn._visible = false;
backBtn.onRelease = function () {
_root.clickA.start();
if (pagenum > 1) {
nextBtn._visible = true;
--pagenum;
com.greensock.TweenMax.to(instructMC, 0.5, {'_x': 350 - (pagenum - 1) * 510, 'ease': com.greensock.easing.Strong.easeOut});
}
if (pagenum <= 1) {
backBtn._visible = false;
}
};
nextBtn.onRollOver = function () {
_root.rollA.start();
nextBtn.gotoAndStop(2);
};
backBtn.onRollOver = function () {
_root.rollA.start();
backBtn.gotoAndStop(2);
};
nextBtn.onRollOut = function () {
nextBtn.gotoAndStop(1);
};
backBtn.onRollOut = function () {
backBtn.gotoAndStop(1);
};
}
frame 6 {
containMCD._x = 363;
containMCD._y = -39;
count = 0;
drag = false;
containMCD.gotoAndStop(3 - _root.user.data.ngArray[1]);
initHeight = containMCD._height;
if (initHeight < 363) {
initHeight = 363;
}
percentage = 0;
scrollBarD.onPress = function () {
_root.clickA.start();
drag = true;
};
onMouseUp = function () {
drag = false;
};
onEnterFrame = function () {
if (drag) {
var v2 = _root._ymouse - 200;
if (v2 < -60) {
scrollBarD._y = -60;
} else {
if (v2 > 150) {
scrollBarD._y = 150;
} else {
scrollBarD._y = v2;
}
}
percentage = 1.07 - (0.5 - (scrollBarD._y - 60) / 210);
containMCD._y = -39 - (initHeight - 363 + 70) * percentage;
}
};
}
frame 7 {
containMCE._x = 363;
containMCE._y = -39;
count = 0;
drag = false;
initHeight = containMCE._height;
if (initHeight < 363) {
initHeight = 363;
}
percentage = 0;
scrollBarE.onPress = function () {
_root.clickA.start();
drag = true;
};
onMouseUp = function () {
drag = false;
};
onEnterFrame = function () {
if (drag) {
var v2 = _root._ymouse - 200;
if (v2 < -60) {
scrollBarE._y = -60;
} else {
if (v2 > 150) {
scrollBarE._y = 150;
} else {
scrollBarE._y = v2;
}
}
percentage = 1.07 - (0.5 - (scrollBarE._y - 60) / 210);
containMCE._y = -39 - (initHeight - 363 + 70) * percentage;
}
};
}
frame 8 {
containMCF._x = 363;
containMCF._y = -39;
count = 0;
drag = false;
initHeight = containMCF._height;
if (initHeight < 363) {
initHeight = 363;
}
percentage = 0;
scrollBarF.onPress = function () {
_root.clickA.start();
drag = true;
};
onMouseUp = function () {
drag = false;
};
onEnterFrame = function () {
if (drag) {
var v2 = _root._ymouse - 200;
if (v2 < -60) {
scrollBarF._y = -60;
} else {
if (v2 > 150) {
scrollBarF._y = 150;
} else {
scrollBarF._y = v2;
}
}
percentage = 1.07 - (0.5 - (scrollBarF._y - 60) / 210);
containMCF._y = -39 - (initHeight - 363 + 70) * percentage;
}
};
}
}
movieClip 8047 HUDstats {
frame 1 {
function attachVisibleFunc(btnA, txtB, backC, frontD) {
btnA._alpha = 0;
frontD._visible = false;
backC._visible = frontD._visible;
txtB._visible = frontD._visible;
btnA.onRollOver = function () {
_root.rollA.start();
btnA._alpha = 100;
frontD._visible = true;
backC._visible = frontD._visible;
txtB._visible = frontD._visible;
};
btnA.onRollOut = function () {
btnA._alpha = 0;
frontD._visible = false;
backC._visible = frontD._visible;
txtB._visible = frontD._visible;
};
}
attachVisibleFunc(scoreBox, scoreInfoTXT, backBox, frontBox);
attachVisibleFunc(scoreBoxB, scoreInfoTXTB, backBoxB, frontBoxB);
attachVisibleFunc(scoreBoxC, EXTxt, backBoxC, frontBoxC);
}
}
movieClip 8048 hollyB {
}
movieClip 8053 {
}
movieClip 8122 {
}
movieClip 8178 {
}
movieClip 8179 {
}
movieClip 8196 effectGreenfire {
}
movieClip 8206 {
}
movieClip 8214 {
}
movieClip 8216 {
}
movieClip 8304 hokietron {
frame 1 {
stop();
this.hitbox._visible = false;
this.spikebox._visible = this.hitbox._visible;
}
frame 68 {
guardfunc();
}
frame 111 {
stop();
revert();
}
frame 160 {
gotoAndPlay('sway');
}
frame 187 {
stance = 'BLASTING';
}
frame 207 {
stance = 'BLASTER';
loops = 0;
}
frame 221 {
revert();
}
frame 298 {
revert();
}
frame 357 {
eyefunc();
}
frame 458 {
deadfunc();
}
frame 617 {
stop();
}
}
movieClip 8332 {
frame 10 {
stop();
}
}
movieClip 8333 hokietronIntro {
frame 392 {
_root.finishFunc();
}
frame 405 {
stop();
}
}
movieClip 8350 {
frame 1 {
gotoAndStop(random(3) + 1);
}
}
movieClip 8351 hokieC {
frame 45 {
gotoAndPlay(1);
}
}
movieClip 8363 hokieB {
frame 18 {
gotoAndPlay(1);
}
}
movieClip 8380 hokieA {
frame 34 {
gotoAndPlay(1);
}
}
movieClip 8383 highwayB {
}
movieClip 8388 HangShop {
frame 2 {
saber.stop();
}
}
movieClip 8592 groundFlame {
}
movieClip 8599 {
}
movieClip 8618 HangMC {
frame 1 {
stop();
callNode = true;
}
frame 24 {
callNode = true;
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
frame 46 {
callNode = true;
}
frame 55 {
callNode = true;
}
frame 71 {
callNode = true;
}
frame 87 {
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
frame 91 {
stop();
}
frame 114 {
callNode = true;
}
frame 137 {
callNode = true;
}
frame 142 {
callNode = true;
}
frame 150 {
callNode = true;
}
frame 154 {
callNode = true;
_root.shakeCam(0, 5);
}
frame 169 {
callNode = true;
}
frame 173 {
callNode = true;
}
frame 180 {
callNode = true;
}
frame 185 {
callNode = true;
}
frame 189 {
callNode = true;
_root.shakeCam();
}
frame 193 {
callNode = true;
}
frame 205 {
callNode = true;
}
frame 218 {
callNode = true;
_root.shakeCam(5, 0);
}
frame 221 {
callNode = true;
}
frame 227 {
callNode = true;
stop();
}
frame 239 {
stop();
}
frame 240 {
if (myBox.techCool == undefined) {
removeMovieClip(this);
}
}
frame 265 {
spawnPortrait();
}
frame 340 {
ultraGo();
}
frame 395 {
ultraFinal();
}
frame 434 {
ultraRevert();
}
}
movieClip 8620 HangEEffectB {
frame 45 {
removeMovieClip(this);
}
}
movieClip 8622 HangEEffect {
frame 45 {
removeMovieClip(this);
}
}
movieClip 8624 grassCrowdA {
}
movieClip 8629 {
}
movieClip 8631 {
}
movieClip 8638 fieldSidewalkAB_TR {
}
movieClip 8641 {
}
movieClip 8643 {
}
movieClip 8647 drillNightB {
}
movieClip 8650 {
}
movieClip 8652 {
}
movieClip 8657 {
}
movieClip 8660 {
}
movieClip 8665 {
}
movieClip 8670 {
}
movieClip 8672 {
}
movieClip 8677 {
}
movieClip 8679 {
}
movieClip 8684 forestC {
}
movieClip 8687 {
}
movieClip 8692 {
}
movieClip 8694 {
}
movieClip 8699 {
}
movieClip 8705 {
}
movieClip 8707 {
}
movieClip 8712 {
}
movieClip 8717 {
}
movieClip 8719 {
}
movieClip 8725 {
}
movieClip 8727 {
}
movieClip 8731 {
}
movieClip 8734 bitlandA {
}
movieClip 8739 {
}
movieClip 8744 {
}
movieClip 8746 {
}
movieClip 8751 {
}
movieClip 8756 {
}
movieClip 8758 {
}
movieClip 8763 {
}
movieClip 8765 {
}
movieClip 8767 bigBoiA {
}
movieClip 8771 goalsList {
frame 1 {
function updateDisplay() {
if (_root.user.data.bonusArray[_currentframe] == true) {
btnA._visible = false;
btnB._visible = false;
lockMC._visible = false;
aTXT.text = 'Rewarded:';
objectTXT.text = 'Bonus Complete!';
starMC._visible = true;
} else {
if (requirements == true) {
starMC._visible = false;
btnA.onRollOver = function () {
initBox(objectiveA, 177);
};
btnB.onRollOver = function () {
initBox(objectiveB, 251);
};
btnA.onRollOut = function () {
removeMovieClip(boxTXT);
};
btnB.onRollOut = function () {
removeMovieClip(boxTXT);
};
btnA.onDragOut = function () {
removeMovieClip(boxTXT);
};
btnB.onDragOut = function () {
removeMovieClip(boxTXT);
};
aTXT.text = 'Bonus Reward:';
lockMC._visible = true;
} else {
starMC._visible = false;
objectTXT.text = '';
btnA._visible = false;
btnB._visible = false;
lockMC._visible = true;
aTXT.text = 'Bonus Locked:';
bTXT.text = lockText;
}
}
bestTXT.text = '[' + _root.convertComma(_root.user.data.bestArray[_currentframe]) + 'pts]';
}
function initBox(str, xpos) {
removeMovieClip(boxTXT);
attachMovie('objectiveTXT', 'boxTXT', this.getNextHighestDepth(), {'_y': -29, '_x': xpos});
boxTXT.onEnterFrame = function () {
with (boxTXT) {
_x = -350 + _root._xmouse;
_y = -200 + _root._ymouse + 50;
}
};
boxTXT.TXT.text = str;
}
}
frame 1 {
objectiveA = 'Beat the level in 90 seconds.';
objectiveB = 'Have only 1 fighter in the team.';
requirements = _root.user.data.MattUpgrades[0] == 'Unlocked';
lockText = 'Unlock Stick Matt to attempt bonus.';
updateDisplay();
}
frame 2 {
objectiveA = 'Defeat at least 2 Enemies';
objectiveB = 'Have only 3 fighters in the team.';
requirements = true;
lockText = '';
updateDisplay();
}
frame 3 {
objectiveA = 'Hit a velocity of at least 300.';
objectiveB = 'Reach the maximum lead kick charge.';
requirements = true;
lockText = '';
updateDisplay();
}
frame 4 {
objectiveA = 'Hit BigBlue higher than the visible sky.';
objectiveB = 'Take no damage from the football team.';
requirements = true;
lockText = '';
updateDisplay();
}
frame 5 {
objectiveA = 'Don\'t let your main guy take damage.';
objectiveB = '';
requirements = _root.user.data.levelProgress > 10;
lockText = 'Surpass Lvl 10 to attempt this bonus.';
updateDisplay();
}
frame 6 {
objectiveA = 'Hit BigBlue higher than the visible sky.';
objectiveB = 'Reach a 12x Combo.';
requirements = _root.user.data.WesUpgrades[0] == 'Unlocked';
lockText = 'Unlock Stick Wes to attempt bonus.';
updateDisplay();
}
frame 7 {
objectiveA = 'Defeat at least 4 Enemies';
objectiveB = 'Have only 4 fighters in the team.';
requirements = _root.user.data.StewartUpgrades[0] == 'Unlocked';
lockText = 'Unlock Stickwart to attempt bonus.';
updateDisplay();
}
frame 8 {
objectiveA = 'Break at least 27 trees.';
requirements = _root.user.data.JKUpgrades[0] == 'Unlocked';
lockText = 'Unlock Stick JK to attempt bonus.';
updateDisplay();
}
frame 9 {
objectiveA = 'Beat the level in 90 seconds.';
objectiveB = 'Obtain a score of at least 25000';
requirements = _root.user.data.BrianUpgrades[0] == 'Unlocked';
lockText = 'Unlock Stick Brian to attempt bonus.';
updateDisplay();
}
frame 10 {
objectiveA = 'Beat the level in 150 seconds.';
requirements = _root.user.data.levelProgress > 10;
lockText = 'Beat this level to attempt bonus.';
updateDisplay();
}
frame 11 {
objectiveA = 'Destroy at least 3 Mobiles.';
objectiveB = 'Have only 5 fighters in the team.';
requirements = _root.user.data.SagarUpgrades[0] == 'Unlocked';
lockText = 'Unlock Stagar to attempt bonus.';
updateDisplay();
}
frame 12 {
objectiveA = 'Defeat at least 8 Enemies';
requirements = true;
lockText = '';
updateDisplay();
}
frame 13 {
objectiveA = 'Hit a velocity of at least 300.';
objectiveB = 'Reach a 25x Combo.';
requirements = true;
lockText = '';
updateDisplay();
}
frame 14 {
objectiveA = 'Hit BigBlue higher than the visible sky.';
objectiveB = 'Defeat at least 4 Azures.';
requirements = _root.user.data.JoshUpgrades[0] == 'Unlocked';
lockText = 'Unlock Joshtick to attempt bonus.';
updateDisplay();
}
frame 15 {
objectiveA = 'Use at least 2 Ultra Attacks.';
requirements = true;
lockText = '';
updateDisplay();
}
frame 16 {
objectiveA = 'Beat the level in 80 seconds.';
requirements = _root.user.data.DanUpgrades[0] == 'Unlocked';
lockText = 'Unlock Stick Dan to attempt bonus.';
updateDisplay();
}
frame 17 {
objectiveA = 'Use no Ultra Attacks.';
objectiveB = 'Reach a score of at least 200000';
requirements = true;
lockText = '';
updateDisplay();
}
frame 18 {
objectiveA = 'Beat the level in 120 seconds.';
requirements = _root.user.data.BriStickUpgrades[0] == 'Unlocked';
lockText = 'Unlock BriStick to attempt bonus.';
updateDisplay();
}
frame 19 {
objectiveA = 'Defeat 20 Enemies.';
objectiveB = 'Reach a 50x Combo.';
requirements = _root.user.data.KirbyUpgrades[0] == 'Unlocked';
lockText = 'Unlock SticKirby to attempt bonus.';
updateDisplay();
}
frame 20 {
objectiveA = 'Use at least 4 Ultra Attacks.';
requirements = _root.user.data.JorgeUpgrades[0] == 'Unlocked';
lockText = 'Unlock Stick Jorge to attempt bonus.';
updateDisplay();
}
frame 21 {
updateDisplay();
}
}
movieClip 8777 {
}
movieClip 8785 effectWater {
frame 1 {
onEnterFrame = function () {
if (_root.PHASE == 'FOLLOW') {
_x = _x - _root.xspeed / _root.speedA;
}
_alpha = _alpha - 2;
if (_alpha <= 0) {
removeMovieClip(this);
}
};
}
frame 24 {
stop();
}
}
movieClip 8787 gingerMan {
frame 43 {
stop();
}
}
movieClip 8800 footballTeam {
}
movieClip 8811 flashNade {
frame 1 {
stop();
}
frame 22 {
stop();
removeMovieClip(this);
}
}
movieClip 8862 {
}
movieClip 8864 {
}
movieClip 8930 {
frame 14 {
stop();
}
}
movieClip 8973 bluePortal {
}
movieClip 8976 {
}
movieClip 9047 {
}
movieClip 9115 {
}
movieClip 9118 {
}
movieClip 9121 {
}
movieClip 9124 {
}
movieClip 9126 {
}
movieClip 9157 EtherLordBody {
}
movieClip 9159 {
}
movieClip 9166 {
frame 1 {
stop();
}
}
movieClip 9181 EtherLordHead {
frame 1 {
hitbox._visible = false;
}
frame 37 {
revert();
}
frame 66 {
revert();
}
frame 83 {
breathFunc();
}
frame 101 {
revert();
}
frame 152 {
gotoAndPlay('HURTLOOP');
}
frame 176 {
stop();
}
frame 227 {
ultraGo();
}
frame 264 {
ultraBlobs();
}
frame 267 {
ultraBlobs();
}
frame 270 {
ultraBlobs();
}
frame 274 {
ultraBlobs();
}
frame 278 {
ultraBlobs();
}
frame 281 {
ultraBlobs();
}
frame 283 {
ultraBlobs();
}
frame 297 {
ultraRevert();
}
frame 323 {
deadfunc();
}
frame 411 {
stop();
}
}
movieClip 9184 {
}
movieClip 9186 {
}
movieClip 9188 {
}
movieClip 9190 {
}
movieClip 9197 {
}
movieClip 9211 {
}
movieClip 9223 BigBoiMC {
frame 1 {
hitbox._visible = false;
}
frame 61 {
revert();
gotoAndPlay(1);
}
frame 93 {
checkPound(this.dmgBox);
this.dmgBox._visible = false;
_root.shakeCam(0, 60);
}
frame 123 {
revert();
}
frame 162 {
checkPoundB(this.dmgBox);
this.dmgBox._visible = false;
}
frame 164 {
checkPound(this.dmgBox);
this.dmgBox._visible = false;
_root.shakeCam(0, 50);
}
frame 187 {
hitbox._visible = false;
}
frame 203 {
revert();
}
frame 204 {
hitbox._visible = false;
}
frame 279 {
revert();
}
frame 280 {
hitbox._visible = false;
}
frame 295 {
stop();
this.eye = focal;
}
frame 307 {
revert();
}
frame 308 {
hitbox._visible = false;
}
frame 325 {
hitbox._visible = false;
}
frame 328 {
gotoAndPlay('LOOP');
}
frame 401 {
checkPound(this.dmgBox);
this.dmgBox._visible = false;
_root.shakeCam(0, 20);
}
frame 420 {
revert();
recover();
}
frame 425 {
gotoAndPlay('DEAD');
}
}
movieClip 9226 bgWingFront {
}
movieClip 9232 {
}
movieClip 9243 {
}
movieClip 9245 {
}
movieClip 9259 {
}
movieClip 9264 {
}
movieClip 9425 {
}
movieClip 9436 {
}
movieClip 9438 finalCut {
frame 398 {
A.gotoAndStop(9);
B.stop();
C.stop();
}
frame 453 {
A.gotoAndPlay(1);
B.gotoAndPlay(1);
C.gotoAndPlay(1);
}
frame 675 {
sea.stop();
}
frame 711 {
sea.play();
}
frame 755 {
sea.stop();
}
frame 1817 {
removeMovieClip(_root.skipBtn);
_root.isCredits = 2;
_root.newSong(_root.MainTheme, 0.1, 40);
}
frame 3115 {
if (_root.user.data.hardMode == false) {
_root.finishFunc();
stop();
} else {
_root.newSong(null, 1, 0);
}
}
frame 3557 {
stickAstly.onRelease = function () {
getURL('http://www.youtube.com/watch?v=oHg5SJYRHA0', '_blank');
delete stickAstly.onRelease;
};
}
frame 4200 {
stop();
endBTN.onRelease = function () {
gotoAndPlay('FINISH');
};
}
frame 4254 {
_root.finishFunc();
stop();
}
}
movieClip 9444 fiftyPercent {
frame 1 {
stop();
}
}
movieClip 9446 fieldSidewalkAB {
}
movieClip 9448 fieldMap {
frame 1 {
function updateLoc(reUpdate) {
if (reUpdate == undefined) {
return 350 - initWidth / 2 + (initWidth - 600) * (0.5 - (scrollBar._x - 54) / 603);
} else {
return 350 - initWidth / 2 + (initWidth - 600) * (-0.5 + (scrollBar._x - 54) / 603);
}
}
drag = false;
initWidth = lvlList._width;
scrollBar.onPress = function () {
_root.clickA.start();
drag = true;
};
scrollBar._x = 54 + (_root.user.data.currentLevel / _root.user.data.levelProgress) * 603;
onMouseUp = function () {
drag = false;
};
onEnterFrame = function () {
if (drag) {
var v2 = _root._xmouse;
if (v2 < 54) {
scrollBar._x = 54;
} else {
if (v2 > 657) {
scrollBar._x = 657;
} else {
scrollBar._x = v2;
}
}
lvlList._x = updateLoc();
}
};
lvlList._x = updateLoc();
}
}
movieClip 9464 {
frame 57 {
stop();
}
}
movieClip 9505 {
frame 84 {
stop();
}
}
movieClip 9511 {
frame 19 {
stop();
}
}
movieClip 9540 {
frame 43 {
stop();
}
}
movieClip 9554 {
frame 12 {
stop();
}
}
movieClip 9592 {
frame 35 {
stop();
}
}
movieClip 9632 effectDust {
frame 1 {
onEnterFrame = function () {
if (_root.PHASE == 'FOLLOW') {
_x = _x - _root.xspeed / _root.speedA;
}
_alpha = _alpha - 2;
if (_alpha <= 0) {
removeMovieClip(this);
}
};
}
frame 17 {
stop();
}
}
movieClip 9649 etheroutro {
frame 1 {
T.gotoAndStop(57);
}
frame 195 {
T.gotoAndPlay(28);
}
frame 218 {
A.gotoAndPlay(24);
}
frame 262 {
_root.finishFunc();
}
frame 275 {
stop();
}
}
movieClip 9694 etherBlob {
}
movieClip 9716 {
}
movieClip 9721 etherintro {
frame 72 {
if (_root.lock) {
_root._alpha = 0;
}
}
frame 510 {
_root.finishFunc();
}
frame 523 {
stop();
}
}
movieClip 9726 EricShop {
}
movieClip 9920 EricMC {
frame 1 {
stop();
callNode = true;
}
frame 37 {
callNode = true;
}
frame 46 {
callNode = true;
}
frame 68 {
callNode = true;
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
frame 77 {
callNode = true;
}
frame 82 {
callNode = true;
stop();
}
frame 84 {
play();
}
frame 132 {
ultraGo();
}
frame 166 {
castShot(64, -43, -6.7, 50);
}
frame 171 {
castShot(true, 0, 0, 50);
}
frame 181 {
castShot(77, -13, 12.7, 50);
}
frame 189 {
com.greensock.TweenMax.to(this, 6, {'useFrames': true, '_y': '-20', 'yoyo': true, 'repeat': 1, 'ease': com.greensock.easing.Strong.easeOut});
castShot(56, 4, 44.2, 70);
}
frame 203 {
castShot(56, 4, 44.2, 90);
com.greensock.TweenMax.to(this, 6, {'useFrames': true, '_y': '-40', 'ease': com.greensock.easing.Strong.easeOut});
}
frame 209 {
stop();
ultraRevert();
}
frame 227 {
stop();
}
}
movieClip 9922 bgSun {
frame 1 {
stop();
}
}
movieClip 9925 {
}
movieClip 9948 {
frame 59 {
stop();
}
}
movieClip 9978 entryCutscene {
frame 1 {
lp.gotoAndStop(1);
lpb.gotoAndStop(2);
sun.gotoAndStop(3);
}
frame 270 {
B.stop();
}
frame 511 {
_root.finishFunc();
}
frame 539 {
stop();
}
}
movieClip 9979 emptyABC {
}
movieClip 9982 effectSnow {
}
movieClip 9994 effectSnipe {
frame 16 {
stop();
removeMovieClip(this);
}
}
movieClip 9995 effectSlash {
frame 10 {
stop();
removeMovieClip(this);
}
}
movieClip 9999 effectLeaf {
}
movieClip 10002 effectHitA {
frame 5 {
stop();
removeMovieClip(this);
}
}
movieClip 10006 effectFirefly {
}
movieClip 10010 effectCircle {
frame 9 {
stop();
removeMovieClip(this);
}
}
movieClip 10014 effectBits {
frame 1 {
onEnterFrame = function () {
if (_root.PHASE == 'FOLLOW') {
_x = _x - _root.xspeed / _root.speedA;
}
if (_x <= _root.cam._x - 600) {
removeMovieClip(this);
}
};
}
frame 47 {
stop();
}
}
movieClip 10021 dropAdd {
frame 1 {
stop();
}
}
movieClip 10023 {
}
movieClip 10123 comboMC {
frame 1 {
stop();
}
}
movieClip 10125 {
frame 1 {
stop();
}
}
movieClip 10129 {
}
movieClip 10135 {
frame 1 {
stop();
}
}
movieClip 10136 displayMC {
frame 1 {
stop();
}
}
movieClip 10144 dBullet {
frame 1 {
stop();
}
frame 7 {
stop();
removeMovieClip(this);
}
}
movieClip 10150 DanShop {
}
movieClip 10306 {
}
movieClip 10308 DanBullet {
}
movieClip 10317 DanMC {
frame 1 {
stop();
callNode = true;
}
frame 46 {
callNode = true;
}
frame 60 {
callNode = true;
}
frame 63 {
callNode = true;
}
frame 72 {
callNode = true;
}
frame 77 {
callNode = true;
}
frame 83 {
callNode = true;
}
frame 88 {
callNode = true;
}
frame 92 {
callNode = true;
}
frame 95 {
callNode = true;
}
frame 103 {
callNode = true;
}
frame 112 {
callNode = true;
}
frame 113 {
fireBullet();
}
frame 114 {
gotoAndPlay('loop');
}
}
movieClip 10318 crowdMC {
}
movieClip 10320 CritHit {
}
movieClip 10335 coreyUltra {
frame 60 {
stop();
removeMovieClip(this);
}
}
movieClip 10339 CoreyShop {
}
movieClip 10347 {
frame 36 {
gotoAndPlay(1);
}
frame 53 {
gotoAndPlay(1);
}
}
movieClip 10401 CoreyMC {
frame 16 {
goBack();
}
frame 30 {
stop();
}
frame 90 {
ultraGo();
}
frame 119 {
ultraCheckHit();
_root.landSound();
_root.groundEffect(this, _root.groundType);
}
frame 128 {
ultraRevert();
}
}
movieClip 10403 closeSidewalkA_TR {
}
movieClip 10409 circleMC {
frame 7 {
stop();
}
}
movieClip 10411 charSound {
frame 10 {
stop();
removeMovieClip(this);
}
frame 16 {
stop();
removeMovieClip(this);
}
frame 23 {
stop();
removeMovieClip(this);
}
frame 30 {
stop();
removeMovieClip(this);
}
frame 38 {
stop();
removeMovieClip(this);
}
frame 44 {
stop();
removeMovieClip(this);
}
frame 54 {
stop();
removeMovieClip(this);
}
frame 60 {
stop();
removeMovieClip(this);
}
frame 67 {
stop();
removeMovieClip(this);
}
frame 77 {
stop();
removeMovieClip(this);
}
frame 83 {
stop();
removeMovieClip(this);
}
frame 95 {
stop();
removeMovieClip(this);
}
frame 106 {
stop();
removeMovieClip(this);
}
frame 118 {
stop();
removeMovieClip(this);
}
frame 129 {
stop();
removeMovieClip(this);
}
frame 142 {
stop();
removeMovieClip(this);
}
frame 156 {
stop();
removeMovieClip(this);
}
frame 175 {
stop();
removeMovieClip(this);
}
frame 189 {
stop();
removeMovieClip(this);
}
frame 196 {
stop();
removeMovieClip(this);
}
frame 204 {
stop();
removeMovieClip(this);
}
frame 212 {
stop();
removeMovieClip(this);
}
frame 219 {
stop();
removeMovieClip(this);
}
frame 229 {
stop();
removeMovieClip(this);
}
frame 240 {
stop();
removeMovieClip(this);
}
frame 250 {
stop();
removeMovieClip(this);
}
frame 260 {
stop();
removeMovieClip(this);
}
frame 266 {
stop();
removeMovieClip(this);
}
}
movieClip 10413 ChargeFrameMC {
}
movieClip 10415 ChargeBarThick {
}
movieClip 10417 ChargeBarMC {
}
movieClip 10421 BriStickShop {
frame 2 {
saber.stop();
}
}
movieClip 10437 BriStickMC {
}
movieClip 10441 BrianShop {
}
movieClip 10493 BrianMC {
frame 1 {
callNode = true;
}
frame 9 {
callNode = true;
}
frame 17 {
callNode = true;
}
frame 34 {
callNode = true;
}
frame 39 {
callNode = true;
}
frame 62 {
callNode = true;
}
frame 68 {
callNode = true;
}
frame 81 {
callNode = true;
}
frame 107 {
callNode = true;
stop();
}
}
movieClip 10495 boxLockMC {
}
movieClip 10512 {
frame 21 {
stop();
}
}
movieClip 10531 {
}
movieClip 10599 {
}
movieClip 10611 BossIntro {
frame 681 {
_root.finishFunc();
}
frame 693 {
stop();
}
}
movieClip 10621 bonus9scene {
frame 1 {
stop();
}
frame 1 {
stop();
}
frame 10 {
mc.lockMC._visible = false;
}
frame 26 {
stop();
}
}
movieClip 10624 bonus8scene {
frame 1 {
stop();
}
frame 10 {
mc.lockMC._visible = false;
}
frame 26 {
stop();
}
}
movieClip 10627 bonus7scene {
frame 1 {
stop();
}
frame 1 {
stop();
}
frame 10 {
mc.lockMC._visible = false;
}
frame 26 {
stop();
}
}
movieClip 10631 bonus6scene {
frame 1 {
stop();
}
frame 1 {
stop();
}
frame 10 {
mc.lockMC._visible = false;
}
frame 26 {
stop();
}
}
movieClip 10634 bonus5scene {
frame 1 {
stop();
}
frame 26 {
stop();
}
}
movieClip 10638 bonus4scene {
frame 1 {
stop();
}
frame 1 {
stop();
}
frame 10 {
mc.lockMC._visible = false;
}
frame 26 {
stop();
}
}
movieClip 10643 bonus3scene {
frame 1 {
stop();
}
frame 26 {
stop();
}
}
movieClip 10697 bonus2scene {
frame 1 {
stop();
}
frame 93 {
stop();
}
}
movieClip 10698 bonus21scene {
}
movieClip 10701 bonus20scene {
frame 1 {
stop();
}
frame 10 {
mc.lockMC._visible = false;
}
frame 26 {
stop();
}
}
movieClip 10781 bonus1scene {
frame 1 {
stop();
}
frame 105 {
stop();
}
}
movieClip 10784 bonus19scene {
frame 1 {
stop();
}
frame 1 {
stop();
}
frame 10 {
mc.lockMC._visible = false;
}
frame 26 {
stop();
}
}
movieClip 10787 bonus18scene {
frame 1 {
stop();
}
frame 10 {
mc.lockMC._visible = false;
}
frame 26 {
stop();
}
}
movieClip 10790 bonus17scene {
frame 1 {
stop();
}
frame 1 {
stop();
}
frame 26 {
stop();
}
}
movieClip 10793 bonus16scene {
frame 1 {
stop();
}
frame 10 {
mc.lockMC._visible = false;
}
frame 26 {
stop();
}
}
movieClip 10795 bonus15scene {
frame 1 {
stop();
}
frame 26 {
stop();
}
}
movieClip 10798 bonus14scene {
frame 1 {
stop();
}
frame 1 {
stop();
}
frame 10 {
mc.lockMC._visible = false;
}
frame 26 {
stop();
}
}
movieClip 10800 bonus13scene {
frame 1 {
stop();
}
frame 1 {
stop();
}
frame 26 {
stop();
}
}
movieClip 10803 bonus12scene {
frame 1 {
stop();
}
frame 10 {
mc.lockMC._visible = false;
}
frame 26 {
stop();
}
}
movieClip 10806 bonus11scene {
frame 1 {
stop();
}
frame 1 {
stop();
}
frame 10 {
mc.lockMC._visible = false;
}
frame 26 {
stop();
}
}
movieClip 10809 bonus10scene {
frame 1 {
stop();
}
frame 26 {
stop();
}
}
movieClip 10970 {
frame 52 {
stop();
}
}
movieClip 11031 blueTeamIntro {
frame 391 {
}
frame 391 {
T.gotoAndPlay(28);
}
frame 491 {
_root.finishFunc();
}
frame 504 {
stop();
}
}
movieClip 11042 {
frame 16 {
stop();
_parent.stance = 'REST';
}
}
movieClip 11058 {
frame 14 {
_parent.atkNode = true;
}
frame 28 {
stop();
}
}
movieClip 11096 {
frame 25 {
gotoAndPlay('loop');
}
frame 55 {
stop();
}
}
movieClip 11118 {
frame 40 {
stop();
}
}
movieClip 11119 BlueMC {
}
movieClip 11127 blueBit {
frame 17 {
removeMovieClip(this);
stop();
}
}
movieClip 11128 blasterPulse {
frame 96 {
stop();
removeMovieClip(this);
}
}
movieClip 11138 {
}
movieClip 11171 bitlandPort {
frame 1 {
onEnterFrame = function () {
innerMC.gotoAndStop(_root.oldBitFrame);
};
}
frame 19 {
onEnterFrame = function () {
innerMC.gotoAndStop(_root.newBitFrame);
};
_root.oldBitFrame = _root.newBitFrame;
}
frame 53 {
stop();
}
}
movieClip 11172 bitlandC {
}
movieClip 11174 bitlandAB {
}
movieClip 11182 BigBoiPart {
frame 16 {
stop();
removeMovieClip(this);
}
}
movieClip 11183 bigBoiB {
}
movieClip 11191 {
frame 11 {
stop();
}
}
movieClip 11197 {
frame 9 {
stop();
}
}
movieClip 11200 {
frame 62 {
stop();
}
}
movieClip 11212 {
frame 11 {
stop();
}
}
movieClip 11222 {
frame 10 {
stop();
}
}
movieClip 11224 {
frame 11 {
stop();
}
}
movieClip 11245 {
frame 37 {
stop();
}
}
movieClip 11290 {
frame 86 {
stop();
}
}
movieClip 11292 BigBlueMC {
}
movieClip 11295 {
}
movieClip 11385 bgVolunteers {
frame 1 {
stop();
}
frame 31 {
stop();
}
}
movieClip 11388 bgPylons {
}
movieClip 11391 bgPayne {
}
movieClip 11394 bgNHW {
}
movieClip 11399 bgHokiesField {
}
movieClip 11401 bgDX {
}
movieClip 11414 bgDrunk {
}
movieClip 11419 BenShop {
frame 2 {
saber.stop();
}
}
movieClip 11481 {
}
movieClip 11562 BenMC {
frame 1 {
stop();
callNode = true;
}
frame 16 {
callNode = true;
}
frame 28 {
callNode = true;
}
frame 31 {
callNode = true;
}
frame 35 {
callNode = true;
}
frame 49 {
callNode = true;
}
frame 54 {
callNode = true;
}
frame 60 {
callNode = true;
}
frame 64 {
callNode = true;
}
frame 81 {
callNode = true;
}
frame 83 {
callNode = true;
}
frame 85 {
callNode = true;
}
frame 87 {
callNode = true;
}
frame 89 {
callNode = true;
}
frame 91 {
callNode = true;
}
frame 93 {
callNode = true;
}
frame 95 {
callNode = true;
}
frame 100 {
callNode = true;
}
frame 151 {
stop();
}
frame 193 {
stop();
}
frame 195 {
play();
}
frame 261 {
ultraGo();
}
frame 271 {
hitFunc('MID');
}
frame 291 {
hitFunc('UP');
}
frame 295 {
hitFunc('UP');
}
frame 301 {
hitFunc('UP');
}
frame 304 {
hitFunc('DOWN');
}
frame 313 {
hitFunc('MID');
}
frame 321 {
hitFunc('UP');
}
frame 327 {
hitFunc('DOWN');
}
frame 335 {
hitFunc('DOWN');
}
frame 343 {
hitFunc('DOWN');
}
frame 351 {
hitFunc('UP');
}
frame 365 {
hitFunc('DOWN');
}
frame 379 {
hitFunc('UP');
}
frame 392 {
hitFunc('UP');
}
frame 396 {
hitFunc('UP');
}
frame 402 {
hitFunc('UP');
}
frame 413 {
hitFunc('MID');
}
frame 415 {
hitFunc('MID');
}
frame 417 {
hitFunc('MID');
}
frame 429 {
hitFunc('DOWN');
}
frame 431 {
hitFunc('DOWN');
}
frame 432 {
hitFunc('MID');
}
frame 433 {
hitFunc('DOWN');
}
frame 434 {
hitFunc('MID');
}
frame 435 {
hitFunc('DOWN');
}
frame 453 {
ultraRevert();
}
}
movieClip 11580 beamAttack {
frame 32 {
_root.shakeCam(0, 50);
}
frame 65 {
stop();
removeMovieClip(this);
}
}
movieClip 11584 {
frame 1 {
stop();
}
frame 54 {
gotoAndPlay('WARNING');
}
}
movieClip 11585 BBtrackerMC {
frame 1 {
onEnterFrame = function () {
if (_root.PHASE == 'DONE') {
removeMovieClip(this);
}
};
}
}
movieClip 11587 backgroundC {
}
movieClip 11592 {
}
movieClip 11668 AndrewMCRun {
frame 1 {
stop();
}
frame 13 {
stop();
}
frame 14 {
play();
}
frame 28 {
stop();
}
frame 46 {
stop();
recoverFunc();
}
frame 52 {
initAttack();
}
frame 54 {
canCombo = true;
}
frame 61 {
stop();
recoverFunc();
}
frame 67 {
initAttack();
}
frame 69 {
canCombo = true;
}
frame 77 {
stop();
recoverFunc();
}
frame 84 {
initAttack();
}
frame 86 {
initAttack();
}
frame 88 {
initAttack();
}
frame 90 {
initAttack();
}
frame 91 {
canCombo = true;
}
frame 101 {
stop();
recoverFunc();
}
frame 107 {
initAttack();
}
frame 109 {
initAttack();
}
frame 111 {
initAttack();
}
frame 121 {
stop();
}
}
movieClip 11708 AndrewMC {
frame 1 {
stop();
}
frame 30 {
stop();
}
frame 37 {
stop();
}
frame 62 {
stop();
}
}
movieClip 11709 advert {
}
movieClip 11714 AddisonShop {
}
movieClip 11812 AddisonMC {
frame 1 {
stop();
callNode = true;
}
frame 24 {
callNode = true;
}
frame 32 {
callNode = true;
}
frame 65 {
callNode = true;
}
frame 67 {
callNode = true;
}
frame 78 {
callNode = true;
}
frame 91 {
stop();
callNode = true;
}
frame 103 {
stop();
}
frame 105 {
play();
}
frame 144 {
ultraGo();
stop();
}
}
movieClip 11819 {
}
movieClip 11822 {
}
movieClip 11826 {
}
movieClip 11829 {
}
movieClip 11832 {
}
movieClip 11943 gglogo {
frame 278 {
_root.contFunc();
stop();
}
}
movieClip 11944 honeWaqet {
frame 1 {
stop();
}
frame 23 {
stop();
removeMovieClip(this);
}
}
movieClip 11945 CruiseMissile {
frame 3 {
gotoAndPlay(1);
}
frame 32 {
stop();
removeMovieClip(this);
}
}
movieClip 11955 resetAllMC {
}
movieClip 11994 {
}
movieClip 12123 {
}
movieClip 12243 {
}
movieClip 12395 {
}
movieClip 12436 ShortSummaryMC {
frame 1295 {
_root.closeSS();
}
frame 1296 {
stop();
}
}
movieClip 12450 {
}
movieClip 12451 {
}
movieClip 12452 {
}
movieClip 12454 {
}
movieClip 12455 {
}
movieClip 12456 {
}
movieClip 12462 {
}
movieClip 12463 menuBar {
}
movieClip 12465 objectiveTXT {
}
movieClip 12466 numKey {
}
movieClip 12468 grassCrowdA_TR {
}
movieClip 12470 retryShine {
}
movieClip 12489 {
frame 1 {
stop();
}
}
frame 3 {
function contFunc() {
removeMovieClip(gglogo);
play();
}
stop();
attachMovie('gglogo', 'gglogo', this.getNextHighestDepth(), {'_x': 350, '_y': 200});
}
frame 4 {
function reInitMain() {
removeMovieClip(MainThemeMC);
_root.createEmptyMovieClip('MainThemeMC', _root.getNextHighestDepth());
_root.MainTheme = new Sound(MainThemeMC);
_root.MainTheme.attachSound('MainTheme');
}
function reInitRun() {
removeMovieClip(RunThemeMC);
_root.createEmptyMovieClip('RunThemeMC', _root.getNextHighestDepth());
_root.RunTheme = new Sound(RunThemeMC);
_root.RunTheme.attachSound('RunTheme');
}
function newSong(mySong, time, vol) {
vol *= 1.2;
if (mySong !== currentSong) {
delete currentSong.onSoundComplete;
if (currentSong == RunTheme) {
stopAllSounds();
}
curPos = 0;
mySong.setVolume(0);
com.greensock.TweenLite.to(currentSong, time, {'volume': 0, 'onComplete': stopSound, 'onCompleteParams': [currentSong]});
com.greensock.TweenLite.to(mySong, time, {'volume': vol});
currentSong = mySong;
updateSoundMode();
} else {
if (currentSong.getVolume() !== vol) {
com.greensock.TweenLite.to(currentSong, time, {'volume': vol});
}
}
}
function newAmbi(myAmbi, time, vol) {
if (myAmbi !== currentAmbi) {
myAmbi.start(0, 150);
myAmbi.setVolume(0);
com.greensock.TweenLite.to(currentAmbi, time, {'volume': 0, 'onComplete': stopSound, 'onCompleteParams': [currentAmbi]});
com.greensock.TweenLite.to(myAmbi, time, {'volume': vol});
currentAmbi = myAmbi;
} else {
if (currentAmbi.getVolume() !== vol) {
com.greensock.TweenLite.to(currentAmbi, time, {'volume': vol});
}
}
}
function stopSound(daSong) {
daSong.stop();
}
function removeMC(targ) {
removeMovieClip(targ);
}
function updateSoundMode() {
if (user.data.soundOption == 1) {
curPos = currentSong.position / 1000;
if (isNaN(curPos)) {
curPos = 0;
}
currentSong.stop();
currentAmbi.stop();
globalVol.setVolume(0);
stopAllSounds();
} else {
if (user.data.soundOption == 2) {
currentAmbi.start();
globalVol.setVolume(30);
} else {
if (user.data.soundOption == 3) {
currentSong.start(curPos);
currentSong.onSoundComplete = function () {
currentSong.start();
};
globalVol.setVolume(30);
}
}
}
HUD.volumeBTN.gotoAndStop(user.data.soundOption);
mainMC.volumeBTN.gotoAndStop(user.data.soundOption);
}
function fadeIn(style) {
if (cam == undefined) {
attachMovie('camMC', 'cam', getNextHighestDepth(), {'_x': 350, '_y': 200});
} else {
if (cam !== this.getInstanceAtDepth(getNextHighestDepth() - 1)) {
cam.swapDepths(getInstanceAtDepth(getNextHighestDepth() - 1));
}
}
if (style == 'Squares') {
var v3 = 0;
while (v3 < 8) {
var v2 = 0;
while (v2 < 14) {
cam.attachMovie('blackBox', 'blackBoxIn' + v3 + 'x' + v2, cam.getNextHighestDepth(), {'_x': -325 + v2 * 50, '_y': -175 + v3 * 50, '_xscale': 103, '_yscale': 103});
var v4;
if (v3 / 2 == Math.floor(v3 / 2) && v2 / 2 == Math.floor(v2 / 2) || v3 / 2 !== Math.floor(v3 / 2) && v2 / 2 !== Math.floor(v2 / 2)) {
v4 = 0.5;
} else {
v4 = 0.65;
}
v4 += v2 * 0.05;
com.greensock.TweenLite.from(cam['blackBoxIn' + v3 + 'x' + v2], 1, {'delay': v4, '_xscale': 0, '_yscale': 0, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.delayedCall(2.2, removeMC, [cam['blackBoxIn' + v3 + 'x' + v2]]);
++v2;
}
++v3;
}
} else {
if (style == 'Alpha') {
removeMovieClip(cam.alphaBBox);
cam.attachMovie('blackBox', 'alphaBBox', cam.getNextHighestDepth(), {'_width': 710, '_height': 410});
com.greensock.TweenLite.from(cam.alphaBBox, 0.2, {'_alpha': 0, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.delayedCall(0.3, removeMC, [cam.alphaBBox]);
}
}
}
function fadeOut(newFrame, style) {
if (cam == undefined) {
attachMovie('camMC', 'cam', getNextHighestDepth(), {'_x': 350, '_y': 200});
}
if (style == 'Squares') {
var v2 = 0;
while (v2 < 8) {
var v1 = 0;
while (v1 < 14) {
cam.attachMovie('blackBox', 'blackBoxOut' + v2 + 'x' + v1, cam.getNextHighestDepth(), {'_x': -325 + v1 * 50, '_y': -175 + v2 * 50, '_xscale': 103, '_yscale': 103});
var v3;
if (v2 / 2 == Math.floor(v2 / 2) && v1 / 2 == Math.floor(v1 / 2) || v2 / 2 !== Math.floor(v2 / 2) && v1 / 2 !== Math.floor(v1 / 2)) {
v3 = 0.5;
} else {
v3 = 0.65;
}
v3 += v1 * 0.05;
com.greensock.TweenLite.to(cam['blackBoxOut' + v2 + 'x' + v1], 1, {'delay': v3, '_xscale': 0, '_yscale': 0, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [cam['blackBoxOut' + v2 + 'x' + v1]]});
com.greensock.TweenLite.delayedCall(v3 + 1, removeMC, [cam['blackBoxOut' + v2 + 'x' + v1]]);
++v1;
}
++v2;
}
} else {
if (style == 'Alpha') {
removeMovieClip(cam.alphaABox);
cam.attachMovie('blackBox', 'alphaABox', cam.getNextHighestDepth(), {'_width': 710, '_height': 410});
com.greensock.TweenLite.to(cam.alphaABox, 0.2, {'_alpha': 0, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.delayedCall(0.3, removeMC, [cam.alphaABox]);
}
}
if (newFrame !== undefined) {
gotoAndStop(newFrame);
}
}
function defaultData() {
user.data.tutArray = new Array(false, false, false, false, false, false, false, false, false, false, false, false);
if (user.data.soundOption == undefined) {
user.data.soundOption = 3;
}
user.data.story = 'Just Started';
user.data.isNoob = true;
user.data.teamSize = 4;
user.data.teamArray = new Array('Pedro', 'Marc', 'Khanh');
teamArray = user.data.teamArray;
if (user.data.ultraCharge == undefined || isNaN(user.data.ultraCharge)) {
ultraCharge = 0;
} else {
ultraCharge = user.data.ultraCharge;
}
user.data.MarcUpgrades = new Array('Unlocked', false, false, false);
user.data.PedroUpgrades = new Array('Unlocked', false, false, false);
user.data.KhanhUpgrades = new Array('Unlocked', false, false, false);
user.data.MattUpgrades = new Array('Locked', false, false, false);
user.data.KyleUpgrades = new Array('Off', false, false, false);
user.data.BenUpgrades = new Array('Off', false, false, false);
user.data.TuckerUpgrades = new Array('Off', false, false, false);
user.data.WesUpgrades = new Array('Off', false, false, false);
user.data.CoreyUpgrades = new Array('Off', false, false, false);
user.data.BrianUpgrades = new Array('Off', false, false, false);
user.data.JKUpgrades = new Array('Off', false, false, false);
user.data.SagarUpgrades = new Array('Off', false, false, false);
user.data.HangUpgrades = new Array('Off', false, false, false);
user.data.JoshUpgrades = new Array('Off', false, false, false);
user.data.JamesUpgrades = new Array('Off', false, false, false);
user.data.EricUpgrades = new Array('Off', false, false, false);
user.data.ThomasUpgrades = new Array('Off', false, false, false);
user.data.OmarUpgrades = new Array('Off', false, false, false);
user.data.AddisonUpgrades = new Array('Off', false, false, false);
user.data.LukeUpgrades = new Array('Off', false, false, false);
user.data.SeanUpgrades = new Array('Off', false, false, false);
user.data.WaqasUpgrades = new Array('Off', false, false, false);
user.data.MichaelUpgrades = new Array('Off', false, false, false);
user.data.StewartUpgrades = new Array('Off', false, false, false);
user.data.DanUpgrades = new Array('Off', false, false, false);
user.data.BriStickUpgrades = new Array('Off', false, false, false);
user.data.KirbyUpgrades = new Array('Off', false, false, false);
user.data.JorgeUpgrades = new Array('Off', false, false, false);
user.data.hardMode = false;
user.data.bestArray = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
user.data.bonusArray = new Array(null, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false);
user.data.coupon = false;
user.data.ultraUnlock = false;
user.data.ultraLimit = 2;
user.data.unlockedTips = new Array();
user.data.slushTokens = 0;
user.data.scoreTotal = 0;
user.data.currentLevel = 1;
user.data.levelProgress = 1;
user.data.ngArray = new Array(3, 3, false, false);
}
function checkNumLocks() {
var v2 = 0;
for (var v3 in allArray) {
if (user.data[allArray[v3] + 'Upgrades'][0] == 'Unlocked') {
++v2;
var v1 = 1;
while (v1 <= 3) {
if (user.data[allArray[v3] + 'Upgrades'][v1] == true) {
++v2;
}
++v1;
}
}
}
v2 += 3 - user.data.ngArray[1];
if (user.data.ngArray[2] == true) {
++v2;
}
if (user.data.ngArray[3] == true) {
++v2;
}
return v2;
}
stop();
user = SharedObject.getLocal('Slush_InvadersGame', '/');
var rollA = new Sound();
rollA.attachSound('rollA');
var rollB = new Sound();
rollB.attachSound('rollB');
var rollC = new Sound();
rollC.attachSound('rollC');
var clickA = new Sound();
clickA.attachSound('clickA');
var clickB = new Sound();
clickB.attachSound('clickB');
var upgradeSND = new Sound();
upgradeSND.attachSound('upgradeSND');
var boing = new Sound();
boing.attachSound('boing');
var ultraSND = new Sound();
ultraSND.attachSound('ultraSND');
var MarcPrices = new Array(0, 10000, 25000, null);
var PedroPrices = new Array(0, 15000, 15000, null);
var KhanhPrices = new Array(0, 15000, 30000, null);
var MattPrices = new Array(5000, 15000, 20000, null);
var KylePrices = new Array(5000, 20000, 40000, 'Token');
var BenPrices = new Array(7000, 20000, 30000, 'Token');
var TuckerPrices = new Array(7000, 12000, 20000, 'Token');
var WesPrices = new Array(10000, 27500, 27500, null);
var CoreyPrices = new Array(15000, 18000, 30000, 'Token');
var BrianPrices = new Array(15000, 15000, 35000, null);
var JKPrices = new Array(15000, 15000, 20000, null);
var SagarPrices = new Array(20000, 20000, 30000, null);
var HangPrices = new Array(42, 29500, 20000, 'Token');
var JoshPrices = new Array(32000, 20000, 30000, null);
var JamesPrices = new Array(32000, 20000, 40000, 'Token');
var EricPrices = new Array(25000, 20000, 25000, 'Token');
var ThomasPrices = new Array(25000, 15000, 26000, 'Token');
var OmarPrices = new Array(25000, 15000, 30000, 'Token');
var AddisonPrices = new Array(20000, 20000, 35000, 'Token');
var LukePrices = new Array(30000, 25000, 40000, 'Token');
var WaqasPrices = new Array(25000, 23000, 34000, 'Token');
var SeanPrices = new Array(35000, 28000, 15000, 'Token');
var MichaelPrices = new Array(30000, 20000, 20000, 'Token');
var StewartPrices = new Array(30000, 15000, 32000, null);
var DanPrices = new Array(30000, 30000, 30000, null);
var BriStickPrices = new Array(25000, 35000, 30000, null);
var KirbyPrices = new Array(35000, 45000, 60000, null);
var JorgePrices = new Array(45000, 45000, 60000, null);
var allArray = new Array('Pedro', 'Khanh', 'Andrew', 'Marc', 'Matt', 'Kyle', 'Ben', 'Wes', 'Tucker', 'Corey', 'Brian', 'JK', 'Sagar', 'Hang', 'Josh', 'James', 'Eric', 'Thomas', 'Omar', 'Addison', 'Luke', 'Waqas', 'Sean', 'Michael', 'Stewart', 'Dan', 'Kirby', 'BriStick', 'Jorge');
var teamArray;
var ultraCharge = 0;
var setScreen = 'game';
removeMovieClip(cam);
if (user.data.ultraCharge == undefined || user.data.ultraCharge == null || isNaN(user.data.ultraCharge)) {
ultraCharge = 0;
user.data.ultraCharge = 0;
} else {
ultraCharge = user.data.ultraCharge;
}
teamArray = user.data.teamArray;
user.data.isNoob = false;
this.createEmptyMovieClip('MainThemeMC', getNextHighestDepth());
var MainTheme = new Sound(MainThemeMC);
reInitMain();
this.createEmptyMovieClip('AutumnMC', getNextHighestDepth());
var AutumnTheme = new Sound(AutumnMC);
AutumnTheme.attachSound('AutumnTheme');
this.createEmptyMovieClip('RunFightMC', getNextHighestDepth());
var RunFightTheme = new Sound(RunFightMC);
RunFightTheme.attachSound('RunFightTheme');
this.createEmptyMovieClip('SnowMC', getNextHighestDepth());
var SnowTheme = new Sound(SnowMC);
SnowTheme.attachSound('SnowTheme');
this.createEmptyMovieClip('BitMC', getNextHighestDepth());
var BitTheme = new Sound(BitMC);
BitTheme.attachSound('BitTheme');
this.createEmptyMovieClip('RunThemeMC', getNextHighestDepth());
var RunTheme = new Sound(RunThemeMC);
reInitRun();
this.createEmptyMovieClip('SunnySNDMC', getNextHighestDepth());
var sunnySND = new Sound(SunnySNDMC);
sunnySND.attachSound('sunnyAmbi');
this.createEmptyMovieClip('WindSNDMC', getNextHighestDepth());
var windSND = new Sound(WindSNDMC);
windSND.attachSound('windAmbi');
var currentSong = null;
var currentAmbi = null;
var globalVol = new Sound(this);
globalVol.setVolume(30);
curPos = 0;
var allData = new Array('story', 'tutArray', 'scoreTotal', 'isNoob', 'currentLevel', 'levelProgress', 'teamSize', 'soundOption', 'bestArray', 'bonusArray', 'ultraUnlock', 'teamArray', 'slushTokens', 'ultraLimit', 'ultraCharge', 'ngArray', 'unlockedTips');
for (var h in allArray) {
allData.push(allArray[h] + 'Upgrades');
}
updateSoundMode();
resetData.onRelease = function () {
for (var v1 in allData) {
user.data[allData[v1]] = undefined;
}
user.flush();
};
if (user.data.story == undefined) {
defaultData();
}
}
frame 4 {
function startFunc() {
fadeIn('Squares');
com.greensock.TweenLite.delayedCall(2, fadeOut, ['game', 'Squares']);
com.greensock.TweenLite.delayedCall(2, removeMC, [mainMC]);
com.greensock.TweenLite.delayedCall(2, removeMC, [playBTN]);
com.greensock.TweenLite.delayedCall(2, removeMC, [helpBTN]);
com.greensock.TweenLite.delayedCall(2, removeMC, [watchBTN]);
com.greensock.TweenLite.delayedCall(2, removeMC, [resetBTN]);
com.greensock.TweenLite.delayedCall(2, removeMC, [introMC]);
delete playBTN.onRelease;
delete helpBTN.onRelease;
delete watchBTN.onRelease;
delete resetBTN.onRelease;
}
function initBTNS() {
attachMovie('startBTN', 'playBTN', this.getNextHighestDepth());
playBTN._x = 823;
playBTN._y = 271;
com.greensock.TweenMax.to(playBTN, 0.5, {'delay': 1.3, '_x': 535, 'ease': com.greensock.easing.Strong.easeOut});
playBTN.onRelease = function () {
if (!lockButtons) {
lockButtons = true;
if (user.data.story == 'Just Started') {
_root.setScreen = 'game';
introFunc();
} else {
if (user.data.story == 'LevelOne') {
_root.setScreen = 'game';
startFunc();
} else {
_root.setScreen = 'team';
startFunc();
}
}
}
};
playBTN.onRollOver = function () {
if (user.data.story == 'Just Started') {
mainMC.TXT.text = 'Start the Adventure!';
} else {
mainMC.TXT.text = checkNumLocks() + ' / 117 Unlocks';
}
};
playBTN.onRollOut = function () {
mainMC.TXT.text = '';
};
attachMovie('helpBTN', 'helpBTN', this.getNextHighestDepth());
helpBTN._x = 823;
helpBTN._y = 340;
com.greensock.TweenMax.to(helpBTN, 0.5, {'delay': 1, '_x': 426, 'ease': com.greensock.easing.Strong.easeOut});
helpBTN.onRelease = function () {
if (!lockButtons) {
helpFunc();
}
};
attachMovie('watchBTN', 'watchBTN', this.getNextHighestDepth());
watchBTN._x = 823;
watchBTN._y = 340;
com.greensock.TweenMax.to(watchBTN, 0.5, {'delay': 1.1, '_x': 538, 'ease': com.greensock.easing.Strong.easeOut});
watchBTN.onRelease = function () {
if (!lockButtons) {
watchFunc();
}
};
attachMovie('resetBTN', 'resetBTN', this.getNextHighestDepth());
resetBTN._x = 823;
resetBTN._y = 340;
com.greensock.TweenMax.to(resetBTN, 0.5, {'delay': 1.2, '_x': 646, 'ease': com.greensock.easing.Strong.easeOut});
resetBTN.onRelease = function () {
if (!lockButtons) {
resetFunc();
}
};
}
function introFunc() {
newSong(null, 1, 0);
user.data.story = 'LevelOne';
attachMovie('IntroMovieMC', 'introMC', _root.getNextHighestDepth(), {'_alpha': 0});
com.greensock.TweenMax.to(introMC, 1, {'_alpha': 100});
com.greensock.TweenLite.delayedCall(1, removeMC, [mainMC]);
com.greensock.TweenLite.delayedCall(1, removeMC, [playBTN]);
com.greensock.TweenLite.delayedCall(1, removeMC, [helpBTN]);
com.greensock.TweenLite.delayedCall(1, removeMC, [watchBTN]);
com.greensock.TweenLite.delayedCall(1, removeMC, [resetBTN]);
attachMovie('SkipIntroMC', 'skipBtn', _root.getNextHighestDepth(), {'_x': 800, '_y': 380});
skipBtn.stop();
skipBtn.onRollOver = function () {
rollA.start();
skipBtn.gotoAndStop(2);
};
skipBtn.onRollOut = function () {
skipBtn.gotoAndStop(1);
};
skipBtn.onRelease = function () {
clickA.start();
attachMovie('SuperShortSummaryMC', 'shortMC', _root.getNextHighestDepth(), {'_x': 300, '_y': 200, '_alpha': 0});
com.greensock.TweenMax.to(shortMC, 1, {'_x': '50', '_alpha': 100, 'ease': com.greensock.easing.Strong.easeOut});
attachMovie('OkGotIt', 'okBtn', _root.getNextHighestDepth() + 100);
okBtn._alpha = 0;
okBtn._x = 116;
okBtn._y = 420;
okBtn.onRelease = function () {
com.greensock.TweenMax.to(shortMC, 1.5, {'_alpha': 0, 'onComplete': removeMC, 'onCompleteParams': [shortMC]});
removeMovieClip(okBtn);
startFunc();
};
com.greensock.TweenMax.to(okBtn, 1, {'_alpha': 100, '_y': '-45', 'ease': com.greensock.easing.Strong.easeOut});
removeMovieClip(introMC);
removeMovieClip(skipBtn);
};
com.greensock.TweenMax.to(skipBtn, 1, {'_x': 643});
}
function closeIntro() {
removeMovieClip(skipBtn);
reInitMain();
newSong(MainTheme, 1, 60);
}
function resetFunc() {
if (confirmMC == undefined) {
lockButtons = true;
attachMovie('resetAllMC', 'confirmMC', this.getNextHighestDepth(), {'_x': 536});
com.greensock.TweenMax.to(confirmMC, 0.5, {'_y': 288, 'ease': com.greensock.easing.Strong.easeOut});
confirmMC.yesBTN.onRelease = function () {
resetData();
defaultData();
lockButtons = false;
com.greensock.TweenMax.to(confirmMC, 0.5, {'_y': 468, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [confirmMC]});
};
confirmMC.noBTN.onRelease = function () {
lockButtons = false;
com.greensock.TweenMax.to(confirmMC, 0.5, {'_y': 468, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [confirmMC]});
};
}
}
function watchFunc() {
if (bbox == undefined) {
lockButtons = true;
newSong(null, 1, 0);
attachMovie('blackBox', 'bbox', this.getNextHighestDepth(), {'_width': 720, '_height': 420, '_x': 350, '_y': 200, '_alpha': 0});
com.greensock.TweenMax.to(bbox, 1, {'_alpha': 100, 'ease': com.greensock.easing.Strong.easeOut});
attachMovie('ShortSummaryMC', 'ssMC', this.getNextHighestDepth(), {'_x': 350, '_y': 200, '_alpha': 0});
com.greensock.TweenMax.to(ssMC, 1, {'_alpha': 100, 'delay': 1, 'ease': com.greensock.easing.Strong.easeOut});
attachMovie('BackBtn', 'closeBtn', _root.getNextHighestDepth(), {'_x': 800, '_y': 350});
com.greensock.TweenMax.to(closeBtn, 1, {'_x': 640, 'ease': com.greensock.easing.Strong.easeInOut});
closeBtn.gotoAndStop(3);
closeBtn.onRelease = function () {
closeSS();
};
}
}
function closeSS() {
ssMC.stop();
removeMovieClip(ssMC);
removeMovieClip(closeBtn);
com.greensock.TweenMax.to(bbox, 1, {'_alpha': 0, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [bbox]});
lockButtons = false;
newSong(MainTheme, 1, 60);
}
function helpClose() {
com.greensock.TweenMax.to(instructMC, 1, {'_alpha': 0, '_x': '150', 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [instructMC]});
lockButtons = false;
removeMovieClip(nextBtn);
removeMovieClip(backBtn);
}
function helpFunc() {
if (instructMC == undefined) {
pagenum = 1;
lockButtons = true;
attachMovie('InstructionsMC', 'instructMC', _root.getNextHighestDepth(), {'_x': 500, '_y': 200, '_alpha': 0});
com.greensock.TweenMax.to(instructMC, 1, {'_alpha': 100, '_x': 350, 'ease': com.greensock.easing.Strong.easeOut});
attachMovie('NextBtn', 'nextBtn', _root.getNextHighestDepth(), {'_x': 800, '_y': 350});
attachMovie('BackBtn', 'backBtn', _root.getNextHighestDepth(), {'_x': -110, '_y': 350});
com.greensock.TweenMax.to(nextBtn, 1, {'_x': 640, 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenMax.to(backBtn, 1, {'_x': 70, 'ease': com.greensock.easing.Strong.easeInOut});
backBtn.gotoAndStop(3);
nextBtn.stop();
backBtn.stop();
nextBtn.onRelease = function () {
clickA.start();
if (pagenum < 3) {
++pagenum;
com.greensock.TweenMax.to(instructMC, 0.5, {'_x': 350 - (pagenum - 1) * 700, 'ease': com.greensock.easing.Strong.easeOut});
nextBtn._x = 680;
com.greensock.TweenMax.to(nextBtn, 0.5, {'_x': 640, 'ease': com.greensock.easing.Strong.easeOut});
if (pagenum == 3) {
nextBtn.gotoAndStop(3);
}
if (pagenum !== 1) {
backBtn.gotoAndStop(1);
}
} else {
helpClose();
}
};
backBtn.onRelease = function () {
clickA.start();
if (pagenum > 1) {
--pagenum;
com.greensock.TweenMax.to(instructMC, 0.5, {'_x': 350 - (pagenum - 1) * 700, 'ease': com.greensock.easing.Strong.easeOut});
backBtn._x = 30;
com.greensock.TweenMax.to(backBtn, 0.5, {'_x': 70, 'ease': com.greensock.easing.Strong.easeOut});
if (pagenum == 1) {
backBtn.gotoAndStop(3);
}
if (pagenum !== 3) {
nextBtn.gotoAndStop(1);
}
} else {
helpClose();
}
};
nextBtn.onRollOver = function () {
rollA.start();
com.greensock.TweenMax.to(nextBtn, 0.3, {'_xscale': 120, '_yscale': 120, 'ease': com.greensock.easing.Strong.easeOut});
nextBtn.gotoAndStop(2);
if (pagenum == 3) {
nextBtn.gotoAndStop(3);
}
};
backBtn.onRollOver = function () {
rollA.start();
com.greensock.TweenMax.to(backBtn, 0.3, {'_xscale': 120, '_yscale': 120, 'ease': com.greensock.easing.Strong.easeOut});
backBtn.gotoAndStop(2);
if (pagenum == 1) {
backBtn.gotoAndStop(3);
}
};
nextBtn.onRollOut = function () {
com.greensock.TweenMax.to(nextBtn, 0.3, {'_xscale': 100, '_yscale': 100, 'ease': com.greensock.easing.Strong.easeOut});
nextBtn.gotoAndStop(1);
if (pagenum == 3) {
nextBtn.gotoAndStop(3);
}
};
backBtn.onRollOut = function () {
com.greensock.TweenMax.to(backBtn, 0.3, {'_xscale': 100, '_yscale': 100, 'ease': com.greensock.easing.Strong.easeOut});
backBtn.gotoAndStop(1);
if (pagenum == 1) {
backBtn.gotoAndStop(3);
}
};
}
}
function initVolume() {
mainMC.volumeBTN.onRelease = function () {
clickA.start();
++user.data.soundOption;
if (user.data.soundOption == 4) {
user.data.soundOption = 1;
}
updateSoundMode();
};
mainMC.volumeBTN.gotoAndStop(user.data.soundOption);
mainMC.volumeBTN.onRollOver = function () {
rollA.start();
mainMC.volumeBTN._alpha = 100;
mainMC.volumeBTN.blox._visible = true;
};
mainMC.volumeBTN.onRollOut = function () {
mainMC.volumeBTN._alpha = 60;
mainMC.volumeBTN.blox._visible = false;
};
mainMC.volumeBTN.blox._visible = false;
mainMC.stickbtn.onRelease = function () {
getURL('http://www.stickpage.com/', '_blank');
};
mainMC.fbBTN.onRelease = function () {
getURL('http://www.facebook.com/Stickpage', '_blank');
};
mainMC.ytBTN.onRelease = function () {
getURL('http://www.youtube.com/user/stickpagestudios', '_blank');
};
}
stop();
attachMovie('MainScreenSplash', 'mainMC', getNextHighestDepth(), {'_x': 350, '_y': 200});
newSong(MainTheme, 1, 60);
lockButtons = false;
if (user.data.story !== 'GameFinish') {
initBTNS();
} else {
if (user.data.hardMode == true) {
attachMovie('ngMCB', 'ngMC', getNextHighestDepth(), {'_x': 350, '_y': 600, '_alpha': 0});
} else {
attachMovie('ngMC', 'ngMC', getNextHighestDepth(), {'_x': 350, '_y': 600, '_alpha': 0});
}
com.greensock.TweenMax.to(ngMC, 1, {'delay': 1.5, '_y': 300, '_alpha': 100});
ngMC.BTN.onRelease = function () {
user.data.isNoob = true;
user.data.currentLevel = 1;
user.data.levelProgress = 1;
user.data.bestArray = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
user.data.story = 'LevelOne';
user.data.hardMode = true;
fadeIn('Squares');
setScreen = 'game';
com.greensock.TweenLite.delayedCall(2, fadeOut, ['game', 'Squares']);
com.greensock.TweenLite.delayedCall(2, removeMC, [mainMC]);
com.greensock.TweenLite.delayedCall(2, removeMC, [ngMC]);
delete ngMC.BTN.onRelease;
delete ngMC.BTNB.onRelease;
};
ngMC.BTNB.onRelease = function () {
com.greensock.TweenMax.to(ngMC, 1, {'_alpha': 0, '_y': '100', 'ease': com.greensock.easing.Strong.easeInOut, 'onComplete': removeMC, 'onCompleteParams': [ngMC]});
delete ngMC.BTN.onRelease;
delete ngMC.BTNB.onRelease;
_root.setScreen = 'game';
startFunc();
};
}
pagenum = 1;
}
frame 5 {
function setupLevelVars() {
updateLevel = _root['update' + user.data.currentLevel];
tipsArray = new Array();
if (user.data.currentLevel == 1) {
newAmbi(sunnySND, 1, 50);
newSong(MainTheme, 1, 60);
if (user.data.hardMode) {
endDist = 25000;
setUnlockScreen(false, 5000, 'D2?');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27, 51, 52, 53);
tipWin = 27;
} else {
endDist = 10000;
setUnlockScreen(false, 1000, 'Completion Bonus');
tipsArray = new Array(1, 2, 3);
tipWin = 11;
}
OrTopBound = -1090;
TopBound = -1090;
if (user.data.story == 'LevelOne') {
user.data.tutArray[0] = false;
}
if (user.data.isNoob == true) {
levelSplash();
}
} else {
if (user.data.currentLevel == 2) {
newAmbi(sunnySND, 1, 50);
newSong(MainTheme, 1, 60);
if (user.data.hardMode) {
endDist = 25000;
setUnlockScreen(true, 2000, 'Drillfield Trek Points');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 28, 51, 52, 53);
tipWin = 28;
} else {
endDist = 15000;
setUnlockScreen(false, 5000, 'Drillfield Trek Points');
tipsArray = new Array(1, 2, 3, 4, 7, 52);
tipWin = 2;
}
OrTopBound = -1540;
TopBound = -1540;
if (user.data.isNoob == true) {
levelSplash();
}
BigBlue.gotoAndStop(9);
BigBlue._x -= 300;
com.greensock.TweenLite.to(BigBlue, 1, {'_x': '300', 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (user.data.currentLevel == 3) {
newAmbi(null, 1, 0);
newSong(AutumnTheme, 1, 200);
if (user.data.hardMode) {
endDist = 22000;
setUnlockScreen(true, 5000, 'Lane of Lights');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 29, 51, 52, 53);
tipWin = 29;
} else {
endDist = 15000;
setUnlockScreen(false, 3000, 'Late Night Bus Bonus');
tipsArray = new Array(1, 2, 3, 4, 5, 7, 11, 13, 51);
tipWin = 6;
}
OrTopBound = -1300;
TopBound = -1300;
if (user.data.isNoob == true) {
levelSplash();
}
BigBlue.gotoAndStop(9);
BigBlue._x -= 300;
com.greensock.TweenLite.to(BigBlue, 1, {'_x': '300', 'ease': com.greensock.easing.Strong.easeOut});
speedC = 30;
_root.myTimer = 0;
} else {
if (user.data.currentLevel == 4) {
newAmbi(null, 1, 0);
newSong(MainTheme, 1, 60);
if (user.data.hardMode) {
endDist = 27000;
setUnlockScreen(true, 7000, '0xFF6600 & 0x660000 Effect');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 30, 51, 52, 53);
tipWin = 30;
} else {
endDist = 19000;
setUnlockScreen(false, 3000, '0xFF6600 & 0x660000 Effect');
tipsArray = new Array(1, 2, 3, 4, 7, 11, 13, 53);
tipWin = 13;
}
OrTopBound = -1600;
TopBound = -1600;
if (user.data.isNoob == true) {
levelSplash();
}
BigBlue.gotoAndStop(9);
BigBlue._x -= 300;
com.greensock.TweenLite.to(BigBlue, 1, {'_x': '300', 'ease': com.greensock.easing.Strong.easeOut});
speedC = 4.5;
speedB = 2;
_root.dir = 1;
_root.myTimer = 0;
} else {
if (user.data.currentLevel == 5) {
newAmbi(null, 1, 0);
newSong(RunFightTheme, 1, 80);
if (user.data.hardMode) {
endDist = 15000;
setUnlockScreen(false, 30000, 'Gobble, Gobble...');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 48, 31, 51, 52, 53);
tipWin = 31;
} else {
endDist = 15000;
setUnlockScreen(false, 10000, 'Gobble, Gobble...');
tipsArray = new Array(5, 9, 48, 52);
tipWin = 10;
}
removeFromArray(BigBlue, enemyArray);
removeMovieClip(BigBlue);
removeMovieClip(Andrew);
removeMovieClip(targetMC);
com.greensock.TweenLite.killTweensOf(cam);
HUD._x = 600;
cam._x = 600;
HUD._y = -250;
cam._y = -250;
camTarg = _root.Hero;
if (user.data.tutArray[9] == false) {
levelSplash();
HUD.attachMovie('tutWASD', 'tutWASD', HUD.getNextHighestDepth(), {'_y': -32, '_alpha': 0});
com.greensock.TweenLite.to(HUD.tutWASD, 0.5, {'_alpha': 100, 'delay': 1});
user.data.tutArray[9] = true;
} else {
Boss.tutReady();
}
for (var v6 in teamArray) {
for (var v7 in activeArray) {
if (teamArray[v6] == activeArray[v7]) {
HUD[teamArray[v6] + 'Box'].getLocked();
}
}
}
HUD._xscale = 150;
HUD._yscale = 150;
cam._xscale = 150;
cam._yscale = 150;
HUD.gotoAndStop(2);
PHASE = 'FOLLOW';
noLead();
speedB = 2;
isPerfect = true;
OrTopBound = -350;
TopBound = -350;
OrRightBound = 670;
RightBound = 670;
OrLeftBound = 524;
LeftBound = 524;
OrBottomBound = -192;
BottomBound = -192;
} else {
if (user.data.currentLevel == 6) {
newAmbi(sunnySND, 1, 50);
newSong(AutumnTheme, 1, 200);
if (user.data.hardMode) {
endDist = 27000;
setUnlockScreen(true, 8000, 'Prices Fork Commute');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 32, 51, 52, 53);
tipWin = 32;
} else {
endDist = 22000;
setUnlockScreen(true, 3500, 'Prices Fork Commute');
tipsArray = new Array(3, 4, 5, 6, 7, 8, 10, 11, 14, 13);
tipWin = 14;
}
OrTopBound = -1163;
TopBound = -1163;
if (user.data.isNoob == true) {
levelSplash();
}
BigBlue.gotoAndStop(14);
speedC = 8;
speedB = 4;
groundType = 'ROAD';
} else {
if (user.data.currentLevel == 7) {
newAmbi(sunnySND, 1, 50);
newSong(AutumnTheme, 1, 200);
if (user.data.hardMode) {
endDist = 25000;
setUnlockScreen(true, 10000, 'It ain\'t the Duck Pond.');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 33, 51, 52, 53);
tipWin = 33;
friction = 0.67;
} else {
endDist = 20000;
setUnlockScreen(false, 4000, 'It ain\'t the Duck Pond.');
tipsArray = new Array(5, 6, 7, 8, 10, 11, 14, 13, 15, 25, 51, 52, 53);
tipWin = 15;
friction = 0.77;
}
OrTopBound = -1000;
TopBound = -1000;
if (user.data.isNoob == true) {
levelSplash();
}
BigBlue.gotoAndStop(9);
if (user.data.hardMode) {
friction = 0.73;
} else {
friction = 0.77;
}
groundType = 'WATER';
} else {
if (user.data.currentLevel == 8) {
newAmbi(windSND, 1, 80);
newSong(AutumnTheme, 1, 200);
if (user.data.hardMode) {
endDist = 25000;
setUnlockScreen(true, 13000, 'Orange Forest');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 34, 51, 52, 53);
tipWin = 34;
} else {
endDist = 20000;
tipsArray = new Array(4, 5, 6, 7, 8, 10, 11, 14, 13, 15);
setUnlockScreen(true, (_root.dir / 2 - 15) * 500, _root.dir / 2 - 15 + 'Trees x 500');
tipWin = 12;
}
OrTopBound = -380;
TopBound = -380;
if (user.data.isNoob == true) {
levelSplash();
}
BigBlue.gotoAndStop(9);
BigBlue._x -= 300;
com.greensock.TweenLite.to(BigBlue, 1, {'_x': '300', 'ease': com.greensock.easing.Strong.easeOut});
groundType = 'ORANGEGRASS';
speedC = 0;
_root.myTimer = 0;
_root.dir = 30;
_root.count = 75;
if (_root.user.data.hardMode) {
_root.count = 30;
}
if (!user.data.hardMode) {
HUD.gotoAndStop(3);
}
friction = 0.8;
} else {
if (user.data.currentLevel == 9) {
newAmbi(windSND, 1, 80);
newSong(RunFightTheme, 1, 80);
if (user.data.hardMode) {
endDist = 26000;
setUnlockScreen(true, 12000, 'Trick or Treat');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 35, 47, 51, 52, 53);
tipWin = 35;
} else {
endDist = 25000;
setUnlockScreen(false, 5000, 'Trick or Treat');
tipsArray = new Array(6, 7, 8, 10, 12, 47, 51, 52, 53);
tipWin = 47;
}
OrTopBound = -880;
TopBound = -880;
if (user.data.isNoob == true) {
levelSplash();
}
BigBlue.gotoAndStop(14);
friction = 0.8;
groundType = 'SPOOKY';
speedA = 2;
speedB = 3;
speedC = 4;
} else {
if (user.data.currentLevel == 10) {
newAmbi(null, 1, 0);
newSong(RunFightTheme, 1, 80);
if (user.data.hardMode) {
setUnlockScreen(false, 25000, 'Undead Refund');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 49, 36, 51, 52, 53);
tipWin = 36;
} else {
setUnlockScreen(false, 12000, 'Undead Refund');
tipsArray = new Array(8, 9, 10, 49, 47, 52);
tipWin = 17;
}
removeFromArray(BigBlue, enemyArray);
removeMovieClip(BigBlue);
removeMovieClip(Andrew);
removeMovieClip(targetMC);
com.greensock.TweenLite.killTweensOf(cam);
HUD._x = 600;
cam._x = 600;
HUD._y = 21;
cam._y = 21;
if (user.data.isNoob == true) {
levelSplash();
user.data.isNoob = false;
}
HUD._xscale = 150;
HUD._yscale = 150;
cam._xscale = 150;
cam._yscale = 150;
camTarg = _root.Hero;
HUD.gotoAndStop(4);
com.greensock.TweenLite.delayedCall(0.1, showBoxes);
PHASE = 'FOLLOW';
groundType = 'SPOOKY';
OrTopBound = 20;
TopBound = 20;
OrRightBound = 900;
RightBound = 900;
OrLeftBound = 500;
LeftBound = 500;
OrBottomBound = 21;
BottomBound = 21;
speedB = 2;
noLead();
} else {
if (user.data.currentLevel == 11) {
newAmbi(windSND, 1, 80);
newSong(SnowTheme, 1, 250);
if (user.data.hardMode) {
endDist = 25000;
setUnlockScreen(true, 12000, 'No Mo\' Mobiles');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 37, 51, 52, 53);
tipWin = 37;
} else {
endDist = 23000;
setUnlockScreen(false, 5000, 'No Mo\' Mobiles');
tipsArray = new Array(6, 7, 8, 10, 12, 14, 15, 16);
tipWin = 16;
}
if (user.data.isNoob == true) {
levelSplash();
}
OrTopBound = -1010;
TopBound = -1010;
mobileStart();
friction = 0.78;
groundType = 'SNOW';
speedA = 1.5;
speedB = 2;
speedC = 4;
if (user.data.tutArray[6] == false) {
user.data.tutArray[6] = true;
HUD.attachMovie('tutUltraA', 'tutUltraA', HUD.getNextHighestDepth());
com.greensock.TweenLite.delayedCall(10, removeMC, [HUD.tutUltraA]);
}
_root.mobileKillCount = 0;
} else {
if (user.data.currentLevel == 12) {
newAmbi(windSND, 1, 80);
newSong(SnowTheme, 1, 250);
if (user.data.hardMode) {
endDist = 28000;
setUnlockScreen(true, 13000, 'Desaturation');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 38, 51, 52, 53);
tipWin = 38;
} else {
endDist = 26000;
setUnlockScreen(false, 5500, 'Monochrome');
tipsArray = new Array(10, 12, 14, 15, 16, 20, 25);
tipWin = 20;
}
OrTopBound = -732;
TopBound = -732;
if (user.data.isNoob == true) {
levelSplash();
}
friction = 0.8;
groundType = 'SNOW';
timer = 0;
} else {
if (user.data.currentLevel == 13) {
newAmbi(null, 1, 0);
newSong(SnowTheme, 1, 250);
if (user.data.hardMode) {
endDist = 30000;
setUnlockScreen(true, 15000, 'Ginger Stickmen');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 39, 51, 52, 53);
tipWin = 39;
} else {
endDist = 30000;
setUnlockScreen(false, 6000, 'Oh NOoo');
tipsArray = new Array(12, 14, 15, 16, 18, 20, 22);
tipWin = 18;
}
OrTopBound = -1270;
TopBound = -1270;
if (user.data.isNoob == true) {
levelSplash();
}
mobileStart();
groundType = 'SNOW';
speedA = 2;
speedB = 3;
speedC = 8;
} else {
if (user.data.currentLevel == 14) {
newAmbi(null, 1, 0);
newSong(MainTheme, 1, 60);
if (user.data.hardMode) {
endDist = 28000;
setUnlockScreen(true, 15000, 'Mage Town');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 40, 51, 52, 53);
tipWin = 40;
} else {
endDist = 28000;
setUnlockScreen(false, 6200, 'Not a Sunrise');
tipsArray = new Array(12, 14, 15, 16, 18, 20, 22);
tipWin = 22;
}
OrTopBound = -1066;
TopBound = -1066;
if (user.data.isNoob == true) {
levelSplash();
}
groundType = 'GRASS';
_root.mageKillCount = 0;
} else {
if (user.data.currentLevel == 15) {
newAmbi(null, 1, 0);
newSong(RunTheme, 1, 80);
if (user.data.hardMode) {
totalTHP = 4000;
totalHP = 4000;
setUnlockScreen(false, 20000, 'Brown, Black, and Blue');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 41, 51, 52, 53);
tipWin = 41;
} else {
totalTHP = 3000;
totalHP = 3000;
setUnlockScreen(false, 10000, 'Brown, Black, and Blue');
tipsArray = new Array(20, 21, 9, 52);
tipWin = 17;
}
endDist = 15000;
removeFromArray(BigBlue, enemyArray);
removeMovieClip(BigBlue);
removeMovieClip(Andrew);
topTarg = null;
com.greensock.TweenLite.killTweensOf(cam);
HUD._x = 600;
cam._x = 600;
HUD._y = -70;
cam._y = -70;
if (user.data.isNoob == true) {
levelSplash();
}
HUD._xscale = 150;
HUD._yscale = 150;
cam._xscale = 150;
cam._yscale = 150;
camTarg = _root.Hero;
HUD.gotoAndStop(5);
com.greensock.TweenLite.delayedCall(0.1, showBoxes);
PHASE = 'FOLLOW';
groundType = 'GRASS';
OrTopBound = -1066;
TopBound = -1066;
OrRightBound = 675;
RightBound = 675;
OrLeftBound = 600;
LeftBound = 600;
OrBottomBound = 140;
BottomBound = 140;
speedB = 2;
freq = 200;
freqTimer = freq;
isDefeated = false;
splats = function (targ) {
hardhit.start();
var v2 = 'splat' + _root.getNextHighestDepth();
_root.attachMovie('hangDust', v2, _root.getNextHighestDepth(), {'_x': targ._x, '_y': targ._y});
com.greensock.TweenMax.to(_root[v2], 0, {'tint': 153});
com.greensock.TweenMax.to(_root[v2], 1, {'_alpha': 0, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [_root[v2]]});
};
noLead();
} else {
if (user.data.currentLevel == 16) {
newAmbi(null, 1, 0);
newSong(BitTheme, 1, 70);
if (user.data.hardMode) {
endDist = 23000;
setUnlockScreen(true, 20000, 'A Torrent of Bits');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 42, 51, 52, 53);
tipWin = 42;
} else {
endDist = 20000;
setUnlockScreen(false, 7000, 'A Torrent of Bits');
tipsArray = new Array(10, 20, 22, 25, 26, 51);
tipWin = 26;
}
OrTopBound = -256;
TopBound = -256;
if (user.data.isNoob == true) {
levelSplash();
}
bitStart();
initBit('BitMain', 100);
mainTarg = BitMain;
setCurTarg(mainTarg);
groundType = 'BITS';
HUD.gotoAndStop(6);
_root.updateBitPic = function (newFrame) {
bgB.bitPics.innerMC.stop();
bgB.bitPics.gotoAndPlay('end');
_root.newBitFrame = newFrame;
var v2 = lookupColor(teamArray[random(teamArray.length)], true);
if (dist > 11000) {
com.greensock.TweenMax.to(bgA, 0, {'tint': v2});
}
com.greensock.TweenMax.to(bgC.BG1.backDots, 0, {'tint': v2});
com.greensock.TweenMax.to(bgC.BG2.backDots, 0, {'tint': v2});
};
_root.timer = 0;
_root.newBitFrame = 1;
_root.oldBitFrame = 1;
_root.totalKillz = 45;
if (user.data.hardMode) {
_root.totalKillz = 70;
}
} else {
if (user.data.currentLevel == 17) {
newAmbi(null, 1, 0);
newSong(BitTheme, 1, 70);
if (user.data.hardMode) {
endDist = 36000;
setUnlockScreen(false, 23000, 'No Calculators');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 43, 51, 52, 53);
tipWin = 43;
} else {
endDist = 36000;
setUnlockScreen(false, 6200, 'No Calculators');
tipsArray = new Array(6, 7, 8, 10, 12, 14, 18, 16, 19, 20, 22, 51);
tipWin = 19;
}
OrTopBound = -584;
TopBound = -584;
if (user.data.isNoob == true) {
levelSplash();
}
BigBlue.gotoAndStop(16);
groundType = 'BITSB';
} else {
if (user.data.currentLevel == 18) {
newAmbi(null, 1, 0);
newSong(RunTheme, 1, 80);
if (user.data.hardMode) {
endDist = 30000;
setUnlockScreen(true, 25000, 'Jailbroken');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 44, 51, 52, 53);
tipWin = 44;
} else {
endDist = 30000;
setUnlockScreen(false, 7000, 'Jailbroken');
tipsArray = new Array(8, 10, 12, 14, 15, 18, 19, 23, 25, 51);
tipWin = 23;
}
OrTopBound = -3;
TopBound = -3;
OrBottomBound = 120;
BottomBound = 120;
if (user.data.isNoob == true) {
levelSplash();
}
HUD.gotoAndStop(7);
bitStart();
initDrab('DrabX', 1000, 50, 1500, cam);
mainTarg = DrabX;
setCurTarg(mainTarg);
groundType = 'ROAD';
speedB = 2;
_root.timer = 0;
_root.totalKillz = 25;
if (user.data.hardMode) {
_root.totalKillz = 40;
}
} else {
if (user.data.currentLevel == 19) {
newAmbi(null, 1, 0);
newSong(RunTheme, 1, 80);
if (user.data.hardMode) {
endDist = 40000;
setUnlockScreen(true, 27000, 'Gravity Dance');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 45, 51, 52, 53);
tipWin = 45;
} else {
endDist = 38000;
setUnlockScreen(false, 6200, 'Gravity Dance');
tipsArray = new Array(8, 10, 12, 14, 15, 18, 19, 23, 21);
tipWin = 21;
}
OrTopBound = -941;
TopBound = -941;
if (user.data.isNoob == true) {
levelSplash();
}
BigBlue.gotoAndStop(9);
BigBlue._x -= 300;
com.greensock.TweenLite.to(BigBlue, 1, {'_x': '300', 'ease': com.greensock.easing.Strong.easeOut});
groundType = 'ROAD';
_root.displayGravity = gravity;
_root.timer = 0;
} else {
if (user.data.currentLevel == 20) {
newAmbi(null, 1, 0);
newSong(RunTheme, 1, 80);
if (user.data.hardMode) {
endDist = 80000;
setUnlockScreen(true, 60000, 'aeiou John Madden John Madden');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 46, 51, 52, 53);
tipWin = 46;
} else {
endDist = 48000;
setUnlockScreen(false, 6200, 'aeiou John Madden John Madden');
tipsArray = new Array(8, 10, 12, 14, 15, 18, 19, 23, 25, 51, 52, 53);
tipWin = 25;
}
OrTopBound = -515;
TopBound = -515;
if (user.data.isNoob == true) {
levelSplash();
}
BigBlue.gotoAndStop(9);
BigBlue._x -= 300;
com.greensock.TweenLite.to(BigBlue, 1, {'_x': '300', 'ease': com.greensock.easing.Strong.easeOut});
groundType = 'MOON';
gravity = 0.5;
_root.timer = 0;
} else {
if (user.data.currentLevel == 21) {
newAmbi(null, 1, 0);
newSong(MainTheme, 1, 60);
if (user.data.hardMode) {
endDist = 15000;
setUnlockScreen(false, 12000, 'Fatal Booboo');
tipsArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 50, 51, 52, 53);
tipWin = 46;
} else {
endDist = 15000;
setUnlockScreen(false, 12000, 'Fatal Booboo');
tipsArray = new Array(9, 11, 17, 21, 22, 23, 50);
tipWin = 17;
}
removeFromArray(BigBlue, enemyArray);
removeMovieClip(BigBlue);
removeMovieClip(Andrew);
removeMovieClip(targetMC);
com.greensock.TweenLite.killTweensOf(cam);
HUD._x = 600;
cam._x = 600;
HUD._y = 21;
cam._y = 21;
if (user.data.isNoob == true) {
levelSplash();
user.data.isNoob = false;
}
HUD._xscale = 350;
HUD._yscale = 350;
cam._xscale = 350;
cam._yscale = 350;
camTarg = _root.Hero;
HUD.gotoAndStop(8);
com.greensock.TweenLite.delayedCall(0.1, showBoxes);
PHASE = 'FOLLOW';
groundType = 'ROAD';
OrTopBound = -122;
TopBound = -122;
OrRightBound = 138;
RightBound = 138;
OrLeftBound = 100;
LeftBound = 100;
OrBottomBound = -121;
BottomBound = -121;
speedB = 2;
noLead();
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
addTriesMarker();
var v4 = user.data.unlockedTips.length;
for (var v7 in tipsArray) {
var v3 = false;
var v2 = 0;
for (;;) {
if (!(v2 < v4 && !v3)) break;
if (tipsArray[v7] == user.data.unlockedTips[v2] && tipsArray[v7] !== undefined) {
v3 = true;
}
++v2;
}
if (!v3) {
user.data.unlockedTips.push(tipsArray[v7]);
}
}
}
function setUnlockScreen(p1, p2, p3) {
noUnlocks = p1;
bonusPoints = p2;
bonusPointsTxt = p3;
}
function levelSplash() {
user.data.isNoob = false;
HUD._x = cam._x;
HUD._y = cam._y;
HUD.attachMovie('lvl' + user.data.currentLevel + 'map', 'splashMC', HUD.getNextHighestDepth(), {'_alpha': 0, '_y': 200});
com.greensock.TweenLite.to(HUD.splashMC, 1, {'_y': '-200', '_alpha': 100, '_xscale': 200, '_yscale': 200, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(HUD.splashMC, 1, {'delay': 1, '_y': '100', '_alpha': 0, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': removeMC, 'onCompleteParams': [HUD.splashMC]});
}
function noLead() {
Luke.goBack();
Kyle.gotoAndStop('START');
Josh.revert();
com.greensock.TweenLite.delayedCall(0.2, gotoPlay, [Josh, Josh._currentframe]);
leadArray = new Array();
}
function mobileStart() {
noLead();
user.data.isNoob = false;
com.greensock.TweenLite.killTweensOf(cam);
cam._x = 400;
cam._y = 100;
PHASE = 'PAUSE';
removeMovieClip(Andrew);
BigBlue._x = 0;
BigBlue._y = -200;
xspeed = 150;
yspeed = 0;
initMobile('BBMobile', 150, BigBlue);
com.greensock.TweenLite.delayedCall(0.5, followFunc);
}
function bitStart() {
noLead();
user.data.isNoob = false;
com.greensock.TweenLite.killTweensOf(cam);
cam._x = 400;
cam._y = 100;
PHASE = 'PAUSE';
removeFromArray(BigBlue, enemyArray);
removeMovieClip(BigBlue);
removeMovieClip(Andrew);
xspeed = 50;
yspeed = 0;
followFunc();
}
function bgAnimateHit() {
if (user.data.currentLevel == 2) {
bgA.bgVolunteers.gotoAndPlay(2);
}
}
function setupLevelBG() {
optInitSlush = null;
optInitBlue = null;
if (user.data.currentLevel == 1) {
newBG('bgC', 'backgroundC', getNextHighestDepth());
newBG('bgB', 'emptyABC', getNextHighestDepth());
newBG('bgA', 'roadSidewalkGrassA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
bgA.attachMovie('MARV', 'marvMC', getNextHighestDepth(), {'_x': 219, '_y': 263});
attachBGfunc(bgA.marvMC, 1.5);
bgC.attachMovie('bgWingFront', 'bgWingFront', 15, {'_x': 0});
attachBGfunc(bgC.bgWingFront, 5);
bgC.attachMovie('bgSun', 'bgSun', 14, {'_x': 1000, '_y': -475});
attachBGfunc(bgC.bgSun, 50);
} else {
if (user.data.currentLevel == 2) {
newBG('bgC', 'campusSkyC', getNextHighestDepth());
newBG('bgB', 'drillFieldB', getNextHighestDepth());
newBG('bgA', 'fieldSidewalkA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
bgA.attachMovie('bgVolunteers', 'bgVolunteers', 15, {'_x': 50});
attachBGfunc(bgA.bgVolunteers, 3);
bgB.attachMovie('bgSun', 'bgSun', 14, {'_x': 1000, '_y': -475});
attachBGfunc(bgB.bgSun, 300);
} else {
if (user.data.currentLevel == 3) {
newBG('bgC', 'nightSkyC', getNextHighestDepth());
newBG('bgB', 'drillNightB', getNextHighestDepth());
newBG('bgA', 'drillNightA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
bgB.attachMovie('bgSun', 'bgSun', 14, {'_x': 1000, '_y': -475});
bgB.bgSun.gotoAndStop(3);
attachBGfunc(bgB.bgSun, 300);
_root.optInitSlush = function (targ) {
_root[targ].isLit = _root[targ]._y < -200;
};
_root.optInitBlue = function (targ) {
targ.isLit = targ._y < -200;
};
BigBlue.isLit = BigBlue._y < -200;
} else {
if (user.data.currentLevel == 4) {
newBG('bgC', 'nightSkyC', getNextHighestDepth());
newBG('bgB', 'laneBackB', getNextHighestDepth());
newBG('bgA', 'laneCloseA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
bgC.BG1._y -= 640;
bgC.BG2._y -= 640;
bgB.attachMovie('crowdMC', 'stadiumCrowdSND', bgB.getNextHighestDepth());
} else {
if (user.data.currentLevel == 5) {
yground = -115;
newBG('bgB', 'laneBackB', getNextHighestDepth());
newBG('bgA', 'laneCloseA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
com.greensock.TweenMax.to(bgB, 0, {'colorTransform': {'tint': 0, 'tintAmount': 0.6}});
bgB.attachMovie('crowdMC', 'stadiumCrowdSND', bgB.getNextHighestDepth());
attachMovie('hokietron', 'Boss', getNextHighestDepth(), {'_x': 1600, '_y': -330});
com.greensock.TweenMax.to(Boss, 4, {'_y': '-70', 'yoyo': true, 'repeat': -1, 'ease': Regular.easeInOut});
enemyArray.push(Boss);
Boss.timer = 0;
Boss.thp = 2900;
Boss.hp = 2900;
Boss.ultraCine = false;
if (user.data.hardMode) {
Boss.thp = 4000;
Boss.hp = 4000;
}
Boss.stance = 'Pause';
Boss.loops = 0;
Boss.showBox = false;
Boss.limit = 4;
Boss.tutReady = function () {
with (Boss) {
stance = 'NEUTRAL';
com.greensock.TweenMax.to(Boss, 4, {'_x': 850, 'ease': Regular.easeInOut});
}
};
Boss.onEnterFrame = function () {
with (Boss) {
if (hp < thp - 1000 || user.data.hardMode) {
if (!showBox) {
limit = 3;
showBox = true;
showBoxes();
}
}
if (user.data.hardMode == false && user.data.story == 'LevelFive' && hp < 180 && ultraCine == false) {
var isKyle = false;
var isBen = false;
for (var k in teamArray) {
if (teamArray[k] == 'Kyle') {
isKyle = true;
} else {
if (teamArray[k] == 'Ben') {
isBen = true;
}
}
}
if (isKyle) {
hp = 50;
if (Kyle == undefined) {
initSlush('Kyle');
}
Kyle.ultra();
} else {
if (isBen) {
hp = 700;
if (Ben == undefined) {
initSlush('Ben');
}
Ben.ultra();
}
}
ultraCine = true;
}
if (timer > limit * 30 && stance == 'NEUTRAL') {
timer = 0;
var chance = random(100) + 1;
if (hp > thp - 800) {
if (chance > 70) {
stance = 'BLASTER';
this.gotoAndPlay('blastattack');
} else {
if (chance > 30) {
stance = 'LOWGUARD';
this.gotoAndPlay('guarddown');
} else {
if (chance > 0) {
revert();
}
}
}
} else {
if (hp > thp - 1100) {
if (chance > 80) {
revert();
} else {
if (chance > 70) {
stance = 'BLASTER';
this.gotoAndPlay('blastattack');
} else {
if (chance > 40) {
stance = 'BLADE';
this.gotoAndPlay('bladeattack');
} else {
if (chance > 0) {
stance = 'LOWGUARD';
this.gotoAndPlay('guarddown');
}
}
}
}
} else {
if (hp > thp - 1600) {
if (chance > 85) {
revert();
} else {
if (chance > 65) {
stance = 'BLASTER';
this.gotoAndPlay('blastattack');
} else {
if (chance > 30) {
stance = 'BLADE';
this.gotoAndPlay('bladeattack');
} else {
if (chance > 0) {
stance = 'LOWGUARD';
this.gotoAndPlay('guarddown');
}
}
}
}
} else {
if (hp > 0) {
limit = 2;
if (chance > 70) {
stance = 'LIGHTNING';
this.gotoAndPlay('eyeattack');
} else {
if (chance > 40) {
stance = 'BLADE';
this.gotoAndPlay('bladeattack');
} else {
if (chance > 25) {
stance = 'BLASTER';
this.gotoAndPlay('blastattack');
} else {
if (chance > 0) {
stance = 'LOWGUARD';
this.gotoAndPlay('guarddown');
}
}
}
}
}
}
}
}
} else {
if (stance == 'NEUTRAL') {
++timer;
}
}
if (hp <= 0 && stance !== 'DEAD') {
stance = 'DEAD';
this.gotoAndPlay('dead');
timer = null;
HUD.heroBarB._visible = false;
HUD.heroBar._visible = HUD.heroBarB._visible;
HUD.heroMarker._visible = HUD.heroBarB._visible;
HUD.bossBarB._visible = HUD.heroBarB._visible;
HUD.bossBar._visible = HUD.heroBarB._visible;
HUD.bossMarker._visible = HUD.heroBarB._visible;
for (var i in enemyArray) {
if (enemyArray[i] !== this) {
com.greensock.TweenLite.to(enemyArray[i], 1, {'_x': cam._x + cam._width, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [enemyArray[i]]});
}
}
for (var i in teamArray) {
com.greensock.TweenLite.killTweensOf([teamArray[i]]);
com.greensock.TweenLite.to(_root[teamArray[i]], 1, {'_x': cam._x - cam._width, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [_root[teamArray[i]]]});
}
com.greensock.TweenMax.to(this, 1, {'_x': cam._x, 'ease': com.greensock.easing.Linear.easeNone});
_root.hideBoxes();
}
if (stance !== 'DEAD') {
if (Ben.stance !== 'ULTRA') {
camTarg = Hero;
}
_root.xspeed = 50;
_root.HUD.bossBar._xscale = hp * 100 / thp;
_root.HUD.bossBarB._xscale = 100 - _root.HUD.bossBar._xscale;
if (stance == 'REST') {
stance = 'NEUTRAL';
}
if (stance == 'BLASTING') {
++loops;
_root.attachMovie('groundFlame', 'gFlame' + loops, _root.getNextHighestDepth(), {'_x': _x + random(500) - 250, '_y': yground + random(60)});
var myFlame = _root['gFlame' + loops];
myFlame.onEnterFrame = function () {
with (myFlame) {
_x -= _root.xspeed;
if (_x < -200) {
removeMovieClip(this);
}
}
};
}
if (PHASE !== 'FREEZE') {
for (var i in teamArray) {
var mySlush = _root[teamArray[i]];
if (this.spikebox.hitTest(mySlush._x, mySlush._y, true) && random(2) == 0) {
if (mySlush.stance !== 'HURT' && mySlush.invincible !== true) {
fireA.start();
_root.attachMovie('effectGreensplode', 'greenSplode' + dist, _root.getNextHighestDepth(), {'_x': mySlush._x, '_y': mySlush._y - 20});
com.greensock.TweenMax.to(_root['greenSplode' + dist], 1, {'_x': '-100'});
}
mySlush.getHurt(10);
}
if (this.bladebox.hitTest(mySlush._x, mySlush._y, true)) {
mySlush.getHurt(15);
}
}
}
} else {
if (xspeed > 0) {
--xspeed;
}
}
}
};
Boss.deadfunc = function () {
Boss.stance = 'DEAD';
cam._yscale = 150;
cam._xscale = 150;
com.greensock.TweenMax.to(cam, 1, {'_y': -120, 'ease': com.greensock.easing.Linear.easeNone});
com.greensock.TweenLite.killTweensOf(Boss);
removeFromArray(Boss, _root.enemyArray);
removeFromArray('Hero', _root.teamArray);
winFunc();
};
Boss.eyefunc = function () {
with (Boss) {
var k = 0;
while (k < 3) {
var myBeam = 'beam' + _root.getNextHighestDepth();
_root.attachMovie('beamAttack', myBeam, _root.getNextHighestDepth(), {'_x': 100 + random(500), '_y': -80});
_root[myBeam].gotoAndPlay(k * 10);
_root[myBeam].onEnterFrame = function () {
for (var v5 in _root.teamArray) {
var v3 = _root[_root.teamArray[v5]];
if (this.spikebox.hitTest(v3)) {
v3.getHurt(10);
}
}
for (v5 in _root.enemyArray) {
var v4 = _root.enemyArray[v5];
if (this.spikebox.hitTest(v4)) {
v4.getHurt(20);
}
}
};
++k;
}
revert();
}
};
Boss.guardfunc = function () {
with (Boss) {
++loops;
if (loops > 4) {
gotoAndPlay('return');
loops = 0;
} else {
gotoAndPlay('guardloop');
if (_root.enemyArray.length < 3) {
if (_root.user.data.hardMode == true) {
if (random(2) == 0) {
_root.initDrab('Drab' + dist, 100, 70);
} else {
_root.initBlue('Blue' + dist, 30, 30, Boss._x, Hero);
}
} else {
_root.initBlue('Blue' + dist, 30, 30, Boss._x, Hero);
}
}
}
}
};
Boss.revert = function () {
with (Boss) {
stance = 'NEUTRAL';
if (hp > 2200) {
gotoAndStop(1);
} else {
gotoAndPlay('swaystart');
}
}
};
Boss.getHurt = function (amt) {
with (Boss) {
hp -= amt;
var j = 0;
while (j < 3) {
var myHit = 'hitSplatFB' + _root.getNextHighestDepth();
_root.attachMovie('effectHitA', myHit, _root.getNextHighestDepth(), {'_xscale': 200, '_yscale': 200, '_x': _x, '_y': _y, '_rotation': random(90) * j});
com.greensock.TweenMax.to(_root[myHit], 0, {'colorMatrixFilter': {'hue': 180, 'brightness': 3}});
++j;
}
com.greensock.TweenMax.from(this, 0.2, {'colorTransform': {'tint': 16777215, 'tintAmount': 0.7}});
com.greensock.TweenMax.from(this, 0.4, {'colorTransform': {'tint': 16777215, 'tintAmount': 0.5}, 'delay': 0.2});
com.greensock.TweenMax.to(this, 0.4, {'colorTransform': {'tint': 16777215, 'tintAmount': 0}, 'delay': 0.2});
}
};
initHero();
} else {
if (user.data.currentLevel == 6) {
newBG('bgC', 'countrySkyC', getNextHighestDepth());
newBG('bgB', 'highwayB', getNextHighestDepth());
newBG('bgA', 'highwayA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
bgA.attachMovie('bgDrunk', 'bgDrunk', 15, {'_x': 50});
attachBGfunc(bgA.bgDrunk, 3);
bgB.attachMovie('countryStars', 'stars', getNextHighestDepth(), {'_x': 600, '_y': -1400});
bgB.attachMovie('bgSun', 'bgSun', 14, {'_x': 800, '_y': -325});
bgB.bgSun.gotoAndStop(4);
attachBGfunc(bgB.bgSun, 800);
_root.optInitSlush = function (targ) {
_root[targ].isLit = _root[targ]._y < -500;
};
_root.optInitBlue = function (targ) {
targ.isLit = targ._y < -500;
};
BigBlue.isLit = BigBlue._y < -500;
} else {
if (user.data.currentLevel == 7) {
newBG('bgC', 'lakeSkyC', getNextHighestDepth());
newBG('bgB', 'lakeB', getNextHighestDepth());
newBG('bgA', 'lakeA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
bgB.attachMovie('bgSun', 'bgSun', 14, {'_x': 800, '_y': -325});
bgB.bgSun.gotoAndStop(2);
attachBGfunc(bgB.bgSun, 800);
} else {
if (user.data.currentLevel == 8) {
newBG('bgC', 'emptyABC', getNextHighestDepth());
newBG('bgA', 'forestA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
bgC.attachMovie('forestC', 'forestMC', bgC.getNextHighestDepth(), {'_x': -100});
bgC.attachMovie('bgSun', 'bgSun', bgC.getNextHighestDepth(), {'_x': 615, '_y': -285});
bgC.bgSun.gotoAndStop(2);
} else {
if (user.data.currentLevel == 9) {
newBG('bgC', 'spookyC', getNextHighestDepth());
newBG('bgB', 'spookyB', getNextHighestDepth());
newBG('bgA', 'spookyA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
bgC.attachMovie('bgSun', 'bgSun', bgC.getNextHighestDepth(), {'_x': 815, '_y': -275});
bgC.bgSun.gotoAndStop(5);
} else {
if (user.data.currentLevel == 10) {
newBG('bgC', 'spookyC', getNextHighestDepth());
newBG('bgB', 'spookyB', getNextHighestDepth());
newBG('bgA', 'spookyA2', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
attachMovie('EtherLordBody', 'BossBody', getNextHighestDepth(), {'_x': 1134, '_y': yground});
attachMovie('EtherLordHead', 'Boss', getNextHighestDepth(), {'_x': 1009, '_y': -73});
enemyArray.push(Boss);
Boss.timer = 0;
Boss.thp = 3500;
Boss.hp = 3500;
Boss.shpLimit = 520;
Boss.shp = 520;
Boss.olimit = 520;
Boss.timeStep = 1;
if (user.data.hardMode) {
Boss.thp = 5000;
Boss.hp = 5000;
Boss.shpLimit = 1000;
Boss.shp = 1000;
Boss.olimit = 1000;
Boss.timeStep = 1.5;
}
Boss.stunned = false;
Boss.rspeed = 0;
Boss.yspeed = 0;
Boss.headHeight = -73;
Boss.blobCount = 0;
Boss.stance = 'REST';
Boss.hitbox._visible = false;
Boss.onEnterFrame = function () {
with (Boss) {
if (stance !== 'DEAD') {
_root.xspeed = 40;
if (stance == 'ULTRA') {
for (var u in _root.teamArray) {
var mySlush = _root[_root.teamArray[u]];
if (swipeBox.hitTest(mySlush)) {
_root.setPhase('FOLLOW');
mySlush.getHurt(15);
}
}
_root.setPhase('FREEZE');
}
if (PHASE !== 'FREEZE') {
if (stunned == false) {
if (Hero._x > BossBody._x) {
Hero.getHurt(8);
}
camTarg = Hero;
if (shp > 0) {
TopBound = 20;
BottomBound = 87;
if (hp >= thp * 0.83) {
if (stance == 'REST') {
if (timer == 180) {
stance = 'BREATH';
gotoAndPlay('BREATH');
} else {
if (timer > 180) {
timer = 0;
stance = 'SWIPE';
gotoAndPlay('SWIPE');
}
}
timer += timeStep;
if (random(160) == 0) {
_root.initZombie();
}
} else {
if (stance == 'SWIPE') {
for (var u in _root.teamArray) {
var mySlush = _root[_root.teamArray[u]];
if (swipeBox.hitTest(mySlush)) {
mySlush.getHurt(15);
swordhitB.start();
}
}
}
}
} else {
if (hp >= thp * 0.57) {
TopBound = -300;
BottomBound = 87;
if (stance == 'REST') {
if (headHeight >= -73) {
Boss.shpLimit = olimit + 80;
headHeight = -383;
com.greensock.TweenLite.to(this, 2, {'_y': headHeight, '_x': '-50', 'delay': 1, 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenLite.to(_root.BossBody, 2, {'_yscale': 145, '_x': '-50', 'delay': 1, 'ease': com.greensock.easing.Strong.easeInOut});
}
if (timer == 60 || timer == 180) {
stance = 'BREATH';
gotoAndPlay('BREATH');
} else {
if (timer == 150) {
initPumpkin(true, false);
} else {
if (timer == 90) {
initPumpkin(true, true, -55);
} else {
if (timer > 240) {
timer = 0;
stance = 'SWIPE';
gotoAndPlay('SWIPE');
}
}
}
}
timer += timeStep;
if (random(140) == 0) {
_root.initZombie();
}
} else {
if (stance == 'SWIPE') {
for (var u in _root.teamArray) {
var mySlush = _root[_root.teamArray[u]];
if (swipeBox.hitTest(mySlush)) {
mySlush.getHurt(15);
swordhitB.start();
}
}
}
}
} else {
if (hp >= thp * 0.14) {
TopBound = -580;
BottomBound = 87;
if (stance == 'REST') {
if (headHeight >= -383) {
Boss.shpLimit = olimit + 80 + 60;
headHeight = -703;
ultraStart();
}
if (timer == 60 || timer == 180) {
stance = 'BREATH';
gotoAndPlay('BREATH');
} else {
if (timer == 150) {
initPumpkin(true, false);
} else {
if (timer == 90) {
initPumpkin(false, false);
initPumpkin(true, true, -55);
} else {
if (timer == 105) {
initPumpkin(false, true, -68);
} else {
if (timer == 120) {
initPumpkin(false, random(2), -68);
} else {
if (timer > 240) {
timer = 0;
stance = 'SWIPE';
gotoAndPlay('SWIPE');
}
}
}
}
}
}
timer += timeStep;
if (random(140) == 0) {
_root.initZombie();
}
} else {
if (stance == 'SWIPE') {
for (var u in _root.teamArray) {
var mySlush = _root[_root.teamArray[u]];
if (swipeBox.hitTest(mySlush)) {
mySlush.getHurt(15);
swordhitB.start();
}
}
}
}
} else {
if (hp >= 0) {
TopBound = -892;
BottomBound = 87;
if (stance == 'REST') {
if (headHeight >= -703) {
Boss.shpLimit = olimit + 80 + 60 + 30;
headHeight = -983;
com.greensock.TweenLite.to(this, 2, {'_y': headHeight, 'delay': 1, '_x': '-50', 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenLite.to(_root.BossBody, 2, {'_yscale': 291, 'delay': 1, '_x': '-50', 'ease': com.greensock.easing.Strong.easeInOut});
}
if (timer == 60 || timer == 180) {
stance = 'BREATH';
gotoAndPlay('BREATH');
} else {
if (timer == 150) {
initPumpkin(true, false);
} else {
if (timer == 90) {
initPumpkin(false, false);
initPumpkin(true, true, -55);
} else {
if (timer == 105) {
initPumpkin(false, true, -68);
} else {
if (timer == 120) {
initPumpkin(false, random(2), -68);
} else {
if (timer == 135) {
initPumpkin(false, true, -58);
} else {
if (timer == 141) {
initPumpkin(false, true, -58);
} else {
if (timer > 240) {
timer = 0;
stance = 'SWIPE';
gotoAndPlay('SWIPE');
}
}
}
}
}
}
}
}
timer += timeStep;
if (random(120) == 0) {
_root.initZombie();
}
} else {
if (stance == 'SWIPE') {
for (var u in _root.teamArray) {
var mySlush = _root[_root.teamArray[u]];
if (swipeBox.hitTest(mySlush)) {
mySlush.getHurt(15);
swordhitB.start();
}
}
}
}
}
}
}
}
} else {
HUD.bossMarker.gotoAndStop(5);
yspeed = -30;
rspeed = 30;
timer = 0;
com.greensock.TweenMax.to(_root.BossBody, 1, {'_alpha': 0});
stunned = true;
gotoAndPlay('STUN');
}
} else {
BottomBound = 241;
TopBound = -860;
camTarg = this;
if (rspeed > 10) {
rspeed /= 1.5;
_rotation += rspeed;
}
_y += yspeed;
yspeed += 2;
if (_y > yground) {
landSound();
groundEffect(this, groundType);
yspeed = -Math.abs(yspeed) * 0.75;
_y = yground;
}
if (timer > 270) {
shp = Boss.shpLimit;
HUD.bossMarker.gotoAndStop(1);
HUD.shieldBar._xscale = 100;
com.greensock.TweenLite.to(this, 1, {'_y': headHeight, '_rotation': 0, 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenLite.to(_root.BossBody, 1, {'_alpha': 100});
stunned = false;
revert();
timer = 0;
}
timer += timeStep;
}
}
if (hp <= 0) {
com.greensock.TweenLite.killTweensOf(this);
com.greensock.TweenLite.to(this, 0.5, {'_x': cam._x, '_y': -73, '_rotation': 0, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(cam, 0.5, {'_y': 120, 'ease': com.greensock.easing.Strong.easeInOut});
stance = 'DEAD';
gotoAndPlay('DEAD');
timer = null;
stunned = null;
HUD.heroBarB._visible = false;
HUD.heroBar._visible = HUD.heroBarB._visible;
HUD.heroMarker._visible = HUD.heroBarB._visible;
HUD.bossBarB._visible = HUD.heroBarB._visible;
HUD.bossBar._visible = HUD.heroBarB._visible;
HUD.bossMarker._visible = HUD.heroBarB._visible;
}
} else {
if (xspeed > 0) {
--xspeed;
}
}
}
};
Boss.ultraStart = function () {
for (var k in teamArray) {
HUD[teamArray[k] + 'Box'].getLocked();
}
with (Boss) {
gotoAndPlay('ULTRA');
_root.camTarg = this;
_root.initBGZ('black');
stance = 'ULTRA';
TopBound = 20;
com.greensock.TweenLite.to(this, 0.5, {'_y': -73, '_x': _root.Hero._x + 100, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(_root.BossBody, 0.5, {'_yscale': 100, '_x': _root.Hero._x + 100 + 129, 'ease': com.greensock.easing.Strong.easeOut});
}
HUD.attachMovie('portraitEtherLord', 'portrait', HUD.getNextHighestDepth(), {'_y': -154, '_xscale': 66, '_yscale': 66});
};
Boss.ultraGo = function () {
bgZ.remove();
initBGZ('purple', 'ultraPumpkins');
};
Boss.ultraRevert = function () {
for (var k in teamArray) {
HUD[teamArray[k] + 'Box'].getUnlocked();
}
bgZ.remove();
with (Boss) {
revert();
com.greensock.TweenLite.to(this, 2, {'_y': headHeight, 'delay': 1, '_x': '-50', 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenLite.to(_root.BossBody, 2, {'_yscale': 225, 'delay': 1, '_x': '-50', 'ease': com.greensock.easing.Strong.easeInOut});
}
};
Boss.loseFunc = function () {
delete Boss.onEnterFrame;
HUD.shieldBar._visible = false;
BossBody.onEnterFrame = function () {
if (_root.Boss == undefined) {
removeMovieClip(BossBody);
}
};
};
Boss.deadfunc = function () {
delete Boss.onEnterFrame;
Boss.stance = 'DEAD';
com.greensock.TweenLite.killTweensOf(Boss);
HUD.shieldBar._visible = false;
removeMovieClip(BossBody);
removeFromArray(Boss, _root.enemyArray);
winFunc();
removeFromArray('Hero', _root.teamArray);
};
Boss.revert = function () {
Boss.gotoAndPlay(1);
Boss.stance = 'REST';
Boss.hitbox._visible = false;
};
Boss.breathFunc = function () {
with (Boss) {
var count = blobCount;
var k = 0;
while (k < 15 - count) {
initBlob(k);
++k;
}
}
};
Boss.ultraBlobs = function () {
with (Boss) {
_root.setPhase('FOLLOW');
stance = 'REST';
var k = 0;
while (k < 4) {
initBlob(k, 4);
++k;
}
}
};
Boss.initBlob = function (k, split) {
if (split == undefined) {
split = 15;
}
++Boss.blobCount;
var myBlob = 'blobBoss' + _root.getNextHighestDepth();
_root.attachMovie('etherBlob', myBlob, _root.getNextHighestDepth(), {'_x': Boss._x, '_y': Boss._y - 20 - random(30)});
_root[myBlob].attachMovie('blackBox', 'hitBox', _root[myBlob].getNextHighestDepth(), {'_xscale': 172, '_yscale': 172, '_visible': false});
com.greensock.TweenLite.to(_root[myBlob], 1, {'_x': Boss._x - 700 + random(200), '_y': Boss.headHeight - k * (Boss.headHeight - _root.yground) / split, 'ease': com.greensock.easing.Strong.easeOut});
_root[myBlob].gotoAndPlay(random(50) + 1);
_root[myBlob].removeMe = function () {
with (_root[myBlob]) {
com.greensock.TweenLite.killTweensOf(this);
--_root.Boss.blobCount;
removeMovieClip(this);
}
};
_root[myBlob].onEnterFrame = function () {
with (_root[myBlob]) {
if (_root.Boss.stunned) {
_root[myBlob].removeMe();
}
for (var u in _root.teamArray) {
var mySlush = _root[_root.teamArray[u]];
if (this.hitBox.hitTest(mySlush._x, mySlush._y, false)) {
fireA.start();
hardhit.start();
mySlush.getHurt(15);
_root[myBlob].removeMe();
}
}
}
};
com.greensock.TweenLite.to(_root[myBlob], 1, {'_alpha': 0, 'delay': 6, 'onComplete': _root[myBlob].removeMe});
};
Boss.getHurt = function (amt) {
with (Boss) {
if (stance !== 'DEAD') {
if (stunned) {
hp -= amt;
gotoAndPlay('HURT');
rspeed += 50;
} else {
shp -= amt;
}
_root.HUD.bossBar._xscale = hp * 100 / thp;
_root.HUD.bossBarB._xscale = 100 - _root.HUD.bossBar._xscale;
_root.HUD.shieldBar._xscale = shp * 100 / shpLimit;
var j = 1;
while (j < 4) {
var myHit = 'hitSplatBoss' + _root.getNextHighestDepth();
_root.attachMovie('effectHitA', myHit, _root.getNextHighestDepth(), {'_xscale': 200, '_yscale': 200, '_x': _x, '_y': _y, '_rotation': random(90) * j});
com.greensock.TweenMax.to(_root[myHit], 0, {'colorMatrixFilter': {'hue': 304, 'brightness': 3}});
++j;
}
com.greensock.TweenMax.from(this, 0.2, {'colorTransform': {'tint': 16777215, 'tintAmount': 0.7}});
com.greensock.TweenMax.from(this, 0.4, {'colorTransform': {'tint': 16777215, 'tintAmount': 0.5}, 'delay': 0.2});
com.greensock.TweenMax.to(this, 0.4, {'colorTransform': {'tint': 16777215, 'tintAmount': 0}, 'delay': 0.2});
}
}
};
initHero();
if (user.data.hardMode) {
Hero.hp = 500;
Hero.thp = 500;
}
} else {
if (user.data.currentLevel == 11) {
newBG('bgC', 'tundraC', getNextHighestDepth());
newBG('bgB', 'tundraB', getNextHighestDepth());
newBG('bgA', 'tundraA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
bgC.attachMovie('tundraHills', 'hills', 8);
bgC.attachMovie('tundraHills', 'hillsB', 7, {'_x': bgC.hills._width});
bgC.attachMovie('tundraMountain', 'mountain', 6);
attachBGfunc(bgC.hills, 8);
attachBGfunc(bgC.hillsB, 8);
bgC.hillsB.noDespawn = true;
bgC.hills.noDespawn = bgC.hillsB.noDespawn;
bgC.hills.optFunc = function () {
with (bgC.hills) {
if (_x <= -10 - _width) {
_x = _root.bgC.hillsB._x + _root.bgC.hillsB._width - 22;
} else {
if (_root.bgC.hillsB._x <= -10 - _root.bgC.hillsB._width) {
_root.bgC.hillsB._x = _x + _width - 22;
}
}
}
};
} else {
if (user.data.currentLevel == 12) {
newBG('bgC', 'whiteOutC', getNextHighestDepth());
newBG('bgA', 'whiteOutA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
bgC.attachMovie('bgSun', 'bgSun', 14, {'_x': 585, '_y': -512});
bgC.bgSun.gotoAndStop(6);
_root.optInitSlush = function (targ) {
com.greensock.TweenMax.to(_root[targ], 0, {'colorMatrixFilter': {'saturation': 0}});
};
_root.optInitBlue = function (targ) {
com.greensock.TweenMax.to(targ, 0, {'colorMatrixFilter': {'saturation': 0}});
};
} else {
if (user.data.currentLevel == 13) {
newBG('bgC', 'hollyC', getNextHighestDepth());
newBG('bgB', 'hollyB', getNextHighestDepth());
newBG('bgA', 'hollyA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
_root.optInitSlush = function (targ) {
_root[targ].isLit = _root[targ]._y < -350;
};
_root.optInitBlue = function (targ) {
targ.isLit = targ._y < -350;
};
} else {
if (user.data.currentLevel == 14) {
newBG('bgC', 'emptyABC', getNextHighestDepth());
bgC.attachMovie('fireflyC', 'galaxyMC', bgC.getNextHighestDepth());
newBG('bgB', 'fireflyB', getNextHighestDepth());
newBG('bgA', 'fireflyA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
_root.optInitSlush = function (targ) {
_root[targ].isLit = _root[targ]._y < 65;
};
_root.optInitBlue = function (targ) {
targ.isLit = targ._y < 65;
};
} else {
if (user.data.currentLevel == 15) {
newBG('bgC', 'emptyABC', getNextHighestDepth());
bgC.attachMovie('fireflyC', 'galaxyMC', bgC.getNextHighestDepth());
newBG('bgB', 'fireflyB', getNextHighestDepth());
newBG('bgA', 'fireflyA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
initHero();
Hero.hp = 750;
Hero.thp = 750;
bgA._y = 100;
bgB._y = 100;
bgC._y = 100;
} else {
if (user.data.currentLevel == 16) {
newBG('bgC', 'bitlandC', getNextHighestDepth());
newBG('bgB', 'bitlandB', getNextHighestDepth());
newBG('bgA', 'bitlandA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
_root.optInitSlush = function (targ) {
com.greensock.TweenMax.to(_root[targ], 0, {'tint': _root[targ].optColor});
};
} else {
if (user.data.currentLevel == 17) {
newBG('bgC', 'tiC', getNextHighestDepth());
newBG('bgB', 'tiB', getNextHighestDepth());
newBG('bgA', 'tiA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
_root.optInitSlush = function (targ) {
_root[targ].isLit = _root[targ]._y < -50;
com.greensock.TweenMax.to(_root[targ], 0, {'colorMatrixFilter': {'saturation': 0.5}});
com.greensock.TweenMax.to(_root[targ], 0, {'colorTransform': {'tint': 4939083, 'tintAmount': 0.5}});
};
_root.optInitBlue = function (targ) {
targ.isLit = targ._y < -50;
com.greensock.TweenMax.to(targ, 0, {'tint': 4939083});
};
} else {
if (user.data.currentLevel == 18) {
newBG('bgC', 'lunaHallC', getNextHighestDepth());
newBG('bgB', 'lunaHallB', getNextHighestDepth());
newBG('bgA', 'lunaHallA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
_root.optInitSlush = function (targ) {
com.greensock.TweenMax.to(_root[targ], 0, {'dropShadowFilter': {'color': 11326458, 'blurX': 20, 'blurY': 20, 'strength': 1, 'angle': 287, 'distance': 8, 'inner': true}});
};
_root.optInitBlue = function (targ) {
com.greensock.TweenMax.to(targ, 0, {'dropShadowFilter': {'color': 11326458, 'blurX': 20, 'blurY': 20, 'strength': 1, 'angle': 287, 'distance': 8, 'inner': true}});
};
} else {
if (user.data.currentLevel == 19) {
newBG('bgC', 'lunaBaseC', getNextHighestDepth());
bgC.attachMovie('lunaStill', 'lunaStill', 8);
newBG('bgB', 'lunaBaseB', getNextHighestDepth());
newBG('bgA', 'lunaBaseA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
_root.optInitSlush = function (targ) {
_root[targ].isLit = _root[targ]._y < -417;
};
_root.optInitBlue = function (targ) {
targ.isLit = targ._y < -417;
};
} else {
if (user.data.currentLevel == 20) {
newBG('bgF', 'moonF', getNextHighestDepth());
bgF.attachMovie('lunaStill', 'lunaStill', 7, {'_y': 150});
bgF.attachMovie('BigBlaster', 'facility', 8, {'_y': -450, '_x': 617});
newBG('bgE', 'moonE', getNextHighestDepth());
newBG('bgD', 'moonD', getNextHighestDepth());
bgArray.push(bgD, bgE, bgF);
newBG('bgC', 'moonC', getNextHighestDepth());
newBG('bgB', 'moonB', getNextHighestDepth());
newBG('bgA', 'moonA', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
_root.optInitSlush = function (targ) {
_root[targ].isLit = _root[targ]._y < -417;
};
_root.optInitBlue = function (targ) {
targ.isLit = targ._y < -417;
};
} else {
if (user.data.currentLevel == 21) {
newBG('bgC', 'emptyABC', getNextHighestDepth());
bgC.attachMovie('lunaStillB', 'lunaStill', 8, {'_y': -100});
newBG('bgB', 'bigBoiB', getNextHighestDepth());
createEmptyMovieClip('bgZ', getNextHighestDepth());
attachMovie('BigBoiMC', 'Boss', getNextHighestDepth(), {'_x': 320, '_y': 85, '_xscale': 240, '_yscale': 240});
newBG('bgA', 'bigBoiA', getNextHighestDepth());
enemyArray.push(Boss);
Boss.timer = 0;
Boss.thp = 3700;
Boss.hp = 3700;
Boss.tshp = 1500;
Boss.shp = 1500;
if (user.data.hardMode) {
Boss.thp = 4400;
Boss.hp = 4400;
Boss.tshp = 1900;
Boss.shp = 1900;
}
Boss.disabled = false;
Boss.headHeight = -73;
Boss.blobCount = 0;
Boss.stance = 'REST';
Boss.hitbox._visible = false;
Boss.eye;
Boss.onEnterFrame = function () {
with (Boss) {
if (stance !== 'DEAD') {
_root.xspeed = 40;
if (PHASE !== 'FREEZE') {
if (!disabled) {
camTarg = Hero;
if (shp > 0) {
if (hp > thp * 0.8) {
if (timer >= 180) {
timer = 0;
if (Hero._x < 0) {
stance = 'LPOUND';
gotoAndPlay('LeftPound');
} else {
stance = 'RPOUND';
gotoAndPlay('RightPound');
}
}
} else {
if (hp > thp * 0.625) {
tshp = 1700;
if (timer >= 150) {
timer = 0;
var ran = random(2);
if (ran == 0) {
if (Hero._x < 0) {
stance = 'LPOUND';
gotoAndPlay('LeftPound');
} else {
stance = 'RPOUND';
gotoAndPlay('RightPound');
}
} else {
stance = 'FIRE';
gotoAndPlay('FIRE');
}
}
} else {
if (hp > thp * 0.4) {
tshp = 1900;
if (timer == 120) {
var ran = random(2);
if (ran == 0) {
timer = 0;
if (Hero._x < 0) {
stance = 'LPOUND';
gotoAndPlay('LeftPound');
} else {
stance = 'RPOUND';
gotoAndPlay('RightPound');
}
} else {
stance = 'LASER';
gotoAndPlay('LASER');
}
}
} else {
tshp = 2000;
if (timer == 90) {
var ran = random(6);
if (ran < 2) {
timer = 0;
if (Hero._x < 0) {
stance = 'LPOUND';
gotoAndPlay('LeftPound');
} else {
stance = 'RPOUND';
gotoAndPlay('RightPound');
}
} else {
if (ran < 4) {
stance = 'LASER';
gotoAndPlay('LASER');
} else {
timer = 0;
stance = 'FIRE';
gotoAndPlay('FIRE');
}
}
}
}
}
}
if (stance == 'FIRE') {
for (var u in _root.teamArray) {
var mySlush = _root[_root.teamArray[u]];
if (flameBox.hitTest(mySlush)) {
mySlush.getHurt(5);
}
}
var newFlame = 'bigBoiFlame' + _root.getNextHighestDepth();
_root.attachMovie('groundFlame', newFlame, _root.getNextHighestDepth(), {'_x': 1000 + random(300) - 150, '_y': yground + random(60)});
com.greensock.TweenMax.to(_root[newFlame], 0, {'tint': 65535});
_root[newFlame].onEnterFrame = function () {
with (_root[newFlame]) {
_x -= 20;
if (_x < 400) {
_alpha -= 5;
if (_alpha <= 0) {
removeMovieClip(this);
}
}
}
};
}
} else {
HUD.bossMarker.gotoAndStop(2);
timer = 0;
disabled = true;
gotoAndPlay('DISABLED');
}
if (stance == 'LASER') {
if (timer > 120) {
if (eye._x > -135 && Hero._x < eye._x + _x) {
eye._x += (Hero._x - (_x + eye._x * 2.4)) / 8;
} else {
if (eye._x < 130 && Hero._x > eye._x + _x) {
eye._x += (Hero._x - (_x + eye._x * 2.4)) / 8;
}
}
}
if (timer == 150 || timer == 165 || timer == 180 || timer == 195 || timer == 210 || timer == 225 || timer == 240 || timer == 255 || timer == 270 || timer == 285 || timer == 270) {
com.greensock.TweenMax.from(eye, 0.5, {'colorTransform': {'tint': 6749952, 'tintAmount': 0.5}});
com.greensock.TweenMax.to(eye, 0.5, {'colorTransform': {'tint': 6749952, 'tintAmount': 0}});
var newSwirl = 'swirlBB' + _root.getNextHighestDepth();
_root.attachMovie('effectSwirl', newSwirl, _root.getNextHighestDepth(), {'_xscale': 200, '_yscale': 200, '_x': _x + eye._x * 2.4, '_y': -600});
com.greensock.TweenMax.to(_root[newSwirl], 0, {'colorMatrixFilter': {'hue': 100, 'brightness': 1}});
com.greensock.TweenMax.to(_root[newSwirl], 1, {'_xscale': 400, '_yscale': 400, '_rotation': 720, '_alpha': 0, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [_root[newSwirl]]});
if (random(2) == 0) {
blasterA.start();
} else {
laserA.start();
}
var newFB = 'fbBB' + _root.getNextHighestDepth();
_root.attachMovie('effectGreenfire', newFB, _root.getNextHighestDepth(), {'_xscale': 400, '_yscale': 400, '_x': _x + eye._x * 2.4, '_y': -600, '_rotation': Math.atan2(Hero._y + 600, Hero._x - (_x + eye._x * 2.4)) * 180 / Math.PI});
com.greensock.TweenMax.to(_root[newFB], 0, {'colorMatrixFilter': {'hue': 260, 'brightness': 1}});
_root[newFB].ang = _root[newFB]._rotation * Math.PI / 180;
_root[newFB].onEnterFrame = function () {
with (_root[newFB]) {
if (_root.PHASE !== 'FREEZE') {
_x += Math.cos(ang) * 50;
_y += Math.sin(ang) * 50;
for (var i in _root.teamArray) {
var mySlush = _root[_root.teamArray[i]];
if (this.hitTest(mySlush._x, mySlush._y, true)) {
mySlush.getHurt(30);
detonate();
}
}
}
if (_y > _root.yground + 50) {
detonate();
}
}
};
_root[newFB].detonate = function () {
fireA.start();
with (_root[newFB]) {
var newSplode = 'bbSplode' + _root.getNextHighestDepth();
_root.attachMovie('effectGreensplode', newSplode, _root.getNextHighestDepth(), {'_xscale': 400, '_yscale': 400, '_x': _x, '_y': _y, '_rotation': _rotation});
com.greensock.TweenMax.to(_root[newSplode], 0, {'colorMatrixFilter': {'hue': 260, 'brightness': 2}});
removeMovieClip(this);
}
};
} else {
if (timer > 300) {
timer = 0;
play();
}
}
} else {
if (timer > 180) {
timer = 0;
}
}
} else {
camTarg = this;
if (timer >= 210 && _currentframe < 329) {
gotoAndPlay(329);
}
}
}
++timer;
if (_root.user.data.hardMode) {
timer += 0.5;
}
if (hp <= 0) {
com.greensock.TweenLite.killTweensOf(this);
com.greensock.TweenLite.to(this, 4, {'_x': '200', '_y': 1671, '_rotation': '30', 'ease': com.greensock.easing.Linear.easeNone, 'onComplete': removeMC, 'onCompleteParams': [this]});
stance = 'DEAD';
gotoAndPlay('DEAD');
timer = null;
disabled = null;
HUD.heroBarB._visible = false;
HUD.heroBar._visible = HUD.heroBarB._visible;
HUD.heroMarker._visible = HUD.heroBarB._visible;
HUD.shieldBar._visible = HUD.heroBarB._visible;
HUD.bossBarB._visible = HUD.heroBarB._visible;
HUD.bossBar._visible = HUD.heroBarB._visible;
HUD.bossMarker._visible = HUD.heroBarB._visible;
for (var i in teamArray) {
delete _root[teamArray[i]].onEnterFrame;
com.greensock.TweenLite.killTweensOf(_root[teamArray[i]]);
com.greensock.TweenLite.to(_root[teamArray[i]], 1, {'_x': cam._x - cam._width, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [_root[teamArray[i]]]});
}
removeFromArray(Boss, _root.enemyArray);
removeFromArray('Hero', _root.teamArray);
user.data.teamArray = teamArray;
var bestScore = user.data.bestArray[user.data.currentLevel];
earnedScore += score - bestScore;
if (earnedScore < 0) {
earnedScore = 0;
}
user.data.scoreTotal += earnedScore;
setupWinLevel();
com.greensock.TweenLite.delayedCall(1.9, unloadAll);
checkCutscene(null, 2, user.data.currentLevel);
_root.hideBoxes();
}
}
}
};
Boss.checkPound = function (hitMC) {
with (Boss) {
for (var u in _root.teamArray) {
var mySlush = _root[_root.teamArray[u]];
if (hitMC.hitTest(mySlush._x, mySlush._y, true)) {
_root.setPhase('FREEZE');
com.greensock.TweenLite.delayedCall(0.2, setPhase, ['FOLLOW']);
mySlush.getHurt(30);
}
}
}
};
Boss.recover = function () {
with (Boss) {
shp = tshp;
HUD.bossMarker.gotoAndStop(1);
com.greensock.TweenMax.to(HUD.shieldBar, 0.5, {'_xscale': 100, 'ease': com.greensock.easing.Strong.easeOut});
disabled = false;
timer = 0;
}
};
Boss.loseFunc = function () {
delete Boss.onEnterFrame;
HUD.shieldBar._visible = false;
};
Boss.revert = function () {
Boss.gotoAndPlay(1);
Boss.stance = 'REST';
Boss.hitbox._visible = false;
};
Boss.getHurt = function (amt) {
with (Boss) {
if (stance !== 'DEAD') {
_root.metalhit.start();
_root.metalhit.start();
if (disabled) {
genhit.start();
hp -= amt;
gotoAndPlay('HURT');
} else {
shp -= amt;
}
if (!disabled) {
if (random(2) == 0) {
var bbPart = 'bigBoiPart' + _root.getNextHighestDepth();
_root.attachMovie('BigBoiPart', bbPart, _root.getNextHighestDepth(), {'_xscale': 50 + random(70), '_yscale': 50 + random(70), '_x': _x - 100 + random(200), '_y': _y + 50 - random(300), '_rotation': random(360)});
_root[bbPart].gotoAndStop(1 + random(4));
_root[bbPart].xvel = 10 + random(6);
_root[bbPart].yvel = 6 - random(20);
_root[bbPart].grounded = false;
_root[bbPart].stay = random(8);
_root[bbPart].onEnterFrame = function () {
with (_root[bbPart]) {
if (_root.PHASE !== 'FREEZE') {
if (!grounded) {
_x += xvel;
_y += yvel;
++yvel;
if (_y > _root.yground && stay > 0) {
yvel = -Math.abs(yvel * 0.75);
xvel -= 2;
--stay;
if (Math.abs(yvel) < 5) {
grounded = true;
_y = _root.yground;
com.greensock.TweenMax.to(this, 1, {'tint': 65535});
}
}
} else {
_x -= 20;
for (var u in _root.teamArray) {
var mySlush = _root[_root.teamArray[u]];
if (mySlush.hitTest(_x, _y, false)) {
_root.metalhit.start();
_root.metalhit.start();
_root.metalhit.start();
mySlush.getHurt(2);
gotoAndPlay(5);
delete this.onEnterFrame;
}
}
}
}
if (_x < -800 || _y > 600) {
removeMovieClip(this);
}
if (_root.Boss == undefined) {
removeMovieClip(this);
}
}
};
var j = 1;
while (j < 4) {
var myHit = 'hitSplatBoss' + _root.getNextHighestDepth();
_root.attachMovie('effectHitA', myHit, _root.getNextHighestDepth(), {'_xscale': 200, '_yscale': 200, '_x': _x, '_y': _y, '_rotation': random(90) * j});
com.greensock.TweenMax.to(_root[myHit], 0, {'colorMatrixFilter': {'hue': 304, 'brightness': 3}});
++j;
}
com.greensock.TweenMax.from(this, 0.2, {'colorTransform': {'tint': 16777215, 'tintAmount': 0.7}});
com.greensock.TweenMax.from(this, 0.4, {'colorTransform': {'tint': 16777215, 'tintAmount': 0.5}, 'delay': 0.2});
com.greensock.TweenMax.to(this, 0.4, {'colorTransform': {'tint': 16777215, 'tintAmount': 0}, 'delay': 0.2});
}
} else {
if (random(3) == 0) {
if (random(2) == 0) {
boomA.start();
} else {
boomB.start();
}
var mySplode = 'bbSplode' + _root.getNextHighestDepth();
_root.attachMovie('effectBoom', mySplode, _root.getNextHighestDepth(), {'_x': -100 + random(700), '_y': 200 - random(700), '_xscale': 200, '_yscale': 200});
com.greensock.TweenMax.to(_root[mySplode], 0, {'colorMatrixFilter': {'hue': 88, 'brightness': 1}});
com.greensock.TweenMax.to(_root[mySplode], 1, {'_x': '-150'});
}
com.greensock.TweenMax.from(this, 0.2, {'colorTransform': {'tint': 65535, 'tintAmount': 0.7}});
com.greensock.TweenMax.from(this, 0.4, {'colorTransform': {'tint': 65535, 'tintAmount': 0.5}, 'delay': 0.2});
com.greensock.TweenMax.to(this, 0.4, {'colorTransform': {'tint': 65535, 'tintAmount': 0}, 'delay': 0.2});
}
_root.HUD.bossBar._xscale = hp * 100 / thp;
_root.HUD.bossBarB._xscale = 100 - _root.HUD.bossBar._xscale;
_root.HUD.shieldBar._xscale = shp * 100 / tshp;
}
}
};
initHero();
Hero.hp = 330;
Hero.thp = 330;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
function update1() {
if (user.data.hardMode) {
if (levelProgress == 0 && dist > 400) {
initBlue('BlueA', 70, 10);
initBlue('BlueB', 100, 20);
newBG('bgB', 'slushWingB');
groundType = 'ROAD';
++levelProgress;
} else {
if (levelProgress == 1 && dist > 2000) {
initBlue('BlueC', 200, 10);
initDrab('DrabD', 150, 300);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 5000) {
initBlue('BlueE', 200, 20);
newBG('bgA', 'sidewalkGrassA');
groundType = 'GRASS';
++levelProgress;
} else {
if (levelProgress == 3 && dist > 6500) {
initDrab('DrabF', 150, 300);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 8000) {
initDrab('DrabG', 200, 300);
newBG('bgB', 'mountainsB');
newBG('bgA', 'closeSidewalkA');
++levelProgress;
} else {
if (levelProgress == 5 && dist > 13000) {
initBlue('BlueH', 100);
initBlue('BlueI', 100);
newBG('bgA', 'grassCrowdA');
++levelProgress;
} else {
if (levelProgress == 6 && dist > 15000) {
initBlue('BlueJ', 50);
initBlue('Bluek', 100);
bgB.attachMovie('bgPayne', 'bgPayne', 20, {'_x': cam._x + 500});
attachBGfunc(bgB.bgPayne, 3);
++levelProgress;
} else {
if (levelProgress == 7 && dist > 16000) {
initDrab('Drabl', 100, 300);
initBlue('Bluem', 50);
initBlue('Bluen', 100);
bgB.attachMovie('bgNHW', 'bgNHW', 20, {'_x': cam._x + 500});
attachBGfunc(bgB.bgNHW, 3);
++levelProgress;
} else {
if (levelProgress == 8 && dist > 20000) {
initDrab('Drabo', 200, 300);
initBlue('Bluep', 150);
++levelProgress;
} else {
if (levelProgress == 9 && dist > 22000) {
initBlue('Blueq', 300);
++levelProgress;
} else {
if (levelProgress == 10 && dist > 24000) {
bgB.attachMovie('bgDX', 'bgDX', 20, {'_x': cam._x + 500});
attachBGfunc(bgB.bgDX, 3);
++levelProgress;
}
}
}
}
}
}
}
}
}
}
}
} else {
if (levelProgress == 0 && dist > 400) {
newBG('bgB', 'slushWingB');
groundType = 'ROAD';
++levelProgress;
} else {
if (levelProgress == 1 && dist > 2600) {
if (user.data.story == 'LevelOne') {
HUD.attachMovie('tutKeep', 'tutKeep', HUD.getNextHighestDepth(), {'_alpha': 0, '_y': 200});
com.greensock.TweenLite.to(HUD.tutKeep, 1, {'_alpha': 100, '_y': -100, 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenLite.to(HUD.tutKeep, 1, {'_alpha': 0, 'delay': 8, 'onComplete': removeMC, 'onCompleteParams': [HUD.tutKeep]});
}
newBG('bgA', 'sidewalkGrassA');
groundType = 'GRASS';
++levelProgress;
} else {
if (levelProgress == 2 && dist > 5000) {
newBG('bgB', 'mountainsB');
newBG('bgA', 'closeSidewalkA');
++levelProgress;
} else {
if (levelProgress == 3 && dist > 6800) {
if (user.data.story == 'LevelOne') {
HUD.attachMovie('tutKhanh', 'tutKhanh', HUD.getNextHighestDepth(), {'_alpha': 0, '_x': HUD.KhanhBox._x, '_y': HUD.KhanhBox._y});
com.greensock.TweenLite.to(HUD.tutKhanh, 1, {'_alpha': 100, 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenLite.to(HUD.tutKhanh, 1, {'_alpha': 0, 'delay': 8, 'onComplete': removeMC, 'onCompleteParams': [HUD.tutKhanh]});
}
newBG('bgA', 'grassCrowdA');
++levelProgress;
} else {
if (levelProgress == 4 && dist > 7000) {
bgB.attachMovie('bgPayne', 'bgPayne', 20, {'_x': cam._x + 500});
attachBGfunc(bgB.bgPayne, 3);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 8000) {
bgB.attachMovie('bgNHW', 'bgNHW', 20, {'_x': cam._x + 500});
attachBGfunc(bgB.bgNHW, 3);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 9000) {
bgB.attachMovie('bgDX', 'bgDX', 20, {'_x': cam._x + 500});
attachBGfunc(bgB.bgDX, 3);
++levelProgress;
}
}
}
}
}
}
}
}
bgA._visible = cam._y > -363;
if (dist > endDist) {
winFunc();
}
}
function update2() {
if (user.data.hardMode) {
if (levelProgress == 0 && dist > 500) {
initBlue('BlueA', 100);
initBlue('BlueB', 100);
++levelProgress;
} else {
if (levelProgress == 1 && dist > 4000) {
initBlue('BlueC', 100);
initMage('MageA', 120, BigBlue);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 5000) {
initToaster('ToasterA', 200, 1);
initToaster('ToasterB', 200, 1);
bgB.attachMovie('bgHokiesField', 'bgFootball', 20, {'_x': cam._x + 500});
bgB.bgFootball.gotoAndStop(1);
attachBGfunc(bgB.bgFootball, 4);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 6000) {
initBlue('BlueD', 100);
initBlue('BlueE', 100);
bgB.attachMovie('bgHokiesField', 'bgSoccer', 22, {'_x': cam._x + 500});
bgB.bgSoccer.gotoAndStop(3);
attachBGfunc(bgB.bgSoccer, 4);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 6500) {
initMage('MageB', 50, BigBlue);
bgB.attachMovie('bgHokiesField', 'bgFris', 22, {'_x': cam._x + 500});
bgB.bgFris.gotoAndStop(3);
attachBGfunc(bgB.bgFris, 4);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 7500) {
initToaster('ToasterC', 200, 1);
initToaster('ToasterD', 200, 1);
initMage('MageJohansen', 50, ToasterD);
bgB.attachMovie('bgHokiesField', 'bgSoccer', 20, {'_x': cam._x + 500});
bgB.bgSoccer.gotoAndStop(2);
attachBGfunc(bgB.bgSoccer, 4);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 8500) {
bgB.attachMovie('bgPylons', 'bgPylons', 17, {'_x': cam._x + 500});
attachBGfunc(bgB.bgPylons, 4.5);
++levelProgress;
} else {
if (levelProgress == 7 && dist > 10000) {
initToaster('ToasterE', 300, 1);
initToaster('ToasterF', 300, 1);
initMage('MageTYT', 250, ToasterF);
newBG('bgA', 'fieldSidewalkAB');
groundType = 'GRASS';
tweenA = com.greensock.TweenMax.to(bgB, 10, {'_y': '227.5', 'ease': com.greensock.easing.Linear.easeNone});
tweenB = com.greensock.TweenMax.to(bgC, 10, {'_y': '210.0', 'ease': com.greensock.easing.Linear.easeNone});
com.greensock.TweenMax.to(bgC.bgSun, 2, {'_y': '75', 'ease': Regular.easeOut});
bgC.bgSun.gotoAndStop(2);
++levelProgress;
}
}
}
}
}
}
}
}
} else {
if (levelProgress == 0 && dist > 1500) {
if (user.data.tutArray[5] == false) {
HUD.attachMovie('tutQWE', 'tutQWE', HUD.getNextHighestDepth(), {'_alpha': 0, '_y': 200});
com.greensock.TweenLite.to(HUD.tutQWE, 1, {'_alpha': 100, '_y': -145, 'ease': com.greensock.easing.Strong.easeOut});
HUD.tutQWE.closeBTN._alpha = 0;
com.greensock.TweenLite.to(HUD.tutQWE.closeBTN, 0.5, {'_alpha': 100, 'delay': 7});
attachMovie('numKey', 'Qtut', getNextHighestDepth());
attachMovie('numKey', 'Wtut', getNextHighestDepth());
attachMovie('numKey', 'Etut', getNextHighestDepth());
Qtut.gotoAndStop(1);
Wtut.gotoAndStop(2);
Etut.gotoAndStop(3);
Wtut.onEnterFrame = function () {
with (Wtut) {
_x += (BigBlue._x - _x) * 0.7;
_y += (BigBlue._y - _y) * 0.7;
if (PHASE == 'DONE') {
removeMovieClip(this);
}
}
};
Qtut.myTarg;
Qtut.onEnterFrame = function () {
with (Qtut) {
var closeX = 10000;
var closeEnemy = topTarg;
for (var k in enemyArray) {
if ((enemyArray[k].hp > 0 || enemyArray[k] == mainTarg) && enemyArray[k]._x < topTarg._x) {
var dif = topTarg._x - enemyArray[k]._x;
if (dif < closeX && dif > 0) {
closeX = dif;
if (enemyArray[k] !== BigBlue || enemyArray[k] == BigBlue && !BigBlue.onMobile) {
closeEnemy = enemyArray[k];
}
}
}
}
myTarg = closeEnemy;
if (myTarg == undefined || myTarg == mainTarg) {
_visible = false;
} else {
_visible = true;
_x += (myTarg._x - _x) * 0.7;
_y += (myTarg._y - _y) * 0.7;
}
if (PHASE == 'DONE') {
removeMovieClip(this);
}
}
};
Etut.myTarg;
Etut.onEnterFrame = function () {
with (Etut) {
var closeX = 10000;
var closeEnemy = topTarg;
for (var k in enemyArray) {
if ((enemyArray[k].hp > 0 || enemyArray[k] == mainTarg) && enemyArray[k]._x > topTarg._x) {
var dif = enemyArray[k]._x - topTarg._x;
if (dif < closeX && dif > 0) {
closeX = dif;
if (enemyArray[k] !== BigBlue || enemyArray[k] == BigBlue && !BigBlue.onMobile) {
closeEnemy = enemyArray[k];
}
}
}
}
myTarg = closeEnemy;
if (myTarg == undefined || myTarg == mainTarg) {
_visible = false;
} else {
_visible = true;
_x += (myTarg._x - _x) * 0.7;
_y += (myTarg._y - _y) * 0.7;
}
if (PHASE == 'DONE') {
removeMovieClip(this);
}
}
};
}
initBlue('BlueA', 70, 40);
++levelProgress;
} else {
if (levelProgress == 1 && dist > 4000) {
initBlue('BlueB', 70, 20);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 5000) {
bgB.attachMovie('bgHokiesField', 'bgFootball', 20, {'_x': cam._x + 500});
bgB.bgFootball.gotoAndStop(1);
attachBGfunc(bgB.bgFootball, 4);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 6000) {
bgB.attachMovie('bgHokiesField', 'bgFris', 22, {'_x': cam._x + 500});
bgB.bgFris.gotoAndStop(3);
attachBGfunc(bgB.bgFris, 4);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 6500) {
bgB.attachMovie('bgHokiesField', 'bgSoccer', 22, {'_x': cam._x + 500});
bgB.bgSoccer.gotoAndStop(3);
attachBGfunc(bgB.bgSoccer, 4);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 7500) {
bgB.attachMovie('bgHokiesField', 'bgSoccer', 20, {'_x': cam._x + 500});
bgB.bgSoccer.gotoAndStop(2);
attachBGfunc(bgB.bgSoccer, 4);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 8500) {
bgB.attachMovie('bgPylons', 'bgPylons', 17, {'_x': cam._x + 500});
attachBGfunc(bgB.bgPylons, 4.5);
++levelProgress;
} else {
if (levelProgress == 7 && dist > 10000) {
newBG('bgA', 'fieldSidewalkAB');
groundType = 'GRASS';
tweenA = com.greensock.TweenMax.to(bgB, 10, {'_y': '227.5', 'ease': com.greensock.easing.Linear.easeNone});
tweenB = com.greensock.TweenMax.to(bgC, 10, {'_y': '210.0', 'ease': com.greensock.easing.Linear.easeNone});
com.greensock.TweenMax.to(bgC.bgSun, 2, {'_y': '75', 'ease': Regular.easeOut});
bgC.bgSun.gotoAndStop(2);
++levelProgress;
}
}
}
}
}
}
}
}
if (dist > 2500 && _root.BlueA == undefined && _root.BlueB == undefined && _root.BlueC == undefined) {
initBlue('BlueC', 150);
}
}
if (dist > 10000 && (tweenA !== undefined || tweenB !== undefined)) {
if (PHASE == 'FREEZE') {
tweenA.pause();
tweenB.pause();
} else {
tweenA.resume();
tweenB.resume();
}
}
bgA._visible = cam._y > -298;
if (levelProgress >= 7) {
bgC.BG2.clouds._visible = cam._y < -60;
bgC.BG1.clouds._visible = bgC.BG2.clouds._visible;
TopBound = -1300;
} else {
bgC.BG2.clouds._visible = cam._y < -300;
bgC.BG1.clouds._visible = bgC.BG2.clouds._visible;
}
if (dist < 10000 && random(25) == 0) {
if (random(40) == 0) {
var randClr = new Array(16777215, 6684672, 16737792);
var myDude = 'bgHokieField' + bgB.getNextHighestDepth();
bgB.attachMovie('bgHokiesField', myDude, bgB.getNextHighestDepth(), {'_x': cam._x + 500, '_y': random(70) - 30});
bgB[myDude].gotoAndStop(4 + random(4));
com.greensock.TweenMax.to(bgB[myDude], 0, {'colorTransform': {'tint': randClr[random(3)], 'tintAmount': 1}});
attachBGfunc(bgB[myDude], 3);
}
var randHokie = new Array('hokieA', 'hokieB', 'hokieC');
var randClr = new Array(16777215, 6684672, 16737792);
var myDude = 'bgHokie' + bgA.getNextHighestDepth();
bgA.attachMovie(randHokie[random(3)], myDude, bgA.getNextHighestDepth(), {'_x': cam._x + 500, '_y': 220 + random(50)});
if (dist > 12500) {
bgA[myDude]._y -= 50;
}
com.greensock.TweenMax.to(bgA[myDude], 0, {'colorTransform': {'tint': randClr[random(3)], 'tintAmount': 1}});
attachBGfunc(bgA[myDude], 1.5);
bgA[myDude].optFunc = function () {
if (this.hitTest(_root.BigBlue) && this.hasHit == undefined) {
powerhitA.start();
var v3 = 0.6 + Math.random() * 1;
com.greensock.TweenMax.to(this, v3 / 2, {'_x': this._x + _root.xspeed * 2, 'ease': Regular.easeOut, 'repeat': 1, 'yoyo': true});
com.greensock.TweenMax.to(this, v3 / 2, {'_y': this._y - _root.xspeed * 3, 'ease': Regular.easeOut, 'repeat': -1, 'yoyo': true});
com.greensock.TweenMax.to(this, v3 / 2, {'_y': this._y - _root.xspeed * 2, 'ease': Regular.easeOut, 'delay': v3, 'repeat': -1, 'yoyo': true});
com.greensock.TweenMax.to(this, v3, {'_rotation': '360', 'repeat': -1, 'ease': com.greensock.easing.Linear.easeNone});
this.gotoAndStop('FLY');
this.hasHit = true;
}
if (this.hasHit == true && _root.PHASE == 'DONE') {
com.greensock.TweenLite.killTweensOf(this);
this.mc.gotoAndStop(4 + random(2));
this._rotation = 0;
com.greensock.TweenMax.to(this, 0.5, {'_y': 240 + random(20), 'ease': Regular.easeIn});
this.hasHit = false;
}
};
}
if (dist > endDist) {
winFunc();
}
}
function update3() {
if (user.data.hardMode) {
if (dist > 2500) {
if (_root.BlueA == undefined) {
initBlue('BlueA', 300);
}
if (_root.BlueB == undefined) {
initBlue('BlueB', 300);
}
if (_root.CobaltA == undefined) {
initCobalt('CobaltA', 500);
}
if (_root.CobaltB == undefined) {
initCobalt('CobaltB', 50);
}
}
} else {
if (dist > 2500 && _root.BlueA == undefined) {
initBlue('BlueA', 170);
}
}
if (dist > 5000) {
if (myTimer >= 90) {
myTimer = 0;
var v5 = 'lamp' + bgA.getNextHighestDepth();
bgA.attachMovie('lampObstacle', v5, bgA.getNextHighestDepth(), {'_x': cam._x + 500, '_y': 293});
bgA[v5].gotoAndStop(random(2) + 1);
attachBGfunc(bgA[v5], 1.5);
bgA[v5].optFunc = function () {
if (this.postMC.hitTest(_root.BigBlue) && this.hasHit == undefined && _root.xspeed > 25) {
_root.xspeed -= 25;
_root.PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.2, setPhase, ['FOLLOW']);
this.gotoAndPlay(3);
var v3 = 'lampHalf' + bgA.getNextHighestDepth();
bgA.attachMovie('lampHalf', v3, bgA.getNextHighestDepth(), {'_x': this._x, '_y': 98.5});
var v4 = 0.6 + Math.random() * 1;
com.greensock.TweenMax.to(bgA[v3], v4 / 2, {'_x': bgA[v3]._x + _root.xspeed * 2, 'ease': Regular.easeOut, 'repeat': 1, 'yoyo': true});
com.greensock.TweenMax.to(bgA[v3], v4 / 2, {'_y': bgA[v3]._y - _root.xspeed * 3, 'ease': Regular.easeOut});
com.greensock.TweenMax.to(bgA[v3], v4, {'_y': 293, 'ease': Regular.easeIn, 'delay': v4 / 2});
com.greensock.TweenMax.to(bgA[v3], v4 * 2, {'_rotation': '-580', 'repeat': 1, 'ease': com.greensock.easing.Strong.easeOut});
_root.attachBGfunc(bgA[v3], 1.5);
_root.attachMovie('effectHitB', 'hitSplat', _root.getNextHighestDepth(), {'_x': _root.BigBlue._x, '_y': _root.BigBlue._y});
com.greensock.TweenMax.to(_root.hitSplat, 0, {'colorMatrixFilter': {'hue': 120, 'brightness': 2}});
bgA[v3].optFunc = function () {
if (_root.PHASE == 'DONE') {
com.greensock.TweenLite.killTweensOf(this);
com.greensock.TweenMax.to(this, 0.5, {'_y': 240 + random(20), 'ease': com.greensock.easing.Strong.easeIn});
}
};
this.hasHit = true;
}
};
} else {
++myTimer;
}
}
bgC.BG2.upperStars._visible = cam._y < -397;
bgC.BG1.upperStars._visible = bgC.BG2.upperStars._visible;
bgA._visible = cam._y > -407;
applyLevelFilter(-200, 16737792, 13209, 50, 100);
if (dist > endDist) {
winFunc();
}
}
function update4() {
if (user.data.hardMode) {
if (levelProgress == 0 && dist > 500) {
initBlue('BlueA', 120);
initDrab('DrabA', 150);
++levelProgress;
} else {
if (levelProgress == 1 && dist > 5000) {
initBlue('BlueB', 120, 10);
initMage('MageA', 120, BigBlue);
initDrab('DrabB', 150);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 7000) {
initBlue('BlueC', 120);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 10000) {
initBlue('BlueD', 120, 10);
initCobalt('CobaltD', 200);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 15000) {
initCobalt('CobaltE', 300);
initMage('MageB', 120, BigBlue);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 20000) {
initDrab('DrabG', 150, 400);
initDrab('DrabH', 150, 400);
++levelProgress;
}
}
}
}
}
}
if (dist > 7000) {
if (_root.BlueA == undefined) {
initBlue('BlueA', 120, 10);
}
if (_root.BlueB == undefined) {
initBlue('BlueB', 120, 10);
}
if (_root.BlueC == undefined) {
initBlue('BlueC', 200, 10);
}
if (_root.DrabA == undefined) {
initDrab('DrabA', 150);
}
if (_root.DrabB == undefined) {
initDrab('DrabB', 150);
}
}
if (dist > 10000) {
if (_root.BlueD == undefined) {
initBlue('BlueD', 300);
}
}
} else {
if (levelProgress == 0 && dist > 500) {
initBlue('BlueA', 70);
++levelProgress;
} else {
if (levelProgress == 1 && dist > 5000) {
initBlue('BlueB', 70, 10);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 7000) {
initBlue('BlueC', 70);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 10000) {
initBlue('BlueD', 70, 10);
++levelProgress;
}
}
}
}
if (dist > 7000) {
if (_root.BlueA == undefined) {
initBlue('BlueA', 100, 10);
}
if (_root.BlueB == undefined) {
initBlue('BlueB', 100, 10);
}
}
if (dist > 10000) {
if (_root.BlueD == undefined) {
initBlue('BlueD', 200);
}
}
}
if (dist > 4000) {
if (myTimer == 180) {
HUD.attachMovie('fbAlert', 'fbAlert', HUD.getNextHighestDepth(), {'_x': 0, '_y': 250});
com.greensock.TweenLite.to(HUD.fbAlert, 0.3, {'_y': -108, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(HUD.fbAlert, 0.3, {'delay': 1, '_x': 250 * _root.dir, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': removeMC, 'onCompleteParams': [HUD.fbAlert]});
}
if (myTimer >= 240) {
myTimer = 0;
bgA.attachMovie('FootballTeam', 'fbTeam', bgA.getNextHighestDepth(), {'_x': cam._x + cam._width * -_root.dir, '_y': 293, '_xscale': -_root.dir * 100});
bgA.fbTeam.hitBox._visible = false;
bgA.fbTeam.onEnterFrame = function () {
this._x += 20 * _root.dir;
if (_root.dir == -1) {
if (this._x < -300) {
_root.dir = 1;
removeMovieClip(this);
}
} else {
if (this._x > 1700) {
_root.dir = -1;
removeMovieClip(this);
}
}
if (PHASE !== 'DONE') {
var v10 = false;
if (random(3) == 0) {
for (var v11 in teamArray) {
if (this.hitBox.hitTest(_root[teamArray[v11]]) && _root[teamArray[v11]].stance == 'ATTACK') {
v10 = true;
slushTarg = _root[teamArray[v11]];
var v3 = 1;
while (v3 < 5) {
var v4 = 'hitSplatFB' + _root.getNextHighestDepth();
_root.attachMovie('effectHitA', v4, _root.getNextHighestDepth(), {'_x': slushTarg._x, '_y': slushTarg._y, '_rotation': random(90) * v3});
com.greensock.TweenMax.to(_root[v4], 0, {'colorMatrixFilter': {'hue': 100}});
++v3;
}
_root.PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.2, setPhase, ['FOLLOW']);
slushTarg.getHurt(10);
_root.hurtByTeam = true;
}
}
if (v10) {
powerhitA.start();
}
}
var v9 = false;
if (random(3) == 0) {
for (v11 in enemyArray) {
if (this.hitBox.hitTest(enemyArray[v11])) {
v9 = true;
v3 = 1;
while (v3 < 5) {
v4 = 'hitSplatFB' + _root.getNextHighestDepth();
_root.attachMovie('effectHitA', v4, _root.getNextHighestDepth(), {'_x': enemyArray[v11]._x, '_y': enemyArray[v11]._y, '_rotation': random(90) * v3});
com.greensock.TweenMax.to(v4, 0, {'colorMatrixFilter': {'hue': 100}});
++v3;
}
_root.PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.3, setPhase, ['FOLLOW']);
_root.damage('None', enemyArray[v11], 1, 'UP');
_root.setSpeed(this, enemyArray[v11], '-3', 20);
}
}
if (v9) {
_root.smashhitB.start();
}
}
}
};
} else {
++myTimer;
}
}
if (BigBlue._y <= -1850) {
touchedSky = true;
}
bgC._visible = cam._y < -941;
bgB.BG2.lightA._visible = cam._y < -471.45;
bgB.BG1.lightA._visible = bgB.BG2.lightA._visible;
bgB.BG2.lightB._visible = cam._y < -471.45;
bgB.BG1.lightB._visible = bgB.BG2.lightB._visible;
bgB.BG2.lightC._visible = cam._y < -471.45;
bgB.BG1.lightC._visible = bgB.BG2.lightC._visible;
bgB._visible = cam._y < 88.3;
bgA._visible = cam._y > -600;
if (dist > endDist) {
winFunc();
}
}
function update5() {
with (Hero) {
if (_x < 20) {
_x = 20;
} else {
if (_x > 1200) {
_x = 1200;
}
}
}
topTarg = Boss;
mainTarg = topTarg;
HUD._y = cam._y;
HUD._x = cam._x;
HUD._yscale = cam._xscale;
HUD._xscale = HUD._yscale;
bgB.BG2.lightC._visible = false;
bgB.BG1.lightC._visible = bgB.BG2.lightC._visible;
bgB.BG2.lightB._visible = bgB.BG2.lightC._visible;
bgB.BG1.lightB._visible = bgB.BG2.lightC._visible;
bgB.BG2.lightA._visible = bgB.BG2.lightC._visible;
bgB.BG1.lightA._visible = bgB.BG2.lightC._visible;
bgB._visible = cam._y < 68.3;
bgA._visible = cam._y > -600;
}
function update6() {
if (user.data.hardMode) {
if (levelProgress == 0 && dist > 500) {
initDrab('DrabA', 150);
initMage('MageA', 80, DrabA);
++levelProgress;
} else {
if (levelProgress == 1 && dist > 1000) {
initMobile('MobileA', 1000);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 4000) {
initDrab('DrabB', 150);
initMage('MageB', 80, DrabB);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 7000) {
initBlue('BlueA', 200, 10);
initBlue('BlueB', 100, 20);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 10000) {
initBlue('BlueC', 150, 20);
initDrab('DrabC', 150);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 12000) {
initMobile('MobileB', 1500);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 17000) {
initDrab('DrabD', 150);
initDrab('DrabE', 150);
initMage('MageE', 80, DrabE);
++levelProgress;
} else {
if (levelProgress == 7 && dist > 23000) {
initDrab('DrabF', 150);
initMage('MageF', 80, DrabF);
++levelProgress;
}
}
}
}
}
}
}
}
if (dist > 7000) {
if (_root.BlueA == undefined) {
initBlue('BlueA', 200, 20);
}
} else {
if (dist > 17000) {
if (_root.DrabD == undefined) {
initDrab('DrabD', 130);
}
}
}
} else {
if (levelProgress == 0 && dist > 1000) {
initDrab('DrabA', 100);
++levelProgress;
} else {
if (levelProgress == 1 && dist > 2000) {
initBlue('BlueA', 100, 10);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 4000) {
initBlue('BlueB', 150, 20);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 7000) {
initBlue('BlueC', 100, 20);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 10000) {
initBlue('BlueD', 150, 20);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 12000) {
initDrab('DrabB', 70);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 15000) {
initDrab('DrabC', 70);
++levelProgress;
} else {
if (levelProgress == 7 && dist > 18000) {
initBlue('BlueE', 200, 90);
++levelProgress;
}
}
}
}
}
}
}
}
if (dist > 7000) {
if (_root.BlueC == undefined) {
initBlue('BlueC', 100, 20);
}
} else {
if (dist > 10000) {
if (_root.BlueD == undefined) {
initBlue('BlueD', 100);
}
} else {
if (dist > 12000) {
if (_root.DrabB == undefined) {
initDrab('DrabB', 100);
}
}
}
}
}
if (BigBlue._y <= -1420) {
touchedSky = true;
}
applyLevelFilter(-500, 14843282, 14843282, 25, 100);
bgC.BG2.upperSky._visible = cam._y < -273;
bgC.BG1.upperSky._visible = bgC.BG2.upperSky._visible;
bgB.stars._visible = cam._y < -803;
if (dist > endDist) {
winFunc();
}
}
function update7() {
if (user.data.hardMode) {
if (levelProgress == 0 && dist > 500) {
initBlue('BlueA', 200, 40);
initToaster('ToasterA', 130, 1);
initToaster('ToasterB', 130, 1);
++levelProgress;
} else {
if (levelProgress == 1 && dist > 1000) {
initBlue('BlueB', 200, 40);
initMobile('MobileB', 1000);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 4000) {
initToaster('ToasterC', 150, 1);
initToaster('ToasterD', 150, 1);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 8000) {
initDrab('DrabA', 200, 300);
initDrab('DrabB', 200, 300);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 10000) {
initToaster('ToasterE', 150);
initMobile('MobileB', 1000);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 14000) {
initToaster('ToasterF', 150);
initToaster('ToasterG', 150);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 19000) {
initDrab('DrabC', 300, 300);
initDrab('DrabD', 200, 300);
++levelProgress;
} else {
if (levelProgress == 7 && dist > 23000) {
initToaster('ToasterH', 150);
initToaster('ToasterI', 150);
++levelProgress;
}
}
}
}
}
}
}
}
if (dist > 11000) {
if (_root.ToasterA == undefined) {
initToaster('ToasterA', 100, 1);
}
}
} else {
if (levelProgress == 0 && dist > 1000) {
initBlue('BlueA', 70, 40);
initToaster('ToasterA', 100, 1);
++levelProgress;
} else {
if (levelProgress == 1 && dist > 2000) {
++levelProgress;
} else {
if (levelProgress == 2 && dist > 5000) {
initToaster('ToasterB', 150, 1);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 11000) {
initDrab('DrabA', 100, 150);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 13000) {
initToaster('ToasterC', 150, 2);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 17000) {
initBlue('BlueD', 100, 20);
++levelProgress;
}
}
}
}
}
}
if (dist > 11000) {
if (_root.ToasterA == undefined) {
initToaster('ToasterA', 100, 1);
}
}
}
bgA._visible = cam._y > -350;
bgB._visible = cam._y > -507;
if (dist > endDist) {
winFunc();
}
}
function update8() {
if (user.data.hardMode) {
if (levelProgress == 0 && dist > 500) {
initCobalt('CobaltA', 200);
++levelProgress;
} else {
if (levelProgress == 1 && dist > 1000) {
initCobalt('CobaltB', 200);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 3000) {
initMobile('MobileC', 500);
initDrab('DrabD', 300, 150);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 5000) {
initCobalt('CobaltE', 200);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 8000) {
initCobalt('CobaltF', 200);
initDrab('DrabG', 100, 150);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 11000) {
initMobile('MobileH', 500);
initCobalt('CobaltI', 200);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 14000) {
initCobalt('CobaltJ', 300);
++levelProgress;
} else {
if (levelProgress == 7 && dist > 16000) {
initCobalt('CobaltK', 200);
initDrab('DrabL', 100, 150);
++levelProgress;
} else {
if (levelProgress == 8 && dist > 18000) {
initCobalt('CobaltM', 200);
++levelProgress;
} else {
if (levelProgress == 9 && dist > 20000) {
initCobalt('CobaltN', 300);
++levelProgress;
} else {
if (levelProgress == 10 && dist > 23000) {
initCobalt('CobaltO', 300);
++levelProgress;
}
}
}
}
}
}
}
}
}
}
}
if (dist > endDist) {
winFunc();
}
} else {
HUD.treesTXT.text = 'Trees: ' + (_root.dir / 2 - 15);
if (dist > 1000 && dist < 1500) {
HUD.smashTXT._visible = false;
}
}
if (random(10) == 0) {
var v3 = 'leaf' + HUD.getNextHighestDepth();
HUD.attachMovie('effectLeaf', v3, HUD.getNextHighestDepth(), {'_x': random(850) - 250, '_y': -280});
HUD[v3].gotoAndStop(random(3) + 1);
HUD[v3].onEnterFrame = function () {
if (this._x < -430) {
removeMovieClip(this);
}
};
com.greensock.TweenMax.to(HUD[v3], 0.3, {'_xscale': -100, 'repeat': 10, 'yoyo': true, 'ease': com.greensock.easing.Linear.easeNone});
com.greensock.TweenLite.to(HUD[v3], 3, {'_x': '-500', '_y': yground - 40, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': removeMC, 'onCompleteParams': [HUD[v3]]});
}
if (BigBlue._y < TopBound - cam._height / 2) {
_root.yspeed = -Math.abs(_root.yspeed * 0.8);
}
if (dist > 500) {
if (myTimer >= _root.count) {
myTimer = 0;
var v4 = 'tree' + bgA.getNextHighestDepth();
bgA.attachMovie('forestTree', v4, bgA.getNextHighestDepth(), {'_x': cam._x + 500, '_y': yground + 50});
attachBGfunc(bgA[v4], 1.5);
bgA[v4].optFunc = function () {
if (this.hitTest(mainTarg._x, mainTarg._y, true) && this.hasHit == undefined) {
woodhit.start();
hardhit.start();
if (_root.user.data.hardMode) {
_root.xspeed -= 5;
} else {
_root.xspeed -= _root.dir;
}
if (_root.xspeed < 0) {
_root.xspeed = 4;
}
_root.PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.2, setPhase, ['FOLLOW']);
this.gotoAndStop(2);
com.greensock.TweenMax.to(this, 1, {'_alpha': 0});
_root.attachMovie('effectHitB', 'hitSplat', _root.getNextHighestDepth(), {'_x': _root.BigBlue._x, '_y': _root.BigBlue._y});
com.greensock.TweenMax.to(_root.hitSplat, 0, {'colorMatrixFilter': {'hue': 235}});
this.hasHit = true;
_root.dir += 2;
if (_root.count > 15 && !_root.user.data.hardMode) {
_root.count -= 2;
}
}
};
} else {
++myTimer;
}
}
}
function update9() {
bgA._visible = cam._y > -346;
bgB._visible = cam._y > -600;
bgC.BG2.lowClouds._visible = cam._y < 27;
bgC.BG1.lowClouds._visible = bgC.BG2.lowClouds._visible;
bgC.BG2.highClouds._visible = cam._y < -221;
bgC.BG1.highClouds._visible = bgC.BG2.highClouds._visible;
if (dist > 300) {
if (random(100) == 0) {
var v1 = 'spObject' + bgA.getNextHighestDepth();
bgA.attachMovie('spookyObject', v1, bgA.getNextHighestDepth(), {'_x': 100 + cam._x + cam._width / 2, '_y': yground - 50 - random(100)});
bgA[v1].gotoAndStop(random(5) + 1);
attachBGfunc(bgA[v1], 2);
}
if (user.data.hardMode) {
if (random(70) == 0) {
initZombie();
}
} else {
if (random(90) == 0) {
initZombie();
}
}
}
if (dist > 5000) {
if (user.data.hardMode) {
if (random(70) == 0) {
initPumpkin(false, false);
}
} else {
if (random(100) == 0) {
initPumpkin(false, false);
}
}
}
if (dist > 18000) {
if (user.data.hardMode) {
if (random(80) == 0) {
initPumpkin(false, false);
}
} else {
if (random(100) == 0) {
initPumpkin(false, false);
}
}
}
if (dist > endDist) {
winFunc();
}
}
function update10() {
with (Hero) {
if (_x < 100) {
_x = 100;
} else {
if (_x > 1200) {
_x = 1200;
}
}
}
topTarg = Boss;
mainTarg = topTarg;
HUD._y = cam._y;
HUD._x = cam._x;
HUD._yscale = cam._xscale;
HUD._xscale = HUD._yscale;
bgA._visible = cam._y > -512;
bgB._visible = cam._y > -580;
bgC.BG2.lowClouds._visible = cam._y < 19;
bgC.BG1.lowClouds._visible = bgC.BG2.lowClouds._visible;
bgC.BG2.highClouds._visible = cam._y < -221;
bgC.BG1.highClouds._visible = bgC.BG2.highClouds._visible;
}
function update11() {
if (user.data.hardMode) {
if (levelProgress == 0 && dist > 1000) {
initMobile('MobileA', 1000);
++levelProgress;
} else {
if (levelProgress == 1 && dist > 2000) {
initDrab('DrabB', 400, 200);
initMobile('MobileC', 1000, DrabA);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 5000) {
initCobalt('CobaltD', 400);
initToaster('ToasterE', 200, 0.7);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 8000) {
initCobalt('CobaltF', 300);
initToaster('ToasterG', 200, 0.7);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 11000) {
initDrab('DrabH', 300, 200);
initMobile('MobileI', 800, DrabC);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 15000) {
initToaster('ToasterJ', 300, 0.5);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 18000) {
initToaster('ToasterK', 300, 0.5);
++levelProgress;
} else {
if (levelProgress == 7 && dist > 21000) {
initDrab('DrabL', 300, 200);
initMobile('MobileM', 800, DrabR);
++levelProgress;
}
}
}
}
}
}
}
}
} else {
if (levelProgress == 0 && dist > 1000) {
initMobile('MobileA', 100);
++levelProgress;
} else {
if (levelProgress == 1 && dist > 2000) {
initDrab('DrabA', 200, 200);
initMobile('MobileB', 100, DrabA);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 5000) {
initToaster('ToasterA', 100, 0.7);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 8000) {
initToaster('ToasterB', 100, 0.7);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 11000) {
initDrab('DrabC', 100, 200);
initMobile('MobileC', 100, DrabC);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 15000) {
initToaster('ToasterC', 100, 0.5);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 18000) {
initToaster('ToasterD', 100, 0.5);
++levelProgress;
} else {
if (levelProgress == 7 && dist > 21000) {
initDrab('DrabR', 100, 200);
initMobile('MobileR', 100, DrabR);
++levelProgress;
}
}
}
}
}
}
}
}
}
bgC.hillsB._visible = cam._y < -100;
bgC.hills._visible = bgC.hillsB._visible;
if (dist > endDist) {
winFunc();
}
}
function update12() {
if (user.data.hardMode) {
if (levelProgress == 0 && dist > 1000) {
initDrab('DrabA', 200, 200);
initMobile('MobileB', 500, DrabA);
initMobile('MobileC', 400);
++levelProgress;
} else {
if (levelProgress == 1 && dist > 3000) {
initBlue('BlueD', 130, 40);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 6000) {
initDrab('DrabE', 200, 200);
initBlue('BlueF', 140, 40);
initBlue('BlueG', 140, 40);
initMobile('MobileH', 500);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 8000) {
initDrab('DrabI', 150, 200);
initMobile('MobileJ', 500);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 11000) {
initMobile('MobileK', 300);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 16000) {
initBlue('BlueL', 200, 40);
initBlue('BlueM', 200, 40);
initBlue('BlueN', 200, 40);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 18000) {
initDrab('DrabO', 150, 200);
initMobile('MobileP', 300);
++levelProgress;
} else {
if (levelProgress == 7 && dist > 21000) {
initDrab('DrabQ', 200, 200);
initBlue('BlueR', 150, 40);
++levelProgress;
} else {
if (levelProgress == 8 && dist > 23000) {
initDrab('DrabS', 200, 200);
initBlue('BlueT', 150, 40);
initMobile('MobileU', 300);
++levelProgress;
}
}
}
}
}
}
}
}
}
} else {
if (levelProgress == 0 && dist > 1000) {
initDrab('DrabA', 150, 200);
initMobile('MobileA', 100, DrabA);
++levelProgress;
} else {
if (levelProgress == 1 && dist > 3000) {
initBlue('BlueA', 70, 40);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 6000) {
initBlue('BlueB', 120, 40);
initBlue('BlueC', 120, 40);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 8000) {
initDrab('DrabB', 150, 200);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 11000) {
initMobile('MobileC', 100);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 16000) {
initBlue('BlueD', 150, 40);
initBlue('BlueE', 150, 40);
initBlue('BlueF', 150, 40);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 18000) {
initDrab('DrabC', 150, 200);
++levelProgress;
} else {
if (levelProgress == 7 && dist > 21000) {
initDrab('DrabD', 200, 200);
initBlue('BlueG', 150, 40);
++levelProgress;
} else {
if (levelProgress == 8 && dist > 23000) {
initDrab('DrabE', 200, 200);
initBlue('BlueH', 150, 40);
++levelProgress;
}
}
}
}
}
}
}
}
}
}
if (dist > 12000) {
++timer;
if (timer == 300) {
HUD.attachMovie('snowAlert', 'alert', HUD.getNextHighestDepth(), {'_x': 0, '_y': 250});
com.greensock.TweenLite.to(HUD.alert, 0.3, {'_y': -108, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(HUD.alert, 0.3, {'delay': 1, '_y': 250, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': removeMC, 'onCompleteParams': [HUD.alert]});
} else {
if (timer == 360) {
HUD.attachMovie('blackBox', 'whiteFog', HUD.getNextHighestDepth(), {'_width': HUD._width, '_height': HUD._height, '_alpha': 0});
com.greensock.TweenLite.to(HUD.whiteFog, 0, {'tint': 16777215, 'tintAmount': 1});
com.greensock.TweenLite.to(HUD.whiteFog, 3, {'_alpha': 100});
com.greensock.TweenLite.to(HUD.whiteFog, 3, {'_alpha': 0, 'delay': 5, 'onComplete': removeMC, 'onCompleteParams': [HUD.whiteFog]});
HUD.whiteFog.onEnterFrame = function () {
if (_root.PHASE == 'DONE') {
removeMovieClip(HUD.whiteFog);
}
};
timer = 0;
}
}
}
if (random(4) == 0) {
var v2 = 'Snow' + HUD.getNextHighestDepth();
HUD.attachMovie('effectSnow', v2, HUD.getNextHighestDepth(), {'_x': 350, '_y': random(500) - 250});
HUD[v2].gotoAndStop(random(3) + 1);
com.greensock.TweenLite.to(HUD[v2], Math.random(), {'_x': '-700', 'ease': com.greensock.easing.Linear.easeNone, 'onComplete': removeMC, 'onCompleteParams': [HUD[v2]]});
}
if (dist > endDist) {
winFunc();
}
}
function update13() {
if (user.data.hardMode) {
if (levelProgress == 0 && dist > 1000) {
++levelProgress;
initBlue('BlueY', 130);
initToaster('ToasterA', 200, 0.5);
initMage('MageA', 50, ToasterA);
initMage('MageB', 50, MageA);
} else {
if (levelProgress == 1 && dist > 3000) {
initDrab('DrabA', 150, 200);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 5000) {
initDrab('DrabQQ', 150, 200);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 8000) {
initMage('MageTODAI', 50, BigBlue);
initMage('MageBTVTU', 50, BigBlue, 120);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 11000) {
initToaster('ToasterB', 200, 0.5);
initMage('MageCOOK', 50, ToasterB);
initMage('MageDOG', 50, MageCOOK, -50);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 15000) {
for (var i in teamArray) {
_root[teamArray[i]].isLit = false;
}
for (var k in enemyArray) {
enemyArray[k].isLit = false;
}
newBG('bgB', 'gingerB');
newBG('bgA', 'gingerA');
initDrab('DrabB', 200, 200);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 18000) {
initDrab('DrabE', 200, 100);
initMage('MageC', 130, DrabE);
++levelProgress;
e;
} else {
if (levelProgress == 7 && dist > 21000) {
initCobalt('CobaltA', 300);
initMage('MageE', 70, CobaltA, 150, -150);
initMage('MageF', 70, MageE, -150, -150);
initMage('MageG', 70, MageF, -150, 150);
++levelProgress;
} else {
if (levelProgress == 8 && dist > 24000) {
initDrab('DrabC', 200, 200);
initDrab('DrabD', 200, 200);
++levelProgress;
} else {
if (levelProgress == 9 && dist > 28000) {
initDrab('DrabETCH', 300, 200);
++levelProgress;
}
}
}
}
}
}
}
}
}
}
} else {
if (levelProgress == 0 && dist > 1000) {
++levelProgress;
initBlue('BlueY', 130);
} else {
if (levelProgress == 1 && dist > 3000) {
initDrab('DrabA', 150, 200);
initToaster('ToasterA', 100, 0.5);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 5000) {
++levelProgress;
} else {
if (levelProgress == 3 && dist > 8000) {
initMage('MageA', 50, BigBlue);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 11000) {
++levelProgress;
} else {
if (levelProgress == 5 && dist > 15000) {
for (var i in teamArray) {
_root[teamArray[i]].isLit = false;
}
for (var k in enemyArray) {
enemyArray[k].isLit = false;
}
newBG('bgB', 'gingerB');
newBG('bgA', 'gingerA');
initDrab('DrabB', 200, 200);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 18000) {
initDrab('DrabE', 100, 100);
initMage('MageC', 130, DrabE);
++levelProgress;
e;
} else {
if (levelProgress == 7 && dist > 21000) {
++levelProgress;
} else {
if (levelProgress == 8 && dist > 24000) {
initDrab('DrabC', 100, 200);
++levelProgress;
} else {
if (levelProgress == 9 && dist > 28000) {
initDrab('DrabD', 200, 200);
++levelProgress;
}
}
}
}
}
}
}
}
}
}
}
if (dist > 300 && dist < 15000) {
if (random(100) == 0) {
var myObject = 'hollyObject' + bgA.getNextHighestDepth();
bgA.attachMovie('hollyObject', myObject, bgA.getNextHighestDepth(), {'_x': 100 + cam._x + cam._width / 2, '_y': yground - 50 - random(100)});
bgA[myObject].gotoAndStop(random(5) + 1);
attachBGfunc(bgA[myObject], 2);
}
}
if (dist <= 15000) {
applyLevelFilter(-350, 9489903, 6667915, 0, 50);
} else {
applyLevelFilter(-350, 11468905, 6667915, 75, 50);
if (random(100) == 0) {
var newGM = 'gingerMan' + _root.getNextHighestDepth();
attachMovie('gingerMan', newGM, _root.getNextHighestDepth(), {'_x': cam._x + 100 + cam._width / 2, '_y': yground});
_root[newGM].gotoAndStop(random(3) + 1);
_root[newGM].stance = 'REST';
_root[newGM].hitFunc = function () {
with (_root[newGM]) {
if (random(2) == 0) {
noA.start();
} else {
noB.start();
}
stance = 'DEAD';
gotoAndPlay('DEAD');
_root.PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.1, setPhase, ['FOLLOW']);
}
};
_root[newGM].onEnterFrame = function () {
with (_root[newGM]) {
if (_root.PHASE == 'FOLLOW') {
_x -= _root.xspeed / speedA;
if (stance == 'REST') {
for (var i in teamArray) {
var mySlush = _root[teamArray[i]];
if (hitTest(mySlush)) {
mySlush.getHurt(10);
hitFunc();
}
}
if (hitTest(_root.BigBlue) && _root.xspeed > 10) {
_root.xspeed -= 10;
hitFunc();
}
}
if (_x < -250 + cam._x - cam._width / 2) {
removeMovieClip(this);
}
} else {
if (_root.PHASE == 'DONE') {
_root.enemyArray.push(this);
delete this.onEnterFrame;
}
}
}
};
delete newGM;
}
}
if (dist > endDist) {
winFunc();
}
}
function update14() {
if (user.data.hardMode) {
if (levelProgress == 0 && dist > 1500) {
++levelProgress;
initMage('MageA', 200, BigBlue);
} else {
if (levelProgress == 1 && dist > 6000) {
initBlue('BlueB', 160);
initBlue('BlueC', 180);
initBlue('BlueD', 160);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 8000) {
initBlue('BlueE', 130);
initMage('MageF', 100, BlueE);
initBlue('BlueG', 130);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 15000) {
initMage('MageH', 10, BigBlue);
initMage('MageI', 10, MageH, -150, 0);
initMage('MageJ', 10, MageI, -150, 0);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 19000) {
initBlue('BlueK', 200);
initBlue('BlueL', 100);
initBlue('BlueM', 200);
initBlue('BlueN', 100);
initMage('MageO', 50, BlueK);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 23000) {
initBlue('BlueP', 200);
initBlue('BlueQ', 100);
initBlue('BlueR', 200);
initBlue('BlueS', 100);
initMage('MageT', 50, BlueS);
++levelProgress;
}
}
}
}
}
}
} else {
if (levelProgress == 0 && dist > 3500) {
++levelProgress;
initMage('MageA', 100, BigBlue);
} else {
if (levelProgress == 1 && dist > 6000) {
initBlue('BlueA', 300);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 8000) {
initBlue('BlueB', 130);
initMage('MageB', 70, BlueB);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 15000) {
initMage('MageC', 30, BigBlue);
initMage('MageD', 80, MageC);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 19000) {
initBlue('BlueC', 200);
initBlue('BlueD', 100);
initMage('MageE', 50, BlueD);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 23000) {
initBlue('BlueE', 200);
initBlue('BlueF', 100);
initMage('MageF', 50, BlueF);
++levelProgress;
}
}
}
}
}
}
}
if (cam._y > -180 && random(4) == 0) {
var v1 = 'FF' + HUD.getNextHighestDepth();
HUD.attachMovie('effectFirefly', v1, HUD.getNextHighestDepth(), {'_x': 350, '_y': random(250)});
HUD[v1].gotoAndStop(random(3) + 1);
com.greensock.TweenLite.to(HUD[v1], Math.random(), {'_x': '-1400', 'ease': com.greensock.easing.Linear.easeNone, 'onComplete': removeMC, 'onCompleteParams': [HUD[v1]]});
}
if (BigBlue._y <= -1383) {
touchedSky = true;
}
applyLevelFilter(65, 2949089, 948629, 80, 80);
bgC._visible = cam._y < 155;
bgB._visible = cam._y > -624;
bgA._visible = cam._y > -404;
if (dist > endDist) {
winFunc();
}
}
function update15() {
HUD.bossBar._xscale = totalHP * 100 / totalTHP;
HUD.bossBarB._xscale = 100 - HUD.bossBar._xscale;
with (Hero) {
if (_x < 200) {
_x = 200;
} else {
if (_x > 1200) {
_x = 1200;
}
}
}
if (dist > 1000 && dist < 1500) {
HUD.smashTXT._visible = false;
}
if (!isDefeated) {
--freqTimer;
if (freqTimer <= 0 || topTarg == null) {
var rand = random(3);
if (rand == 0 && BossOmar == undefined) {
initBossOmar();
mainTarg = BossOmar;
} else {
if (rand == 1 && BossThomas == undefined) {
initBossThomas();
mainTarg = BossThomas;
} else {
if (BossEric == undefined) {
initBossEric();
mainTarg = BossEric;
}
}
}
setCurTarg(mainTarg);
if (freqTimer <= 0) {
freqTimer = freq;
}
}
if (enemyArray.length == 1) {
topTarg = null;
camTarg = Hero;
}
xspeed = 50;
if (totalHP < 2000 && freq == 200) {
freq = 160;
} else {
if (totalHP < 1300 && freq == 160) {
freq = 130;
if (BossEric == undefined) {
initBossEric();
}
BossEric.ultra();
} else {
if (totalHP < 500 && freq == 130) {
freq = 90;
if (BossThomas == undefined) {
initBossThomas();
}
BossThomas.ultra();
} else {
if (totalHP <= 0) {
xspeed = 0;
HUD.heroBarB._visible = false;
HUD.heroBar._visible = HUD.heroBarB._visible;
HUD.heroMarker._visible = HUD.heroBarB._visible;
HUD.bossBarB._visible = HUD.heroBarB._visible;
HUD.bossBar._visible = HUD.heroBarB._visible;
HUD.bossMarker._visible = HUD.heroBarB._visible;
for (var i in teamArray) {
com.greensock.TweenLite.killTweensOf([teamArray[i]]);
com.greensock.TweenLite.to(_root[teamArray[i]], 1, {'_x': cam._x - cam._width, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [_root[teamArray[i]]]});
}
if (BossOmar == undefined) {
initBossOmar();
}
if (BossEric == undefined) {
initBossEric();
}
if (BossThomas == undefined) {
initBossThomas();
}
_root.hideBoxes();
removeFromArray('Hero', _root.teamArray);
removeFromArray(BossOmar, _root.enemyArray);
com.greensock.TweenLite.killTweensOf(BossOmar);
BossOmar.stance = null;
BossOmar.gotoAndStop(158);
com.greensock.TweenMax.to(BossOmar, 1, {'_x': cam._x - 150, '_y': cam._y, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': splats, 'onCompleteParams': [BossOmar]});
com.greensock.TweenMax.to(BossOmar, 0.5, {'_rotation': '30', 'delay': 1, 'removeTint': true, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(BossOmar, 1, {'_rotation': '-30', '_y': yground, 'delay': 1.5, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': gotoStop, 'onCompleteParams': [BossOmar, 153]});
removeFromArray(BossThomas, _root.enemyArray);
com.greensock.TweenLite.killTweensOf(BossThomas);
BossThomas.stance = null;
BossThomas.gotoAndStop(121);
com.greensock.TweenMax.to(BossThomas, 1, {'_x': cam._x, '_y': cam._y, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': splats, 'onCompleteParams': [BossThomas]});
com.greensock.TweenMax.to(BossThomas, 0.5, {'_rotation': '40', 'delay': 1, 'removeTint': true, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(BossThomas, 1, {'_rotation': '-40', '_y': yground + 10, 'delay': 1.5, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': gotoStop, 'onCompleteParams': [BossThomas, 116]});
removeFromArray(BossEric, _root.enemyArray);
com.greensock.TweenLite.killTweensOf(BossEric);
BossEric.stance = null;
BossEric.gotoAndStop(218);
com.greensock.TweenMax.to(BossEric, 1, {'_x': cam._x + 150, '_y': cam._y, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': splats, 'onCompleteParams': [BossEric]});
com.greensock.TweenMax.to(BossEric, 0.5, {'_rotation': '40', 'delay': 1, 'removeTint': true, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(BossEric, 1, {'_rotation': '-40', '_y': yground, 'delay': 1.5, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': gotoStop, 'onCompleteParams': [BossEric, 60]});
winFunc();
sortDepth();
enemyArray.push(BossOmar, BossThomas, BossEric);
}
}
}
}
}
HUD._y = cam._y;
HUD._x = cam._x;
HUD._yscale = cam._xscale;
HUD._xscale = HUD._yscale;
bgC._visible = cam._y < 155;
bgB._visible = cam._y > -624;
bgA._visible = cam._y > -404;
}
function update16() {
if (mainTarg.hp <= 0) {
var v2 = 0;
while (v2 < 3) {
initBit('BitWa' + _root.getNextHighestDepth(), 50);
++v2;
}
mainTarg = enemyArray[random(enemyArray.length)];
setCurTarg(mainTarg);
}
if (levelProgress == 0 && dist > 100) {
initBit('BitA', 40);
initBit('BitB', 40);
initBit('BitC', 50);
initBit('BitD', 40);
initBit('BitE', 40);
initBit('BitF', 40);
initBit('BitG', 40);
++levelProgress;
} else {
if (levelProgress == 1 && dist > 2500) {
com.greensock.TweenMax.to(bgA, 2, {'colorMatrixFilter': {'hue': 45, 'saturation': 1.5}});
com.greensock.TweenMax.to(bgB, 2, {'colorMatrixFilter': {'hue': 55}});
com.greensock.TweenMax.to(bgC, 2, {'colorMatrixFilter': {'hue': 85}});
v2 = 0;
while (v2 < 4) {
initBit('BitYo' + v2, 60);
++v2;
}
++levelProgress;
} else {
if (levelProgress == 2 && dist > 5000) {
com.greensock.TweenMax.to(bgA, 2, {'colorMatrixFilter': {'hue': 278, 'saturation': 3}});
com.greensock.TweenMax.to(bgB, 2, {'colorMatrixFilter': {'hue': 271}});
com.greensock.TweenMax.to(bgC, 2, {'colorMatrixFilter': {'hue': 239}});
v2 = 0;
while (v2 < 3) {
initBit('BitFi' + v2, 60);
++v2;
}
++levelProgress;
} else {
if (levelProgress == 3 && dist > 7500) {
com.greensock.TweenMax.to(bgA, 2, {'colorMatrixFilter': {'hue': 111}});
com.greensock.TweenMax.to(bgB, 2, {'colorMatrixFilter': {'hue': 134}});
com.greensock.TweenMax.to(bgC, 2, {'colorMatrixFilter': {'hue': 180}});
v2 = 0;
while (v2 < 4) {
initBit('BitDe' + v2, 60);
++v2;
}
++levelProgress;
} else {
if (levelProgress == 4 && dist > 10000) {
newBG('bgA', 'bitlandAB');
newBG('bgB', 'emptyABC');
newBG('bgC', 'bitlandCB');
bgB.attachMovie('bitlandPort', 'bitPics', bgB.getNextHighestDepth(), {'_x': 600, '_y': -100, '_xscale': 130, '_yscale': 130});
com.greensock.TweenMax.to(bgA, 0, {'colorMatrixFilter': {'hue': 0}});
com.greensock.TweenMax.to(bgB, 0, {'colorMatrixFilter': {'hue': 0}});
com.greensock.TweenMax.to(bgC, 0, {'colorMatrixFilter': {'hue': 0}});
updateBitPic(random(6) + 1);
bgB.bitPics.gotoAndPlay('start');
v2 = 0;
while (v2 < 8) {
initBit('BitGi' + v2, 80);
++v2;
}
++levelProgress;
} else {
if (levelProgress == 5 && dist > 14000) {
v2 = 0;
while (v2 < 5) {
initBit('BitYUGI' + v2, 80);
++v2;
}
++levelProgress;
} else {
if (levelProgress == 6 && dist > 20000) {
v2 = 0;
while (v2 < 5) {
initBit('BitooU' + v2, 70);
++v2;
}
++levelProgress;
}
}
}
}
}
}
}
HUD.teamBarA._xscale = ((totalKillz - killCount) / totalKillz) * 100;
HUD.teamBarB._xscale = 100 - HUD.distBarA._xscale;
HUD.teamTXT.text = 'Bit Count: [' + (totalKillz - killCount) + '/' + totalKillz + ']';
if (dist < 10000) {
bgC.BG2.upperDots._visible = cam._y < -174;
bgC.BG1.upperDots._visible = bgC.BG2.upperDots._visible;
} else {
++timer;
if (timer > 150) {
if (dist > endDist) {
endDist += 10000;
}
updateBitPic(random(8) + 1);
timer = 0;
}
}
if (xspeed < 50) {
xspeed = 50;
} else {
--xspeed;
}
if (dist > 1000 && dist < 1500) {
HUD.smashTXT._visible = false;
}
if (killCount >= totalKillz) {
winFunc();
}
}
function update17() {
if (user.data.hardMode) {
if (levelProgress == 0 && dist > 500) {
++levelProgress;
initBlue('BlueA', 300);
initBlue('BlueB', 300);
initBlue('BlueC', 300);
} else {
if (levelProgress == 1 && dist > 4000) {
initBlue('BlueD', 400);
initBlue('BlueE', 300);
initDrab('DrabF', 150);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 8000) {
initBlue('BlueG', 400);
initDrab('DrabH', 150);
initDrab('DrabI', 150);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 12000) {
initBlue('BlueJ', 400);
initBlue('BlueK', 300);
initBlue('BlueL', 400);
initBlue('BlueM', 400);
newBG('bgC', 'woodC');
newBG('bgB', 'woodB');
newBG('bgA', 'woodA');
TopBound = -648;
_root.optInitSlush = function (targ) {
_root[targ].isLit = _root[targ]._y < -50;
};
_root.optInitBlue = function (targ) {
targ.isLit = targ._y < -50;
};
for (var k in teamArray) {
com.greensock.TweenMax.to(_root[teamArray[k]], 1, {'colorMatrixFilter': {'saturation': 1}});
com.greensock.TweenMax.to(_root[teamArray[k]], 1, {'colorTransform': {'tint': 4939083, 'tintAmount': 0}});
}
for (var k in enemyArray) {
com.greensock.TweenMax.to(enemyArray[k], 1, {'colorTransform': {'tint': 4939083, 'tintAmount': 0}});
}
++levelProgress;
} else {
if (levelProgress == 4 && dist > 16000) {
initDrab('DrabN', 150);
initDrab('DrabO', 300);
initCobalt('CobaltP', 600);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 18000) {
initBlue('BlueQ', 200);
initCobalt('CobaltR', 700);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 20000) {
initDrab('DrabS', 150);
initCobalt('CobaltT', 800);
++levelProgress;
} else {
if (levelProgress == 7 && dist > 24000) {
initBlue('BlueU', 300);
initCobalt('CobaltV', 600);
groundType = 'BITS';
newBG('bgC', 'casioC');
newBG('bgB', 'casioB');
newBG('bgA', 'casioA');
TopBound = -632;
bgA._visible = true;
++levelProgress;
} else {
if (levelProgress == 8 && dist > 25000) {
initCobalt('CobaltW', 800);
initDrab('DrabX', 400);
++levelProgress;
} else {
if (levelProgress == 9 && dist > 32000) {
initBlue('BlueY', 400);
initCobalt('CobaltZ', 900);
++levelProgress;
} else {
if (levelProgress == 10 && dist > 34000) {
initBlue('BlueWHATS', 300);
++levelProgress;
}
}
}
}
}
}
}
}
}
}
}
if (enemyArray.length == 1) {
initBlue('Blue' + _root.dist, 200);
}
} else {
if (levelProgress == 0 && dist > 500) {
++levelProgress;
initBlue('BlueA', 300);
initBlue('BlueB', 300);
} else {
if (levelProgress == 1 && dist > 4000) {
initBlue('BlueC', 400);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 8000) {
initBlue('BlueD', 400);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 12000) {
initBlue('BlueE', 400);
initBlue('BlueF', 300);
newBG('bgC', 'woodC');
newBG('bgB', 'woodB');
newBG('bgA', 'woodA');
TopBound = -648;
_root.optInitSlush = function (targ) {
_root[targ].isLit = _root[targ]._y < -50;
};
_root.optInitBlue = function (targ) {
targ.isLit = targ._y < -50;
};
for (var k in teamArray) {
com.greensock.TweenMax.to(_root[teamArray[k]], 1, {'colorMatrixFilter': {'saturation': 1}});
com.greensock.TweenMax.to(_root[teamArray[k]], 1, {'colorTransform': {'tint': 4939083, 'tintAmount': 0}});
}
for (var k in enemyArray) {
com.greensock.TweenMax.to(enemyArray[k], 1, {'colorTransform': {'tint': 4939083, 'tintAmount': 0}});
}
++levelProgress;
} else {
if (levelProgress == 4 && dist > 16000) {
initDrab('DrabA', 150);
initCobalt('CobaltA', 300);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 18000) {
initBlue('BlueH', 200);
initCobalt('CobaltZ', 300);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 20000) {
initDrab('DrabB', 150);
initCobalt('CobaltB', 300);
++levelProgress;
} else {
if (levelProgress == 7 && dist > 24000) {
initBlue('BlueJ', 300);
initCobalt('CobaltC', 200);
groundType = 'BITS';
newBG('bgC', 'casioC');
newBG('bgB', 'casioB');
newBG('bgA', 'casioA');
TopBound = -632;
bgA._visible = true;
++levelProgress;
} else {
if (levelProgress == 8 && dist > 25000) {
initCobalt('CobaltD', 300);
initDrab('DrabD', 200);
++levelProgress;
} else {
if (levelProgress == 9 && dist > 32000) {
initBlue('BlueL', 200);
initCobalt('CobaltE', 250);
++levelProgress;
} else {
if (levelProgress == 10 && dist > 34000) {
initBlue('BlueM', 300);
++levelProgress;
}
}
}
}
}
}
}
}
}
}
}
if (enemyArray.length == 1) {
initBlue('Blue' + _root.dist, 100);
}
}
if (dist < 12000) {
if (random(250) == 0) {
var newSnake = 'snake' + getNextHighestDepth();
attachMovie('Snake', newSnake, getNextHighestDepth(), {'_x': cam._x, '_y': cam._y});
if (random(2) == 0) {
_root[newSnake].gotoAndPlay('A');
} else {
_root[newSnake].gotoAndPlay('B');
}
_root[newSnake].onEnterFrame = function () {
with (_root[newSnake]) {
if (_root.PHASE == 'FREEZE') {
stop();
} else {
play();
for (var i in teamArray) {
var mySlush = _root[teamArray[i]];
if (hitTest(mySlush._x, mySlush._y, true)) {
bithurt.start();
mySlush.getHurt(6);
setPhase('FREEZE');
com.greensock.TweenLite.delayedCall(0.1, setPhase, ['FOLLOW']);
}
}
}
}
};
}
}
if (dist > 24000) {
applyLevelFilter(20, 16610610, 12320512, 60, 60);
} else {
if (dist > 12000) {
applyLevelFilter(-50, 4922628, 16773406, 80, 50);
bgA._visible = cam._y > -28;
} else {
if (dist > 0) {
bgA._visible = cam._y > -80;
}
}
}
if (dist > endDist) {
winFunc();
}
}
function update18() {
if (mainTarg.hp <= 0) {
var v2 = 'DrabMain' + getNextHighestDepth();
initDrab(v2, 500, 50, 1500, cam);
mainTarg = _root[v2];
setCurTarg(mainTarg);
}
if (timer >= 120) {
if (dist > endDist) {
endDist += 10000;
}
if (enemyArray.length < 2) {
initDrab('DrabA' + getNextHighestDepth(), 170);
initDrab('DrabB' + getNextHighestDepth(), 180);
initCobalt('CobaltA' + getNextHighestDepth(), 500);
if (random(2) == 0) {
initCobalt('CobaltAaa' + getNextHighestDepth(), 700);
}
} else {
if (enemyArray.length < 8) {
if (random(4) == 0) {
initCobalt('CobaltZ' + getNextHighestDepth(), 300);
} else {
if (random(4) == 0) {
initDrab('DrabT' + getNextHighestDepth(), 250);
}
}
}
}
timer = 0;
} else {
++timer;
}
if (levelProgress == 0 && dist > 100) {
initDrab('DrabA', 170);
initDrab('DrabB', 180);
initCobalt('CobaltA', 500);
++levelProgress;
} else {
if (levelProgress == 1 && dist > 2500) {
initDrab('DrabC', 190);
initDrab('DrabD', 200);
initCobalt('CobaltB', 400);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 5000) {
initDrab('DrabE', 190);
initDrab('DrabF', 200);
initCobalt('CobaltC', 300);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 7500) {
initDrab('DrabG', 200);
initCobalt('CobaltD', 400);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 10000) {
initDrab('DrabH', 200);
initCobalt('CobaltE', 300);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 14000) {
initDrab('DrabI', 300);
initCobalt('CobaltF', 400);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 20000) {
initDrab('DrabJ', 200);
initCobalt('CobaltG', 300);
++levelProgress;
}
}
}
}
}
}
}
HUD.teamBarA._xscale = ((totalKillz - killCount) / totalKillz) * 100;
HUD.teamBarB._xscale = 100 - HUD.distBarA._xscale;
HUD.teamTXT.text = 'Enemy Forces: [' + (totalKillz - killCount) + '/' + totalKillz + ']';
if (xspeed < 30) {
xspeed = 30;
} else {
--xspeed;
}
if (dist > 1000 && dist < 1500) {
HUD.smashTXT._visible = false;
}
if (killCount >= totalKillz) {
winFunc();
}
}
function update19() {
if (user.data.hardMode) {
if (levelProgress == 0 && dist > 500) {
++levelProgress;
initCobalt('CobaltA', 300);
initBlue('BlueB', 300);
initBlue('BlueC', 300);
initCobalt('CobaltC', 300);
} else {
if (levelProgress == 1 && dist > 4000) {
initBlue('BlueE', 400);
initBlue('BlueF', 400);
initCobalt('CobaltG', 700);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 8000) {
initToaster('ToasterH', 300, 1);
initToaster('ToasterI', 300, 1);
initToaster('ToasterJ', 300, 1);
initToaster('ToasterK', 300, 1);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 12000) {
initToaster('ToasterL', 200);
initToaster('ToasterM', 200);
initCobalt('CobaltN', 600);
initCobalt('CobaltO', 600);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 16000) {
initCobalt('CobaltP', 300);
initDrab('DrabQ', 250);
initDrab('DrabR', 250);
initBlue('BlueS', 150);
initBlue('BlueT', 150);
initBlue('BlueU', 150);
initBlue('BlueV', 150);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 18000) {
initBlue('BlueW', 100, 10);
initBlue('BlueX', 100, 10);
initBlue('BlueY', 100, 10);
initBlue('BlueZ', 100, 10);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 20000) {
initDrab('DrabAA', 300);
initDrab('DrabBB', 300);
initBlue('BlueCC', 100, 10);
initBlue('BlueDD', 100, 10);
++levelProgress;
} else {
if (levelProgress == 7 && dist > 24000) {
initCobalt('CobaltEE', 100);
initMage('MageFF', 130, CobaltE);
initMage('MageHH', 130, CobaltE, -250);
++levelProgress;
} else {
if (levelProgress == 8 && dist > 25000) {
initCobalt('CobaltII', 100);
initMage('MageJJ', 130, CobaltF);
initDrab('DrabKK', 250);
initDrab('DrabLL', 250);
++levelProgress;
} else {
if (levelProgress == 9 && dist > 32000) {
initMage('MageMM', 130);
initMage('MageNN', 130);
++levelProgress;
} else {
if (levelProgress == 10 && dist > 34000) {
initBlue('BlueOO', 1000);
initDrab('DrabPP', 300);
initDrab('DrabQQ', 300);
++levelProgress;
} else {
if (levelProgress == 11 && dist > 35000) {
initBlue('BlueRR', 200);
initDrab('DrabSS', 250);
initBlue('BlueTT', 200, 10);
++levelProgress;
} else {
if (levelProgress == 12 && dist > 38000) {
initBlue('BlueUU', 200);
initDrab('DrabVV', 250);
initBlue('BlueWW', 200, 10);
++levelProgress;
}
}
}
}
}
}
}
}
}
}
}
}
}
if (enemyArray.length == 1) {
initBlue('BlueXX' + _root.dist, 400);
initBlue('DrabYY' + _root.dist, 300);
}
} else {
if (levelProgress == 0 && dist > 500) {
++levelProgress;
initCobalt('CobaltA', 300);
initBlue('BlueA', 300);
initBlue('BlueB', 300);
} else {
if (levelProgress == 1 && dist > 4000) {
initBlue('BlueC', 400);
initCobalt('CobaltB', 400);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 8000) {
initToaster('ToasterA', 200, 1);
initToaster('ToasterB', 200, 1);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 12000) {
initToaster('ToasterC', 200);
initToaster('ToasterD', 200);
initCobalt('CobaltC', 200);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 16000) {
initCobalt('CobaltD', 200);
initDrab('DrabA', 150);
initDrab('DrabB', 150);
initBlue('BlueD', 50);
initBlue('BlueE', 50);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 18000) {
initBlue('BlueF', 50, 10);
initBlue('BlueG', 50, 10);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 20000) {
initDrab('DrabC', 150);
initDrab('DrabD', 150);
initBlue('BlueH', 50, 10);
initBlue('BlueI', 50, 10);
++levelProgress;
} else {
if (levelProgress == 7 && dist > 24000) {
initCobalt('CobaltE', 100);
initMage('MageA', 130, CobaltE);
++levelProgress;
} else {
if (levelProgress == 8 && dist > 25000) {
initCobalt('CobaltF', 100);
initMage('MageB', 130, CobaltF);
initDrab('DrabE', 150);
++levelProgress;
} else {
if (levelProgress == 9 && dist > 32000) {
initMage('MageC', 130);
++levelProgress;
} else {
if (levelProgress == 10 && dist > 34000) {
initBlue('BlueJ', 100);
++levelProgress;
} else {
if (levelProgress == 11 && dist > 35000) {
initBlue('BlueK', 100);
initDrab('DrabF', 150);
initBlue('BlueL', 50, 10);
++levelProgress;
}
}
}
}
}
}
}
}
}
}
}
}
if (enemyArray.length == 1) {
initBlue('Blue' + _root.dist, 200);
initBlue('Drab' + _root.dist, 200);
}
}
applyLevelFilter(-417, 13158, 3407871, 50, 80);
bgA._visible = cam._y > -277;
bgC.lunaStill.earth._visible = cam._y < -297;
if (dist > 12000) {
++timer;
if (timer == 300) {
var v3 = Math.random() * 2;
v3 = Math.round(10 * v3) / 10;
com.greensock.TweenMax.to(this, 3, {'gravity': v3});
bgB.BG2.recal.text = 'RECALIBRATING A.G.';
bgB.BG1.recal.text = 'RECALIBRATING A.G.';
mechalert.start();
HUD.attachMovie('gravAlert', 'alert', HUD.getNextHighestDepth(), {'_x': 0, '_y': 250});
com.greensock.TweenLite.to(HUD.alert, 0.3, {'_y': -108, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(HUD.alert, 0.3, {'delay': 1, '_y': 250, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': removeMC, 'onCompleteParams': [HUD.alert]});
} else {
if (timer == 390) {
bgB.BG2.recal.text = '[STANDBY]';
bgB.BG1.recal.text = '[STANDBY]';
timer = 0;
}
}
bgB.BG1.gNum.text = gravity + 'g';
bgB.BG2.gNum.text = bgB.BG1.gNum.text;
}
if (BigBlue._y < -1252) {
_root.yspeed = -Math.abs(_root.yspeed * 0.7);
}
if (random(100) == 0) {
var v4 = 90 + random(50);
var v5 = 'lunaObject' + bgC.getNextHighestDepth();
bgC.attachMovie('lunaObject', v5, bgC.getNextHighestDepth(), {'_x': 100 + cam._x + cam._width / 2, '_y': -113 + random(20), '_xscale': v4, '_yscale': v4});
attachBGfunc(bgC[v5], 4);
}
if (dist > endDist) {
winFunc();
}
}
function update20() {
if (user.data.hardMode) {
if (levelProgress == 0 && dist > 500) {
++levelProgress;
initMobile('MobileA', 300);
initToaster('ToasterA', 100, 0.7);
} else {
if (levelProgress == 1 && dist > 2000) {
initDrab('DrabA', 100);
initMobile('MobileB', 200, DrabA);
initBlue('BlueA', 200);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 6000) {
initToaster('ToasterB', 300, 1);
initToaster('ToasterC', 300, 1);
initBlue('BlueB', 100);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 10000) {
initMobile('MobileC', 200);
initCobalt('CobaltC', 200);
initDrab('DrabB', 150);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 15000) {
initCobalt('CobaltD', 200);
initMage('MageA', 120, BigBlue);
initDrab('DrabC', 150);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 19000) {
initMobile('MobileD', 250);
initToaster('ToasterD', 150, 1);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 25000) {
initDrab('DrabD', 150);
initDrab('DrabE', 150);
initDrab('DrabF', 150);
++levelProgress;
} else {
if (levelProgress == 7 && dist > 29000) {
initBlue('BlueC', 200);
initBlue('BlueD', 200);
initBlue('BlueE', 200);
initBlue('BlueF', 200);
initBlue('BlueG', 200);
++levelProgress;
} else {
if (levelProgress == 8 && dist > 35000) {
initCobalt('CobaltE', 150);
++levelProgress;
} else {
if (levelProgress == 9 && dist > 35500) {
initCobalt('CobaltF', 150);
++levelProgress;
} else {
if (levelProgress == 10 && dist > 40000) {
initToaster('ToasterD', 150, 1);
initToaster('ToasterE', 150, 1);
++levelProgress;
} else {
if (levelProgress == 11 && dist > 45000) {
initBlue('BlueH', 100);
initDrab('DrabI', 150);
initBlue('BlueI', 50, 10);
++levelProgress;
} else {
if (levelProgress == 12 && dist > 49000) {
initBlue('BlueCx', 200);
initBlue('BlueDx', 200);
initBlue('BlueEx', 200);
initBlue('BlueFx', 200);
initBlue('BlueGx', 200);
++levelProgress;
} else {
if (levelProgress == 13 && dist > 53000) {
initCobalt('CobaltEx', 1500);
++levelProgress;
} else {
if (levelProgress == 14 && dist > 56000) {
initCobalt('CobaltFx', 1500);
++levelProgress;
} else {
if (levelProgress == 15 && dist > 59000) {
initToaster('ToasterDx', 250, 1);
initToaster('ToasterEx', 250, 1);
++levelProgress;
} else {
if (levelProgress == 16 && dist > 62000) {
initBlue('BlueHx', 200);
initDrab('DrabIx', 250);
initBlue('BlueIx', 150, 10);
++levelProgress;
} else {
if (levelProgress == 17 && dist > 65000) {
initMobile('MobileDx', 250);
initToaster('ToasterDx', 150, 1);
++levelProgress;
} else {
if (levelProgress == 18 && dist > 68000) {
initDrab('DrabDxx', 150);
initDrab('DrabExx', 150);
initDrab('DrabFxx', 150);
++levelProgress;
} else {
if (levelProgress == 19 && dist > 70000) {
initBlue('BlueCxx', 200);
initBlue('BlueDxx', 200);
initBlue('BlueExx', 200);
initBlue('BlueFxx', 200);
initBlue('BlueGxx', 200);
++levelProgress;
} else {
if (levelProgress == 20 && dist > 74000) {
initDrab('DrabAgb', 100);
initMobile('MobileBgb', 200, DrabAgb);
initBlue('BlueAgb', 200);
++levelProgress;
} else {
if (levelProgress == 21 && dist > 77000) {
initToaster('ToasterBgb', 300, 1);
initToaster('ToasterCgb', 300, 1);
initBlue('BlueBgb', 100);
++levelProgress;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
} else {
if (levelProgress == 0 && dist > 500) {
++levelProgress;
initMobile('MobileA', 200);
initToaster('ToasterA', 100, 0.7);
} else {
if (levelProgress == 1 && dist > 2000) {
initDrab('DrabA', 100);
initMobile('MobileB', 200, DrabA);
initBlue('BlueA', 200);
++levelProgress;
} else {
if (levelProgress == 2 && dist > 6000) {
initToaster('ToasterB', 100, 1);
initToaster('ToasterC', 100, 1);
initBlue('BlueB', 100);
++levelProgress;
} else {
if (levelProgress == 3 && dist > 10000) {
initMobile('MobileC', 200);
initCobalt('CobaltC', 200);
initDrab('DrabB', 150);
++levelProgress;
} else {
if (levelProgress == 4 && dist > 15000) {
initCobalt('CobaltD', 200);
initMage('MageA', 120, BigBlue);
initDrab('DrabC', 150);
++levelProgress;
} else {
if (levelProgress == 5 && dist > 19000) {
initMobile('MobileD', 250);
initToaster('ToasterD', 150, 1);
++levelProgress;
} else {
if (levelProgress == 6 && dist > 25000) {
initDrab('DrabD', 150);
initDrab('DrabE', 150);
initDrab('DrabF', 150);
++levelProgress;
} else {
if (levelProgress == 7 && dist > 29000) {
initBlue('BlueC', 200);
initBlue('BlueD', 200);
initBlue('BlueE', 200);
initBlue('BlueF', 200);
initBlue('BlueG', 200);
++levelProgress;
} else {
if (levelProgress == 8 && dist > 35000) {
initCobalt('CobaltE', 150);
++levelProgress;
} else {
if (levelProgress == 9 && dist > 35500) {
initCobalt('CobaltF', 150);
++levelProgress;
} else {
if (levelProgress == 10 && dist > 40000) {
initToaster('ToasterD', 150, 1);
initToaster('ToasterE', 150, 1);
++levelProgress;
} else {
if (levelProgress == 10 && dist > 45000) {
initBlue('BlueH', 100);
initDrab('DrabI', 150);
initBlue('BlueI', 50, 10);
++levelProgress;
}
}
}
}
}
}
}
}
}
}
}
}
}
if (BigBlue._y < -766) {
_root.yspeed = 0;
++BigBlue._y;
}
if (dist > 2000) {
++timer;
if (timer == 300) {
attachMovie('blasterPulse', 'pulse', getNextHighestDepth(), {'_x': 637, '_y': -470});
camTarg = pulse;
bgF.facility.play();
HUD.attachMovie('blueAlert', 'alert', HUD.getNextHighestDepth(), {'_x': 0, '_y': 250});
com.greensock.TweenLite.to(HUD.alert, 0.3, {'_y': 0, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(HUD.alert, 0.3, {'delay': 1, '_y': 250, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': removeMC, 'onCompleteParams': [HUD.alert]});
com.greensock.TweenMax.to(bgE, 0.8, {'delay': 1, 'yoyo': true, 'repeat': 1, 'colorTransform': {'tint': 13311, 'tintAmount': 0.8}});
com.greensock.TweenMax.to(bgD, 0.7, {'delay': 1.6, 'yoyo': true, 'repeat': 1, 'colorTransform': {'tint': 13311, 'tintAmount': 0.8}});
com.greensock.TweenMax.to(bgC, 0.6, {'delay': 1.8, 'yoyo': true, 'repeat': 1, 'colorTransform': {'tint': 13311, 'tintAmount': 0.8}});
com.greensock.TweenMax.to(bgB, 0.5, {'delay': 2, 'yoyo': true, 'repeat': 1, 'colorTransform': {'tint': 13311, 'tintAmount': 0.8}});
com.greensock.TweenMax.to(bgA, 0.5, {'delay': 2.1, 'yoyo': true, 'repeat': 1, 'colorTransform': {'tint': 13311, 'tintAmount': 0.8}});
} else {
if (timer == 354) {
camTarg = mainTarg;
} else {
if (timer == 363) {
for (var v14 in enemyArray) {
var v3 = enemyArray[v14];
if (v3._y > 0) {
v3.getHurt(30);
blasterA.start();
var v4 = 'blueSplat' + getNextHighestDepth();
attachMovie('HangDust', v4, getNextHighestDepth(), {'_x': v3._x, '_y': v3._y, '_xscale': 60, '_yscale': 60});
com.greensock.TweenLite.to(_root[v4], 1, {'tint': 65535, '_xscale': 100, '_yscale': 100, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [_root[v4]]});
}
}
for (v14 in teamArray) {
var v2 = _root[teamArray[v14]];
if (v2._y > 0) {
v2.getHurt(20);
v4 = 'blueSplat' + getNextHighestDepth();
attachMovie('HangDust', v4, getNextHighestDepth(), {'_x': v2._x, '_y': v2._y, '_xscale': 60, '_yscale': 60});
com.greensock.TweenLite.to(_root[v4], 1, {'tint': 65535, '_xscale': 100, '_yscale': 100, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [_root[v4]]});
}
}
timer = 0;
PHASE = 'FREEZE';
com.greensock.TweenMax.delayedCall(0.8, setPhase, ['FOLLOW']);
}
}
}
}
var v13 = 0.9 - cam._y / -1500;
bgE._x = cam._x - 600;
bgD._x = bgE._x;
bgF._x = bgE._x;
bgF.facility = -580 * v13;
bgF.BG2._y = bgF.facility;
bgF.BG1._y = bgF.facility;
bgE._y = -406 * v13;
bgD._y = -380 * v13;
bgC._y = -240 * v13;
bgB._y = -124 * v13;
bgF._visible = cam._y < -179;
bgE._visible = bgE._y > cam._y - 360;
bgD._visible = bgD._y > cam._y - 390;
bgC._visible = bgC._y > cam._y - 430;
bgB._visible = bgB._y > cam._y - 640;
bgA._visible = cam._y > -359;
if (dist > endDist) {
winFunc();
}
}
function update21() {
with (Hero) {
if (_x < -1100) {
_x = -1100;
} else {
if (_x > 1400) {
_x = 1400;
}
}
}
topTarg = Boss;
mainTarg = topTarg;
HUD._y = cam._y;
HUD._x = cam._x;
HUD._yscale = cam._xscale;
HUD._xscale = HUD._yscale;
}
function initHero() {
attachMovie('AndrewMCRun', 'Hero', getNextHighestDepth(), {'_x': 200, '_y': yground - 1});
removeFromArray('Hero', teamArray);
teamArray.push('Hero');
Hero.thp = 275;
Hero.hp = 275;
Hero.yspeed = 0;
Hero.xspeed = 0;
Hero.stance = 'RUN';
Hero.canCombo = false;
Hero.lockCombo = false;
Hero.recoverFunc = function () {
with (Hero) {
lockCombo = false;
canCombo = lockCombo;
if (_y < yground) {
if (stance !== 'HURT') {
stance = 'DJUMP';
}
stop();
} else {
stance = 'RUN';
gotoAndStop('RUN');
}
}
};
Hero.hitFunc = function () {
with (Hero) {
var j = 0;
while (j < 4) {
var myHit = 'hitSplatFB' + _root.getNextHighestDepth();
_root.attachMovie('effectHitA', myHit, _root.getNextHighestDepth(), {'_xscale': 300, '_yscale': 300, '_x': _x + 28, '_y': _y - 58, '_rotation': random(90) * j});
com.greensock.TweenMax.to(_root[myHit], 0, {'colorMatrixFilter': {'hue': 180, 'brightness': 3}});
++j;
}
this.stop();
com.greensock.TweenMax.delayedCall(0.15, gotoPlay, [this, this._currentframe + 1]);
PHASE = 'FREEZE';
com.greensock.TweenMax.delayedCall(0.15, setPhase, ['FOLLOW']);
}
};
Hero.initAttack = function () {
with (Hero) {
var myPOW = 8;
if (stance == 'ATKB') {
myPOW = 9;
xspeed = 10;
yspeed = -5;
} else {
if (stance == 'ATKC') {
myPOW = 10;
xspeed = 2;
yspeed = 0;
} else {
if (stance == 'ATKD') {
var myPOW = 11;
xspeed += 4;
yspeed = -5;
}
}
}
for (var k in enemyArray) {
var myEnemy = enemyArray[k];
if (this.atkbox.hitTest(myEnemy) && myEnemy !== Boss) {
setCombo('Andrew');
hitFunc();
damage(this, myEnemy, myPOW, 'DOWN');
setSpeed(this, myEnemy, '10', 10);
}
}
if (this.atkbox.hitTest(Boss.hitbox)) {
Boss.getHurt(myPOW * 2);
if (stance == 'ATKA') {
genhit.start();
} else {
if (stance == 'ATKB') {
punchSND.start();
setSpeed(this, Boss, '0', '5');
} else {
if (stance == 'ATKC') {
hardhit.start();
setSpeed(this, Boss, '0', '7');
} else {
if (stance == 'ATKD') {
setSpeed(this, Boss, '0', -35);
if (_currentframe >= 111) {
niceTXT('Standrew Combo', 300, 76);
} else {
smashhitB.start();
}
}
}
}
}
hitFunc();
}
}
};
Hero.clickFunc = function () {
with (Hero) {
if (canCombo && !lockCombo) {
canCombo = false;
if (stance == 'ATKA') {
xspeed = 5;
yspeed = -15;
stance = 'ATKB';
gotoAndPlay('ATKB');
} else {
if (stance == 'ATKB') {
xspeed = 5;
yspeed = -10;
canCombo = false;
stance = 'ATKC';
gotoAndPlay('ATKC');
} else {
if (stance == 'ATKC') {
xspeed = 5;
yspeed = -10;
canCombo = false;
stance = 'ATKD';
gotoAndPlay('ATKD');
}
}
}
} else {
if (!canCombo) {
if (stance == 'JUMP' || stance == 'DJUMP' || stance == 'RUN') {
canCombo = false;
stance = 'ATKA';
gotoAndPlay('ATKA');
xspeed = 7;
yspeed = -20;
} else {
lockCombo = true;
}
}
}
}
};
Hero.getHurt = function (amt) {
with (Hero) {
if (stance !== 'DEAD' && stance !== 'HURT') {
_root.isPerfect = false;
canCombo = false;
xspeed = -20;
yspeed = -20;
hp -= amt;
if (hp <= 0) {
Boss.loseFunc();
this.loseFunc();
_root.loseFunc();
} else {
stance = 'HURT';
gotoAndPlay('HURT');
var j = 1;
while (j < 4) {
var myHit = 'hitSplatFB' + _root.getNextHighestDepth();
_root.attachMovie('effectHitA', myHit, _root.getNextHighestDepth(), {'_xscale': 200, '_yscale': 200, '_x': _x, '_y': _y, '_rotation': random(90) * j});
com.greensock.TweenMax.to(_root[myHit], 0, {'colorMatrixFilter': {'hue': 113, 'saturation': 2.7}});
++j;
}
PHASE = 'FREEZE';
com.greensock.TweenMax.delayedCall(0.1, setPhase, ['FOLLOW']);
}
}
}
};
Hero.loseFunc = function () {
with (Hero) {
HUD.heroBarB._visible = false;
HUD.heroBar._visible = HUD.heroBarB._visible;
HUD.heroMarker._visible = HUD.heroBarB._visible;
HUD.bossBarB._visible = HUD.heroBarB._visible;
HUD.bossBar._visible = HUD.heroBarB._visible;
HUD.bossMarker._visible = HUD.heroBarB._visible;
stance = 'DEAD';
gotoAndStop('DEAD');
com.greensock.TweenLite.to(this, 0.7, {'_rotation': '360', 'onComplete': removeMC, 'onCompleteParams': [this]});
for (var i in teamArray) {
com.greensock.TweenLite.killTweensOf([teamArray[i]]);
com.greensock.TweenLite.to(_root[teamArray[i]], 1, {'_x': cam._x - cam._width, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [_root[teamArray[i]]]});
}
_root.removeFromArray('Hero', _root.teamArray);
}
};
Hero.onEnterFrame = function () {
with (Hero) {
if (_root.WKEYpress || _root.UPpress) {
if (stance == 'RUN') {
gotoAndPlay('JUMP');
yspeed = -30;
stance = 'JUMP';
} else {
if (stance == 'JUMP') {
gotoAndPlay('DJUMP');
yspeed = -27;
stance = 'DJUMP';
}
}
}
if (PHASE !== 'FREEZE') {
_root.HUD.heroBar._xscale = hp * 100 / thp / 2;
_root.HUD.heroBarB._xscale = 50 - _root.HUD.heroBar._xscale;
if (stance == 'DJUMP') {
for (var k in enemyArray) {
var myEnemy = enemyArray[k];
if (this.atkbox.hitTest(myEnemy) && myEnemy !== Boss) {
setCombo('Andrew');
hitFunc();
damage(this, myEnemy, 20, 'DOWN');
setSpeed(this, myEnemy, '30', 10);
}
}
if (this.atkbox.hitTest(Boss.hitbox)) {
Boss.getHurt(40);
hitFunc();
}
}
if (stance !== 'HURT' || stance !== 'DEAD') {
if (Key.isDown(68) || Key.isDown(39)) {
_x += 4;
xspeed = 7;
} else {
if (Key.isDown(65) || Key.isDown(37)) {
_x -= 6;
xspeed = -8;
}
}
}
_y += yspeed;
_x += xspeed;
if (stance == 'RUN') {
if (xspeed > 0) {
--xspeed;
} else {
if (xspeed < 0) {
++xspeed;
}
}
}
if (_y > yground) {
_y = yground;
yspeed = 0;
lockCombo = false;
canCombo = lockCombo;
if (stance !== 'DEAD') {
stance = 'RUN';
gotoAndStop('RUN');
}
} else {
yspeed += 3;
}
if (stance == 'DEAD' && _y == yground) {
_x -= _root.xspeed;
}
}
}
};
}
function checkBonus() {
return user.data.bonusArray[user.data.currentLevel] == false;
}
function optEndLevel() {
if (user.data.currentLevel == 1) {
prevTriesArray.push(dist / endDist);
} else {
if (user.data.currentLevel == 2) {
prevTriesArray.push(dist / endDist);
} else {
if (user.data.currentLevel == 3) {
prevTriesArray.push(dist / endDist);
} else {
if (user.data.currentLevel == 4) {
prevTriesArray.push(dist / endDist);
} else {
if (user.data.currentLevel == 5) {
prevTriesArray.push(1 - Boss.hp / Boss.thp);
} else {
if (user.data.currentLevel == 6) {
prevTriesArray.push(dist / endDist);
} else {
if (user.data.currentLevel == 7) {
prevTriesArray.push(dist / endDist);
} else {
if (user.data.currentLevel == 8) {
if (user.data.hardMode) {
prevTriesArray.push(dist / endDist);
} else {
prevTriesArray = new Array();
}
} else {
if (user.data.currentLevel == 9) {
prevTriesArray.push(dist / endDist);
} else {
if (user.data.currentLevel == 10) {
prevTriesArray.push(1 - Boss.hp / Boss.thp);
} else {
if (user.data.currentLevel == 11) {
prevTriesArray.push(dist / endDist);
} else {
if (user.data.currentLevel == 12) {
prevTriesArray.push(dist / endDist);
} else {
if (user.data.currentLevel == 13) {
prevTriesArray.push(dist / endDist);
} else {
if (user.data.currentLevel == 14) {
prevTriesArray.push(dist / endDist);
} else {
if (user.data.currentLevel == 15) {
prevTriesArray.push(1 - totalHP / totalTHP);
HUD.smashTXT._alpha = 0;
} else {
if (user.data.currentLevel == 16) {
HUD.teamBarA._alpha = 0;
HUD.teamBarB._alpha = 0;
HUD.teamTXT._alpha = 0;
HUD.smashTXT._alpha = 0;
prevTriesArray.push(1 - (totalKillz - killCount) / totalKillz);
} else {
if (user.data.currentLevel == 17) {
prevTriesArray.push(dist / endDist);
} else {
if (user.data.currentLevel == 18) {
HUD.teamBarA._alpha = 0;
HUD.teamBarB._alpha = 0;
HUD.teamTXT._alpha = 0;
HUD.smashTXT._alpha = 0;
prevTriesArray.push(1 - (totalKillz - killCount) / totalKillz);
} else {
if (user.data.currentLevel == 19) {
prevTriesArray.push(dist / endDist);
} else {
if (user.data.currentLevel == 20) {
prevTriesArray.push(dist / endDist);
} else {
if (user.data.currentLevel == 21) {
prevTriesArray.push(1 - Boss.hp / Boss.thp);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
function setupWinLevel() {
user.data.isNoob = true;
user.data.ultraCharge = ultraCharge;
if (user.data.currentLevel == 1) {
if (teamArray.length == 1 && stopWatch <= 2700 && _root.user.data.MattUpgrades[0] == 'Unlocked' && checkBonus()) {
bonusComplete = true;
user.data.MattUpgrades[3] = true;
user.data.bonusArray[user.data.currentLevel] = true;
}
} else {
if (user.data.currentLevel == 2) {
if (teamArray.length <= 3 && killCount >= 2 && checkBonus()) {
bonusComplete = true;
user.data.KhanhUpgrades[3] = true;
user.data.bonusArray[user.data.currentLevel] = true;
}
tweenA.pause();
tweenB.pause();
} else {
if (user.data.currentLevel == 3) {
if (maxSpeed >= 300 && initPOW >= 98 && checkBonus()) {
bonusComplete = true;
user.data.coupon = true;
user.data.bonusArray[user.data.currentLevel] = true;
}
} else {
if (user.data.currentLevel == 4) {
if (touchedSky == true && hurtByTeam == false && checkBonus()) {
bonusComplete = true;
user.data.MarcUpgrades[3] = true;
user.data.bonusArray[user.data.currentLevel] = true;
}
} else {
if (user.data.currentLevel == 5) {
if (_root.isPerfect == true && user.data.levelProgress > 10 && checkBonus()) {
bonusComplete = true;
user.data.slushTokens += 2;
user.data.bonusArray[user.data.currentLevel] = true;
}
} else {
if (user.data.currentLevel == 6) {
if (touchedSky == true && maxCombo >= 12 && _root.user.data.WesUpgrades[0] == 'Unlocked' && checkBonus()) {
bonusComplete = true;
user.data.WesUpgrades[3] = true;
user.data.bonusArray[user.data.currentLevel] = true;
}
} else {
if (user.data.currentLevel == 7) {
if (teamArray.length <= 4 && killCount >= 4 && _root.user.data.StewartUpgrades[0] == 'Unlocked' && checkBonus()) {
bonusComplete = true;
user.data.StewartUpgrades[3] = true;
user.data.bonusArray[user.data.currentLevel] = true;
}
} else {
if (user.data.currentLevel == 8) {
if (_root.dir / 2 - 15 >= 27 && _root.user.data.JKUpgrades[0] == 'Unlocked' && checkBonus()) {
bonusComplete = true;
user.data.JKUpgrades[3] = true;
user.data.bonusArray[user.data.currentLevel] = true;
}
setUnlockScreen(true, (_root.dir / 2 - 15) * 500, '# Trees x 500');
HUD.treeIconMC._visible = false;
HUD.treesTXT._alpha = 0;
HUD.smashTXT._alpha = 0;
} else {
if (user.data.currentLevel == 9) {
if (score >= 25000 && stopWatch <= 2700 && _root.user.data.BrianUpgrades[0] == 'Unlocked' && checkBonus()) {
bonusComplete = true;
user.data.BrianUpgrades[3] = true;
user.data.bonusArray[user.data.currentLevel] = true;
}
} else {
if (user.data.currentLevel == 10) {
if (stopWatch <= 4500 && _root.user.data.levelProgress > 10 && checkBonus()) {
bonusComplete = true;
user.data.bonusArray[user.data.currentLevel] = true;
user.data.slushTokens += 1;
}
} else {
if (user.data.currentLevel == 11) {
if (teamArray.length <= 5 && _root.mobileKillCount >= 3 && _root.user.data.SagarUpgrades[0] == 'Unlocked' && checkBonus()) {
bonusComplete = true;
user.data.bonusArray[user.data.currentLevel] = true;
user.data.SagarUpgrades[3] = true;
}
} else {
if (user.data.currentLevel == 12) {
if (killCount >= 8 && checkBonus()) {
bonusComplete = true;
user.data.bonusArray[user.data.currentLevel] = true;
user.data.PedroUpgrades[3] = true;
}
} else {
if (user.data.currentLevel == 13) {
if (maxSpeed >= 300 && maxCombo >= 25 && checkBonus()) {
bonusComplete = true;
user.data.bonusArray[user.data.currentLevel] = true;
user.data.slushTokens += 1;
}
} else {
if (user.data.currentLevel == 14) {
if (touchedSky == true && _root.mageKillCount >= 4 && _root.user.data.JoshUpgrades[0] == 'Unlocked' && checkBonus()) {
bonusComplete = true;
user.data.bonusArray[user.data.currentLevel] = true;
user.data.JoshUpgrades[3] = true;
}
} else {
if (user.data.currentLevel == 15) {
if (ultrasUsed >= 2 && checkBonus()) {
bonusComplete = true;
user.data.bonusArray[user.data.currentLevel] = true;
user.data.slushTokens += 1;
}
} else {
if (user.data.currentLevel == 16) {
if (stopWatch <= 2400 && _root.user.data.DanUpgrades[0] == 'Unlocked' && checkBonus()) {
bonusComplete = true;
user.data.bonusArray[user.data.currentLevel] = true;
user.data.DanUpgrades[3] = true;
}
} else {
if (user.data.currentLevel == 17) {
if (score >= 200000 && ultrasUsed == 0 && checkBonus()) {
bonusComplete = true;
user.data.bonusArray[user.data.currentLevel] = true;
user.data.slushTokens += 1;
}
} else {
if (user.data.currentLevel == 18) {
if (stopWatch <= 3600 && _root.user.data.BriStickUpgrades[0] == 'Unlocked' && checkBonus()) {
bonusComplete = true;
user.data.bonusArray[user.data.currentLevel] = true;
user.data.BriStickUpgrades[3] = true;
}
} else {
if (user.data.currentLevel == 19) {
if (killCount >= 20 && maxCombo >= 50 && _root.user.data.KirbyUpgrades[0] == 'Unlocked' && checkBonus()) {
bonusComplete = true;
user.data.bonusArray[user.data.currentLevel] = true;
user.data.KirbyUpgrades[3] = true;
}
} else {
if (user.data.currentLevel == 20) {
if (ultrasUsed >= 4 && _root.user.data.JorgeUpgrades[0] == 'Unlocked' && checkBonus()) {
bonusComplete = true;
user.data.bonusArray[user.data.currentLevel] = true;
user.data.JorgeUpgrades[3] = true;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
if (user.data.currentLevel == user.data.levelProgress) {
if (user.data.story == 'LevelOne') {
if (user.data.hardMode) {
if (user.data.StewartUpgrades[0] == 'Off') {
user.data.StewartUpgrades[0] = 'Locked';
}
} else {
user.data.tutArray[2] = true;
user.data.tutArray[0] = true;
user.data.MattUpgrades[0] = 'Locked';
}
user.data.story = 'LevelTwo';
} else {
if (user.data.story == 'LevelTwo') {
if (!user.data.hardMode) {
user.data.KyleUpgrades[0] = 'Locked';
user.data.tutArray[5] = true;
}
user.data.story = 'LevelThree';
} else {
if (user.data.story == 'LevelThree') {
if (!user.data.hardMode) {
user.data.BenUpgrades[0] = 'Locked';
user.data.tutArray[4] = 'Unlock It';
}
user.data.story = 'LevelFourPrecut';
} else {
if (user.data.story == 'LevelFour') {
if (!user.data.hardMode) {
user.data.WesUpgrades[0] = 'Locked';
}
user.data.story = 'LevelFivePrecut';
} else {
if (user.data.story == 'LevelFive') {
if (user.data.hardMode) {
if (user.data.DanUpgrades[0] == 'Off') {
user.data.DanUpgrades[0] = 'Locked';
}
} else {
user.data.tutArray[3] = 'Unlock It';
user.data.teamSize = 5;
user.data.TuckerUpgrades[0] = 'Locked';
}
user.data.story = 'LevelSix';
} else {
if (user.data.story == 'LevelSix') {
user.data.story = 'LevelSeven';
} else {
if (user.data.story == 'LevelSeven') {
if (!user.data.hardMode) {
user.data.CoreyUpgrades[0] = 'Locked';
}
user.data.story = 'LevelEight';
} else {
if (user.data.story == 'LevelEight') {
user.data.story = 'LevelNine';
} else {
if (user.data.story == 'LevelNine') {
if (!user.data.hardMode) {
user.data.BrianUpgrades[0] = 'Locked';
}
user.data.story = 'LevelTenPrecut';
} else {
if (user.data.story == 'LevelTen') {
if (user.data.hardMode) {
if (user.data.KirbyUpgrades[0] == 'Off') {
user.data.KirbyUpgrades[0] = 'Locked';
}
} else {
user.data.JKUpgrades[0] = 'Locked';
user.data.ultraUnlock = true;
user.data.ultraCharge = 0;
ultraCharge = 0;
user.data.slushTokens += 2;
}
user.data.story = 'LevelTenPostcut';
} else {
if (user.data.story == 'LevelEleven') {
if (!user.data.hardMode) {
user.data.SagarUpgrades[0] = 'Locked';
}
user.data.story = 'LevelTwelve';
} else {
if (user.data.story == 'LevelTwelve') {
if (!user.data.hardMode) {
user.data.HangUpgrades[0] = 'Locked';
}
user.data.story = 'LevelThirteen';
} else {
if (user.data.story == 'LevelThirteen') {
if (!user.data.hardMode) {
user.data.JoshUpgrades[0] = 'Locked';
}
user.data.story = 'LevelFourteen';
} else {
if (user.data.story == 'LevelFourteen') {
if (!user.data.hardMode) {
user.data.JamesUpgrades[0] = 'Locked';
}
user.data.story = 'LevelFifteenPrecut';
} else {
if (user.data.story == 'LevelFifteen') {
if (user.data.hardMode) {
if (user.data.BriStickUpgrades[0] == 'Off') {
user.data.BriStickUpgrades[0] = 'Locked';
}
} else {
user.data.OmarUpgrades[0] = 'Locked';
user.data.ThomasUpgrades[0] = 'Locked';
user.data.EricUpgrades[0] = 'Locked';
user.data.ultraLimit += 1;
user.data.slushTokens += 3;
}
user.data.story = 'LevelFifteenPostcut';
} else {
if (user.data.story == 'LevelSixteen') {
if (!user.data.hardMode) {
user.data.AddisonUpgrades[0] = 'Locked';
}
user.data.story = 'LevelSeventeen';
} else {
if (user.data.story == 'LevelSeventeen') {
if (user.data.hardMode) {
if (user.data.JorgeUpgrades[0] == 'Off') {
user.data.JorgeUpgrades[0] = 'Locked';
}
} else {
user.data.LukeUpgrades[0] = 'Locked';
}
user.data.story = 'LevelEighteenPrecut';
} else {
if (user.data.story == 'LevelEighteen') {
if (!user.data.hardMode) {
user.data.WaqasUpgrades[0] = 'Locked';
}
user.data.story = 'LevelEighteenPostcut';
} else {
if (user.data.story == 'LevelNineteen') {
if (!user.data.hardMode) {
user.data.SeanUpgrades[0] = 'Locked';
user.data.teamSize = 6;
user.data.tutArray[3] = 'Unlock It';
}
user.data.story = 'LevelTwenty';
} else {
if (user.data.story == 'LevelTwenty') {
if (!user.data.hardMode) {
user.data.MichaelUpgrades[0] = 'Locked';
}
user.data.story = 'LevelTwentyOnePrecut';
} else {
if (user.data.story == 'LevelTwentyOne') {
user.data.story = 'LevelTwentyOnePostcut';
} else {
if (user.data.story == 'GameFinish') {
user.data.story = 'LevelTwentyOnePostcut';
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
user.flush();
}
var genhit = new Sound();
genhit.attachSound('genhit');
var tweenA;
var tweenB;
var updateLevel = new Function();
var woodhit = new Sound();
woodhit.attachSound('woodhit');
var noA = new Sound();
noA.attachSound('noA');
var noB = new Sound();
noB.attachSound('noB');
var bithurt = new Sound();
bithurt.attachSound('bithurt');
var mechalert = new Sound();
mechalert.attachSound('mechalert');
initBossOmar = function () {
attachMovie('OmarMC', 'BossOmar', getNextHighestDepth(), {'_x': cam._x + cam._width / 2 + 70, '_y': yground, '_xscale': -100});
enemyArray.push(BossOmar);
com.greensock.TweenMax.to(BossOmar, 0, {'tint': 153});
BossOmar.callNode = false;
BossOmar.node = 0;
BossOmar.curTarg;
BossOmar.stance = 'ATTACK';
BossOmar.revert = false;
BossOmar.onEnterFrame = function () {
with (BossOmar) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
com.greensock.TweenMax.to(this, 4, {'_x': cam._x - cam._width / 2 - 70, 'ease': com.greensock.easing.Linear.easeNone, 'onComplete': removeMC, 'onCompleteParams': [this]});
} else {
if (node == 2) {
_x = curTarg._x + 50;
curTarg.getHurt(4);
} else {
if (node == 3) {
_x = curTarg._x + 50;
curTarg.getHurt(7);
} else {
if (node == 4 || node == 5) {
_x = curTarg._x + 30;
curTarg.getHurt(12);
} else {
if (node >= 6 && node <= 9) {
curTarg.getHurt(3);
} else {
if (node == 10) {
PHASE = 'FREEZE';
curTarg.getHurt(14);
} else {
if (node == 11) {
PHASE = 'FOLLOW';
_x = curTarg._x + 30;
curTarg.getHurt(20);
gotoAndPlay('TEMPEST');
} else {
if (node == 12) {
com.greensock.TweenMax.to(this, 0.1, {'_x': '50', 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (node == 13) {
com.greensock.TweenMax.to(this, 9, {'_x': curTarg._x, 'useFrames': true, 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (node == 14) {
com.greensock.TweenMax.to(this, 15, {'_x': curTarg._x, '_y': yground - 150, 'useFrames': true, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 10, {'_x': curTarg._x, '_y': yground, 'useFrames': true, 'delay': 15, 'ease': com.greensock.easing.Strong.easeIn});
} else {
if (node == 15) {
_x = curTarg._x + 30;
gotoAndPlay('SWORD');
} else {
if (node >= 16 && node <= 21) {
curTarg.getHurt(3);
} else {
if (node == 22) {
com.greensock.TweenMax.to(this, 15, {'_x': curTarg._x + 30, '_y': yground - 150, 'useFrames': true, 'ease': com.greensock.easing.Strong.easeOut});
curTarg.getHurt(18);
} else {
if (node == 23) {
com.greensock.TweenMax.to(this, 15, {'_x': curTarg._x + 30, '_y': yground, 'useFrames': true, 'ease': com.greensock.easing.Strong.easeIn});
curTarg.getHurt(18);
_root.setPhase('FREEZE');
com.greensock.TweenLite.delayedCall(0.3, _root.setPhase, ['FOLLOW']);
} else {
if (node == 24) {
revert = true;
stop();
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
if (node >= 2 && node < 12 && (node > 15 && node <= 21)) {
com.greensock.TweenMax.to(this, 0.1, {'_x': curTarg._x + 50});
com.greensock.TweenMax.to(curTarg, 0.1, {'_y': _y});
}
}
if (node == 1 && _currentframe == 1) {
for (var i in teamArray) {
var mySlush = _root[teamArray[i]];
if (hitTest(mySlush) && mySlush.hp !== 0 && mySlush !== _root.Kyle && mySlush !== _root.Brian) {
com.greensock.TweenLite.killTweensOf(this);
gotoAndPlay(2);
curTarg = mySlush;
com.greensock.TweenMax.to(curTarg, 0.5, {'_y': _y, 'ease': com.greensock.easing.Strong.easeOut});
break;
}
}
}
if (node == 13 || node == 14) {
for (var i in teamArray) {
var mySlush = _root[teamArray[i]];
if (spinBOX.hitTest(mySlush)) {
mySlush.getHurt(2);
}
}
}
if (revert) {
stop();
node = null;
revert = node;
com.greensock.TweenMax.to(this, 0.5, {'_x': 1300, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': removeMC, 'onCompleteParams': [this]});
}
}
}
}
};
BossOmar.getHurt = function (amt) {
with (BossOmar) {
if (invincible !== true) {
com.greensock.TweenLite.killTweensOf(this);
_root.totalHP -= amt;
gotoAndPlay('HURT');
com.greensock.TweenMax.to(this, 0.5, {'_x': 1400, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': removeMC, 'onCompleteParams': [this]});
}
}
};
BossOmar.onUnload = function () {
removeFromArray(BossOmar, enemyArray);
};
};
initBossThomas = function () {
removeFromArray(BossThomas, enemyArray);
attachMovie('ThomasMC', 'BossThomas', getNextHighestDepth(), {'_x': cam._x + cam._width / 2 + 70, '_y': cam._y - cam._height / 2, '_xscale': -100});
enemyArray.push(BossThomas);
com.greensock.TweenMax.to(BossThomas, 0, {'tint': 153});
BossThomas.callNode = false;
BossThomas.node = 0;
for (var i in teamArray) {
var mySlush = _root[teamArray[i]];
if (mySlush !== undefined) {
BossThomas.curTarg = mySlush;
break;
}
}
BossThomas.curTarg = _root.Hero;
BossThomas.stance = 'ATTACK';
BossThomas.revert = false;
var thomBossTween;
BossThomas.onEnterFrame = function () {
with (BossThomas) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
thomBossTween = com.greensock.TweenMax.to(this, 0.8, {'_x': curTarg._x + 30});
com.greensock.TweenMax.delayedCall(0.5, gotoPlay, [this, 2]);
} else {
if (node == 2) {
_y = curTarg._y + 15;
_x = curTarg._x + 30;
PHASE = 'FREEZE';
curTarg.getHurt(13);
} else {
if (node == 3) {
PHASE = 'FOLLOW';
} else {
if (node == 4) {
curTarg.getHurt(10);
} else {
if (node == 5) {
curTarg.getHurt(10);
} else {
if (node == 6) {
curTarg.getHurt(8);
} else {
if (node == 8) {
curTarg.getHurt(10);
} else {
if (node == 10) {
PHASE = 'FREEZE';
_y = curTarg._y + 15;
_x = curTarg._x + 30;
curTarg.getHurt(19);
} else {
if (node == 11) {
PHASE = 'FOLLOW';
revert = true;
}
}
}
}
}
}
}
}
}
if (node > 2 && node <= 10) {
com.greensock.TweenMax.to(this, 0.1, {'_x': curTarg._x + 10});
}
}
if (node >= 1 && node <= 10) {
_y += (curTarg._y + 15 - _y) / 3;
}
if (node == 1) {
thomBossTween.updateTo({'_x': myFunc()}, false);
myFunc = function () {
return curTarg._x + 30;
};
}
if (revert) {
node = null;
revert = node;
gotoAndPlay('FALL');
com.greensock.TweenMax.to(this, 25, {'_x': '-50', '_y': yground, 'useFrames': true, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenMax.to(this, 25, {'delay': 25, '_x': 1300, 'useFrames': true, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': removeMC, 'onCompleteParams': [this]});
}
} else {
if (stance == 'ULTRA') {
if (this.posTarg !== undefined) {
this.posTarg._visible = false;
if (curTarg == undefined || curTarg == null) {
curTarg = _root.Hero;
}
camTarg = curTarg;
curTarg._x = _x - this.posTarg._x;
curTarg._y = _y + this.posTarg._y;
}
_root.setPhase('FREEZE');
}
}
}
}
};
BossThomas.hitFunc = function (type) {
with (BossThomas) {
_root.Hero.getHurt(7);
_root.Hero.gotoAndPlay('HURT');
var j = 1;
while (j < 10) {
var mySpark = 'hitSpark' + _root.getNextHighestDepth();
_root.attachMovie('effectHitA', mySpark, _root.getNextHighestDepth(), {'_x': curTarg._x, '_y': curTarg._y, '_rotation': random(40) * j});
com.greensock.TweenMax.to(_root[mySpark], 0, {'colorMatrixFilter': {'hue': 116, 'saturation': 1.2}});
++j;
}
}
};
BossThomas.ultra = function () {
for (var k in teamArray) {
HUD[teamArray[k] + 'Box'].getLocked();
}
curTarg = _root.Hero;
HUD.attachMovie('portraitBlueThomas', 'portrait', HUD.getNextHighestDepth(), {'_y': -154, '_xscale': 66, '_yscale': 66});
with (BossThomas) {
node = 0;
com.greensock.TweenLite.killTweensOf(this);
com.greensock.TweenMax.to(this, 0, {'tint': 153});
camTarg = curTarg;
cam._yscale = 100;
cam._xscale = 100;
gotoAndPlay('ULTRA');
com.greensock.TweenLite.to(this, 47, {'useFrames': true, '_x': 1100, '_y': yground - 254, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(curTarg, 47, {'useFrames': true, '_x': 901, '_y': yground - 254 + 40, 'ease': com.greensock.easing.Strong.easeOut});
initBGZ('black');
stance = 'ULTRA';
}
};
BossThomas.ultraGo = function () {
bgZ.remove();
initBGZ('Thomas', 'ultraThomas', -1);
};
BossThomas.ultraRevert = function () {
for (var k in teamArray) {
HUD[teamArray[k] + 'Box'].getUnlocked();
}
bgZ.remove();
setPhase('FOLLOW');
camTarg = _root.Hero;
cam._yscale = 150;
cam._xscale = 150;
RightBound = OrRightBound;
TopBound = OrTopBound;
with (BossThomas) {
HUD.ultraBar.updateDisplay();
com.greensock.TweenMax.to(this, 1, {'_x': 2000, 'ease': com.greensock.easing.Strong.easeInOut, 'onComplete': removeMC, 'onCompleteParams': [this]});
stance = 'REST';
stop();
}
};
BossThomas.getHurt = function (amt) {
with (BossThomas) {
if (invincible !== true && stance !== 'ULTRA') {
com.greensock.TweenLite.killTweensOf(this);
_root.totalHP -= amt;
gotoAndPlay('HURT');
com.greensock.TweenMax.to(this, 0.5, {'_y': '-70', '_x': '100', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 1.3, {'_x': cam._x + cam._width / 1.5, 'delay': 0.5, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': removeMC, 'onCompleteParams': [this]});
}
}
};
BossThomas.onUnload = function () {
removeFromArray(BossThomas, enemyArray);
};
};
initBossEric = function () {
removeFromArray(BossEric, enemyArray);
attachMovie('EricMC', 'BossEric', getNextHighestDepth(), {'_x': cam._x + cam._width / 2 + 30, '_y': topTarg._y + 100, '_xscale': -100});
enemyArray.push(BossEric);
com.greensock.TweenMax.to(BossEric, 0, {'tint': 153});
BossEric.callNode = false;
BossEric.node = 0;
for (var i in teamArray) {
var mySlush = _root[teamArray[i]];
if (mySlush !== undefined) {
BossEric.curTarg = mySlush;
break;
}
}
BossEric.curTarg = _root.Hero;
BossEric.stance = 'ATTACK';
BossEric.revert = false;
BossEric.onEnterFrame = function () {
with (BossEric) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
play();
com.greensock.TweenMax.to(this, 2, {'_x': '-320', 'ease': com.greensock.easing.Linear.easeNone});
} else {
if (node == 2) {
PHASE = 'FREEZE';
castShot(84, 27, 0, 40);
} else {
if (node == 3) {
PHASE = 'FOLLOW';
revert = true;
}
}
}
}
if (node == 1 || node == 2) {
_y += (curTarg._y - _y) / 7;
}
if (revert) {
node = null;
revert = node;
com.greensock.TweenMax.to(this, 0.8, {'_y': yground, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenMax.to(this, 0.2, {'_x': '-50', 'ease': com.greensock.easing.Strong.easeOut, 'delay': 0.8});
com.greensock.TweenMax.to(this, 0.7, {'_x': 1300, '_y': '-200', 'ease': Regular.easeOut, 'delay': 1, 'onComplete': removeMC, 'onCompleteParams': [this]});
}
} else {
if (stance == 'ULTRA') {
_root.setPhase('FREEZE');
}
}
}
}
};
BossEric.castShot = function (startX, startY, angle, pow) {
with (BossEric) {
startX *= _xscale / 100;
for (var k in teamArray) {
var myEnemy = _root[teamArray[k]];
var gotHit = false;
var hitX;
var hitY;
var rot = angle * 180 / Math.PI;
var i = 1;
while (i <= 70) {
if (!gotHit) {
hitX = _x + startX + 20 * -i * Math.cos(angle);
hitY = _y + startY + 20 * i * Math.sin(angle);
var myTrail = 'BossEricTrail' + _root.getNextHighestDepth();
_root.attachMovie('ericTrail', myTrail, _root.getNextHighestDepth(), {'_x': hitX, '_y': hitY, '_rotation': rot});
com.greensock.TweenMax.to(_root[myTrail], 0.5, {'_alpha': 0, 'onComplete': removeMC, 'onCompleteParams': [_root[myTrail]]});
if (hitY > yground + 100 || hitX < cam._x - cam._width / 2) {
i = 71;
}
if (myEnemy.hitTest(hitX, hitY, false)) {
gotHit = true;
i = 71;
}
}
++i;
}
if (gotHit) {
var newSplat = 'BossEricSnipe' + _root.getNextHighestDepth();
_root.attachMovie('effectSnipe', newSplat, _root.getNextHighestDepth(), {'_x': hitX, '_y': hitY, '_xscale': 200, '_yscale': 200});
myEnemy.getHurt(pow);
}
}
}
};
BossEric.ultra = function () {
for (var k in teamArray) {
HUD[teamArray[k] + 'Box'].getLocked();
}
HUD.attachMovie('portraitBlueEric', 'portrait', HUD.getNextHighestDepth(), {'_y': -154, '_xscale': 66, '_yscale': 66});
with (BossEric) {
com.greensock.TweenLite.killTweensOf(this);
_rotation = 0;
com.greensock.TweenMax.to(this, 0, {'tint': 153});
camTarg = this;
gotoAndPlay('ULTRA');
com.greensock.TweenLite.to(this, 47, {'useFrames': true, '_x': mainTarg._x + 250, '_y': mainTarg._y, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(this, 1.5, {'_x': mainTarg._x + 200, '_y': mainTarg._y - 100, 'delay': 1.9, 'ease': com.greensock.easing.Strong.easeOut});
initBGZ('black');
stance = 'ULTRA';
}
RightBound = mainTarg._x + 250;
TopBound = mainTarg._y - 160;
};
BossEric.ultraGo = function () {
bgZ.remove();
initBGZ('Eric', 'ultraEric', -1);
};
BossEric.ultraRevert = function () {
for (var k in teamArray) {
HUD[teamArray[k] + 'Box'].getUnlocked();
}
bgZ.remove();
setPhase('FOLLOW');
camTarg = Hero;
RightBound = OrRightBound;
TopBound = OrTopBound;
with (BossEric) {
HUD.ultraBar.updateDisplay();
com.greensock.TweenMax.to(this, 0.8, {'_y': yground, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenMax.to(this, 0.8, {'_x': cam._x + cam._width, 'delay': 0.8, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': removeMC, 'onCompleteParams': [this]});
stance = 'REST';
stop();
}
};
BossEric.getHurt = function (amt) {
with (BossEric) {
if (invincible !== true && stance !== 'ULTRA') {
gotoAndPlay('HURT');
_root.totalHP -= amt;
com.greensock.TweenMax.to(this, 1.2, {'_rotation': -275, '_x': cam._x + cam._width / 1.5, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': removeMC, 'onCompleteParams': [this]});
}
}
};
BossEric.onUnload = function () {
removeFromArray(BossEric, enemyArray);
};
};
var splat = new Sound();
splat.attachSound('splat');
initPumpkin = function (isGround, isGood, ystr) {
if (isGood) {
var newPump = 'pumpkinGood' + _root.getNextHighestDepth();
attachMovie('pumpkinMCB', newPump, _root.getNextHighestDepth(), {'_x': cam._x + 100 + cam._width / 2, '_y': cam._y + 100});
_root[newPump].onEnterFrame = function () {
with (_root[newPump]) {
for (var i in teamArray) {
var mySlush = _root[teamArray[i]];
if (this.hitBox.hitTest(mySlush)) {
boomA.start();
splat.start();
com.greensock.TweenLite.killTweensOf(this);
gotoAndPlay('HIT');
if (mySlush == _root.Hero) {
_root.Hero.stance = 'DJUMP';
mySlush.yspeed = ystr;
}
com.greensock.TweenLite.delayedCall(1, removeMC, [this]);
delete this.onEnterFrame;
}
}
}
};
if (isGround) {
_root[newPump].stop();
_root[newPump]._y = _root.yground - 20;
com.greensock.TweenLite.to(_root[newPump], 3, {'_x': '-1200', 'ease': com.greensock.easing.Linear.easeNone, 'onComplete': gotoPlay, 'onCompleteParams': [_root[newPump], 'HIT']});
} else {
com.greensock.TweenLite.to(_root[newPump], 2, {'_x': '-1200', 'ease': com.greensock.easing.Linear.easeNone, 'onComplete': gotoPlay, 'onCompleteParams': [_root[newPump], 'HIT']});
com.greensock.TweenMax.to(_root[newPump], 0.9, {'_y': '-200', 'ease': Regular.easeOut, 'yoyo': true, 'repeat': 1});
}
} else {
var newPump = 'pumpkin' + _root.getNextHighestDepth();
attachMovie('pumpkinMC', newPump, _root.getNextHighestDepth(), {'_x': cam._x + 100 + cam._width / 2, '_y': cam._y + 100});
_root[newPump].onEnterFrame = function () {
with (_root[newPump]) {
for (var i in teamArray) {
var mySlush = _root[teamArray[i]];
if (this.hitBox.hitTest(mySlush)) {
boomA.start();
splat.start();
com.greensock.TweenLite.killTweensOf(this);
gotoAndPlay('HIT');
mySlush.getHurt(20);
_root.PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.2, setPhase, ['FOLLOW']);
com.greensock.TweenLite.delayedCall(1, removeMC, [this]);
delete this.onEnterFrame;
}
}
}
};
if (isGround) {
_root[newPump].stop();
_root[newPump]._y = _root.yground - 20;
com.greensock.TweenLite.to(_root[newPump], 3, {'_x': '-1200', 'ease': com.greensock.easing.Linear.easeNone, 'onComplete': gotoPlay, 'onCompleteParams': [_root[newPump], 'HIT']});
} else {
com.greensock.TweenLite.to(_root[newPump], 2, {'_x': '-1200', 'ease': com.greensock.easing.Linear.easeNone, 'onComplete': gotoPlay, 'onCompleteParams': [_root[newPump], 'HIT']});
com.greensock.TweenMax.to(_root[newPump], 0.9, {'_y': '-200', 'ease': Regular.easeOut, 'yoyo': true, 'repeat': 1});
}
}
};
initZombie = function () {
var newZomb = 'zombie' + _root.getNextHighestDepth();
attachMovie('zombieMC', newZomb, _root.getNextHighestDepth(), {'_x': cam._x + 100 + cam._width / 2, '_y': yground});
_root[newZomb].stance = 'REST';
_root[newZomb].onEnterFrame = function () {
with (_root[newZomb]) {
if (_root.PHASE == 'FOLLOW') {
_x -= _root.xspeed / 3;
if (stance == 'REST') {
for (var i in teamArray) {
var mySlush = _root[teamArray[i]];
if (hitTest(mySlush)) {
var mySplat = 'zombSplat' + _root.getNextHighestDepth();
_root.attachMovie('effectHitB', mySplat, _root.getNextHighestDepth(), {'_x': mySlush._x, '_y': mySlush._y});
stance = 'ATTACK';
gotoAndPlay('ATK');
mySlush.getHurt(10);
_root.PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.1, setPhase, ['FOLLOW']);
}
}
}
if (_x < -50 + cam._x - cam._width / 2) {
removeMovieClip(this);
}
} else {
if (_root.PHASE == 'DONE') {
_root.enemyArray.push(this);
delete this.onEnterFrame;
}
}
}
};
};
}
frame 5 {
function init() {
curMenu = 1;
idleArray = new Array();
leadArray = new Array();
enemyArray = new Array();
activeArray = new Array();
tipsArray = new Array();
tomahawkArray = new Array();
cobaltArray = new Array();
tipWin = 1;
ultraCharge = user.data.ultraCharge;
mouseHold = 0;
combo = 0;
bonusComplete = false;
multiplier = 1;
comboFighter = 'None';
stopWatch = 0;
comboTimer = 0;
score = 0;
earnedScore = 0;
scoreCombo = 0;
ultrasUsed = 0;
initPOW = 0;
levelProgress = 0;
TopBound = -1000;
OrTopBound = -1000;
LeftBound = 500;
OrLeftBound = 500;
RightBound = 1400;
OrRightBound = 1400;
BottomBound = 230;
OrBottomBound = 230;
xspeed = 0;
yspeed = 0;
yground = 250;
topSpeed = false;
topSky = false;
touchedSky = false;
hurtByTeam = false;
shakeX = 0;
shakeY = 0;
levelDone = false;
levelWin = false;
user.data.wonLevel = levelWin;
SPACEpress = false;
SPACE = SPACEpress;
QKEYpress = false;
EKEYpress = false;
MKEYpress = false;
UPpress = false;
WKEYpress = UPpress;
PHASE = 'LAUNCH';
groundType = 'GRASS';
noUnlocks = false;
bonusPoints = 0;
bonusPointsTxt = '';
costMod = 1;
gravity = 1;
friction = 0.84;
speedA = 1.5;
speedB = 3;
speedC = 4.5;
bgArray = new Array(null, null, null);
setupLevelBG();
bgArray[0] = bgA;
bgArray[1] = bgB;
bgArray[2] = bgC;
speedArray = new Array(speedA, speedB, speedC);
attachMovie('displayMC', 'HUD', getNextHighestDepth(), {'_x': 300, '_y': 200, '_visible': true});
HUD.qualityBTN.onRelease = function () {
clickA.start();
if (_root._quality == 'HIGH') {
_root._quality = 'LOW';
} else {
if (_root._quality == 'MEDIUM') {
_root._quality = 'HIGH';
} else {
if (_root._quality == 'LOW') {
_root._quality = 'MEDIUM';
}
}
}
HUD.qualityBTN.qTXT.text = _root._quality + ' QUALITY';
};
HUD.soundBTN.gotoAndStop(Number(user.data.soundOn) + 1);
HUD.qualityBTN.onRollOver = function () {
rollA.start();
HUD.qualityBTN._alpha = 100;
HUD.qualityBTN.gotoAndStop(2);
};
HUD.qualityBTN.onRollOut = function () {
HUD.qualityBTN._alpha = 60;
HUD.qualityBTN.gotoAndStop(1);
};
var i = 1;
while (i <= 8) {
HUD['digit' + i]._visible = false;
++i;
}
HUD.volumeBTN.onRelease = function () {
clickA.start();
++user.data.soundOption;
if (user.data.soundOption == 4) {
user.data.soundOption = 1;
}
updateSoundMode();
};
HUD.volumeBTN.gotoAndStop(user.data.soundOption);
HUD.volumeBTN.onRollOver = function () {
rollA.start();
HUD.volumeBTN._alpha = 100;
HUD.volumeBTN.blox._visible = true;
};
HUD.volumeBTN.onRollOut = function () {
HUD.volumeBTN._alpha = 60;
HUD.volumeBTN.blox._visible = false;
};
HUD.volumeBTN.blox._visible = false;
HUD.restartBTN.onRelease = function () {
clickA.start();
autoLose();
};
HUD.restartBTN.onRollOver = function () {
rollA.start();
HUD.restartBTN._alpha = 100;
HUD.restartBTN.gotoAndStop(2);
};
HUD.restartBTN.onRollOut = function () {
HUD.restartBTN._alpha = 60;
HUD.restartBTN.gotoAndStop(1);
};
var i = 1;
while (i <= 8) {
HUD['digit' + i]._visible = false;
++i;
}
HUD.commaB._visible = false;
HUD.commaA._visible = HUD.commaB._visible;
if (cam == undefined) {
attachMovie('camMC', 'cam', getNextHighestDepth(), {'_x': 300, '_y': 200});
} else {
com.greensock.TweenLite.to(cam, 1, {'_x': 300, '_y': 200});
}
attachMovie('BigBlueMC', 'BigBlue', getNextHighestDepth(), {'_x': 219, '_y': 263});
BigBlue.getHurt = function (amount, dmgType) {
with (BigBlue) {
if (invincible !== true) {
com.greensock.TweenLite.delayedCall(0.4, gotoStop, [this, 3]);
_rotation = 0;
if (dmgType == 'UP') {
gotoAndStop('HURTup');
} else {
if (dmgType == 'DOWN') {
gotoAndStop('HURTdown');
} else {
if (dmgType == 'MID') {
gotoAndStop('HURTmid');
} else {
gotoAndStop('HURTmid');
}
}
}
this.MC.gotoAndPlay(1);
}
}
};
BigBlue.setStun = function (val) {
with (BigBlue) {
if (invincible !== true) {
gotoAndStop(17);
com.greensock.TweenLite.to(this, val, {'_rotation': '1080', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.delayedCall(val, gotoStop, [this, 3]);
}
}
};
addTeamArrays(false);
optInitBlue(BigBlue);
attachMovie('circleMC', 'targetMC', getNextHighestDepth(), {'_visible': false});
BigBlue.gotoAndStop(1);
bgA._x = 0;
dist = 0;
maxHeight = 0;
maxSpeed = 0;
killCount = 0;
maxCombo = 0;
topTarg = BigBlue;
mainTarg = topTarg;
camTarg = mainTarg;
BigBlue.onMobile = false;
BigBlue.xspeed = 0;
BigBlue.invincible = false;
BigBlue.enemyType = 'BigBlue';
enemyArray.push(BigBlue);
boxCount = 0;
var i = 0;
while (i < teamArray.length) {
var myTarg = teamArray[i];
switch (myTarg) {
case 'Pedro':
if (user.data.PedroUpgrades[3] == true) {
activeBox(myTarg, true, 'PedroBoxB');
} else {
activeBox(myTarg, true);
}
break;
case 'Marc':
activeBox(myTarg, true);
break;
case 'Matt':
activeBox(myTarg, true);
break;
case 'Ben':
activeBox(myTarg, true);
break;
case 'Tucker':
idleBox(myTarg, true);
break;
case 'Khanh':
idleBox(myTarg, true);
break;
case 'Kyle':
if (user.data.KyleUpgrades[2]) {
activeBox(myTarg, true);
}
idleBox(myTarg, !user.data.KyleUpgrades[2]);
break;
case 'Wes':
activeBox(myTarg, true);
break;
case 'Corey':
idleBox(myTarg, true);
break;
case 'Brian':
idleBox(myTarg, true);
break;
case 'JK':
idleBox(myTarg, true);
break;
case 'Sagar':
activeBox(myTarg, true);
break;
case 'Hang':
activeBox(myTarg, true);
break;
case 'Eric':
if (user.data.EricUpgrades[2] == true) {
activeBox(myTarg, true, 'EricBoxB');
} else {
activeBox(myTarg, true);
}
break;
case 'Thomas':
activeBox(myTarg, true);
break;
case 'Omar':
activeBox(myTarg, true);
break;
case 'Josh':
idleBox(myTarg, true);
break;
case 'James':
activeBox(myTarg, true);
break;
case 'Addison':
activeBox(myTarg, true);
break;
case 'Sean':
activeBox(myTarg, true);
break;
case 'Waqas':
activeBox(myTarg, true);
idleBox(myTarg, false);
break;
case 'Stewart':
activeBox(myTarg, true);
break;
case 'Dan':
activeBox(myTarg, true);
break;
case 'Luke':
activeBox(myTarg, true);
idleBox(myTarg, false);
break;
case 'Michael':
activeBox(myTarg, true);
break;
case 'BriStick':
activeBox(myTarg, true);
break;
case 'Kirby':
activeBox(myTarg, true);
break;
case 'Jorge':
activeBox(myTarg, true);
}
++i;
}
for (var i in idleArray) {
initSlush(idleArray[i], true);
}
if (user.data.tutArray[0] == false) {
HUD.attachMovie('tutSpace', 'tutSpaceMC', HUD.getNextHighestDepth(), {'_y': 0, '_alpha': 0});
com.greensock.TweenMax.to(HUD.tutSpaceMC, 1, {'_y': -75, '_alpha': 100, 'ease': com.greensock.easing.Strong.easeInOut});
user.data.tutArray[0] = true;
}
initSlush('Andrew');
createEmptyMovieClip('blankA', getNextHighestDepth());
createEmptyMovieClip('blankB', getNextHighestDepth());
createEmptyMovieClip('blankC', getNextHighestDepth());
com.greensock.TweenLite.delayedCall(3, removeMC, [blankA]);
com.greensock.TweenLite.delayedCall(3, removeMC, [blankB]);
com.greensock.TweenLite.delayedCall(3, removeMC, [blankC]);
if (user.data.hardMode == true) {
HUD.attachMovie('NGplusMC', 'ngPlusMC', HUD.getNextHighestDepth(), {'_x': 316.6, '_y': 183, '_xscale': 45, '_yscale': 45});
}
sortDepth();
setupLevelVars();
initKeys();
user.flush();
}
function activeBox(mySlush, addBox, optBox) {
if (addBox) {
if (optBox !== undefined) {
HUD.attachMovie(optBox, mySlush + 'Box', boxCount);
} else {
HUD.attachMovie(mySlush + 'ActiveBox', mySlush + 'Box', boxCount);
}
var thisBox = HUD[mySlush + 'Box'];
thisBox._x = -310 + boxCount * 60;
thisBox._y = 150;
thisBox._yscale = 80;
thisBox._xscale = 80;
thisBox.charge = 100;
thisBox.rgn._yscale = 100;
thisBox._visible = false;
thisBox.myNum = boxCount;
thisBox.activated = false;
thisBox.revert = false;
thisBox.fighter = mySlush;
thisBox.minRegen = 30;
thisBox.techCool = true;
thisBox.clickTimer = 0;
thisBox.ultraTimer = 0;
thisBox.confirmRelease = false;
thisBox.isLocked = false;
thisBox.ultraAmt = 1;
thisBox.ultraRDY._visible = false;
thisBox.isDead = false;
thisBox.initDone = false;
thisBox.optDown = function () {};
thisBox.optUp = function () {};
initArrangeBoosts(mySlush, thisBox, false);
switch (mySlush) {
case 'Pedro':
thisBox.regenRate = 0.47;
if (user.data.PedroUpgrades[2]) {
thisBox.regenRate = 0.51;
}
thisBox.degenRate = 0.8;
break;
case 'Marc':
thisBox.regenRate = 0.42;
thisBox.minRegen = 50;
thisBox.degenRate = 0.85;
break;
case 'Matt':
thisBox.regenRate = 0.53;
thisBox.degenRate = 0.9;
break;
case 'Ben':
thisBox.regenRate = 0.47;
thisBox.degenRate = 0.69;
thisBox.ultraAmt = 2;
break;
case 'Kyle':
thisBox.regenRate = 0.21;
thisBox.techCool = false;
thisBox.minRegen = 100;
thisBox.degenRate = 1.51;
thisBox.ultraAmt = 2;
break;
case 'Wes':
thisBox.regenRate = 0.51;
thisBox.degenRate = 0.91;
break;
case 'Sagar':
thisBox.regenRate = 1.01;
thisBox.degenRate = 0.69;
break;
case 'Hang':
thisBox.regenRate = 0.61;
thisBox.minRegen = 100;
thisBox.degenRate = 1.71;
thisBox.techCool = false;
thisBox.ultraAmt = 2;
break;
case 'Eric':
thisBox.regenRate = 0.61;
thisBox.minRegen = 100;
thisBox.degenRate = 1.41;
thisBox.techCool = false;
break;
case 'Thomas':
thisBox.regenRate = 0.31;
thisBox.degenRate = 0.9300000000000001;
thisBox.ultraAmt = 3;
break;
case 'Omar':
thisBox.regenRate = 0.61;
thisBox.degenRate = 0.43;
thisBox.ultraAmt = 1;
break;
case 'James':
thisBox.regenRate = 0.31;
thisBox.minRegen = 100;
thisBox.degenRate = 1.71;
thisBox.techCool = false;
thisBox.ultraAmt = 2;
break;
case 'Addison':
thisBox.regenRate = 0.34;
thisBox.degenRate = 0.63;
thisBox.ultraAmt = 1;
break;
case 'Sean':
thisBox.regenRate = 0.35;
thisBox.degenRate = 1.03;
thisBox.minRegen = 35;
thisBox.ultraAmt = 3;
break;
case 'Waqas':
thisBox.regenRate = 2.35;
if (user.data.WaqasUpgrades[1]) {
thisBox.regenRate = 3.5;
}
thisBox.degenRate = 1.62;
thisBox.ultraAmt = 2;
thisBox.techCool = false;
thisBox.minRegen = 100;
break;
case 'Stewart':
thisBox.regenRate = 0.78;
thisBox.degenRate = 1.42;
thisBox.techCool = false;
thisBox.minRegen = 100;
break;
case 'Dan':
thisBox.regenRate = 0.84;
thisBox.degenRate = 1.03;
break;
case 'Luke':
thisBox.regenRate = 0.28;
thisBox.degenRate = 3.42;
thisBox.techCool = false;
thisBox.minRegen = 100;
thisBox.ultraAmt = 2;
break;
case 'Michael':
thisBox.regenRate = 0.12;
thisBox.degenRate = 0.82;
thisBox.techCool = false;
thisBox.minRegen = 20;
thisBox.ultraAmt = 3;
break;
case 'BriStick':
thisBox.regenRate = 0.55;
thisBox.degenRate = 2.42;
thisBox.techCool = false;
thisBox.minRegen = 100;
break;
case 'Kirby':
thisBox.regenRate = 0.45;
if (_root.user.data.KirbyUpgrades[2] == true) {
thisBox.degenRate = 0.1;
} else {
thisBox.degenRate = 0.15;
}
thisBox.techCool = false;
thisBox.minRegen = 20;
break;
case 'Jorge':
thisBox.regenRate = 0.65;
thisBox.degenRate = 0.87;
thisBox.minRegen = 30;
}
thisBox.baseRate = thisBox.regenRate;
thisBox.onEnterFrame = function () {
with (this) {
rgn._yscale = charge;
if (ultraTimer !== null) {
++ultraTimer;
}
if (activated) {
++clickTimer;
charge -= degenRate;
if (charge < 0) {
charge = 0;
revert = true;
}
} else {
if (charge < 100) {
charge += regenRate;
clickTimer = 0;
} else {
if (charge > 100) {
charge = 100;
shineMC.gotoAndPlay(1);
com.greensock.TweenLite.to(this, 0.2, {'_xscale': 200, '_yscale': 200, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(this, 0.2, {'_xscale': 80, '_yscale': 80, 'ease': com.greensock.easing.Strong.easeInOut, 'delay': 0.2});
}
}
}
}
};
thisBox.onDownFunc = function () {
with (this) {
if (!isLocked && !isDead) {
if (ultraTimer !== null && ultraTimer < 10 && _root.user.data[fighter + 'Upgrades'][3] == true && hasUltra(fighter) && topTarg !== null) {
if (_root[fighter].stance !== 'ULTRA' && checkUltraCharge(ultraAmt)) {
subtractUltra(ultraAmt);
if (_root[fighter] == undefined) {
initSlush(fighter);
}
_root[fighter].ultra();
ultraTimer = 0;
revert = true;
activated = true;
charge = 0;
}
} else {
ultraTimer = null;
}
if (!activated && charge >= minRegen && topTarg !== null) {
activated = true;
revert = false;
if (thisBox.techCool) {
cool.gotoAndStop('green');
}
initSlush(fighter);
} else {
tweenShake(this);
}
optDown();
}
}
};
thisBox.onUpFunc = function () {
with (this) {
if (!isLocked && !isDead) {
ultraTimer = 0;
if (clickTimer >= 10 && thisBox.techCool && !isNaN(clickTimer)) {
revert = true;
} else {
cool.gotoAndStop('blue');
clickTimer = null;
}
optUp();
}
}
};
thisBox.onPress = function () {
thisBox.onDownFunc();
};
thisBox.onRelease = function () {
thisBox.onUpFunc();
};
thisBox.onDragOut = function () {
thisBox.onUpFunc();
};
thisBox.onRollOver = function () {
com.greensock.TweenMax.to(this, 0.3, {'_xscale': 110, '_yscale': 110, 'ease': com.greensock.easing.Strong.easeOut});
var v3 = HUD[teamArray[0] + 'Box'];
for (var v4 in teamArray) {
var v2 = teamArray[v4];
if (HUD[v2 + 'Box'].getDepth() > v3.getDepth()) {
v3 = HUD[v2 + 'Box'];
}
}
if (this.getDepth() !== v3.getDepth()) {
this.swapDepths(v3);
}
};
thisBox.onRollOut = function () {
com.greensock.TweenMax.to(this, 0.3, {'_xscale': 80, '_yscale': 80, 'ease': com.greensock.easing.Strong.easeOut});
};
thisBox.getLocked = function () {
thisBox.isLocked = true;
thisBox.attachMovie('boxLockMC', 'lockMC', thisBox.getNextHighestDepth());
};
thisBox.getUnlocked = function () {
thisBox.isLocked = false;
removeMovieClip(thisBox.lockMC);
};
++boxCount;
delete thisBox;
}
}
function idleBox(mySlush, addBox) {
if (addBox) {
HUD.attachMovie(mySlush + 'IdleBox', mySlush + 'Box', boxCount);
var thisBox = HUD[mySlush + 'Box'];
thisBox._x = -310 + boxCount * 60;
thisBox._y = 150;
thisBox._yscale = 80;
thisBox._xscale = 80;
thisBox._visible = false;
thisBox.myNum = boxCount;
thisBox.fighter = mySlush;
thisBox.isLocked = false;
thisBox.ultraTimer = null;
thisBox.ultraAmt = 1;
thisBox.ultraRDY._visible = false;
thisBox.initDone = false;
initArrangeBoosts(mySlush, thisBox, false);
switch (mySlush) {
case 'Corey':
thisBox.ultraAmt = 2;
break;
case 'Kyle':
thisBox.ultraAmt = 2;
}
thisBox.onEnterFrame = function () {
with (this) {
if (ultraTimer !== null) {
++ultraTimer;
}
if (_root[fighter].hp !== undefined) {
lowHPMC._visible = _root[fighter].hp / _root[fighter].thp < 0.3;
} else {
lowHPMC._visible = false;
}
}
};
if (_root.user.data[thisBox.fighter + 'Upgrades'][3] == true && hasUltra(thisBox.fighter)) {
thisBox.onDownFunc = function () {
with (this) {
if (!isLocked) {
if (ultraTimer !== null && ultraTimer < 10) {
if (_root[fighter].stance !== 'ULTRA' && checkUltraCharge(ultraAmt)) {
subtractUltra(ultraAmt);
_root[fighter].ultra();
ultraTimer = 0;
}
} else {
ultraTimer = null;
}
}
}
};
thisBox.onUpFunc = function () {
with (this) {
if (!isLocked) {
ultraTimer = 0;
}
}
};
thisBox.onPress = function () {
thisBox.onDownFunc();
};
thisBox.onRelease = function () {
thisBox.onUpFunc();
};
thisBox.onDragOut = function () {
thisBox.onUpFunc();
};
}
thisBox.getLocked = function () {
thisBox.isLocked = true;
thisBox.attachMovie('boxLockMC', 'lockMC', thisBox.getNextHighestDepth());
};
thisBox.getUnlocked = function () {
thisBox.isLocked = false;
removeMovieClip(thisBox.lockMC);
};
++boxCount;
delete thisBox;
}
}
function initKeys() {
keyListener = new Object();
keyListener.onKeyDown = function () {
if (Key.isDown(32)) {
SPACEpress = true;
SPACE = SPACEpress;
if (user.data.currentLevel == 5 || user.data.currentLevel == 10 || user.data.currentLevel == 15 || user.data.currentLevel == 21) {
Hero.clickFunc();
} else {}
}
if (Key.isDown(87) || Key.isDown(40) || Key.isDown(38)) {
WKEYpress = true;
if (user.data.currentLevel !== 5 && user.data.currentLevel !== 10 && user.data.currentLevel !== 15 && user.data.currentLevel !== 16 && user.data.currentLevel !== 21) {
setCurTarg(mainTarg);
}
}
if (Key.isDown(38)) {
UPpress = true;
}
if (Key.isDown(75) && (PHASE == 'FOLLOW' || PHASE == 'FREEZE')) {
autoLose();
}
if (Key.isDown(77)) {
MKEYpress = true;
}
if (Key.isDown(81) || Key.isDown(37)) {
QKEYpress = true;
}
if (Key.isDown(69) || Key.isDown(39)) {
EKEYpress = true;
}
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
for (var v3 in teamArray) {
var v2 = HUD[teamArray[v3] + 'Box'];
if (Key.isDown(v2.myNum + 49)) {
_root['KEY' + v2.myNum + 1] = true;
v2.onDownFunc();
}
}
}
};
keyListener.onKeyUp = function () {
if (!Key.isDown(32)) {
SPACE = false;
if (SPACEpress) {
SPACEpress = false;
}
}
if (!Key.isDown(77) && MKEYpress) {
MKEYpress = false;
++user.data.soundOption;
if (user.data.soundOption == 4) {
user.data.soundOption = 1;
}
updateSoundMode();
}
if (!Key.isDown(87) && !Key.isDown(40) && WKEYpress) {
WKEYpress = false;
}
if (!Key.isDown(38) && UPpress) {
UPpress = false;
}
if (!Key.isDown(81) && !Key.isDown(37) && QKEYpress) {
QKEYpress = false;
if (user.data.currentLevel !== 5 && user.data.currentLevel !== 10 && user.data.currentLevel !== 15 && user.data.currentLevel !== 21) {
var v4 = 10000;
var v5 = topTarg;
for (var v7 in enemyArray) {
if (enemyArray[v7].hp > 0 || enemyArray[v7] == mainTarg) {
var v3 = topTarg._x - enemyArray[v7]._x;
if (v3 < v4 && v3 > 0) {
v4 = v3;
if (enemyArray[v7] !== BigBlue || enemyArray[v7] == BigBlue && !BigBlue.onMobile) {
v5 = enemyArray[v7];
}
}
}
}
setCurTarg(v5);
}
}
if (!Key.isDown(69) && !Key.isDown(40) && !Key.isDown(38) && EKEYpress) {
EKEYpress = false;
if (user.data.currentLevel !== 5 && user.data.currentLevel !== 10 && user.data.currentLevel !== 15 && user.data.currentLevel !== 21) {
v4 = 10000;
v5 = topTarg;
for (v7 in enemyArray) {
if (enemyArray[v7].hp > 0 || enemyArray[v7] == mainTarg) {
v3 = enemyArray[v7]._x - topTarg._x;
if (v3 < v4 && v3 > 0) {
v4 = v3;
v5 = enemyArray[v7];
}
}
}
setCurTarg(v5);
}
}
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
for (var v6 in teamArray) {
var v2 = HUD[teamArray[v6] + 'Box'];
if (!Key.isDown(v2.myNum + 49) && _root['KEY' + v2.myNum + 1]) {
_root['KEY' + v2.myNum + 1] = false;
v2.onUpFunc();
}
}
}
};
Key.addListener(keyListener);
}
function unloadAll() {
com.greensock.TweenMax.killAll(true, true, false);
for (var v4 in bgArray) {
removeMovieClip(bgArray[v4]);
}
removeMovieClip(bgZ);
removeMovieClip(BigBlue);
removeMovieClip(mainTarg);
removeMovieClip(Andrew);
removeMovieClip(targetMC);
removeMovieClip(HUD.comboMC.ptValue);
removeMovieClip(HUD.comboMC.killValue);
removeMovieClip(HUD);
removeMovieClip(cam);
removeMovieClip(chargeFrame);
removeMovieClip(chargeBar);
removeMovieClip(HUD.tutSpaceMC);
removeMovieClip(shopMC);
removeMovieClip(mapMC);
removeMovieClip(infoMC);
for (var v5 in allArray) {
removeMovieClip(_root[allArray[v5]]);
}
for (var v3 in enemyArray) {
removeMovieClip(enemyArray[v3]);
}
removeMovieClip(this);
}
function initSlush(targ, isIdle) {
if (targ == 'Andrew') {
attachMovie('AndrewMC', 'Andrew', getNextHighestDepth(), {'_x': 113, '_y': 262});
}
_root['init' + targ]();
_root[targ].optColor = lookupColor(targ, true);
_root.optInitSlush(targ);
if (isIdle) {
for (var i in idleArray) {
if (targ == idleArray[i]) {
var targMC = _root[targ];
targMC.timer = 0;
targMC.node = 0;
targMC.callNode = false;
targMC.stance = 'REST';
targMC.myBox = HUD[targ + 'Box'];
initArrangeBoosts(targ, targMC.myBox, true);
}
}
} else {
for (var i in activeArray) {
if (targ == activeArray[i]) {
var targMC = _root[targ];
targMC.curTarg = topTarg;
setCurTarg(topTarg, targMC.optColor);
targMC.node = 0;
targMC.callNode = false;
com.greensock.TweenLite.killTweensOf(targMC);
targMC.stance = 'ATTACK';
targMC.myBox = HUD[targ + 'Box'];
PHASE = 'FOLLOW';
if (targMC.revert == undefined) {
targMC.revert = function (delayRemove) {
with (targMC) {
PHASE = 'FOLLOW';
com.greensock.TweenLite.killTweensOf(this);
if (delayRemove !== undefined) {
com.greensock.TweenMax.to(this, delayRemove, {'poop': 2, 'onComplete': removeMC, 'onCompleteParams': [this]});
} else {
myBox.activated = false;
}
stance = null;
node = stance;
com.greensock.TweenMax.to(myBox.cool, 0.5, {'_alpha': 0});
tweenShake(myBox);
}
};
}
targMC.onUnload = function () {
targMC.myBox.activated = false;
};
com.greensock.TweenMax.to(targMC.myBox.cool, 0, {'_alpha': 100, '_yscale': targMC.myBox.charge, 'ease': com.greensock.easing.Strong.easeOut});
initArrangeBoosts(targ, targMC.myBox, true);
break;
}
}
}
if (_root[targ].hp !== undefined) {
_root[targ].updateHP = function () {
with (_root[targ]) {
var newScale = 100 * hp / thp;
com.greensock.TweenMax.to(myBox.hpbar.green, 1, {'_xscale': newScale, 'ease': com.greensock.easing.Strong.easeOut});
}
};
}
_root[targ].attachEE = function (type) {
with (_root[targ]) {
myBox.attachMovie(type, type + 'MC', myBox.getNextHighestDepth());
}
};
}
function initPedro() {
attachMovie('PedroMC', 'Pedro', getNextHighestDepth(), {'_x': cam._x - cam._width / 2 - 70, '_y': cam._y - cam._height / 2});
if (user.data.PedroUpgrades[1]) {
Pedro.powMod = 1.2;
Pedro.dmgMod = 1.2;
}
var pedTween;
Pedro.onEnterFrame = function () {
with (Pedro) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
pedTween = com.greensock.TweenMax.to(this, 1, {'_x': curTarg._x - 50});
com.greensock.TweenMax.delayedCall(0.7, gotoPlay, [this, 2]);
} else {
if (node == 2) {
_root.HUD.PedroBox.showEmblem();
setCombo('Pedro');
_y = curTarg._y;
_x = curTarg._x - 50;
PHASE = 'FREEZE';
damage(this, curTarg, 10, 'DOWN');
hitSpark();
setSpeed(this, curTarg, '25', 20);
} else {
if (node == 3) {
PHASE = 'FOLLOW';
} else {
if (node == 4) {
_y = curTarg._y;
damage(this, curTarg, 5, 'MID');
hitSpark();
setSpeed(this, curTarg, '18', '5');
} else {
if (node == 5) {
com.greensock.TweenMax.to(this, 0.7, {'_x': '30', 'yoyo': true, 'repeat': 1, 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (node == 6) {
damage(this, curTarg, 10, 'UP');
setSpeed(this, curTarg, '0', 20);
} else {
if (node == 8) {
damage(this, curTarg, 3, 'DOWN');
setSpeed(this, curTarg, '0', -20);
} else {
if (node == 10) {
damage(this, curTarg, 3, 'UP');
setSpeed(this, curTarg, '0', 20);
} else {
if (node == 12) {
hitSpark();
damage(this, curTarg, 5, 'DOWN');
setSpeed(this, curTarg, '0', -10);
} else {
if (node == 14) {
PHASE = 'FREEZE';
shakeCam(5, 5);
_y = curTarg._y;
hitSparkB();
damage(this, curTarg, 10, 'UP');
setSpeed(this, curTarg, 70, 20);
} else {
if (node == 15) {
PHASE = 'FOLLOW';
myBox.revert = true;
}
}
}
}
}
}
}
}
}
}
}
if (node > 1 && node <= 15 && node !== 5) {
com.greensock.TweenMax.to(this, 0.3, {'_x': curTarg._x - 50});
}
}
if (node >= 1 && node <= 15) {
_y += (curTarg._y - _y) / 2;
}
if (node == 1) {
pedTween.updateTo({'_x': myFunc()}, false);
myFunc = function () {
return curTarg._x - 50;
};
}
if (myBox.revert && (node == 5 || node == 9 || node == 13 || node == 15)) {
revert(0.5);
gotoAndStop('STALL');
com.greensock.TweenMax.to(this, 0.5, {'_x': cam._x - cam._width / 1.5, '_y': '40', 'ease': com.greensock.easing.Strong.easeIn});
}
}
}
}
};
if (user.data.PedroUpgrades[3] == true) {
_root.HUD.PedroBox.showInput();
HUD.PedroBox.optUp = function () {
if (Pedro.node == 1 && Pedro.stance == 'ATTACK' && Pedro.MC._currentframe > 5) {
Pedro.MC.gotoAndPlay('BLAST');
blasterA.start();
var newLaser = 'laser' + _root.getNextHighestDepth();
_root.attachMovie('PedroLaser', newLaser, _root.getNextHighestDepth(), {'_x': Pedro._x + 238, '_y': Pedro._y - 20});
_root[newLaser].onEnterFrame = function () {
with (_root[newLaser]) {
_x += 50;
for (var i in _root.enemyArray) {
var thisEnemy = _root.enemyArray[i];
if (this.hitTest(thisEnemy)) {
thisEnemy.setStun(1);
setSpeed(Pedro, thisEnemy, 10, 5);
_x = thisEnemy._x;
_y = thisEnemy._y;
play();
var mySpark = 'hitSpark' + _root.getNextHighestDepth();
_root.attachMovie('effectHitB', mySpark, _root.getNextHighestDepth(), {'_x': _x, '_y': _y, '_xscale': 30, '_yscale': 30});
com.greensock.TweenMax.to(_root[mySpark], 0, {'colorMatrixFilter': {'hue': 61, 'brightness': 2}});
delete this.onEnterFrame;
}
}
if (_x > _root.cam._x + _root.cam._width / 1.5) {
removeMovieClip(this);
}
}
};
}
};
}
Pedro.hitSpark = function () {
var v2 = 'hitSpark' + getNextHighestDepth();
attachMovie('effectHitB', v2, getNextHighestDepth(), {'_x': Pedro.curTarg._x, '_y': Pedro.curTarg._y});
com.greensock.TweenMax.to(_root[v2], 0, {'colorMatrixFilter': {'hue': 120, 'brightness': 2}});
};
Pedro.hitSparkB = function () {
var v2 = 1;
while (v2 < 10) {
var v3 = 'hitSpark' + getNextHighestDepth();
attachMovie('effectHitA', v3, getNextHighestDepth(), {'_x': Pedro.curTarg._x, '_y': Pedro.curTarg._y, '_rotation': random(40) * v2});
com.greensock.TweenMax.to(_root[v3], 0, {'colorMatrixFilter': {'hue': 303, 'contrast': 2, 'saturation': 1.2}});
++v2;
}
};
Pedro.getHurt = function () {
with (Pedro) {
if (invincible !== true) {
_root.HUD.PedroBox.showEmblem();
revert(2.5);
gotoAndPlay('HURT');
hurtSplat(this, 67);
tweenRed(myBox);
com.greensock.TweenMax.to(this, 0.5, {'_y': '-150', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 0.7, {'_y': yground, 'ease': com.greensock.easing.Strong.easeIn, 'delay': 0.7, 'onComplete': gotoPlay, 'onCompleteParams': [this, 'HURTLAND']});
com.greensock.TweenMax.to(this, 0.7, {'_x': '-50'});
com.greensock.TweenMax.to(this, 0.7, {'_x': cam._x - cam._width, 'delay': 1.5, 'ease': com.greensock.easing.Strong.easeInOut});
}
}
};
}
function initMarc() {
attachMovie('MarcMC', 'Marc', getNextHighestDepth(), {'_x': cam._x - cam._width / 2 - 70, '_y': yground});
var marcTween;
Marc.chainCount = 0;
Marc.onEnterFrame = function () {
with (Marc) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
play();
com.greensock.TweenMax.to(this, 1, {'_x': curTarg._x - 100});
} else {
if (node == 2) {
com.greensock.TweenMax.to(this, 1, {'_x': curTarg._x - 50});
} else {
if (node == 3) {
marcTween = com.greensock.TweenMax.to(this, 1, {'_x': curTarg._x - 50});
groundEffect(this, groundType);
} else {
if (node == 4) {
setCombo('Marc');
_y = curTarg._y;
PHASE = 'FREEZE';
damage(this, curTarg, 10, 'MID');
setSpeed(this, curTarg, 70, -10);
} else {
if (node == 5) {
PHASE = 'FOLLOW';
com.greensock.TweenMax.to(this, 0.7, {'_x': '30', 'yoyo': true, 'repeat': 1, 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (node == 6) {
damage(this, curTarg, 10, 'UP');
setSpeed(this, curTarg, '10', 10);
} else {
if (node == 8) {
damage(this, curTarg, 20, 'MID');
setSpeed(this, curTarg, '15', '10');
} else {
if (node == 10) {
damage(this, curTarg, 40, 'UP');
setSpeed(this, curTarg, '20', '10');
} else {
if (node == 11) {
com.greensock.TweenMax.to(this, 0.2, {'delay': 0.3, '_x': curTarg._x - 30, '_y': curTarg._y, 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (node == 12) {
PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.3, setPhase, ['FOLLOW']);
var extra = 0;
if (user.data.MarcUpgrades[1] == true) {
if (random(2) == 0 && curTarg !== mainTarg && curTarg.hp <= curTarg.thp / 2) {
shakeCam();
extra = curTarg.hp;
var myHit = 'critSplat' + _root.getNextHighestDepth();
_root.attachMovie('effectCrit', myHit, _root.getNextHighestDepth(), {'_x': targ._x, '_y': targ._y, '_rotation': random(360)});
com.greensock.TweenMax.to(_root[myHit], 0, {'colorMatrixFilter': {'hue': 269, 'brightness': 2}});
var critMC = 'critHit' + _root.getNextHighestDepth();
_root.attachMovie('CritHit', critMC, _root.getNextHighestDepth(), {'_x': curTarg._x, '_y': curTarg._y});
com.greensock.TweenMax.to(_root[critMC], 0.5, {'_y': '-100', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(_root[critMC], 1, {'delay': 1, '_alpha': 0, 'onComplete': removeMC, 'onCompleteParams': [_root[critMC]]});
}
}
com.greensock.TweenMax.to(this, 0.3, {'_y': curTarg._y});
damage(this, curTarg, 100, 'DOWN', extra);
setSpeed(this, curTarg, '55', -50);
} else {
if (node == 13) {
if (user.data.MarcUpgrades[2] == true) {
var closeDist = 100000;
var closeEnemy = null;
for (var i in enemyArray) {
if (Math.abs(_x - enemyArray[i]._x) < closeDist && enemyArray[i] !== curTarg) {
closeDist = Math.abs(_x - enemyArray[i]._x);
closeEnemy = enemyArray[i];
}
}
if (closeEnemy !== null) {
com.greensock.TweenLite.killTweensOf(this);
com.greensock.TweenLite.to(this, 1.4, {'_x': closeEnemy._x, 'ease': Regular.easeOut});
com.greensock.TweenLite.to(this, 0.4, {'_y': '-50', 'ease': Regular.easeOut});
com.greensock.TweenLite.to(this, 1, {'delay': 0.4, '_y': yground, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': gotoStop, 'onCompleteParams': [this, 'LAND']});
com.greensock.TweenMax.to(this, 0.5, {'delay': 1.4, '_x': 300, 'ease': com.greensock.easing.Strong.easeIn});
node = 14;
this.gotoAndPlay('CHAIN');
} else {
myBox.revert = true;
}
} else {
myBox.revert = true;
}
}
}
}
}
}
}
}
}
}
}
}
if (node == 4 || node == 6 || node >= 8 && node <= 14) {
com.greensock.TweenMax.to(this, 0.3, {'_x': curTarg._x - 30});
}
}
if (node == 15) {
if (_x < 310) {
myBox.chainTXT._visible = false;
revert(0);
setPhase('FOLLOW');
}
for (var i in enemyArray) {
if (this.hitTest(enemyArray[i]) && enemyArray[i] !== curTarg) {
++chainCount;
if (chainCount == 3) {
niceTXT('3x Chain Finish', 1000, 232);
}
myBox.chainTXT._visible = true;
if (chainCount > 1) {
myBox.chainTXT.text = 'CHAINx' + chainCount + '!';
} else {
myBox.chainTXT.text = 'CHAIN!';
}
myBox.charge = 100;
myBox.revert = false;
myBox.shineMC.gotoAndPlay(1);
com.greensock.TweenLite.to(myBox, 0.2, {'_xscale': 200, '_yscale': 200, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(myBox, 0.2, {'_xscale': 80, '_yscale': 80, 'ease': com.greensock.easing.Strong.easeInOut, 'delay': 0.2});
com.greensock.TweenLite.killTweensOf(this);
node = 3;
gotoAndPlay('RESTART');
curTarg = enemyArray[i];
break;
}
}
}
if (node >= 3 && node <= 14 && node !== 11) {
_y += (curTarg._y - _y) / 2;
}
if (node == 1) {
marcTween.updateTo({'_x': myFunc()}, false);
myFunc = function () {
return curTarg._x - 50;
};
}
if (myBox.revert && (node == 5 || node == 9 || node == 11 || node == 13)) {
gotoAndPlay('FALL');
revert(1);
myBox.chainTXT._visible = false;
com.greensock.TweenMax.to(this, 0.7, {'_x': '-100', '_y': yground, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenMax.to(this, 0.5, {'delay': 0.5, '_x': 300, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenLite.delayedCall(0.5, gotoStop, [this, 'LAND']);
}
}
}
}
};
Marc.getHurt = function () {
with (Marc) {
var dodge = false;
if (user.data.MarcUpgrades[3] == true) {
if (Math.random() > 0.25) {
dodge = true;
var newSmoke = 'marcSmoke' + _root.getNextHighestDepth();
_root.attachMovie('effectSmoke', newSmoke, _root.getNextHighestDepth(), {'_x': _x, '_y': _y, '_rotation': random(360)});
com.greensock.TweenMax.to(_root[newSmoke], 0, {'tint': 12903423});
}
}
if (invincible !== true && !dodge) {
myBox.chainTXT._visible = false;
gotoAndPlay('HURT');
revert(1.1);
tweenRed(myBox);
hurtSplat(this, 119);
com.greensock.TweenMax.to(this, 1, {'_x': cam._x - cam._width / 1.5, 'delay': 0.01, 'ease': Regular.easeIn});
com.greensock.TweenMax.to(this, 1, {'_rotation': -1000, 'delay': 0.01, 'ease': com.greensock.easing.Linear.easeNone});
com.greensock.TweenMax.to(this, 0.3, {'_y': '-150', 'delay': 0.01, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 0.7, {'_y': yground, 'delay': 0.3, 'ease': com.greensock.easing.Strong.easeIn});
}
}
};
}
function initKhanh() {
attachMovie('KhanhMC', 'Khanh', getNextHighestDepth(), {'_x': -200, '_y': yground});
Khanh.invincible = true;
Khanh.stance = 'REST';
Khanh.atk = false;
if (user.data.KhanhUpgrades[1]) {
Khanh.powMod = 1.7;
Khanh.dmgMod = 2;
}
Khanh.onEnterFrame = function () {
with (Khanh) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (!myBox.isLocked) {
if (!atk) {
if (mainTarg.hitTest(hitBox) && mainTarg !== _root.Boss || _root.Boss.hitbox.hitTest(hitBox)) {
tweenSpinBox(KhanhBox);
setCombo('Khanh');
atk = true;
gotoAndPlay(3);
com.greensock.TweenMax.to(this, 0.5, {'_x': mainTarg._x - 50, 'ease': com.greensock.easing.Strong.easeOut});
yspeed = 0;
} else {
if (stance == 'BACK') {
gotoAndStop(2);
if (PHASE == 'FOLLOW') {
_x -= xspeed / _root.speedA;
}
if (_x < -750) {
stance = 'REST';
if (user.data.KhanhUpgrades[3]) {
if (random(1) == 0 && _root.soccerMC == undefined) {
Khanh.spawnBall();
}
}
}
} else {
gotoAndStop(1);
if (_x > mainTarg._x + 100) {
stance = 'BACK';
} else {
var speed = 200 / (xspeed + 1);
if (speed < 15) {
_x += speed;
} else {
_x += 15;
}
}
}
}
} else {
if (_currentframe == 16) {
if (_root.xspeed < 6 && Math.abs(_root.yspeed) < 8) {
niceTXT('Stickhanh Clutch', 1000);
}
setCombo('Khanh');
PHASE = 'FREEZE';
damage(this, mainTarg, 50, 'UP');
setSpeed(this, mainTarg, 70, '30');
var mySpark = 'hitSpark' + getNextHighestDepth();
attachMovie('effectHitB', mySpark, getNextHighestDepth(), {'_x': _x + 59, '_y': _y - 38});
com.greensock.TweenMax.to(_root[mySpark], 0, {'colorMatrixFilter': {'hue': 204, 'brightness': 2}});
} else {
if (_currentframe == 23) {
PHASE = 'FOLLOW';
com.greensock.TweenMax.to(this, 0.5, {'delay': 0.3, '_x': '-75', 'ease': com.greensock.easing.Strong.easeIn});
} else {
if (_currentframe == 44) {
atk = false;
stance = 'BACK';
}
}
}
}
}
}
}
};
Khanh.spawnBall = function () {
_root.attachMovie('soccerMC', 'soccerMC', _root.getNextHighestDepth(), {'_x': cam._x - cam._width / 2, '_y': yground - 100});
soccerMC.xspeed = 30;
soccerMC.yspeed = -2;
soccerMC.alreadyHit = new Array();
soccerMC.onEnterFrame = function () {
with (soccerMC) {
_rotation += 30;
_x += xspeed;
_y += yspeed;
yspeed += 1;
if (_y > yground + 50) {
xspeed = -5;
yspeed = -15;
_y = yground + 50 - 1;
}
for (var i in enemyArray) {
var thisEnemy = enemyArray[i];
for (var k in alreadyHit) {
if (thisEnemy == alreadyHit[k]) {
thisEnemy = null;
}
}
if (thisEnemy.hitTest(_x, _y, true)) {
xspeed = random(30) - 15;
yspeed = -15;
alreadyHit.push(thisEnemy);
PHASE = 'FREEZE';
var mySpark = 'hitSpark' + _root.getNextHighestDepth();
_root.attachMovie('effectHitB', mySpark, _root.getNextHighestDepth(), {'_x': thisEnemy._x, '_y': thisEnemy._y, '_rotation': random(360)});
com.greensock.TweenMax.to(_root[mySpark], 0, {'colorMatrixFilter': {'hue': 197, 'saturation': 1.2}});
com.greensock.TweenLite.delayedCall(0.1, setPhase, ['FOLLOW']);
damage(Khanh, thisEnemy, 10, 'DOWN');
setSpeed(Khanh, thisEnemy, '10', -20);
}
}
if (_x < 0 || Khanh == undefined) {
removeMovieClip(this);
}
}
};
};
}
function initThomas() {
attachMovie('ThomasMC', 'Thomas', getNextHighestDepth(), {'_x': cam._x - cam._width / 2 - 70, '_y': cam._y - cam._height / 2});
if (user.data.ThomasUpgrades[2]) {
Thomas.fistsOFury = true;
}
var thomTween;
Thomas.onEnterFrame = function () {
with (Thomas) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
thomTween = com.greensock.TweenMax.to(this, 0.3, {'_x': curTarg._x - 30});
play();
} else {
if (node == 2) {
setCombo('Thomas');
_y = curTarg._y + 15;
_x = curTarg._x - 30;
PHASE = 'FREEZE';
damage(this, curTarg, 20, 'DOWN');
setSpeed(this, curTarg, '18', -25);
hitSplat();
} else {
if (node == 3) {
PHASE = 'FOLLOW';
} else {
if (node == 4) {
damage(this, curTarg, 15, 'UP');
setSpeed(this, curTarg, '10', 15);
hitSplat();
} else {
if (node == 5) {
damage(this, curTarg, 15, 'MID');
setSpeed(this, curTarg, 30, '5');
hitSplat();
} else {
if (node == 6) {
damage(this, curTarg, 10, 'DOWN');
setSpeed(this, curTarg, 20, -10);
hitSplat();
} else {
if (node == 8) {
damage(this, curTarg, 20, 'UP');
setSpeed(this, curTarg, 35, 20);
hitSplat();
} else {
if (node == 10) {
PHASE = 'FREEZE';
_y = curTarg._y + 15;
_x = curTarg._x - 30;
damage(this, curTarg, 25, 'DOWN');
setSpeed(this, curTarg, '20', '-80');
hitSplat();
var mySpark = 'hitSpark' + _root.getNextHighestDepth();
_root.attachMovie('effectHitB', mySpark, _root.getNextHighestDepth(), {'_x': curTarg._x, '_y': curTarg._y, '_rotation': random(360)});
shakeCam(0, 10);
} else {
if (node == 11) {
PHASE = 'FOLLOW';
myBox.revert = true;
}
}
}
}
}
}
}
}
}
if (node > 2 && node <= 10) {
com.greensock.TweenMax.to(this, 0.1, {'_x': curTarg._x - 10});
}
}
if (node >= 1 && node <= 10) {
_y += (curTarg._y + 15 - _y) / 3;
}
if (node == 1) {
thomTween.updateTo({'_x': myFunc()}, false);
myFunc = function () {
return curTarg._x - 30;
};
}
if (myBox.revert && (node == 3 || node == 7 || node == 9 || node == 11)) {
if (user.data.ThomasUpgrades[1]) {
revert(0.6);
gotoAndPlay('FASTHURT');
com.greensock.TweenMax.to(this, 5, {'_x': cam._x - cam._width / 1.5, 'useFrames': true, 'delay': 11, 'ease': com.greensock.easing.Strong.easeIn});
} else {
revert(1.8);
gotoAndPlay('FALL');
com.greensock.TweenMax.to(this, 25, {'_x': '50', '_y': yground, 'useFrames': true, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenMax.to(this, 25, {'delay': 25, '_x': 300, 'useFrames': true, 'ease': com.greensock.easing.Strong.easeIn});
}
}
} else {
if (stance == 'ULTRA') {
if (this.posTarg !== undefined) {
this.posTarg._visible = false;
if (curTarg == undefined) {
curTarg = mainTarg;
}
camTarg = curTarg;
curTarg._x = _x + this.posTarg._x;
curTarg._y = _y + this.posTarg._y;
}
_root.setPhase('FREEZE');
}
}
}
}
};
Thomas.hitSplat = function () {
with (Thomas) {
var j = 1;
while (j < 10) {
var mySpark = 'hitSpark' + _root.getNextHighestDepth();
_root.attachMovie('effectHitA', mySpark, _root.getNextHighestDepth(), {'_x': curTarg._x, '_y': curTarg._y, '_rotation': random(40) * j});
com.greensock.TweenMax.to(_root[mySpark], 0, {'colorMatrixFilter': {'hue': 116, 'saturation': 1.2}});
++j;
}
}
};
Thomas.hitFunc = function (type) {
with (Thomas) {
setCombo('Thomas' + _currentframe);
damage(this, curTarg, 5, type);
hitSplat();
}
};
Thomas.ultra = function () {
HUD.attachMovie('portraitThomas', 'portrait', HUD.getNextHighestDepth(), {'_y': -154, '_xscale': 66, '_yscale': 66});
with (Thomas) {
node = 0;
com.greensock.TweenLite.killTweensOf(this);
camTarg = curTarg;
if (_root.user.data.currentLevel !== 21) {
cam._yscale = 100;
cam._xscale = 100;
}
gotoAndPlay('ULTRA');
com.greensock.TweenLite.to(this, 47, {'useFrames': true, '_x': _root.RightBound - 650, '_y': yground - 254, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(curTarg, 47, {'useFrames': true, '_x': _root.RightBound - 650 + 199, '_y': yground - 254 + 40, 'ease': com.greensock.easing.Strong.easeOut});
a;
initBGZ('black');
stance = 'ULTRA';
if (curTarg == Boss) {
Boss.prevX = Boss._x;
Boss.prevY = Boss._y;
}
}
};
Thomas.ultraGo = function () {
bgZ.remove();
initBGZ('Thomas', 'ultraThomas', -1);
};
Thomas.ultraRevert = function () {
bgZ.remove();
setPhase('FOLLOW');
camTarg = mainTarg;
if (_root.user.data.currentLevel !== 21) {
cam._yscale = 150;
cam._xscale = 150;
}
with (Thomas) {
revert(1.1);
HUD.ultraBar.updateDisplay();
com.greensock.TweenMax.to(this, 1, {'_x': cam._x - cam._width / 2 - 800, 'ease': com.greensock.easing.Strong.easeInOut});
stance = 'REST';
hurtSplat(this, 315);
stop();
if (curTarg == Boss) {
com.greensock.TweenMax.to(Boss, 1, {'_x': Boss.prevX, '_y': Boss.prevY, 'ease': com.greensock.easing.Strong.easeInOut});
delete Boss.prevX;
delete Boss.prevY;
}
}
};
Thomas.getHurt = function () {
with (Thomas) {
if (invincible !== true && stance !== 'ULTRA') {
tweenRed(myBox);
if (user.data.ThomasUpgrades[1]) {
revert(0.6);
gotoAndPlay('FASTHURT');
com.greensock.TweenMax.to(this, 5, {'_x': cam._x - cam._width / 1.5, 'useFrames': true, 'delay': 11, 'ease': com.greensock.easing.Strong.easeIn});
} else {
revert(1.8);
gotoAndPlay('HURT');
com.greensock.TweenMax.to(this, 0.5, {'_y': '-70', '_x': '-100', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 1.3, {'_x': cam._x - cam._width / 1.5, 'delay': 0.5, 'ease': com.greensock.easing.Strong.easeIn});
}
}
}
};
}
function initMatt() {
attachMovie('MattMC', 'Matt', getNextHighestDepth(), {'_x': cam._x - cam._width / 2 - 70, '_y': cam._y + cam._height / 3});
if (user.data.MattUpgrades[1]) {
Matt.powMod = 1.3;
Matt.dmgMod = 1.3;
}
var mattTween;
Matt.onEnterFrame = function () {
with (Matt) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
play();
com.greensock.TweenMax.to(this, 1, {'_x': curTarg._x - 200});
} else {
if (node == 2) {
mattTween = com.greensock.TweenMax.to(this, 0.7, {'_x': curTarg._x - 50});
} else {
if (node == 3) {
setCombo('Matt');
PHASE = 'FREEZE';
damage(this, curTarg, 20, 'DOWN');
setSpeed(this, curTarg, '20', -10);
} else {
if (node == 4) {
PHASE = 'FOLLOW';
} else {
if (node == 5) {
spinAttack('UP');
} else {
if (node == 7) {
spinAttack('MID');
} else {
if (node == 9) {
spinAttack('DOWN');
} else {
if (node == 11) {
PHASE = 'FREEZE';
damage(this, curTarg, 10, 'DOWN');
setSpeed(this, curTarg, '30', '20');
} else {
if (node == 12) {
PHASE = 'FOLLOW';
com.greensock.TweenMax.to(this, 0.6, {'_y': '-50', 'yoyo': true, 'repeat': 1, 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (node == 14) {
spawnDragon(curTarg, curTarg._x);
if (user.data.MattUpgrades[2]) {
spawnDragon(curTarg, curTarg._x - 80);
spawnDragon(curTarg, curTarg._x + 80);
}
} else {
if (node == 16) {
myBox.revert = true;
}
}
}
}
}
}
}
}
}
}
}
if (node >= 3 && node <= 12) {
com.greensock.TweenMax.to(this, 0.5, {'_x': curTarg._x - 50});
}
}
if (node >= 1 && node <= 11) {
_y += (curTarg._y - _y) / 2;
}
if (node == 2) {
MattTween.updateTo({'_x': myFunc()}, false);
myFunc = function () {
return curTarg._x - 50;
};
}
if (myBox.revert && (node == 4 || node == 12 || node == 13 || node == 16)) {
revert(0.7);
gotoAndPlay('RECOVER');
com.greensock.TweenMax.to(this, 0.5, {'_x': cam._x - cam._width / 1.5, 'delay': 0.1, 'ease': com.greensock.easing.Strong.easeIn});
}
}
}
}
};
Matt.spinAttack = function (dmgType) {
with (Matt) {
var spinDMG = 1;
if (user.data.MattUpgrades[3]) {
spinDMG = 7;
var mySpark = 'hitSpark' + _root.getNextHighestDepth();
_root.attachMovie('effectHitB', mySpark, _root.getNextHighestDepth(), {'_x': curTarg._x, '_y': curTarg._y});
com.greensock.TweenMax.to(_root[mySpark], 0, {'colorMatrixFilter': {'hue': 156, 'brightness': 2}});
}
damage(this, curTarg, 5 * spinDMG, dmgType);
setSpeed(this, curTarg, '10', 0);
}
};
Matt.getHurt = function () {
with (Matt) {
if (invincible !== true) {
revert(1.6);
gotoAndPlay('HURT');
tweenRed(myBox);
com.greensock.TweenMax.to(this, 1.6, {'_x': cam._x - cam._width / 1.5, 'delay': 0.4});
com.greensock.TweenMax.to(this, 0.8, {'_y': '-100', 'delay': 0.4, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 0.8, {'_y': '0', 'delay': 0.8, 'ease': com.greensock.easing.Strong.easeIn});
}
}
};
Matt.spawnDragon = function (curTarg, spawnX) {
var spawnY = yground;
if (curTarg._y < 0) {
spawnY = curTarg._y + 50 + Math.random() * 50;
}
_root.attachMovie('MattDragon', 'MattDragon', getNextHighestDepth(), {'_x': spawnX, '_y': spawnY});
com.greensock.TweenLite.delayedCall(2, removeMC, [MattDragon]);
MattDragon.alreadyHit = new Array();
MattDragon.onEnterFrame = function () {
with (MattDragon) {
for (var i in _root.enemyArray) {
var thisEnemy = _root.enemyArray[i];
for (var k in alreadyHit) {
if (thisEnemy == alreadyHit[k]) {
thisEnemy = null;
}
}
if (this.MC.hitTest(thisEnemy._x, thisEnemy._y, true)) {
MattDragon.alreadyHit.push(thisEnemy);
damage(Matt, thisEnemy, 50, 'UP');
setSpeed(Matt, thisEnemy, '10', 30);
var mySpark = 'hitSpark' + getNextHighestDepth();
attachMovie('effectHitB', mySpark, getNextHighestDepth(), {'_x': thisEnemy._x, '_y': thisEnemy._y});
}
}
}
};
};
}
function initCorey() {
attachMovie('CoreyMC', 'Corey', getNextHighestDepth(), {'_x': -200, '_y': yground});
Corey.slushA = null;
Corey.aegisTimer = -1;
if (CoreyUpgrades[2]) {
Corey.thp = 2275;
Corey.hp = 2275;
} else {
Corey.thp = 1300;
Corey.hp = 1300;
}
Corey.goBack = function () {
Corey.gotoAndPlay(1);
if (CoreyUpgrades[1]) {
Corey.shield._yscale = 140;
}
};
Corey.goBack();
Corey.onEnterFrame = function () {
with (Corey) {
if (!myBox.isLocked) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (aegisTimer > 0) {
for (var t in teamArray) {
var mySlush = _root[teamArray[t]];
if (mySlush !== undefined) {
if (mySlush.myAegis == undefined) {
var newAegis = teamArray[t] + 'Aegis';
mySlush.attachMovie('coreyProt', newAegis, mySlush.getNextHighestDepth());
mySlush.myAegis = mySlush[newAegis];
mySlush.alreadyInv = mySlush.invincible;
mySlush.invincible = true;
}
}
}
if (PHASE !== 'FREEZE') {
--aegisTimer;
}
} else {
if (aegisTimer == 0) {
for (var t in teamArray) {
var mySlush = _root[teamArray[t]];
if (mySlush.myAegis !== undefined) {
_root.removeMC(mySlush.myAegis);
mySlush.invincible = mySlush.alreadyInv;
}
}
aegisTimer = -1;
}
}
if (_root[slushA] !== undefined) {
_root[slushA].invincible = true;
if (_root[slushA].myAegis == undefined) {
var newAegis = slushA + 'Aegis';
_root[slushA].attachMovie('coreyProt', newAegis, _root[slushA].getNextHighestDepth());
_root[slushA].myAegis = _root[slushA][newAegis];
}
}
if (stance == 'ULTRA') {
_root.setPhase('FREEZE');
} else {
if (timer == 30 && stance !== 'DEAD') {
com.greensock.TweenLite.killTweensOf(this);
com.greensock.TweenLite.to(this, 0.5, {'_x': cam._x - 130, 'ease': Regular.easeInOut});
timer = 0;
} else {
++timer;
}
}
}
}
}
};
Corey.getHurt = function (damage) {
with (Corey) {
if (invincible !== true && stance !== 'ULTRA') {
hp -= damage;
tweenShake(myBox);
tweenRed(myBox);
if (hp > 0) {
thudshot.start();
shield.gotoAndPlay('HIT');
updateHP();
} else {
gotoAndPlay('DEAD');
stance = 'DEAD';
PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.5, setPhase, ['FOLLOW']);
myBox.gotoAndStop(2);
myBox.isDead = true;
shakeCam();
com.greensock.TweenMax.to(this, 1, {'_x': '-500', '_y': '-150', 'delay': 1, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [this]});
}
}
}
};
Corey.ultra = function () {
LeftBound = Corey._x + 250;
RightBound = Corey._x + 450;
with (Corey) {
com.greensock.TweenLite.killTweensOf(this);
camTarg = this;
gotoAndPlay('ULTRA');
initBGZ('black');
stance = 'ULTRA';
HUD.attachMovie('portraitCorey', 'portrait', HUD.getNextHighestDepth(), {'_y': -126, '_xscale': 66, '_yscale': 66});
}
};
Corey.ultraCheckHit = function () {
for (var v2 in enemyArray) {
if (enemyArray[v2].hitTest(_root.coreyUltra)) {
_root.setPhase('FOLLOW');
damage(Corey, enemyArray[v2], 20, 'UP');
setSpeed(Corey, enemyArray[v2], '20', 40);
setCombo('Corey');
hurtSplat(enemyArray[v2], 39);
}
}
};
Corey.ultraGo = function () {
bgZ.remove();
initBGZ('corey', 'ultraShields', -1);
with (Corey) {
_root.attachMovie('coreyUltra', 'coreyUltra', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
}
};
Corey.ultraRevert = function () {
bgZ.remove();
setPhase('FOLLOW');
LeftBound = OrLeftBound;
RightBound = OrRightBound;
camTarg = mainTarg;
with (Corey) {
goBack();
aegisTimer = 360;
HUD.ultraBar.updateDisplay();
stance = 'REST';
}
};
}
function initBrian() {
attachMovie('BrianMC', 'Brian', getNextHighestDepth(), {'_x': -200, '_y': yground});
Brian.invincible = true;
Brian.stance = 'REST';
Brian.canRechargeA = true;
Brian.canRechargeB = true;
Brian.slushA;
Brian.slushB = HUD.BrianBox.slushB;
Brian.curTarg;
Brian._visible = false;
Brian.gotoAndStop('BLANK');
Brian.onEnterFrame = function () {
with (Brian) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'REST') {
if (slushA == 'Khanh' || slushB == 'Khanh') {
if (Khanh._currentframe == 38) {
curTarg = mainTarg;
goAttack();
}
}
if (slushA == 'Tucker' || slushB == 'Tucker') {
if (Tucker._currentframe == 46 || Tucker._currentframe == 108) {
curTarg = Tucker.curTarg;
goAttack();
}
}
if (slushA == 'JK' || slushB == 'JK') {
if (JK._currentframe == 35) {
curTarg = JK.curTarg;
goAttack();
}
}
if (slushA == 'Josh' || slushB == 'Josh') {
if (Josh._currentframe == 85) {
curTarg = topTarg;
goAttack();
}
}
if (!canRechargeA && HUD[slushA + 'Box'].activated == true) {
canRechargeA = true;
}
if (!canRechargeB && HUD[slushB + 'Box'].activated == true) {
canRechargeB = true;
}
if (HUD[slushA + 'Box'].revert == true && canRechargeA) {
if (_root[slushA].curTarg == undefined) {
curTarg = mainTarg;
} else {
curTarg = _root[slushA].curTarg;
}
goAttack();
} else {
if (HUD[slushB + 'Box'].revert == true && canRechargeB) {
if (_root[slushB].curTarg == undefined) {
curTarg = mainTarg;
} else {
curTarg = _root[slushB].curTarg;
}
goAttack();
}
}
} else {
if (stance == 'ATTACK') {
_x = curTarg._x;
_y = curTarg._y;
if (callNode) {
callNode = false;
++node;
if (node == 1) {
_visible = true;
tweenSpinBox(myBox);
} else {
if (node == 2) {
if (user.data.BrianUpgrades[1]) {
setCombo('Brian');
}
damage(this, curTarg, 10, 'MID');
setSpeed(this, curTarg, '1', '1');
PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.1, setPhase, ['FOLLOW']);
hitCircle();
} else {
if (node == 3) {
damage(this, curTarg, 20, 'UP');
setSpeed(this, curTarg, '1', '1');
hitCircle();
} else {
if (node == 4) {
damage(this, curTarg, 20, 'DOWN');
setSpeed(this, curTarg, '5', -15);
PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.3, setPhase, ['FOLLOW']);
hitCircle();
} else {
if (node == 5) {
if (user.data.BrianUpgrades[2]) {
gotoAndPlay('CONT');
++node;
}
} else {
if (node == 6) {
stop();
revert();
} else {
if (node == 7) {
damage(this, curTarg, 20, 'UP');
setSpeed(this, curTarg, '1', 10);
hitCircle();
} else {
if (node == 8) {
damage(this, curTarg, 20, 'DOWN');
setSpeed(this, curTarg, '5', -15);
PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.3, setPhase, ['FOLLOW']);
hitCircle();
} else {
if (node == 9) {
revert();
}
}
}
}
}
}
}
}
}
}
}
}
}
}
};
Brian.goAttack = function () {
with (Brian) {
canRechargeA = false;
canRechargeB = false;
stance = 'ATTACK';
_visible = true;
gotoAndPlay(1);
}
};
Brian.hitCircle = function () {
with (Brian) {
var myCircle = 'hitCircle' + _root.getNextHighestDepth();
_root.attachMovie('effectCircle', myCircle, getNextHighestDepth(), {'_x': curTarg._x, '_y': curTarg._y});
}
};
Brian.revert = function () {
with (Brian) {
gotoAndStop('BLANK');
_x = -200;
node = 0;
stance = 'REST';
curTarg = undefined;
}
};
}
function initKyle() {
if (Kyle == undefined) {
attachMovie('KyleMC', 'Kyle', getNextHighestDepth(), {'_x': 60, '_y': 270});
}
HUD.KyleBox.getUnlocked = function () {
HUD.KyleBox.isLocked = false;
Kyle.revert();
com.greensock.TweenMax.to(Kyle, 1, {'_x': cam._x - cam._width, 'delay': 0.5, 'ease': com.greensock.easing.Strong.easeInOut, 'onComplete': gotoStop, 'onCompleteParams': [this, 'EMPTY']});
removeMovieClip(HUD.KyleBox.lockMC);
};
Kyle.invincible = true;
Kyle.madeHit = false;
Kyle.fb = 1;
if (user.data.KyleUpgrades[1]) {
Kyle.fbTime = 144;
} else {
Kyle.fbTime = 180;
}
Kyle.onEnterFrame = function () {
with (Kyle) {
if (!myBox.isLocked) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (node == 0) {
gotoAndPlay('START');
callNode = true;
}
if (callNode) {
callNode = false;
++node;
if (node == 1) {
_root.attachMovie('KyleCloseUp', 'KyleCloseUp', _root.getNextHighestDepth(), {'_x': cam._x, '_y': cam._y, '_xscale': cam._xscale, '_yscale': cam._yscale});
_x = mainTarg._x;
_y = yground;
} else {
if (node == 2) {
com.greensock.TweenMax.to(this, 0.3, {'_x': mainTarg._x, 'ease': Regular.easeOut});
} else {
if (node == 3) {
for (var i in enemyArray) {
if (hitTest(enemyArray[i])) {
madeHit = true;
if (random(2) == 0) {
gsplode(enemyArray[i]);
}
PHASE = 'FREEZE';
setCombo('Kyle');
damage(this, enemyArray[i], 40, 'DOWN');
setSpeed(this, enemyArray[i], '20', 20);
}
}
} else {
if (node == 4) {
PHASE = 'FOLLOW';
} else {
if (node == 5) {
if (madeHit) {
com.greensock.TweenMax.to(this, 0.3, {'_x': '-200', 'ease': Regular.easeOut});
} else {
stop();
com.greensock.TweenMax.to(this, 1, {'_x': cam._x - cam._width, 'ease': com.greensock.easing.Strong.easeInOut, 'onComplete': gotoStop, 'onCompleteParams': [this, 'EMPTY']});
com.greensock.TweenMax.to(this, 1, {'_alpha': 100, 'onComplete': revert});
}
} else {
if (node == 6) {
com.greensock.TweenMax.to(this, 0.3, {'_x': curTarg._x - 100, 'ease': com.greensock.easing.Strong.easeIn});
} else {
if (node == 7) {
com.greensock.TweenMax.to(this, 1, {'_x': cam._x - cam._width, 'delay': 0.5, 'ease': com.greensock.easing.Strong.easeInOut, 'onComplete': gotoStop, 'onCompleteParams': [this, 'EMPTY']});
com.greensock.TweenMax.to(this, 1.5, {'_alpha': 100, 'onComplete': revert});
}
}
}
}
}
}
}
}
if (node == 7) {
for (var i in enemyArray) {
if (hitTest(enemyArray[i])) {
if (random(3) == 0) {
gsplode(enemyArray[i]);
}
damage(this, enemyArray[i], 6, 'UP');
setSpeed(this, enemyArray[i], 40, 40);
}
}
}
} else {
if (stance == 'ULTRA') {
_root.setPhase('FREEZE');
} else {
if (timer > fbTime && mainTarg._y > -200 && PHASE == 'FOLLOW') {
if (!user.data.KyleUpgrades[2]) {
tweenSpinBox(myBox);
}
makeFB();
timer = 0;
} else {
++timer;
}
}
}
}
}
}
};
Kyle.makeFB = function () {
++Kyle.fb;
attachMovie('effectGreenfire', 'FB' + Kyle.fb, getNextHighestDepth(), {'_x': -200, '_y': mainTarg._y - yspeed, '_xscale': 150, '_yscale': 150});
_root['FB' + Kyle.fb].onEnterFrame = function () {
for (var v3 in enemyArray) {
if (enemyArray[v3].hitTest(this._x, this._y, false)) {
fireA.start();
damage(Kyle, enemyArray[v3], 40, 'MID');
gsplode(enemyArray[v3]);
setSpeed(Kyle, enemyArray[v3], '5', 20);
removeMovieClip(this);
}
}
if (_root.PHASE !== 'FREEZE') {
this._x += 20;
}
if (this._x > 2000) {
delete this.onEnterFrame;
removeMovieClip(this);
}
};
};
Kyle.leadFunc = function () {
with (Kyle) {
if (callNode) {
++node;
callNode = false;
if (node == 1) {
play();
} else {
if (node == 2) {
com.greensock.TweenMax.from(BigBlue, 1, {'colorTransform': {'tint': 10027008, 'tintAmount': 0.7}});
xspeed += 10;
} else {
if (node == 3) {
com.greensock.TweenMax.from(BigBlue, 4, {'colorTransform': {'tint': 10027008, 'tintAmount': 0.9}});
xspeed += 10;
} else {
if (node == 5) {
revert();
removeFromArray('Kyle', leadArray);
}
}
}
}
}
if (node == 4) {
++fb;
_root.attachMovie('effectGreenfire', 'gfire' + fb, _root.getNextHighestDepth(), {'_x': 193 - fb * 13, '_y': 191 - fb * 4, '_rotation': -(fb * 2)});
var myFire = _root['gfire' + fb];
myFire.onEnterFrame = function () {
with (myFire) {
if (_root.BigBlue.hitTest(this._x, this._y, false)) {
_root.fireA.start();
_root.gsplode(_root.BigBlue);
_root.setSpeed(Kyle, _root.BigBlue, '2', 20);
removeMovieClip(this);
}
}
};
com.greensock.TweenMax.to(myFire, 6, {'_x': 1700 - fb * 15 + Math.random() * 50, '_y': 237 - fb * 30, '_rotation': 0, 'onComplete': removeMC, 'onCompleteParams': [myFire]});
}
}
};
Kyle.ultra = function () {
with (Kyle) {
com.greensock.TweenLite.killTweensOf(this);
camTarg = this;
gotoAndPlay('ULTRA');
com.greensock.TweenLite.to(this, 50, {'useFrames': true, '_x': mainTarg._x - 500, '_y': yground - 200, 'ease': com.greensock.easing.Strong.easeOut});
initBGZ('black');
stance = 'ULTRA';
HUD.attachMovie('portraitKyle', 'portrait', HUD.getNextHighestDepth(), {'_y': -154, '_xscale': 66, '_yscale': 66});
}
LeftBound = mainTarg._x - 250;
};
Kyle.ultraGo = function () {
bgZ.remove();
initBGZ('kyle', 'ultraStars', -1);
com.greensock.TweenMax.to(Kyle, 3, {'onComplete': gotoPlay, 'onCompleteParams': [Kyle, 'ultraCont']});
_root.attachMovie('kyleStars', 'kyleStars', _root.getNextHighestDepth(), {'_x': _root.mainTarg._x, '_y': yground});
_root.kyleStars.checkHit = function () {
_root.kyleStars.hitBox._visible = false;
for (var v2 in enemyArray) {
if (_root.kyleStars.hitBox.hitTest(enemyArray[v2])) {
_root.setPhase('FOLLOW');
damage(Kyle, enemyArray[v2], 5, 'DOWN');
setSpeed(Kyle, enemyArray[v2], 80, 50);
setCombo('Kyle');
}
}
};
};
Kyle.ultraRevert = function () {
bgZ.remove();
setPhase('FOLLOW');
camTarg = mainTarg;
LeftBound = OrLeftBound;
with (Kyle) {
revert();
HUD.ultraBar.updateDisplay();
stance = 'REST';
com.greensock.TweenMax.to(this, 0.5, {'_y': yground, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenMax.to(this, 0.5, {'_x': cam._x - cam._width, 'delay': 0.5, 'ease': com.greensock.easing.Strong.easeInOut, 'onComplete': gotoStop, 'onCompleteParams': [this, 'START']});
}
};
}
function initBen() {
attachMovie('BenMC', 'Ben', getNextHighestDepth(), {'_x': cam._x - cam._width / 2 - 70, '_y': cam._y - cam._height / 3});
if (user.data.BenUpgrades[1]) {
Ben.powMod = 1.2;
Ben.dmgMod = 1.2;
}
var benTween;
Ben.onEnterFrame = function () {
with (Ben) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
if (user.data.BenUpgrades[2]) {
_visible = false;
_root.attachMovie('saberSpin', 'saberSpin', _root.getNextHighestDepth(), {'_x': cam._x - cam._width / 2 - 70, '_y': yground - 200});
_root.saberSpin.onEnterFrame = function () {
with (_root.saberSpin) {
for (var i in _root.enemyArray) {
var thisEnemy = _root.enemyArray[i];
if (thisEnemy.hitTest(this) && thisEnemy !== _root.Boss || _root.Boss.hitbox.hitTest(this)) {
if (_currentframe == 1) {
playSound();
_root.damage(_root.Ben, thisEnemy, 10, 'MID');
_root.setSpeed(_root.Ben, thisEnemy, '10', '10');
_root.Ben.hitSpark(thisEnemy);
}
}
}
}
};
com.greensock.TweenMax.to(_root.saberSpin, 0.5, {'_x': curTarg._x + 130, '_y': curTarg._y, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(_root.saberSpin, 0.5, {'_x': Ben._x, '_y': Ben._y, 'delay': 0.5, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': removeMC, 'onCompleteParams': [_root.saberSpin]});
delayedFunc(1.5);
} else {
delayedFunc(0);
}
} else {
if (node == 2) {
com.greensock.TweenMax.to(this, 0.4, {'_x': '-30'});
} else {
if (node == 3) {
_visible = true;
benTween = com.greensock.TweenMax.to(this, 1, {'_x': curTarg._x - 50});
} else {
if (node == 4) {
PHASE = 'FREEZE';
for (var i in enemyArray) {
if (hitTest(enemyArray[i])) {
playSound();
damage(this, enemyArray[i], 20, 'UP');
setSpeed(this, enemyArray[i], 40, '10');
setCombo('Ben');
Ben.hitSpark(enemyArray[i]);
}
}
} else {
if (node == 5) {
PHASE = 'FOLLOW';
} else {
if (node == 6) {
for (var i in enemyArray) {
if (hitTest(enemyArray[i])) {
playSound();
damage(this, enemyArray[i], 10, 'DOWN');
setSpeed(this, enemyArray[i], 40, '5');
Ben.hitSpark(enemyArray[i]);
}
}
} else {
if (node == 8) {
for (var i in enemyArray) {
if (hitTest(enemyArray[i])) {
playSound();
damage(this, enemyArray[i], 10, 'MID');
setSpeed(this, enemyArray[i], 40, '15');
Ben.hitSpark(enemyArray[i]);
}
}
} else {
if (node >= 10 && node <= 15) {
for (var i in enemyArray) {
if (hitTest(enemyArray[i])) {
playSound();
if (random(2) == 0) {
damage(this, enemyArray[i], 8, 'UP');
} else {
damage(this, enemyArray[i], 8, 'DOWN');
}
setSpeed(this, enemyArray[i], '0', 10);
Ben.hitSpark(enemyArray[i]);
}
}
} else {
if (node == 17) {
PHASE = 'FREEZE';
for (var i in enemyArray) {
if (hitTest(enemyArray[i])) {
playSound();
damage(this, enemyArray[i], 10, 'DOWN');
setSpeed(this, enemyArray[i], 50, -50);
Ben.hitSpark(enemyArray[i]);
}
}
} else {
if (node == 18) {
myBox.revert = true;
}
}
}
}
}
}
}
}
}
}
if (node >= 4 && node <= 17) {
com.greensock.TweenMax.to(this, 0.3, {'_x': curTarg._x - 30});
}
}
if (node >= 3 && node <= 17) {
_y += (curTarg._y - _y) / 2;
}
if (node == 3) {
benTween.updateTo({'_x': myFunc()}, false);
myFunc = function () {
return curTarg._x - 30;
};
}
if (myBox.revert && (node == 5 || node == 7 || node == 9 || node == 18)) {
revert(1.4);
gotoAndPlay('BACK');
com.greensock.TweenMax.to(this, 0.3, {'_y': yground, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenMax.to(this, 1, {'_x': cam._x - cam._width / 1.5, 'delay': 0.3, 'ease': com.greensock.easing.Strong.easeInOut});
}
} else {
if (stance == 'ULTRA') {
if (this.posTarg !== undefined) {
this.posTarg._visible = false;
if (curTarg == undefined) {
curTarg = mainTarg;
}
camTarg = curTarg;
curTarg._x = _x + this.posTarg._x;
curTarg._y = _y + this.posTarg._y;
}
_root.setPhase('FREEZE');
}
}
}
}
};
Ben.hitSpark = function (targ) {
var v2 = 'hitSpark' + getNextHighestDepth();
attachMovie('effectHitB', v2, getNextHighestDepth(), {'_x': targ._x, '_y': targ._y, '_xscale': 60, '_yscale': 60, '_rotation': random(360)});
com.greensock.TweenMax.to(_root[v2], 0, {'colorMatrixFilter': {'hue': 286, 'brightness': 2}});
};
Ben.delayedFunc = function (dell) {
with (Ben) {
play();
com.greensock.TweenMax.to(this, 0.5, {'_x': curTarg._x - 130, 'delay': dell, '_y': yground});
}
};
Ben.hitFunc = function (type) {
with (Ben) {
for (var i in enemyArray) {
if (enemyArray[i].hitTest(this.posTarg)) {
damage(this, enemyArray[i], 30, type);
hitSpark(enemyArray[i]);
com.greensock.TweenMax.to(_root[mySpark], 0, {'colorMatrixFilter': {'hue': 297, 'saturation': 1.2}});
}
}
playSound();
}
};
Ben.ultra = function () {
HUD.attachMovie('portraitBen', 'portrait', HUD.getNextHighestDepth(), {'_y': -154, '_xscale': 66, '_yscale': 66});
with (Ben) {
_visible = true;
node = 0;
com.greensock.TweenLite.killTweensOf(this);
camTarg = this;
if (_root.user.data.currentLevel !== 21) {
cam._yscale = 100;
cam._xscale = 100;
}
gotoAndPlay('ULTRA');
_x = _root.RightBound - 650;
_y = yground;
com.greensock.TweenLite.to(curTarg, 67, {'useFrames': true, '_x': _x + 353, '_y': _y + 5, 'ease': com.greensock.easing.Strong.easeOut});
initBGZ('black');
stance = 'ULTRA';
if (curTarg == Boss) {
Boss.prevX = Boss._x;
Boss.prevY = Boss._y;
}
}
};
Ben.ultraGo = function () {
bgZ.remove();
initBGZ('Ben', 'ultraStars', -1);
camTarg = curTarg;
};
Ben.ultraRevert = function () {
bgZ.remove();
setPhase('FOLLOW');
camTarg = mainTarg;
if (_root.user.data.currentLevel !== 21) {
cam._yscale = 150;
cam._xscale = 150;
}
with (Ben) {
revert(1.1);
HUD.ultraBar.updateDisplay();
com.greensock.TweenMax.to(this, 1, {'_x': cam._x - cam._width / 2 - 800, 'ease': com.greensock.easing.Strong.easeInOut});
stance = 'REST';
stop();
if (curTarg == Boss) {
com.greensock.TweenMax.to(Boss, 1, {'_x': Boss.prevX, '_y': Boss.prevY, 'ease': com.greensock.easing.Strong.easeInOut});
delete Boss.prevX;
delete Boss.prevY;
}
}
};
Ben.getHurt = function () {
with (Ben) {
if (invincible !== true && stance !== 'ULTRA') {
revert(1.2);
gotoAndPlay('HURT');
tweenRed(myBox);
hurtSplat(this, 255);
com.greensock.TweenMax.to(this, 0.6, {'_y': yground, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenMax.to(this, 0.6, {'_x': '-150', 'ease': None});
com.greensock.TweenMax.to(this, 0.6, {'_x': cam._x - cam._width / 1.5, 'delay': 0.6, 'ease': com.greensock.easing.Strong.easeIn});
}
}
};
Ben.playSound = function () {
var v1 = random(2);
if (v1 == 0) {
pewSnd.start();
} else {
thudSnd.start();
}
};
}
function initTucker() {
if (Tucker == undefined) {
attachMovie('TuckerMC', 'Tucker', getNextHighestDepth(), {'_x': -200, '_y': yground});
if (user.data.currentLevel == 5 || user.data.currentLevel == 10 || user.data.currentLevel == 15 || user.data.currentLevel == 21) {
Tucker.dmgMod = 0.5;
}
if (user.data.TuckerUpgrades[1]) {
Tucker.atkLimit = 4.4;
} else {
Tucker.atkLimit = 5.5;
}
Tucker.thp = 180;
Tucker.hp = 180;
Tucker.onEnterFrame = function () {
with (Tucker) {
if (!myBox.isLocked) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'REST') {
if (timer == 30) {
com.greensock.TweenLite.to(this, 1.5, {'_x': cam._x - cam._width / 4 - 70 + random(140), 'ease': Regular.easeInOut});
}
if (timer > 30 * atkLimit) {
curTarg = undefined;
timer = 0;
for (var k in enemyArray) {
if (enemyArray[k]._y > yground - 500 && enemyArray[k] !== BigBlue && enemyArray[k].hp > 0) {
curTarg = enemyArray[k];
break;
}
}
if (curTarg !== undefined) {
com.greensock.TweenMax.to(this, 1, {'_x': curTarg._x - 100, 'ease': Regular.easeIn, 'onComplete': delayedFunc});
}
} else {
++timer;
}
} else {
if (stance == 'GROUNDATK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
play();
com.greensock.TweenMax.to(this, 0.3, {'_x': curTarg._x - 50, 'ease': Regular.easeOut});
} else {
if (node == 2) {
setCombo('Tucker');
damage(this, curTarg, 20, 'DOWN');
setSpeed(this, curTarg, '10', '1');
hitSplat(curTarg);
} else {
if (node == 3) {
com.greensock.TweenMax.to(this, 0.3, {'_x': curTarg._x - 50, '_y': curTarg._y, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 0.3, {'_y': yground, 'delay': 1.2, 'ease': Regular.easeIn});
damage(this, curTarg, 20, 'UP');
setSpeed(this, curTarg, '10', 10);
hitSplat(curTarg);
} else {
if (node == 4) {
damage(this, curTarg, 40, 'MID');
setSpeed(this, curTarg, '20', '1');
hitSplat(curTarg);
} else {
if (node == 5) {
com.greensock.TweenMax.to(this, 1, {'_x': curTarg._x + 70, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 0.5, {'_y': '-150', 'ease': Regular.easeOut, 'yoyo': true, 'repeat': 1});
} else {
if (node == 9) {
PHASE = 'FREEZE';
for (var i in enemyArray) {
if (hitTest(enemyArray[i])) {
damage(this, enemyArray[i], 10, 'UP');
setSpeed(this, enemyArray[i], 20, '20');
checkKill(enemyArray[i]);
hitSplat(enemyArray[i]);
}
}
} else {
if (node == 10) {
PHASE = 'FOLLOW';
com.greensock.TweenMax.to(this, 0.3, {'_x': '-50', 'ease': com.greensock.easing.Strong.easeIn});
} else {
if (node == 11) {
stance = 'REST';
checkKill(curTarg);
curTarg = undefined;
}
}
}
}
}
}
}
}
if (node >= 5 && node <= 8) {
for (var i in enemyArray) {
if (hitTest(enemyArray[i])) {
damage(this, enemyArray[i], 10, 'UP');
setSpeed(this, enemyArray[i], 25, 15);
hitSplat(enemyArray[i]);
}
}
}
if (node == 101) {
play();
com.greensock.TweenMax.to(this, 0.3, {'_x': curTarg._x - 20, '_y': curTarg._y, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 0.3, {'_y': yground, 'delay': 1.2, 'ease': Regular.easeIn});
} else {
if (node == 102) {
setCombo('Tucker');
damage(this, curTarg, 20, 'MID');
setSpeed(this, curTarg, '10', '1');
hitSplat(curTarg);
} else {
if (node == 103) {
com.greensock.TweenMax.to(this, 0.3, {'_x': curTarg._x - 20, '_y': curTarg._y, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 0.3, {'_y': yground, 'delay': 1.2, 'ease': Regular.easeIn});
} else {
if (node == 104) {
damage(this, curTarg, 20, 'MID');
setSpeed(this, curTarg, '20', '1');
hitSplat(curTarg);
} else {
if (node == 105) {
com.greensock.TweenMax.to(this, 0.3, {'_x': curTarg._x - 20, '_y': curTarg._y, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 0.3, {'_y': yground, 'delay': 1.2, 'ease': Regular.easeIn});
damage(this, curTarg, 40, 'DOWN');
setSpeed(this, curTarg, '40', '5');
hitSplat(curTarg);
} else {
if (node == 106) {
com.greensock.TweenMax.to(this, 0.3, {'_x': curTarg._x, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 0.2, {'_y': '-80', 'ease': com.greensock.easing.Strong.easeOut, 'yoyo': true, 'repeat': 1});
} else {
if (node == 107) {
for (var i in enemyArray) {
if (hitTest(enemyArray[i])) {
damage(this, enemyArray[i], 40, 'DOWN');
setSpeed(this, enemyArray[i], '40', '-10');
checkKill(enemyArray[i]);
hitSplat(enemyArray[i]);
}
}
com.greensock.TweenMax.to(this, 0.3, {'_x': curTarg._x, '_y': yground, 'ease': com.greensock.easing.Strong.easeInOut});
} else {
if (node == 108) {
PHASE = 'FREEZE';
} else {
if (node == 109) {
PHASE = 'FOLLOW';
stance = 'REST';
checkKill(curTarg);
curTarg = undefined;
}
}
}
}
}
}
}
}
}
}
} else {
if (stance == 'ULTRA') {
_root.setPhase('FREEZE');
}
}
}
}
}
}
};
Tucker.hitSplat = function (targ) {
swordhitB.start();
var v2 = 'hitSpark' + getNextHighestDepth();
attachMovie('effectSlash', v2, getNextHighestDepth(), {'_x': targ._x, '_y': targ._y, '_rotation': random(360)});
com.greensock.TweenMax.to(_root[v2], 0, {'colorMatrixFilter': {'hue': 64, 'brightness': 2}});
};
if (user.data.TuckerUpgrades[2] == true) {
Tucker.checkKill = function (theKill) {
with (Tucker) {
if (theKill.hp <= 0) {
hp = thp;
attachEE('TuckerEEffect');
updateHP();
}
}
};
}
Tucker.ultra = function () {
HUD.attachMovie('portraitTucker', 'portrait', HUD.getNextHighestDepth(), {'_y': -126, '_xscale': 66, '_yscale': 66});
with (Tucker) {
com.greensock.TweenLite.killTweensOf(this);
camTarg = this;
gotoAndPlay('ULTRA');
initBGZ('black');
stance = 'ULTRA';
com.greensock.TweenMax.to(this, 53, {'useFrames': true, '_x': mainTarg._x, '_y': yground - 250, 'ease': com.greensock.easing.Strong.easeOut});
}
};
Tucker.ultraGo = function () {
bgZ.remove();
initBGZ('tucker', 'ultraHex', -1);
com.greensock.TweenMax.to(Tucker, 1, {'_x': '100', 'ease': com.greensock.easing.Strong.easeOut});
var v8 = 0;
for (var v10 in enemyArray) {
++v8;
damage(this, enemyArray[v10], 80, 'UP');
setSpeed(this, enemyArray[v10], '20', '0');
checkKill(enemyArray[v10]);
var v3 = 'critSplat' + _root.getNextHighestDepth();
_root.attachMovie('effectCrit', v3, _root.getNextHighestDepth(), {'_xscale': 150, '_yscale': 150, '_x': enemyArray[v10]._x, '_y': enemyArray[v10]._y, '_rotation': random(360)});
com.greensock.TweenMax.to(_root[v3], 0, {'tint': 16724736});
shakeCam();
}
if (v8 >= 10) {
niceTXT('Blade Flurry (' + v8 + ' Enemies)', 1000, 232);
}
var v9 = 'numHit' + _root.getNextHighestDepth();
_root.attachMovie('NumHit', v9, _root.getNextHighestDepth(), {'_x': Tucker._x, '_y': Tucker._y});
_root[v9].TXT.text = v8 + ' HITS!';
com.greensock.TweenMax.to(_root[v9], 0.5, {'_y': '-100', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(_root[v9], 1, {'delay': 1, '_alpha': 0, 'onComplete': removeMC, 'onCompleteParams': [_root[v9]]});
};
Tucker.ultraRevert = function () {
bgZ.remove();
setPhase('FOLLOW');
camTarg = mainTarg;
HUD.ultraBar.updateDisplay();
with (Tucker) {
revert();
stop();
com.greensock.TweenMax.to(this, 1, {'_y': yground, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': gotoStop, 'onCompleteParams': [this, 'RUN']});
}
};
Tucker.revert = function () {
with (Tucker) {
stance = 'REST';
timer = 0;
}
};
Tucker.delayedFunc = function () {
with (Tucker) {
stance = 'GROUNDATK';
if (random(2) == 0) {
node = 0;
gotoAndPlay('ATKA');
} else {
node = 100;
gotoAndPlay('ATKB');
}
}
};
Tucker.getHurt = function (damage) {
with (Tucker) {
if (invincible !== true && stance !== 'ULTRA') {
hp -= damage;
tweenRed(myBox);
tweenShake(myBox);
hurtSplat(this, 90);
if (hp > 0) {
stance = 'HURT';
gotoAndPlay('HURT');
updateHP();
com.greensock.TweenMax.to(this, 1, {'_x': '-100', '_y': yground, 'ease': com.greensock.easing.Strong.easeOut});
} else {
gotoAndStop('DEAD');
stance = 'DEAD';
PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.5, setPhase, ['FOLLOW']);
myBox.gotoAndStop(2);
myBox.isDead = true;
shakeCam();
com.greensock.TweenMax.to(this, 1, {'_x': '-500', '_y': '-150', 'delay': 1, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [this]});
}
}
}
};
Tucker.getHurt(0);
}
}
function initWes() {
attachMovie('WesMC', 'Wes', getNextHighestDepth(), {'_x': cam._x - cam._width / 2 - 70, '_y': cam._y + cam._height / 3});
Wes.bulletNum = 0;
Wes.onEnterFrame = function () {
with (Wes) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
play();
com.greensock.TweenMax.to(this, 2, {'_x': cam._x - 400, 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (node == 2) {
com.greensock.TweenMax.to(this, 1, {'_x': cam._x - 300, 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (node == 4) {
com.greensock.TweenMax.to(this, 0.7, {'_x': cam._x - 250, 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (node == 6) {
com.greensock.TweenMax.to(this, 1.5, {'_x': cam._x - 450, 'ease': com.greensock.easing.Linear.easeNone});
com.greensock.TweenMax.to(this, 1.5, {'_y': yground, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': gotoPlay, 'onCompleteParams': [this, 'LAND']});
} else {
if (node == 7) {
myBox.revert = true;
}
}
}
}
}
}
if (node >= 1 && node <= 5) {
_y += (curTarg._y - _y) / 3;
}
if (myBox.revert && (node == 3 || node == 5 || node == 7)) {
revert(0.71);
stop();
com.greensock.TweenMax.to(this, 0.5, {'_x': cam._x - cam._width / 1.5, 'delay': 0.1, 'ease': com.greensock.easing.Strong.easeIn});
}
}
}
}
};
Wes.getHurt = function () {
with (Wes) {
if (invincible !== true) {
revert(0.71);
gotoAndPlay('HURT');
tweenRed(myBox);
hurtSplat(this, 180);
com.greensock.TweenMax.to(this, 0.2, {'_x': '70', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 0.5, {'_x': cam._x - cam._width / 1.5, 'delay': 0.2});
com.greensock.TweenMax.to(this, 0.2, {'_y': '-100', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 0.5, {'_y': yground, 'delay': 0.2, 'ease': com.greensock.easing.Strong.easeIn});
}
}
};
Wes.fireBullet = function (xshift, yshift, xPropel, yVel) {
with (Wes) {
if (yVel == undefined || yVel !== undefined && user.data.WesUpgrades[2] == true) {
if (xPropel == undefined) {
xPropel = 20;
}
++bulletNum;
if (random(2) == 0) {
smgA.start();
} else {
smgB.start();
}
_root.attachMovie('wesBullet', 'wesBullet' + bulletNum, _root.getNextHighestDepth(), {'_x': _x + xshift, '_y': _y + yshift});
var myBullet = _root['wesBullet' + bulletNum];
myBullet.xspeed = 30 + Math.random() * 20;
if (user.data.WesUpgrades[1] == true) {
if (xPropel === String(xPropel)) {
xPropel = Number(xPropel);
xPropel *= 1.4;
xPropel = xPropel.toString();
} else {
xPropel *= 1.4;
}
myBullet.xspeed += 15;
}
if (user.data.WesUpgrades[2] == true) {
myBullet.yspeed = yVel;
} else {
myBullet.yspeed = 0;
}
myBullet.isCombo = bulletNum < 4;
myBullet.phaseCount = 0;
myBullet.onEnterFrame = function () {
with (myBullet) {
if (_currentframe == 1) {
_x += xspeed;
_y += yspeed;
for (var i in _root.enemyArray) {
var thisEnemy = _root.enemyArray[i];
if (thisEnemy.hitTest(_x, _y, false) && thisEnemy !== _root.Boss || _root.Boss.hitbox.hitTest(_x, _y, false)) {
if (isCombo) {
setCombo('Wes');
}
_root.damage(_root.Wes, thisEnemy, 3, 'MID');
_root.setSpeed(_root.Wes, thisEnemy, xPropel, '5');
if (phaseCount > 3 || _root.user.data.WesUpgrades[3] == false) {
gotoAndPlay('HIT');
delete this.onEnterFrame;
} else {
var mySpark = 'spark' + _root.getNextHighestDepth();
_root.attachMovie('effectHitB', mySpark, _root.getNextHighestDepth(), {'_x': _x, '_y': _y, '_xscale': 50, '_yscale': 50});
com.greensock.TweenMax.to(_root[mySpark], 0, {'colorMatrixFilter': {'hue': 283, 'brightness': 2}});
_x = 15 + thisEnemy._x + thisEnemy._width / 2;
++phaseCount;
}
}
}
if (_x > _root.cam._x + _root.cam._width / 1.5) {
removeMovieClip(this);
}
}
}
};
}
}
};
}
function initJK() {
if (JK == undefined) {
attachMovie('JKMC', 'JK', getNextHighestDepth(), {'_x': -200, '_y': yground});
JK.curTarg;
if (user.data.JKUpgrades[3]) {
JK.thp = 200;
JK.hp = 200;
} else {
JK.thp = 300;
JK.hp = 300;
}
JK.shotNum = 0;
JK.onEnterFrame = function () {
with (JK) {
if (!myBox.isLocked) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'REST') {
if (timer == 30 || timer == 60 || timer == 90 || timer == 120) {
com.greensock.TweenLite.killTweensOf(this);
com.greensock.TweenLite.to(this, 0.5, {'_x': cam._x - 350, 'ease': Regular.easeInOut});
}
if (timer > 120) {
findTarg();
if (curTarg !== undefined) {
stance = 'ATTACK';
gotoAndPlay('ATTACK');
tweenSpinBox(myBox);
}
}
if (timer > 180) {
timer = 0;
} else {
++timer;
}
}
}
}
}
};
JK.findTarg = function () {
with (JK) {
var highTarg = undefined;
curTarg = undefined;
for (var k in enemyArray) {
if (enemyArray[k] !== mainTarg && enemyArray[k].hp > 0 && enemyArray[k] !== Boss) {
if (user.data.JKUpgrades[3] == true) {
if (enemyArray[k].enemyType == 'Mage') {
curTarg = enemyArray[k];
highTarg = curTarg;
} else {
if (enemyArray[k].hp >= highTarg.hp || highTarg == undefined) {
curTarg = enemyArray[k];
highTarg = curTarg;
}
}
} else {
curTarg = enemyArray[k];
break;
}
} else {
if (enemyArray[k] == Boss) {
curTarg = Boss;
}
}
}
}
};
JK.revert = function () {
with (JK) {
timer = 0;
shotNum = 0;
curTarg = undefined;
gotoAndStop('RUN');
stance = 'REST';
}
};
JK.shotFunc = function () {
with (JK) {
findTarg();
++shotNum;
if (curTarg !== undefined && (shotNum < 3 || user.data.JKUpgrades[1] == true)) {
aimMC.gotoAndPlay(2);
var mySnipe = 'snipe' + _root.getNextHighestDepth();
_root.attachMovie('effectSnipe', mySnipe, _root.getNextHighestDepth(), {'_x': curTarg._x, '_y': curTarg._y, '_rotation': aimMC._rotation});
hurtSplat(curTarg, 238);
var dmg = Math.round(curTarg.hp * 0.3);
if (user.data.JKUpgrades[2]) {
dmg = Math.round(curTarg.hp * 0.6);
}
if (curTarg == Boss) {
dmg = 80;
}
damage(this, curTarg, dmg, 'UP');
shakeCam();
setSpeed(this, curTarg, '40', '-10');
PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.5, setPhase, ['FOLLOW']);
if (dmg >= 300) {
niceTXT('Crazy Damage! [Stick JK]', 500, 114);
}
} else {
this.gotoAndPlay('ENDATTACK');
}
}
};
JK.getHurt = function (damage) {
with (JK) {
if (invincible !== true) {
hp -= damage;
tweenRed(myBox);
tweenShake(myBox);
hurtSplat(this, 90);
if (hp > 0) {
stance = 'HURT';
gotoAndPlay('HURT');
updateHP();
com.greensock.TweenMax.to(this, 1, {'_x': '-50', '_y': yground, 'ease': com.greensock.easing.Strong.easeOut});
} else {
gotoAndPlay('DEAD');
stance = 'DEAD';
PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.5, setPhase, ['FOLLOW']);
myBox.gotoAndStop(2);
myBox.isDead = true;
shakeCam();
com.greensock.TweenMax.to(this, 1, {'_x': '-500', '_y': '-150', 'delay': 1, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [this]});
}
}
}
};
}
}
function initSagar() {
attachMovie('SagarMC', 'Sagar', getNextHighestDepth(), {'_x': cam._x + cam._width / 2 + 70, '_y': cam._y + cam._height / 4});
Sagar.updateY = 0;
var sagarTween;
Sagar.onEnterFrame = function () {
with (Sagar) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
play();
sagarTween = com.greensock.TweenMax.to(this, 1, {'_x': curTarg._x + 50});
updateY = curTarg._y + 50;
} else {
if (node == 2) {
updateY = curTarg._y;
damage(this, curTarg, 20, 'UP');
setSpeed(this, curTarg, '0', 5);
reverseBBfunc();
setCombo('Sagar');
if (user.data.SagarUpgrades[2] && random(2) == 0) {
curTarg.setStun(1);
}
} else {
if (node == 3) {
} else {
if (node == 4) {
updateY = curTarg._y - 50;
damage(this, curTarg, 30, 'UP');
setSpeed(this, curTarg, '0', 10);
reverseBBfunc();
PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.3, setPhase, ['FOLLOW']);
if (user.data.SagarUpgrades[2] && random(2) == 0) {
curTarg.setStun(1);
}
} else {
if (node == 5) {
updateY = curTarg._y;
} else {
if (node == 6) {
} else {
if (node == 7) {
damage(this, curTarg, 10, 'MID');
setSpeed(this, curTarg, '0', 15);
reverseBBfunc();
if (user.data.SagarUpgrades[2] && random(2) == 0) {
curTarg.setStun(1);
}
} else {
if (node == 8) {
myBox.revert = true;
PHASE = 'FREEZE';
com.greensock.TweenLite.killTweensOf(this);
com.greensock.TweenMax.to(this, 1, {'_x': curTarg._x - 200, '_y': yground - 100, 'ease': com.greensock.easing.Strong.easeIn});
} else {
if (node == 9) {
com.greensock.TweenLite.delayedCall(0.5, setPhase, ['FOLLOW']);
}
}
}
}
}
}
}
}
}
if (node >= 2 && node <= 7) {
com.greensock.TweenMax.to(this, 0.3, {'_x': curTarg._x + 10});
}
}
if (node >= 1 && node <= 7) {
_y += (curTarg._y - _y) / 2;
}
if (node == 1) {
sagarTween.updateTo({'_x': myFunc()}, false);
myFunc = function () {
return curTarg._x + 50;
};
}
if (myBox.revert && (node == 3 || node == 6 || node == 9)) {
revert(2.1);
gotoAndPlay('BACK');
com.greensock.TweenMax.to(this, 0.5, {'_y': yground, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenMax.to(this, 1.5, {'_x': cam._x - cam._width / 1.5, 'delay': 0.5, 'ease': com.greensock.easing.Strong.easeOut});
}
}
}
}
};
Sagar.reverseBBfunc = function () {
if (curTarg == BigBlue) {
BigBlue.xspeed = -10;
}
};
Sagar.checkHit = function (ySpuh) {
with (Sagar) {
hitBox._visible = false;
if (user.data.SagarUpgrades[1]) {
for (var i in enemyArray) {
if (hitBox.hitTest(enemyArray[i])) {
if (random(2) == 0) {
damage(this, enemyArray[i], 6, 'UP');
} else {
damage(this, enemyArray[i], 5, 'DOWN');
}
setSpeed(this, enemyArray[i], '2', ySpuh);
if (user.data.SagarUpgrades[2] && random(2) == 0) {
enemyArray[i].setStun(1);
}
hitSpark(enemyArray[i]);
}
}
} else {
damage(this, curTarg, 6, 'UP');
setSpeed(this, curTarg, '2', ySpuh);
if (user.data.SagarUpgrades[2] && random(2) == 0) {
curTarg.setStun(1);
}
hitSpark(curTarg);
}
}
};
Sagar.hitSpark = function (targ) {
var v2 = 'hitSpark' + getNextHighestDepth();
attachMovie('effectHitB', v2, getNextHighestDepth(), {'_x': targ._x - 30 + random(60), '_xscale': 50, '_yscale': 50, '_y': targ._y - 30 + random(60), '_rotation': random(360)});
com.greensock.TweenMax.to(_root[v2], 0, {'colorMatrixFilter': {'hue': 286, 'brightness': 2}});
if (random(2) == 0) {
smashhitB.start();
} else {
powerhitA.start();
}
};
Sagar.getHurt = function () {
with (Sagar) {
if (invincible !== true) {
if (user.data.SagarUpgrades[3] == true && _root.boardMC == undefined) {
snowBoard._visible = false;
_root.attachMovie('sagarBoard', 'boardMC', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
_root.boardMC.xvel = 7;
_root.boardMC.yvel = -25;
_root.boardMC.onEnterFrame = function () {
with (_root.boardMC) {
_rotation -= 30;
_x += xvel;
_y += yvel;
yvel += _root.gravity;
for (var i in _root.enemyArray) {
var thisEnemy = _root.enemyArray[i];
if (thisEnemy.hitTest(_x, _y, false) && thisEnemy !== _root.Boss || _root.Boss.hitbox.hitTest(_x, _y, false)) {
yvel = -10;
_root.setPhase('FREEZE');
_root.damage(_root.Sagar, thisEnemy, 30, 'DOWN');
_root.setSpeed(_root.Sagar, thisEnemy, '0', 15);
com.greensock.TweenLite.delayedCall(0.2, _root.setPhase, ['FOLLOW']);
var myCircle = 'hitCircle' + _root.getNextHighestDepth();
_root.attachMovie('effectCircle', myCircle, getNextHighestDepth(), {'_x': _x, '_y': _y, '_xscale': 250, '_yscale': 250});
}
}
if (_y > _root.yground) {
removeMovieClip(this);
}
}
};
}
hurtSplat(this, 264);
revert(1.3);
gotoAndPlay('HURT');
tweenRed(myBox);
com.greensock.TweenMax.to(this, 1.2, {'_rotation': 275, '_x': cam._x - cam._width / 1.5, 'ease': com.greensock.easing.Strong.easeIn});
}
}
};
}
function initHang() {
Hang.gotoAndPlay(1);
Hang._y = yground;
if (Hang == undefined) {
attachMovie('HangMC', 'Hang', getNextHighestDepth(), {'_x': cam._x - cam._width / 2 - 70, '_y': yground});
var hangTween;
if (user.data.HangUpgrades[1] == true) {
Hang.thp = 30;
Hang.hp = 30;
} else {
Hang.thp = 60;
Hang.hp = 60;
}
if (user.data.HangUpgrades[2] == true) {
Hang.slushA;
Hang.slushB;
}
Hang.onEnterFrame = function () {
with (Hang) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
play();
com.greensock.TweenMax.to(this, 1, {'_x': curTarg._x - 100});
} else {
if (node == 2) {
com.greensock.TweenMax.to(this, 1, {'_x': curTarg._x - 50});
} else {
if (node == 3) {
hangTween = com.greensock.TweenMax.to(this, 1, {'_x': curTarg._x - 50});
groundEffect(this, groundType);
} else {
if (node == 4) {
setCombo('Hang');
_y = curTarg._y;
PHASE = 'FREEZE';
com.greensock.TweenMax.to(this, 0.3, {'_x': curTarg._x - 30});
damage(this, curTarg, 20, 'MID');
setSpeed(this, curTarg, '10', '10');
hitFire(curTarg);
} else {
if (node == 5) {
PHASE = 'FOLLOW';
myBox.revert = true;
}
}
}
}
}
}
if (node == 3) {
_y += (curTarg._y - _y) / 2;
}
if (node == 3) {
hangTween.updateTo({'_x': myFunc()}, false);
myFunc = function () {
return curTarg._x - 50;
};
}
if (myBox.revert && node == 5) {
revert();
com.greensock.TweenMax.to(this, 0.7, {'_x': '-100', '_y': yground, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenMax.to(this, 0.5, {'delay': 0.5, '_x': 300, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': gotoStop, 'onCompleteParams': [this, 'EMPTY']});
}
} else {
if (stance == 'REVIVE') {
if (callNode) {
if (curTarg == undefined) {
curTarg = mainTarg;
}
callNode = false;
++node;
if (node == 1) {
for (var i in enemyArray) {
if (hitTest(enemyArray[i])) {
damage(this, enemyArray[i], 20, 'MID');
setSpeed(this, enemyArray[i], 40, 15);
setCombo('Hang');
hitFire(enemyArray[i]);
}
}
} else {
if (node == 2 || node == 3) {
_x = curTarg._x - 75;
_y = curTarg._y;
for (var i in enemyArray) {
if (hitTest(enemyArray[i])) {
damage(this, enemyArray[i], 10, 'DOWN');
setSpeed(this, enemyArray[i], 20, -20);
hitFire(enemyArray[i]);
}
}
} else {
if (node == 4 || node == 5) {
_x = curTarg._x - 75;
_y = curTarg._y;
for (var i in enemyArray) {
if (hitTest(enemyArray[i])) {
PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.2, setPhase, ['FOLLOW']);
damage(this, enemyArray[i], 20, 'UP');
setSpeed(this, enemyArray[i], 20, 10);
hitFire(enemyArray[i]);
}
}
} else {
if (node == 6 || node == 7) {
_x = curTarg._x - 75;
_y = curTarg._y;
for (var i in enemyArray) {
if (hitTest(enemyArray[i])) {
PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.2, setPhase, ['FOLLOW']);
damage(this, enemyArray[i], 30, 'MID');
setSpeed(this, enemyArray[i], 20, -10);
hitFire(enemyArray[i]);
}
}
} else {
if (node >= 8 && node <= 12) {
_x = curTarg._x - 75;
_y = curTarg._y;
for (var i in enemyArray) {
if (hitTest(enemyArray[i])) {
damage(this, enemyArray[i], 20, 'UP');
setSpeed(this, enemyArray[i], '20', 5);
hitFire(enemyArray[i]);
}
}
} else {
if (node == 13 || node == 14) {
_x = curTarg._x - 75;
_y = curTarg._y;
for (var i in enemyArray) {
if (hitTest(enemyArray[i])) {
PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.2, setPhase, ['FOLLOW']);
damage(this, enemyArray[i], 40, 'MID');
setSpeed(this, enemyArray[i], '45', 10);
hitFire(enemyArray[i]);
}
}
} else {
if (node == 15) {
PHASE = 'FOLLOW';
revert();
gotoAndPlay('GOBACK');
com.greensock.TweenMax.to(this, 0.7, {'_x': '-100', '_y': yground, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenMax.to(this, 0.5, {'delay': 0.5, '_x': 300, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': gotoStop, 'onCompleteParams': [this, 'EMPTY']});
}
}
}
}
}
}
}
}
if (node !== 0 && node !== 1) {
_y += (curTarg._y - _y) / 3;
_x += (curTarg._x - 70 - _x) / 3;
}
} else {
if (stance == 'ULTRA') {
_root.setPhase('FREEZE');
with (Hang) {
if (hitBox !== undefined) {
hitBox._visible = false;
var gotHit = false;
for (var i in enemyArray) {
if (hitBox.hitTest(enemyArray[i])) {
_root.setPhase('FOLLOW');
if (random(2) == 0) {
damage(this, enemyArray[i], 1, 'DOWN');
} else {
damage(this, enemyArray[i], 3, 'MID');
gotHit = true;
if (random(3) == 0) {
hitFire(enemyArray[i]);
}
}
setSpeed(this, enemyArray[i], '1', 30);
setCombo('Hang');
_root.setPhase('FREEZE');
}
}
if (gotHit && random(3) == 0) {
fireA.start();
shakeCam(10, 0);
}
}
}
}
}
}
}
}
};
Hang.hitFire = function (targ) {
with (Hang) {
var newFire = 'fiah' + _root.getNextHighestDepth();
_root.attachMovie('effectFire', newFire, _root.getNextHighestDepth(), {'_xscale': 175, '_yscale': 175, '_x': targ._x, '_y': targ._y, '_rotation': 80 + random(20)});
}
};
Hang.ultraFinal = function () {
for (var v8 in enemyArray) {
if (hitBox.hitTest(enemyArray[v8])) {
var v2 = _root.attachMovie('effectFire', 'fire' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': myTarg._x + 20, '_y': myTarg._y - 30});
v2._rotation = -90;
com.greensock.TweenMax.from(myTarg, 2, {'colorTransform': {'tint': 3342336, 'tintAmount': 0.9}});
com.greensock.TweenMax.to(myTarg, 2, {'colorTransform': {'tint': 3342336, 'tintAmount': 0}});
com.greensock.TweenMax.to(v2, 1, {'_x': '-80'});
}
}
};
Hang.spawnPortrait = function () {
HUD.attachMovie('portraitHang', 'portrait', HUD.getNextHighestDepth(), {'_y': 90, '_xscale': 66, '_yscale': 66});
};
Hang.ultra = function () {
with (Hang) {
com.greensock.TweenLite.killTweensOf(this);
camTarg = this;
gotoAndPlay('ULTRA');
com.greensock.TweenLite.to(this, 50, {'useFrames': true, '_x': mainTarg._x - 500, '_y': yground - 305, 'ease': com.greensock.easing.Strong.easeOut});
initBGZ('black');
stance = 'ULTRA';
}
LeftBound = mainTarg._x - 250;
TopBound = yground - 160;
var totalHeal = 0;
for (var k in teamArray) {
var mySlush = _root[teamArray[k]];
if (mySlush !== undefined && mySlush.hp < mySlush.thp) {
totalHeal += mySlush.thp - mySlush.hp;
mySlush.hp = mySlush.thp;
mySlush.attachEE('HangEEffectB');
}
}
if (totalHeal >= 230) {
niceTXT(totalHeal + 'HP Phoenix Heal', 1000, 289);
}
};
Hang.ultraGo = function () {
bgZ.remove();
initBGZ('hang', 'ultraPhoenix', -1);
};
Hang.ultraRevert = function () {
bgZ.remove();
setPhase('FOLLOW');
camTarg = mainTarg;
LeftBound = OrLeftBound;
TopBound = OrTopBound;
with (Hang) {
revert();
HUD.ultraBar.updateDisplay();
stance = 'REST';
stop();
}
};
Hang.getHurt = function (dmg) {
with (Hang) {
if (invincible !== true && stance !== 'REVIVE' && stance !== 'ULTRA') {
gotoAndPlay('HURT');
revert();
tweenRed(myBox);
hp -= dmg;
hurtSplat(this, 106);
updateHP();
com.greensock.TweenMax.to(this, 0.8, {'_y': '-100', 'delay': 0.4, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 0.8, {'_y': '0', 'delay': 0.8, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenMax.to(this, 1.6, {'_x': cam._x - cam._width / 1.5, 'delay': 0.4, 'onComplete': gotoStop, 'onCompleteParams': [this, 'EMPTY']});
}
if (hp <= 0) {
com.greensock.TweenLite.killTweensOf(this);
_x = cam._x;
_y = cam._y;
myBox.charge = 0;
revert();
node = 0;
hp = thp;
updateHP();
stance = 'REVIVE';
gotoAndPlay('REVIVE');
if (_root[slushA].hp !== undefined) {
_root[slushA].hp += Math.round(_root[slushA].thp / 10);
if (_root[slushA].hp > _root[slushA].thp) {
_root[slushA].hp = _root[slushA].thp;
_root[slushA].attachEE('HangEEffect');
_root[slushA].updateHP();
}
}
if (_root[slushB].hp !== undefined) {
_root[slushB].hp += Math.round(_root[slushB].thp / 10);
if (_root[slushB].hp > _root[slushB].thp) {
_root[slushB].hp = _root[slushB].thp;
_root[slushB].attachEE('HangEEffect');
_root[slushB].updateHP();
}
}
}
}
};
}
}
function initJames() {
attachMovie('JamesMC', 'James', getNextHighestDepth(), {'_x': cam._x - cam._width / 2 - 70, '_y': yground});
var jamesTween;
James.allSlush = new Array();
James.onEnterFrame = function () {
with (James) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
play();
com.greensock.TweenMax.to(this, 1, {'_x': curTarg._x - 100});
} else {
if (node == 2) {
com.greensock.TweenMax.to(this, 1, {'_x': curTarg._x - 50});
} else {
if (node == 3) {
jamesTween = com.greensock.TweenMax.to(this, 1, {'_x': curTarg._x - 50});
groundEffect(this, groundType);
} else {
if (node == 4) {
setCombo('James');
_y = curTarg._y;
PHASE = 'FREEZE';
com.greensock.TweenMax.to(this, 0.3, {'_x': curTarg._x - 30});
damage(this, curTarg, 50, 'MID');
setSpeed(this, curTarg, '30', '20');
if (user.data.JamesUpgrades[2] == false) {
HUD[slushA + 'Box'].charge = 100;
HUD[slushB + 'Box'].charge = 100;
_root[slushA].attachEE('JamesEEffect');
_root[slushB].attachEE('JamesEEffect');
} else {
var total = 0;
for (var k in teamArray) {
if (checkActive(teamArray[k])) {
if (HUD[teamArray[k] + 'Box'].charge <= 98) {
_root[teamArray[k]].attachEE('JamesEEffect');
++total;
}
HUD[teamArray[k] + 'Box'].charge = 100;
}
}
if (total >= 4) {
--total;
niceTXT(total + ' Allies Recharged', 500, 212);
}
}
shakeCam();
} else {
if (node == 5) {
PHASE = 'FOLLOW';
myBox.revert = true;
}
}
}
}
}
}
if (node == 3) {
_y += (curTarg._y - _y) / 2;
}
if (node == 3) {
jamesTween.updateTo({'_x': myFunc()}, false);
myFunc = function () {
return curTarg._x - 50;
};
}
if (myBox.revert && node == 5) {
revert(1.5);
com.greensock.TweenMax.to(this, 0.5, {'_x': curTarg._x + 30, '_y': yground, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenMax.to(this, 1, {'delay': 0.5, '_x': cam._x + cam._width / 1.5, 'ease': com.greensock.easing.Strong.easeIn});
}
} else {
if (stance == 'ULTRA') {
_root.setPhase('FREEZE');
play();
} else {
if (stance == 'ULTRAB') {
for (var k in allSlush) {
if (_root[allSlush[k]] == undefined) {
allSlush.splice(k, 1);
}
}
if (allSlush.length == 0) {
ultraRevert();
}
}
}
}
}
}
};
James.ultra = function () {
HUD.attachMovie('portraitJames', 'portrait', HUD.getNextHighestDepth(), {'_xscale': 66, '_yscale': 66});
with (James) {
com.greensock.TweenLite.killTweensOf(this);
camTarg = this;
gotoAndPlay('ULTRA');
_x = topTarg._x - 100;
_y = yground;
initBGZ('black');
stance = 'ULTRA';
}
LeftBound = James._x + 350;
BottomBound = yground - 130;
};
James.ultraGo = function () {
bgZ.remove();
initBGZ('james', 'ultraJames', 1);
_root.setPhase('FOLLOW');
addTeamArrays(true);
var v2 = 0;
while (v2 < allArray.length) {
var v3 = false;
if (user.data[allArray[v2] + 'Upgrades'][0] == 'Unlocked' && checkActive(allArray[v2])) {
v3 = true;
for (var v4 in teamArray) {
if (v3 && allArray[v2] == teamArray[v4]) {
v3 = false;
}
}
for (var v5 in idleArray) {
if (v3 && allArray[v2] == idleArray[v5]) {
v3 = false;
}
}
}
if (v3) {
James.allSlush.push(allArray[v2]);
com.greensock.TweenLite.delayedCall(v2 / 5, James.initSlushah(allArray[v2]));
}
++v2;
}
if (James.allSlush.length >= 10) {
niceTXT('Lots of Slush', 750, 212);
}
LeftBound = OrLeftBound;
};
James.initSlushah = function (targ) {
James.stance = 'ULTRAB';
initSlush(targ);
var newBox = targ + 'Box';
createEmptyMovieClip(newBox, getNextHighestDepth());
_root[targ].myBox = _root[newBox];
_root[newBox].revert = false;
_root[newBox].targ = targ;
_root[newBox].onEnterFrame = function () {
with (_root[newBox]) {
if (_root[targ] == undefined) {
removeMovieClip(this);
}
}
};
};
James.ultraRevert = function () {
bgZ.remove();
setPhase('FOLLOW');
camTarg = mainTarg;
LeftBound = OrLeftBound;
BottomBound = OrBottomBound;
addTeamArrays(false);
with (James) {
revert(1);
HUD.ultraBar.updateDisplay();
com.greensock.TweenMax.to(this, 1, {'_x': cam._x - cam._width, 'ease': com.greensock.easing.Strong.easeIn});
stance = 'REST';
}
};
James.getHurt = function (dmg) {
with (James) {
if (invincible !== true && stance !== 'ULTRA' && stance !== 'ULTRAB') {
revert(1.2);
gotoAndPlay('HURT');
tweenRed(myBox);
com.greensock.TweenMax.to(this, 1.2, {'_x': cam._x - cam._width / 1.5, 'ease': com.greensock.easing.Strong.easeIn});
hurtSplat(this, 100);
}
}
};
}
function initEric() {
attachMovie('EricMC', 'Eric', getNextHighestDepth(), {'_x': cam._x - cam._width / 2 - 30, '_y': topTarg._y + 100});
Eric.onEnterFrame = function () {
with (Eric) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
play();
com.greensock.TweenMax.to(this, 2, {'_x': '350', 'ease': com.greensock.easing.Linear.easeNone});
} else {
if (node == 2) {
HUD.EricBox.showEmblem();
PHASE = 'FREEZE';
castShot(true, 0, 0, 100);
} else {
if (node == 3) {
PHASE = 'FOLLOW';
myBox.revert = true;
}
}
}
}
if (node == 1 || node == 2) {
_y += (curTarg._y - _y) / 7;
}
if (myBox.revert && node == 3) {
revert(1.8);
com.greensock.TweenMax.to(this, 0.8, {'_y': yground, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenMax.to(this, 1, {'_x': cam._x - cam._width, '_y': '-200', 'ease': Regular.easeOut, 'delay': 0.8});
}
} else {
if (stance == 'ULTRA') {
_root.setPhase('FREEZE');
}
}
}
}
};
Eric.drawTXT = function (num) {
if (num > 1) {
var v4 = new Array('Double', 'Triple', 'Quadruple', 'Quint', 'Sixfold', 'Septuple', 'Octo', 'Nonuple', 'Deco', 'Hendeca', 'Duodeca', 'Trideca', 'Tetradeca', 'Pentadeca', 'Hexadeca', 'Septendeca', 'Octodeca', 'Nonadeca', 'Vigesimal');
var v2 = 'numHit' + _root.getNextHighestDepth();
_root.attachMovie('NumHitB', v2, _root.getNextHighestDepth(), {'_x': Eric._x + 280, '_y': Eric._y - 100});
_root[v2].TXT.text = v4[num - 2];
com.greensock.TweenMax.to(_root[v2], 0.5, {'_y': '-100', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(_root[v2], 1, {'delay': 1, '_alpha': 0, 'onComplete': removeMC, 'onCompleteParams': [_root[v2]]});
if (num >= 6) {
niceTXT(v4[num - 2] + '-Collat', 2000, 45);
}
}
};
if (user.data.EricUpgrades[2] == true) {
HUD.EricBox.showInput();
HUD.EricBox.optDown = function () {
if (Eric.node == 1 && Eric.stance == 'ATTACK') {
Eric.gotoAndPlay('QUICK');
}
};
}
Eric.castShot = function (startX, startY, angle, pow) {
with (Eric) {
if (startX == true) {
_root.attachMovie('ericTrail', 'ericHitBox', _root.getNextHighestDepth(), {'_x': _x + 88, '_y': _y - 24, '_width': 1123, '_height': 11.7});
com.greensock.TweenMax.to(_root.ericHitBox, 0.5, {'_alpha': 0, 'onComplete': removeMC, 'onCompleteParams': [_root.ericHitBox]});
var totalN = 0;
for (var k in enemyArray) {
var myEnemy = enemyArray[k];
if (myEnemy.hitTest(_root.ericHitBox)) {
++totalN;
var newSplat = 'ericSnipe' + _root.getNextHighestDepth();
_root.attachMovie('effectSnipe', newSplat, _root.getNextHighestDepth(), {'_x': myEnemy._x, '_y': _root.ericHitBox._y, '_xscale': 200, '_yscale': 200});
shakeCam(10, 0);
setCombo('Eric');
setSpeed(this, myEnemy, '40', 30);
damage(this, myEnemy, pow, 'MID');
}
}
drawTXT(totalN);
} else {
var totalN = 0;
for (var k in enemyArray) {
var myEnemy = enemyArray[k];
var gotHit = false;
var hitX;
var hitY;
var rot = angle * 180 / Math.PI;
var i = 1;
while (i <= 70) {
if (!gotHit) {
hitX = _x + startX + 20 * i * Math.cos(angle);
hitY = _y + startY + 20 * i * Math.sin(angle);
var myTrail = 'ericTrail' + _root.getNextHighestDepth();
_root.attachMovie('ericTrail', myTrail, _root.getNextHighestDepth(), {'_x': hitX, '_y': hitY, '_rotation': rot});
com.greensock.TweenMax.to(_root[myTrail], 0.5, {'_alpha': 0, 'onComplete': removeMC, 'onCompleteParams': [_root[myTrail]]});
if (hitY > yground + 100 || hitX > cam._x + cam._width / 2) {
i = 71;
}
if (myEnemy.hitTest(hitX, hitY, false)) {
gotHit = true;
i = 71;
}
}
++i;
}
if (gotHit) {
++totalN;
var newSplat = 'ericSnipe' + _root.getNextHighestDepth();
_root.attachMovie('effectSnipe', newSplat, _root.getNextHighestDepth(), {'_x': hitX, '_y': hitY, '_xscale': 200, '_yscale': 200});
setCombo('Eric');
setSpeed(this, myEnemy, '40', 30);
damage(this, myEnemy, pow, 'MID');
shakeCam(10, 5);
}
}
drawTXT(totalN);
}
}
};
Eric.ultra = function () {
HUD.attachMovie('portraitEric', 'portrait', HUD.getNextHighestDepth(), {'_y': -154, '_xscale': 66, '_yscale': 66});
with (Eric) {
com.greensock.TweenLite.killTweensOf(this);
camTarg = this;
gotoAndPlay('ULTRA');
com.greensock.TweenLite.to(this, 47, {'useFrames': true, '_x': mainTarg._x - 450, '_y': mainTarg._y, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(this, 1.5, {'_x': mainTarg._x - 400, '_y': mainTarg._y - 100, 'delay': 1.9, 'ease': com.greensock.easing.Strong.easeOut});
initBGZ('black');
stance = 'ULTRA';
}
LeftBound = mainTarg._x - 250;
TopBound = mainTarg._y - 160;
};
Eric.ultraGo = function () {
bgZ.remove();
initBGZ('Eric', 'ultraEric', -1);
};
Eric.ultraRevert = function () {
bgZ.remove();
setPhase('FOLLOW');
camTarg = mainTarg;
LeftBound = OrLeftBound;
TopBound = OrTopBound;
HUD.EricBox.showEmblem();
with (Eric) {
revert(1.6);
HUD.ultraBar.updateDisplay();
com.greensock.TweenMax.to(this, 0.8, {'_y': yground, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenMax.to(this, 0.8, {'_x': cam._x - cam._width, 'delay': 0.8, 'ease': com.greensock.easing.Strong.easeIn});
stance = 'REST';
stop();
}
};
Eric.getHurt = function (dmg) {
with (Eric) {
if (invincible !== true && stance !== 'ULTRA') {
HUD.EricBox.showEmblem();
revert(1.2);
gotoAndPlay('HURT');
tweenRed(myBox);
com.greensock.TweenMax.to(this, 1.2, {'_rotation': -275, '_x': cam._x - cam._width / 1.5, 'ease': com.greensock.easing.Strong.easeIn});
hurtSplat(this, 249);
}
}
};
}
function initOmar() {
attachMovie('OmarMC', 'Omar', getNextHighestDepth(), {'_x': cam._x - cam._width / 2 - 70, '_y': yground});
Omar.onEnterFrame = function () {
with (Omar) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
com.greensock.TweenMax.to(this, 4, {'_x': cam._x + cam._width / 2 + 70, 'ease': com.greensock.easing.Linear.easeNone, 'onComplete': removeMC, 'onCompleteParams': [this]});
} else {
if (node == 2) {
setCombo('Omar');
alignMe();
damage(this, curTarg, 15, 'MID');
setSpeed(this, curTarg, '3', '0');
hitSlice(curTarg);
} else {
if (node == 3) {
alignMe();
damage(this, curTarg, 10, 'MID');
setSpeed(this, curTarg, '5', '0');
hitSlice(curTarg);
} else {
if (node == 4 || node == 5) {
alignMe();
damage(this, curTarg, 25, 'UP');
setSpeed(this, curTarg, 30, 10);
hitSlice(curTarg);
} else {
if (node >= 6 && node <= 9) {
damage(this, curTarg, 3, 'MID');
hitSlice(curTarg);
} else {
if (node == 10) {
PHASE = 'FREEZE';
damage(this, curTarg, 30, 'MID');
setSpeed(this, curTarg, 35, 20);
hitSlice(curTarg);
} else {
if (node == 11) {
PHASE = 'FOLLOW';
alignMe();
damage(this, curTarg, 25, 'MID');
setSpeed(this, curTarg, 50, 10);
hitSlice(curTarg);
if (user.data.OmarUpgrades[1]) {
gotoAndPlay('TEMPEST');
} else {
myBox.revert = true;
stop();
}
} else {
if (node == 12) {
com.greensock.TweenMax.to(this, 0.1, {'_x': '-50', 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (node == 13) {
com.greensock.TweenMax.to(this, 9, {'_x': curTarg._x, 'useFrames': true, 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (node == 14) {
com.greensock.TweenMax.to(this, 15, {'_x': curTarg._x, '_y': yground - 150, 'useFrames': true, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 10, {'_x': curTarg._x, '_y': yground, 'useFrames': true, 'delay': 15, 'ease': com.greensock.easing.Strong.easeIn});
} else {
if (node == 15) {
alignMe();
if (user.data.OmarUpgrades[2]) {
gotoAndPlay('SWORD');
} else {
myBox.revert = true;
stop();
}
} else {
if (node >= 16 && node <= 21) {
damage(this, curTarg, 4, 'MID');
hitSlice(curTarg);
} else {
if (node == 22) {
com.greensock.TweenMax.to(this, 15, {'_x': curTarg._x - 30, '_y': yground - 150, 'useFrames': true, 'ease': com.greensock.easing.Strong.easeOut});
damage(this, curTarg, 25, 'UP');
setSpeed(this, curTarg, '10', 20);
hitSlice(curTarg);
} else {
if (node == 23) {
com.greensock.TweenMax.to(this, 10, {'_x': curTarg._x - 30, '_y': yground, 'useFrames': true, 'ease': com.greensock.easing.Strong.easeIn});
damage(this, curTarg, 100, 'DOWN');
setSpeed(this, curTarg, '30', -20);
_root.PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.3, _root.setPhase, ['FOLLOW']);
hitSlice(curTarg);
} else {
if (node == 24) {
myBox.revert = true;
stop();
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
if (node >= 2 && node < 12 || node > 15 && node <= 21) {
com.greensock.TweenMax.to(this, 0.1, {'_x': curTarg._x - 50});
if (curTarg !== Boss) {
com.greensock.TweenMax.to(curTarg, 0.1, {'_y': _y});
} else {
com.greensock.TweenMax.to(this, 0.1, {'_y': curTarg._y});
}
hitSlice(curTarg);
}
}
if (node == 1) {
for (var i in enemyArray) {
if (hitTest(enemyArray[i]) && enemyArray[i].hp !== 0 && enemyArray[i] !== Boss || hitTest(Boss.hitbox) && enemyArray[i] == Boss) {
com.greensock.TweenLite.killTweensOf(this);
play();
curTarg = enemyArray[i];
if (curTarg !== Boss) {
com.greensock.TweenMax.to(curTarg, 0.5, {'_y': _y, 'ease': com.greensock.easing.Strong.easeOut});
} else {
com.greensock.TweenMax.to(this, 0.1, {'_y': curTarg._y});
}
break;
}
}
}
if (node == 13 || node == 14) {
for (var i in enemyArray) {
if (spinBOX.hitTest(enemyArray[i])) {
damage(this, enemyArray[i], 3, 'MID');
setSpeed(this, enemyArray[i], '0', 3);
if (random(5) == 0) {
hitSlice(enemyArray[i]);
swordhitB.start();
}
}
}
}
if (myBox.revert && (node == 11 || node == 15 || node == 24)) {
_y = yground;
revert(1.3);
stop();
com.greensock.TweenMax.to(this, 1.3, {'_x': 300, 'ease': com.greensock.easing.Strong.easeIn});
}
} else {
if (stance == 'ULTRA') {
play();
for (var i in enemyArray) {
if (_root.omarUltra.hitTest(enemyArray[i])) {
_root.setPhase('FOLLOW');
damage(this, enemyArray[i], 8, 'DOWN');
setSpeed(this, enemyArray[i], 45, -40);
setCombo('Omar');
if (random(3) == 0) {
hitSlice(enemyArray[i]);
if (random(2) == 0) {
swordhitA.start();
} else {
fireA.start();
}
}
}
}
_root.setPhase('FREEZE');
}
}
}
}
};
Omar.alignMe = function () {
with (Omar) {
if (curTarg !== Boss) {
_x = curTarg._x - 30;
}
}
};
Omar.hitSlice = function (targ) {
var v2 = 'hitSpark' + getNextHighestDepth();
attachMovie('effectSlash', v2, getNextHighestDepth(), {'_x': targ._x, '_y': targ._y, '_rotation': random(360), '_xscale': 50, '_yscale': 50});
com.greensock.TweenMax.to(_root[v2], 0, {'colorMatrixFilter': {'hue': 142, 'brightness': 2}});
};
Omar.spawnPortrait = function () {
with (Omar) {
com.greensock.TweenMax.to(this, 0.6, {'_x': '200', '_y': yspeed - 300, 'ease': com.greensock.easing.Strong.easeOut});
}
HUD.attachMovie('portraitOmar', 'portrait', HUD.getNextHighestDepth(), {'_xscale': 66, '_yscale': 66});
bgZ.remove();
initBGZ('omar', 'ultraEric', -1);
};
Omar.ultra = function () {
with (Omar) {
node = 0;
com.greensock.TweenLite.killTweensOf(this);
camTarg = this;
if (_root.user.data.currentLevel !== 21) {
cam._yscale = 100;
cam._xscale = 100;
}
gotoAndPlay('ULTRA');
com.greensock.TweenLite.to(this, 0.5, {'_x': curTarg._x - 300, '_y': yground, 'ease': com.greensock.easing.Strong.easeOut});
initBGZ('black');
stance = 'ULTRA';
}
};
Omar.ultraGo = function () {
with (Omar) {
_x = curTarg._x;
_y = yground;
_root.attachMovie('OmarUltraEffect', 'omarUltra', _root.getNextHighestDepth(), {'_x': _x + 40.45, '_y': _y + 38.3});
com.greensock.TweenMax.to(_root.omarUltra, 37, {'useFrames': true, 'onComplete': removeMC, 'onCompleteParams': [_root.omarUltra]});
shakeCam(10, 10);
}
};
Omar.ultraRevert = function () {
bgZ.remove();
setPhase('FOLLOW');
camTarg = mainTarg;
if (_root.user.data.currentLevel !== 21) {
cam._yscale = 150;
cam._xscale = 150;
}
with (Omar) {
revert(1.6);
HUD.ultraBar.updateDisplay();
com.greensock.TweenMax.to(this, 1.6, {'_x': cam._x - cam._width / 2 - 70, 'ease': com.greensock.easing.Strong.easeInOut});
stance = 'REST';
}
};
Omar.getHurt = function () {
with (Omar) {
if (invincible !== true && stance !== 'ULTRA' && node == 1) {
tweenRed(myBox);
revert(1.8);
gotoAndPlay('HURT');
com.greensock.TweenMax.to(this, 0.5, {'_x': '-100', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 1.3, {'_x': cam._x - cam._width / 1.5, 'delay': 0.5, 'ease': com.greensock.easing.Strong.easeIn});
hurtSplat(this, 67);
}
}
};
}
function initJosh() {
if (Josh == undefined) {
attachMovie('JoshMC', 'Josh', getNextHighestDepth(), {'_x': -10, '_y': yground});
Josh.thp = 300;
Josh.hp = 300;
Josh.onEnterFrame = function () {
with (Josh) {
if (!myBox.isLocked) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'REST') {
if (timer == 30 || timer == 90 || timer == 150 || timer == 210) {
com.greensock.TweenLite.to(this, 1, {'_x': cam._x - 350, 'ease': Regular.easeInOut});
} else {
if (timer == 60) {
makeMine();
}
}
if (timer > 210) {
gotoAndPlay('ATTACK');
timer = 0;
}
++timer;
}
}
}
}
};
Josh.revert = function () {
with (Josh) {
stance = 'REST';
gotoAndPlay('RUN');
}
};
Josh.spawnTex = function (xvel, yvel) {
var newNade = 'jNade' + getNextHighestDepth();
attachMovie('JoshSemtex', newNade, getNextHighestDepth(), {'_x': Josh._x + 75, '_y': Josh._y - 45});
_root[newNade].xvel = xvel;
_root[newNade].yvel = yvel;
_root[newNade].onEnterFrame = function () {
with (_root[newNade]) {
this._x += xvel;
this._y += yvel;
this._rotation -= 25;
yvel += _root.gravity;
for (var i in enemyArray) {
var thisEnemy = enemyArray[i];
if (thisEnemy.hitTest(_x, _y, false) && thisEnemy !== _root.Boss || Boss.hitbox.hitTest(_x, _y, false)) {
smgB.start();
boomA.start();
damage(Josh, thisEnemy, 30, 'MID');
setSpeed(Josh, thisEnemy, '15', 15);
setCombo('Josh');
jsplode(thisEnemy);
removeMovieClip(this);
}
}
if (this._y > yground) {
jsplode(this);
removeMovieClip(this);
}
}
};
};
Josh.makeMine = function () {
var v3 = 'jMine' + getNextHighestDepth();
attachMovie('JoshMine', v3, getNextHighestDepth(), {'_x': 2000, '_y': yground + 20});
attachBGfunc(_root[v3], 2);
_root[v3].optFunc = function () {
if (BigBlue.hitTest(this._x, this._y, false)) {
niceTXT('Mine Time', 250, 28);
smgA.start();
boomA.start();
damage(Josh, BigBlue, 40, 'UP');
jsplode(BigBlue);
setSpeed(Josh, BigBlue, '35', 25);
removeMovieClip(this);
}
if (Josh == undefined) {
removeMovieClip(this);
}
};
};
if (user.data.JoshUpgrades[1]) {
Josh.leadFunc = function () {
with (Josh) {
if (callNode) {
++node;
callNode = false;
if (node == 1) {
gotoAndPlay(1);
} else {
if (node == 2) {
BigBlue.attachMovie('JoshC4', 'JoshC4', BigBlue.getNextHighestDepth(), {'_rotation': random(360)});
BigBlue.hasC4 = true;
} else {
if (node == 3) {
stance = 'REST';
removeFromArray('Josh', leadArray);
com.greensock.TweenMax.delayedCall(2, gotoPlay, [this, 'RUN']);
}
}
}
}
}
};
Josh.gotoAndStop(1);
} else {
Josh.gotoAndStop('BLANK');
}
Josh.getHurt = function (damage) {
with (Josh) {
if (invincible !== true) {
hp -= damage;
tweenRed(myBox);
tweenShake(myBox);
hurtSplat(this, 306);
if (hp > 0) {
stance = 'HURT';
gotoAndPlay('HURT');
updateHP();
com.greensock.TweenMax.to(this, 1, {'_x': '-50', '_y': yground, 'ease': com.greensock.easing.Strong.easeOut});
} else {
gotoAndPlay('DEAD');
stance = 'DEAD';
PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.5, setPhase, ['FOLLOW']);
myBox.gotoAndStop(2);
myBox.isDead = true;
shakeCam();
com.greensock.TweenMax.to(this, 1, {'_x': '-200', 'delay': 0.5, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': removeMC, 'onCompleteParams': [this]});
}
}
}
};
}
}
function initAddison() {
attachMovie('AddisonMC', 'Addison', getNextHighestDepth(), {'_x': cam._x - cam._width / 2 - 70, '_y': yground});
Addison.onEnterFrame = function () {
with (Addison) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
play();
com.greensock.TweenMax.to(this, 0.5, {'_x': cam._x - 425, 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (node == 2) {
com.greensock.TweenMax.to(this, 0.2, {'_x': cam._x - 350, 'ease': com.greensock.easing.Strong.easeOut});
groundEffect(this, groundType);
} else {
if (node == 3) {
com.greensock.TweenMax.to(this, 1, {'_x': curTarg._x - 450, 'ease': com.greensock.easing.Strong.easeOut});
setCombo('Addison');
} else {
if (node == 4) {
setPhase('FOLLOW');
setSpeed(this, curTarg, '40', '0');
} else {
if (node == 5) {
com.greensock.TweenMax.to(this, 0.5, {'_x': cam._x - 425, 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (node == 6) {
HUD.AddisonBox.showInput();
com.greensock.TweenMax.to(this, 0.7, {'_x': '50', 'yoyo': true, 'repeat': 1, 'ease': com.greensock.easing.Strong.easeOut});
_root.attachMovie('flashNade', 'addiNade', _root.getNextHighestDepth(), {'_x': _x + 72, '_y': _y - 82});
_root.addiNade.yvel = -12;
_root.addiNade.onEnterFrame = function () {
with (_root.addiNade) {
this._x += 15;
this._y += yvel;
this._rotation -= 45;
yvel += _root.gravity;
if (this._y > _root.yground) {
this.detonate();
}
}
};
_root.addiNade.onPress = function () {
_root.addiNade.detonate();
};
_root.addiNade.detonate = function () {
_root.HUD.AddisonBox.showEmblem();
with (_root.addiNade) {
gotoAndPlay(2);
var total = 0;
for (var i in _root.enemyArray) {
if (this.hitTest(_root.enemyArray[i])) {
++total;
if (_root.user.data.AddisonUpgrades[1] == true) {
_root.enemyArray[i].setStun(4);
} else {
_root.enemyArray[i].setStun(2);
}
var myCircle = 'hitCircle' + _root.getNextHighestDepth();
_root.attachMovie('effectCircle', myCircle, _root.getNextHighestDepth(), {'_x': enemyArray[i]._x, '_y': enemyArray[i]._y, '_xscale': 200, '_yscale': 200});
}
}
if (total >= 4) {
niceTXT(total + ' Enemies Stunned', 750, 263);
}
delete this.detonate;
delete this.onEnterFrame;
}
};
} else {
if (node == 7) {
myBox.revert = true;
}
}
}
}
}
}
}
}
if (node == 3) {
thudshot.start();
if (random(2) == 0) {
damage(this, curTarg, 2, 'MID');
setSpeed(this, curTarg, '2', '0');
setPhase('FOLLOW');
hitSpark(curTarg);
} else {
setPhase('FREEZE');
}
}
if (node >= 3 && node <= 6) {
_y += (curTarg._y - _y) / 4;
}
if (myBox.revert && (node == 4 || node == 7)) {
stop();
revert(1.5);
com.greensock.TweenMax.to(this, 1.5, {'_x': cam._x - cam._width / 1.5, '_y': '100', 'ease': com.greensock.easing.Strong.easeIn});
}
} else {
if (stance == 'ULTRA') {
_root.setPhase('FREEZE');
if (missile !== undefined) {
var mySph = 'missileFluff' + _root.getNextHighestDepth();
_root.attachMovie('blackBox', mySph, _root.getNextHighestDepth(), {'_alpha': 70, '_x': missile._x, '_y': missile._y - 30, '_yscale': 30 + Math.random() * 30, '_xscale': 60});
com.greensock.TweenMax.to(_root[mySph], 0.4, {'_y': '-225', '_yscale': 250, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': removeMC, 'onCompleteParams': [_root[mySph]]});
com.greensock.TweenMax.to(_root[mySph], 0, {'_rotation': missile._rotation, 'tint': 16777215});
_root[mySph].gotoAndStop(random(2) + 1);
missile._y += 15;
missile._x += (_root._xmouse - HUD._x) / 30;
missile._rotation = -(_root._xmouse - HUD._x) / 30;
if (Key.isDown(39)) {
missile._x += 5;
missile._rotation = -15;
}
if (Key.isDown(37)) {
missile._x -= 5;
missile._rotation = 15;
}
if (missile._y > yground || mainTarg.hitTest(missile._x, missile._y, false)) {
ultraRevert();
}
}
}
}
}
}
};
Addison.hitSpark = function (targ) {
var v2 = 'hitSpark' + getNextHighestDepth();
attachMovie('effectHitB', v2, getNextHighestDepth(), {'_x': targ._x - 30 + random(60), '_y': targ._y - 30 + random(60), '_xscale': 60, '_yscale': 60, '_rotation': random(360)});
com.greensock.TweenMax.to(_root[v2], 0, {'colorMatrixFilter': {'hue': 123, 'brightness': 2}});
};
HUD.AddisonBox.optUp = function () {
_root.addiNade.detonate();
};
Addison.ultra = function () {
HUD.attachMovie('portraitAddison', 'portrait', HUD.getNextHighestDepth(), {'_y': -154, '_xscale': 66, '_yscale': 66});
with (Addison) {
com.greensock.TweenLite.killTweensOf(this);
camTarg = this;
gotoAndPlay('ULTRA');
com.greensock.TweenMax.to(this, 1.2, {'_x': topTarg._x - 400, '_y': yground - 250, 'ease': com.greensock.easing.Strong.easeOut});
initBGZ('black');
stance = 'ULTRA';
}
};
Addison.ultraGo = function () {
bgZ.remove();
initBGZ('Addison', '', 1);
_root.setPhase('FOLLOW');
fireA.start();
_root.attachMovie('CruiseMissile', 'missile', _root.getNextHighestDepth(), {'_x': 200 + random(600), '_y': TopBound - 100});
camTarg = missile;
for (var v5 in enemyArray) {
com.greensock.TweenMax.to(enemyArray[v5], 1, {'colorTransform': {'tint': 16777215, 'tintAmount': 1}});
}
for (v5 in teamArray) {
com.greensock.TweenMax.to(_root[teamArray[v5]], 1, {'colorTransform': {'tint': 3355443, 'tintAmount': 1}});
}
};
Addison.ultraRevert = function () {
bgZ.remove();
setPhase('FOLLOW');
camTarg = mainTarg;
missile.gotoAndPlay('boom');
shakeCam(30, 20);
boomC.start();
for (var i in enemyArray) {
com.greensock.TweenMax.to(enemyArray[i], 1, {'colorTransform': {'tint': 16777215, 'tintAmount': 0}});
var total = 0;
if (enemyArray[i].hitTest(missile.blastZone)) {
++total;
damage(Addison, enemyArray[i], 75, 'MID');
setSpeed(Addison, enemyArray[i], 55, -75);
var newFire = 'fiah' + _root.getNextHighestDepth();
_root.attachMovie('effectFire', newFire, _root.getNextHighestDepth(), {'_x': enemyArray[i]._x, '_y': enemyArray[i]._y, '_xscale': 300, '_yscale': 300});
com.greensock.TweenMax.to(_root[newFire], 0, {'tint': 16777215});
}
if (total >= 5) {
niceTXT('Blew Up ' + total + ' Enemies', 1000, 212);
}
}
for (var i in teamArray) {
com.greensock.TweenMax.to(_root[teamArray[i]], 1, {'colorTransform': {'tint': 3355443, 'tintAmount': 0}});
}
with (Addison) {
revert(1);
HUD.ultraBar.updateDisplay();
com.greensock.TweenMax.to(this, 1, {'_x': cam._x - cam._width, 'ease': com.greensock.easing.Strong.easeIn});
stance = 'REST';
}
};
Addison.getHurt = function () {
with (Addison) {
if (invincible !== true && stance !== 'ULTRA') {
gotoAndPlay('HURT');
revert(1.8);
tweenRed(myBox);
hurtSplat(this, 194);
com.greensock.TweenMax.to(this, 0.3, {'_x': '-100', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 1.2, {'_x': cam._x - cam._width / 1.5, 'delay': 0.3, 'ease': com.greensock.easing.Strong.easeIn});
}
}
};
}
function initSean() {
attachMovie('SeanMC', 'Sean', getNextHighestDepth(), {'_x': cam._x - cam._width / 2 - 70, '_y': yground});
Sean.onEnterFrame = function () {
with (Sean) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (node == 0 && curTarg == BigBlue && user.data.SeanUpgrades[1] == true) {
stance = 'ATTACKB';
gotoAndPlay('ATTACKB');
}
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
play();
com.greensock.TweenMax.to(this, 0.5, {'_x': cam._x - 425, 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (node == 2) {
_root.attachMovie('bluePortal', 'bluePort', _root.getNextHighestDepth(), {'_x': curTarg._x - 80, '_y': curTarg._y, '_rotation': 90, '_xscale': 0});
com.greensock.TweenMax.to(_root.bluePort, 0.5, {'_xscale': 100, 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenMax.to(_root.bluePort, 0.3, {'_xscale': 0, 'ease': com.greensock.easing.Strong.easeOut, 'delay': 0.5, 'onComplete': removeMC, 'onCompleteParams': [_root.bluePort]});
if (curTarg !== _root.Boss) {
_root.bluePort.swapDepths(curTarg);
}
_root.attachMovie('orangePortal', 'orangePort', _root.getNextHighestDepth(), {'_x': _x + 80, '_y': _y, '_rotation': 270, '_xscale': 0});
com.greensock.TweenMax.to(_root.orangePort, 0.5, {'_xscale': 100, 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenMax.to(_root.orangePort, 0.3, {'_xscale': 0, 'ease': com.greensock.easing.Strong.easeOut, 'delay': 0.5, 'onComplete': removeMC, 'onCompleteParams': [_root.orangePort]});
_root.orangePort.swapDepths(this);
} else {
if (node == 3) {
if (curTarg !== _root.Boss) {
curTarg._x = _x + 50;
curTarg._y = _y + 50;
}
} else {
if (node == 4) {
_x = curTarg._x - 50;
_y = curTarg._y;
setCombo('Sean');
damage(Sean, curTarg, 30, 'DOWN');
setSpeed(Sean, curTarg, 25, -20);
hitSpark();
} else {
if (node == 5) {
damage(Sean, curTarg, 25, 'MID');
setSpeed(Sean, curTarg, 25, 20);
hitSpark();
} else {
if (node == 6) {
damage(Sean, curTarg, 15, 'MID');
setSpeed(Sean, curTarg, '30', '5');
hitSpark();
} else {
if (node == 8) {
setPhase('FREEZE');
damage(Sean, curTarg, 20, 'DOWN');
setSpeed(Sean, curTarg, '0', -50);
hitSpark();
} else {
if (node == 9) {
setPhase('FOLLOW');
com.greensock.TweenMax.to(this, 0.5, {'_x': '-100', '_y': '-70', 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (node == 10) {
myBox.revert = true;
}
}
}
}
}
}
}
}
}
}
if (node >= 4 && node <= 8) {
_x += (curTarg._x - 30 - _x) / 4;
_y += (curTarg._y - _y) / 4;
}
if (myBox.revert && (node == 3 || node == 7 || node == 10)) {
stop();
revert(0.8);
com.greensock.TweenMax.to(this, 0.8, {'_x': cam._x - cam._width / 1.5, '_y': '100', 'ease': com.greensock.easing.Strong.easeIn});
}
} else {
if (stance == 'ATTACKB') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
play();
com.greensock.TweenMax.to(this, 0.5, {'_x': cam._x - 425, 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (node == 2) {
_root.attachMovie('bluePortal', 'bluePort', _root.getNextHighestDepth(), {'_x': curTarg._x, '_y': curTarg._y, '_xscale': 0});
com.greensock.TweenMax.to(_root.bluePort, 0.5, {'_xscale': 100, 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenMax.to(_root.bluePort, 0.3, {'_xscale': 0, 'ease': com.greensock.easing.Strong.easeOut, 'delay': 0.5, 'onComplete': removeMC, 'onCompleteParams': [_root.bluePort]});
if (curTarg !== _root.Boss) {
_root.bluePort.swapDepths(curTarg);
}
_root.attachMovie('orangePortal', 'orangePort', _root.getNextHighestDepth(), {'_x': curTarg._x, '_y': curTarg._y - 250, '_xscale': 0});
com.greensock.TweenMax.to(_root.orangePort, 0.5, {'_xscale': 100, 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenMax.to(_root.orangePort, 0.3, {'_xscale': 0, 'ease': com.greensock.easing.Strong.easeOut, 'delay': 0.5, 'onComplete': removeMC, 'onCompleteParams': [_root.orangePort]});
_root.orangePort.swapDepths(this);
} else {
if (node == 3) {
curTarg._y = _root.orangePort._y - 50;
setSpeed(Sean, curTarg, 30, 20);
} else {
if (node == 5) {
setPhase('FREEZE');
setCombo('Sean');
damage(Sean, curTarg, 50, 'DOWN');
setSpeed(Sean, curTarg, '10', -40);
_x = curTarg._x - 50;
_y = curTarg._y;
hitSpark();
} else {
if (node == 6) {
setPhase('FOLLOW');
_root.attachMovie('bluePortal', 'bluePort', _root.getNextHighestDepth(), {'_x': _x, '_y': _y, '_xscale': 0});
com.greensock.TweenMax.to(_root.bluePort, 0.5, {'_xscale': 100, 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenMax.to(_root.bluePort, 0.3, {'_xscale': 0, 'ease': com.greensock.easing.Strong.easeOut, 'delay': 0.5, 'onComplete': removeMC, 'onCompleteParams': [_root.bluePort]});
if (curTarg !== _root.Boss) {
_root.bluePort.swapDepths(curTarg);
}
_root.attachMovie('orangePortal', 'orangePort', _root.getNextHighestDepth(), {'_x': curTarg._x, '_y': curTarg._y + 50, '_xscale': 0});
com.greensock.TweenMax.to(_root.orangePort, 0.5, {'_xscale': 120, 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenMax.to(_root.orangePort, 0.3, {'_xscale': 0, 'ease': com.greensock.easing.Strong.easeOut, 'delay': 0.5, 'onComplete': removeMC, 'onCompleteParams': [_root.orangePort]});
_root.orangePort.swapDepths(this);
} else {
if (node == 7) {
_x = curTarg._x;
_y = curTarg._y + 50;
damage(Sean, curTarg, 50, 'UP');
setSpeed(Sean, curTarg, '5', 30);
com.greensock.TweenMax.to(this, 0.5, {'_y': curTarg._y - 150, 'ease': com.greensock.easing.Strong.easeOut});
hitSpark();
} else {
if (node == 9) {
_x = curTarg._x;
_y = curTarg._y + 50;
setPhase('FREEZE');
damage(Sean, curTarg, 100, 'DOWN');
setSpeed(Sean, curTarg, '0', -100);
hitSpark();
shakeCam(0, 20);
} else {
if (node == 10) {
setPhase('FOLLOW');
myBox.revert = true;
}
}
}
}
}
}
}
}
}
if (node >= 7 && node <= 9 || node == 4) {
_x += (curTarg._x - 50 - _x) / 4;
}
if (node >= 3 && node <= 8 && node !== 5 && node !== 6) {
_y += (curTarg._y - _y) / 4;
}
if (myBox.revert && (node == 4 || node == 8 || node == 10)) {
stop();
revert(0.8);
com.greensock.TweenMax.to(this, 0.8, {'_x': cam._x - cam._width / 1.5, '_y': '100', 'ease': com.greensock.easing.Strong.easeIn});
}
} else {
if (stance == 'ULTRA') {
_root.setPhase('FREEZE');
} else {
if (stance == 'ULTRAB') {
_root.setPhase('FOLLOW');
_root.xspeed = 450;
if (_root.dist - curDist > _root.endDist * 0.3) {
ultraRevert();
_root.xspeed = 70;
if (_root.dist - curDist >= 10000) {
niceTXT('Huge Level Leap', 750, 125);
}
}
}
}
}
}
}
}
};
Sean.hitSpark = function () {
with (Sean) {
var mySpark = 'hitSpark' + _root.getNextHighestDepth();
_root.attachMovie('effectHitB', mySpark, _root.getNextHighestDepth(), {'_x': curTarg._x, '_y': curTarg._y, '_rotation': random(360)});
com.greensock.TweenMax.to(_root[mySpark], 0, {'colorMatrixFilter': {'hue': 114, 'brightness': 2}});
}
};
Sean.ultra = function () {
HUD.attachMovie('portraitSean', 'portrait', HUD.getNextHighestDepth(), {'_y': -154, '_xscale': 66, '_yscale': 66});
with (Sean) {
com.greensock.TweenLite.killTweensOf(this);
camTarg = this;
gotoAndPlay('ULTRA');
_x = topTarg._x - 400;
_y = yground;
initBGZ('black');
stance = 'ULTRA';
}
};
Sean.ultraGo = function () {
bgZ.remove();
initBGZ('Sean', 'ultraStars', -1);
_root.setPhase('FOLLOW');
BottomBound = yground - 180;
Sean.stance = 'ULTRAB';
Sean.curDist = _root.dist;
if (user.data.currentLevel == 5 || user.data.currentLevel == 8 && user.data.hardMode == false || user.data.currentLevel == 10 || user.data.currentLevel == 15 || user.data.currentLevel == 21) {
com.greensock.TweenLite.delayedCall(2, Sean.ultraRevert);
}
};
Sean.ultraRevert = function () {
bgZ.remove();
setPhase('FOLLOW');
camTarg = mainTarg;
BottomBound = OrBottomBound;
with (Sean) {
revert(1);
HUD.ultraBar.updateDisplay();
com.greensock.TweenMax.to(this, 1, {'_x': cam._x - cam._width, 'ease': com.greensock.easing.Strong.easeIn});
stance = 'REST';
}
};
Sean.getHurt = function () {
with (Sean) {
if (invincible !== true && stance !== 'ULTRA' && stance !== 'ULTRAB') {
gotoAndPlay('HURT');
revert(1.2);
tweenRed(myBox);
hurtSplat(this, 0);
com.greensock.TweenMax.to(this, 0.3, {'_x': '-100', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 0.9, {'_x': cam._x - cam._width / 1.5, 'delay': 0.3, 'ease': com.greensock.easing.Strong.easeIn});
}
}
};
}
function initWaqas() {
if (Waqas == undefined) {
attachMovie('WaqasMC', 'Waqas', getNextHighestDepth(), {'_x': -200, '_y': yground});
Waqas.thp = 300;
Waqas.hp = 300;
Waqas.form = 'X';
Waqas.rockets = new Array();
Waqas.goBack = function () {
with (Waqas) {
if (stance !== 'ATTACK') {
node = 0;
callNode = false;
gotoAndPlay(1);
stance = 'REST';
}
}
};
Waqas.onEnterFrame = function () {
with (Waqas) {
if (!myBox.isLocked) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'REST') {
if (form == 'A') {
spanner.gotoAndStop(2);
}
if (timer == 30 || timer == 60 || timer == 90) {
com.greensock.TweenLite.to(this, 1, {'_x': cam._x - 400, 'ease': Regular.easeInOut});
}
if (timer > 90) {
timer = 0;
}
++timer;
} else {
if (stance == 'ATTACK') {
if (node == 0) {
gotoAndPlay(form);
callNode = true;
}
if (callNode) {
callNode = false;
++node;
if (node == 1) {
if (rockets.length > 0) {
HUD.WaqasBox.showInput(50);
}
} else {
if (node == 2) {
HUD.WaqasBox.showEmblem();
} else {
if (node == 3) {
if (form == 'X') {
form = 'A';
} else {
firelight.start();
if (random(2) == 0) {
makeHone();
if (_root.user.data.WaqasUpgrades[1]) {
makeHone();
}
} else {
makeFat();
if (_root.user.data.WaqasUpgrades[2]) {
makeFat();
makeFat();
}
}
form = 'X';
}
myBox.revert = true;
}
}
}
}
if (myBox.revert && node == 3) {
revert();
goBack();
}
} else {
if (stance == 'ULTRA') {
_root.setPhase('FREEZE');
}
}
}
}
}
}
};
HUD.WaqasBox.optDown = function () {
with (Waqas) {
if (node == 1 && stance == 'ATTACK') {
for (var w in rockets) {
rockets[w].go();
}
rockets = new Array();
HUD.WaqasBox.showEmblem();
}
}
};
Waqas.makeFat = function () {
var newRocket = 'waqet' + getNextHighestDepth();
attachMovie('fatWaqet', newRocket, getNextHighestDepth(), {'_x': Waqas._x + 61, '_y': Waqas._y - 45});
if (Waqas.rockets.length > 0) {
_root[newRocket].follow = Waqas.rockets[Waqas.rockets.length - 1];
} else {
_root[newRocket].follow = Waqas;
}
Waqas.rockets.push(_root[newRocket]);
_root[newRocket].onEnterFrame = function () {
with (_root[newRocket]) {
_x += (follow._x - _x) / 20;
_y += (follow._y - 60 - random(10) - _y) / 20;
if (_root.PHASE == 'DONE') {
play();
}
}
};
_root[newRocket].go = function () {
flareA.start();
com.greensock.TweenMax.to(_root[newRocket], 2, {'_x': 2050, 'ease': com.greensock.easing.Strong.easeIn});
_root[newRocket].onEnterFrame = function () {
with (_root[newRocket]) {
for (var i in enemyArray) {
var thisEnemy = enemyArray[i];
if (this._currentframe == 1) {
if (thisEnemy.hitTest(this.hitBox) && thisEnemy !== _root.Boss || Boss.hitbox.hitTest(this.hitBox)) {
if (random(2) == 0) {
boomA.start();
} else {
boomB.start();
}
play();
}
} else {
if (this._currentframe == 2) {
if (thisEnemy.hitTest(this) && thisEnemy !== _root.Boss || Boss.hitbox.hitTest(this)) {
setCombo('Waqas');
PHASE = 'FREEZE';
com.greensock.TweenLite.killTweensOf(this);
com.greensock.TweenLite.delayedCall(0.5, setPhase, ['FOLLOW']);
shakeCam();
damage(Waqas, thisEnemy, 75, 'MID');
setSpeed(Waqas, thisEnemy, 50, 40);
delete this.onEnterFrame;
}
}
}
}
if (this._x > 2000) {
delete this.onEnterFrame;
removeMovieClip(this);
}
if (_root.PHASE == 'DONE') {
play();
}
}
};
};
};
Waqas.makeHone = function () {
var newRocket = 'waqet' + getNextHighestDepth();
attachMovie('honeWaqet', newRocket, getNextHighestDepth(), {'_x': Waqas._x + 61, '_y': Waqas._y - 45});
if (Waqas.rockets.length > 0) {
_root[newRocket].follow = Waqas.rockets[Waqas.rockets.length - 1];
} else {
_root[newRocket].follow = Waqas;
}
Waqas.rockets.push(_root[newRocket]);
_root[newRocket].onEnterFrame = function () {
with (_root[newRocket]) {
_x += (follow._x - _x) / 20;
_y += (follow._y - 50 - _y) / 20;
if (_root.PHASE == 'DONE') {
play();
}
}
};
_root[newRocket].go = function () {
flareB.start();
_root[newRocket].onEnterFrame = function () {
with (_root[newRocket]) {
targRot = Math.atan2(_root.topTarg._y - _y, _root.topTarg._x - _x) * 180 / Math.PI;
_rotation += (targRot - _rotation) / 10;
angle = _rotation * Math.PI / 180;
var speed = 5;
if (_root.user.data.WaqasUpgrades[2]) {
speed = 10;
}
_x += Math.cos(angle) * speed;
_y += Math.sin(angle) * speed;
for (var i in enemyArray) {
var thisEnemy = enemyArray[i];
if (this._currentframe == 1) {
if (thisEnemy.hitTest(this.hitBox) && thisEnemy !== _root.Boss || Boss.hitbox.hitTest(this.hitBox)) {
boomA.start();
play();
setCombo('Waqas');
PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.2, setPhase, ['FOLLOW']);
damage(Waqas, thisEnemy, 50, 'MID');
setSpeed(Waqas, thisEnemy, '20', '10');
delete this.onEnterFrame;
}
}
}
if (_root.PHASE == 'DONE') {
play();
}
}
};
};
};
Waqas.ultra = function () {
with (Waqas) {
com.greensock.TweenLite.killTweensOf(this);
camTarg = this;
gotoAndPlay('ULTRA');
_x = mainTarg._x - 500;
_y = yground;
initBGZ('black');
stance = 'ULTRA';
LeftBound = _x + 250;
BottomBound = yground - 130;
}
};
Waqas.spawnPortrait = function () {
HUD.attachMovie('portraitWaqas', 'portrait', HUD.getNextHighestDepth(), {'_xscale': 66, '_yscale': 66});
};
Waqas.makeWaqet = function (type, locx, locy) {
if (type == undefined) {
var ran = random(3);
if (ran == 0) {
type = 'USA';
flareA.start();
} else {
if (ran == 1) {
flareB.start();
type = 'RUSSIA';
} else {
flareB.start();
type = 'SKULL';
}
}
locx = cam._x - cam._width / 1.5;
locy = cam._y - 250 + random(500);
}
var newWaqet = 'ultraWaqet' + getNextHighestDepth();
attachMovie(type + 'Waqet', newWaqet, getNextHighestDepth(), {'_x': locx, '_y': locy, '_rotation': 90});
_root[newWaqet].yvel = -3 + random(7);
_root[newWaqet].xvel = 12;
_root[newWaqet].onEnterFrame = function () {
with (_root[newWaqet]) {
++xvel;
_x += xvel;
_y += yvel;
for (var i in enemyArray) {
if (enemyArray[i].hitTest(this.hitBox)) {
shakeCam();
damage(Waqas, enemyArray[i], 30, 'MID');
setSpeed(Waqas, enemyArray[i], '20', '10');
play();
if (random(2) == 0) {
boomA.start();
} else {
boomB.start();
}
delete this.onEnterFrame;
}
}
if (_x > cam._x + cam._width / 1.5) {
removeMovieClip(this);
}
}
};
};
Waqas.ultraGo = function () {
bgZ.remove();
initBGZ('Waqas', 'ultraWaqas', 1);
com.greensock.TweenMax.to(Waqas, 3, {'onComplete': gotoPlay, 'onCompleteParams': [Waqas, 'ultraCont']});
var v1 = 0;
while (v1 < 5) {
if (random(2) == 0) {
Waqas.makeHone();
} else {
Waqas.makeFat();
}
++v1;
}
};
Waqas.ultraRevert = function () {
bgZ.remove();
setPhase('FOLLOW');
camTarg = mainTarg;
LeftBound = OrLeftBound;
BottomBound = OrBottomBound;
with (Waqas) {
revert();
goBack();
HUD.WaqasBox.showEmblem();
HUD.ultraBar.updateDisplay();
com.greensock.TweenLite.to(this, 1, {'_x': cam._x - 400, 'ease': Regular.easeInOut});
}
};
Waqas.getHurt = function (damage) {
with (Waqas) {
if (invincible !== true && stance !== 'ULTRA') {
hp -= damage;
tweenRed(myBox);
tweenShake(myBox);
hurtSplat(this, 67);
HUD.WaqasBox.showEmblem();
if (hp > 0) {
stance = 'HURT';
gotoAndPlay('HURT');
updateHP();
com.greensock.TweenMax.to(this, 1, {'_x': '-50', '_y': yground, 'ease': com.greensock.easing.Strong.easeOut});
revert();
} else {
for (var w in rockets) {
rockets[w].go();
}
gotoAndStop('DEAD');
stance = 'DEAD';
PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.5, setPhase, ['FOLLOW']);
myBox.gotoAndStop(2);
myBox.isDead = true;
shakeCam();
com.greensock.TweenMax.to(this, 1, {'_x': '-500', '_y': '-150', 'delay': 0.2, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [this]});
}
}
}
};
}
}
function initStewart() {
attachMovie('StewartMC', 'Stewart', getNextHighestDepth(), {'_x': cam._x - cam._width / 2 - 30, '_y': yground});
Stewart.timer = 0;
Stewart.yvel = -23;
Stewart.prevShot = null;
Stewart.prevNum = 0;
Stewart.shield = 0;
if (user.data.StewartUpgrades[1]) {
Stewart.shield = 2;
}
Stewart.onEnterFrame = function () {
with (Stewart) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
play();
com.greensock.TweenMax.to(this, 2.5, {'_x': cam._x - 50, 'ease': com.greensock.easing.Linear.easeNone});
} else {
if (node == 2) {
HUD.StewartBox.showInput(50);
} else {
if (node == 8) {
myBox.revert = true;
}
}
}
}
++timer;
_y += yvel;
if (_y < _root.yground) {
yvel += 0.6;
} else {
yvel = 0;
}
targRot = Math.atan2(_root._ymouse - _y + aimMC._y, _root._xmouse - _x + aimMC._x) * 180 / Math.PI;
if (targRot > -90 && targRot < 90) {
aimMC._rotation = targRot;
} else {
aimMC._rotation += -aimMC._rotation / 10;
}
if (myBox.revert && node == 8) {
HUD.StewartBox.showEmblem();
revert(1);
com.greensock.TweenMax.to(this, 1, {'_x': cam._x - cam._width, 'ease': Regular.easeOut});
}
} else {
if (stance == 'ULTRA') {
_root.setPhase('FREEZE');
}
}
}
}
};
HUD.StewartBox.optDown = function () {
if (Stewart !== undefined) {
with (Stewart) {
var limit = 5;
if (_root.user.data.StewartUpgrades[2] == true) {
limit = 3;
}
if (node >= 2 && node <= 8 && stance == 'ATTACK' && timer > limit) {
var targRot = aimMC._rotation;
var ran = false;
if (_root.user.data.StewartUpgrades[3] == false && timer < 15) {
targRot += -10 + random(20);
ran = true;
}
aimMC.play();
var angle = targRot * Math.PI / 180;
var gotHit = false;
var hitX;
var hitY;
var startX = _x + aimMC._x;
var startY = _y + aimMC._y;
var cosAng = 40 * Math.cos(angle);
var sinAng = 40 * Math.sin(angle);
var i = 1;
while (i <= 35) {
if (!gotHit) {
hitX = startX + i * cosAng;
hitY = startY + i * sinAng;
var myTrail = 'StewartTrail' + _root.getNextHighestDepth();
_root.attachMovie('StewartTrail', myTrail, _root.getNextHighestDepth(), {'_x': hitX, '_y': hitY, '_rotation': targRot});
if (!ran) {
_root[myTrail].gotoAndStop(2);
}
com.greensock.TweenMax.to(_root[myTrail], 0.5, {'_alpha': 0, 'onComplete': removeMC, 'onCompleteParams': [_root[myTrail]]});
if (hitY > yground + 100 || hitX > cam._x + cam._width / 2) {
i = 36;
break;
}
var k = 0;
while (k < enemyArray.length) {
var myEnemy = enemyArray[k];
if (myEnemy.hitTest(hitX, hitY, false) && myEnemy !== _root.Boss || Boss.hitbox.hitTest(hitX, hitY, false)) {
var mySpark = 'hitSpark' + _root.getNextHighestDepth();
_root.attachMovie('effectHitB', mySpark, _root.getNextHighestDepth(), {'_x': hitX, '_y': hitY});
if (ran) {
com.greensock.TweenMax.to(_root[mySpark], 0, {'colorMatrixFilter': {'hue': 108, 'brightness': 2}});
} else {
com.greensock.TweenMax.to(_root[mySpark], 0, {'colorMatrixFilter': {'hue': 302, 'brightness': 2}});
shakeCam(5, 5);
}
setCombo('Stewart');
damage(this, myEnemy, 20, 'MID');
if (prevShot != myEnemy) {
prevNum = 0;
prevShot = myEnemy;
} else {
if (prevNum < 1) {
++prevNum;
} else {
niceTXT('Chain Shot', 150, 180);
setSpeed(this, myEnemy, 80, 20);
if (myEnemy !== Boss) {
damage(this, myEnemy, 300, 'MID');
var mySparkB = 'hitSpark' + _root.getNextHighestDepth();
_root.attachMovie('effectHitB', mySparkB, _root.getNextHighestDepth(), {'_x': hitX, '_y': hitY});
com.greensock.TweenMax.to(_root[mySparkB], 0, {'colorMatrixFilter': {'hue': 108, 'brightness': 2}});
}
}
}
k = enemyArray.length + 1;
i = 36;
break;
}
++k;
}
}
++i;
}
timer = 0;
}
}
}
};
Stewart.getHurt = function (dmg) {
with (Stewart) {
if (invincible !== true && shield <= 0) {
HUD.StewartBox.showEmblem();
revert(1.2);
gotoAndPlay('HURT');
hurtSplat(this, 313);
tweenRed(myBox);
com.greensock.TweenMax.to(this, 1.2, {'_rotation': -275, '_x': cam._x - cam._width / 1.5, 'ease': com.greensock.easing.Strong.easeIn});
}
}
};
}
function initDan() {
attachMovie('DanMC', 'Dan', getNextHighestDepth(), {'_x': cam._x - cam._width / 2 - 30, '_y': cam._y - 150});
var danTween;
Dan.dmgMod = 1;
if (user.data.DanUpgrades[1]) {
Dan.dmgMod += 0.3;
}
if (user.data.DanUpgrades[2]) {
Dan.dmgMod += 0.2;
}
if (user.data.DanUpgrades[3]) {
Dan.dmgMod += 1.5;
}
Dan.onEnterFrame = function () {
with (Dan) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
play();
var atime = 1.5;
if (_root.user.data.DanUpgrades[2] == true) {
atime = 0.8;
}
danTween = com.greensock.TweenMax.to(this, atime, {'_x': curTarg._x - 50, 'ease': com.greensock.easing.Linear.easeNone});
} else {
if (node == 2) {
_x = curTarg._x - 50;
_y = curTarg._y;
} else {
if (node == 3 || node == 4) {
damage(this, curTarg, 10, 'MID');
setSpeed(this, curTarg, 20, '10');
hitSpark();
} else {
if (node == 5 || node == 6 || node == 9) {
setPhase('FREEZE');
damage(this, curTarg, 20, 'DOWN');
setSpeed(this, curTarg, '10', '0');
hitSpark();
} else {
if (node == 7 || node == 8) {
setPhase('FOLLOW');
damage(this, curTarg, 30, 'UP');
setSpeed(this, curTarg, 20, '10');
hitSpark();
} else {
if (node == 10) {
setPhase('FREEZE');
damage(this, curTarg, 10, 'MID');
setSpeed(this, curTarg, 40, -20);
hitSpark();
} else {
if (node == 11) {
setPhase('FOLLOW');
} else {
if (node == 12) {
myBox.revert = true;
}
}
}
}
}
}
}
}
}
if (node !== 12) {
_y += (curTarg._y - _y) / 3;
}
if (node >= 2 && node <= 11) {
_x += (curTarg._x - 50 - _x) / 2;
}
if (node == 1) {
for (var i in enemyArray) {
if (this.hitTest(enemyArray[i])) {
curTarg = enemyArray[i];
gotoAndPlay('MELEE');
break;
}
}
danTween.updateTo({'_x': myFunc()}, false);
myFunc = function () {
return curTarg._x - 50;
};
}
if (myBox.revert && (node >= 3 && node <= 9 || node == 12)) {
revert(1.1);
com.greensock.TweenMax.to(this, 1.1, {'_x': cam._x - cam._width / 1.5, '_y': yground - 150, 'ease': com.greensock.easing.Strong.easeIn});
}
}
}
}
};
Dan.hitSpark = function () {
with (Dan) {
swordhitC.start();
var mySpark = 'hitSpark' + _root.getNextHighestDepth();
_root.attachMovie('effectSlash', mySpark, _root.getNextHighestDepth(), {'_x': curTarg._x, '_y': curTarg._y, '_xscale': 40, '_yscale': 40, '_rotation': random(360)});
com.greensock.TweenMax.to(_root[mySpark], 0, {'colorMatrixFilter': {'hue': 70, 'brightness': 2}});
}
};
Dan.fireBullet = function () {
with (Dan) {
thudshot.start();
var newBullet = 'danBullet' + _root.getNextHighestDepth();
_root.attachMovie('DanBullet', newBullet, _root.getNextHighestDepth(), {'_x': _x + 80 + random(6), '_y': _y - 20 - random(6)});
_root[newBullet].onEnterFrame = function () {
with (_root[newBullet]) {
for (var i in _root.enemyArray) {
var thisEnemy = _root.enemyArray[i];
if (thisEnemy.hitTest(_x, _y, false) && thisEnemy !== _root.Boss || Boss.hitbox.hitTest(_x, _y, false)) {
_root.damage(_root.Dan, thisEnemy, 10, 'MID');
_root.setSpeed(_root.Dan, thisEnemy, '10', '3');
var mySpark = 'hitSpark' + _root.getNextHighestDepth();
_root.attachMovie('effectHitB', mySpark, _root.getNextHighestDepth(), {'_x': _x, '_y': _y, '_xscale': 30, '_yscale': 30});
com.greensock.TweenMax.to(_root[mySpark], 0, {'colorMatrixFilter': {'hue': 72, 'brightness': 2}});
com.greensock.TweenMax.to(this, 0.5, {'_alpha': 0, 'onComplete': removeMC, 'onCompleteParams': [this]});
if (random(4) == 0) {
_root.setPhase('FREEZE');
com.greensock.TweenLite.delayedCall(0.15, _root.setPhase, ['FOLLOW']);
}
delete this.onEnterFrame;
}
}
if (_x > 2000) {
com.greensock.TweenMax.to(this, 0.5, {'_alpha': 0, 'onComplete': removeMC, 'onCompleteParams': [this]});
delete this.onEnterFrame;
} else {
_x += 30;
_width += 20;
}
}
};
}
};
Dan.getHurt = function (dmg) {
with (Dan) {
if (invincible !== true) {
revert(1);
gotoAndPlay('HURT');
tweenRed(myBox);
com.greensock.TweenMax.to(this, 1, {'_rotation': -275, '_x': cam._x - cam._width / 1.5, 'ease': com.greensock.easing.Strong.easeIn});
}
}
};
}
function initLuke() {
if (Luke == undefined) {
var spawnX = cam._x - cam._width / 2 - 30;
if (PHASE == 'LEAD') {
spawnX = 5;
}
attachMovie('LukeMC', 'Luke', getNextHighestDepth(), {'_x': spawnX, '_y': yground});
Luke.num = 2;
Luke.extraNum = 0;
with (Luke) {
if (num > 0) {
myBox.numTXT.text = num + extraNum;
} else {
myBox.numTXT.text = '';
}
}
Luke.onEnterFrame = function () {
with (Luke) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (_root.tomahawkArray.length > 0) {
var n = 0;
while (n < _root.tomahawkArray.length) {
if (_root.dist > _root.tomahawkArray[n]) {
_root.tomahawkArray.splice(n, 1);
spawnTomahawk(cam._x, cam._y - cam._height, 65 + random(10), true);
break;
}
++n;
}
}
if (stance == 'ATTACK') {
if (node == 0) {
gotoAndPlay('ATTACK');
callNode = true;
}
if (callNode) {
callNode = false;
++node;
if (node == 1) {
play();
HUD.LukeBox.showInput(50);
} else {
if (node == 3) {
myBox.revert = true;
}
}
}
targRot = Math.atan2(_root._ymouse - _y + aimMC._y, _root._xmouse - _x + aimMC._x) * 180 / Math.PI;
if (targRot > -90 && targRot < 20) {
aimMC._rotation = targRot;
} else {
if (targRot > 20) {
aimMC._rotation += (-35 - aimMC._rotation) / 10;
}
}
offArm._rotation += (aimMC._rotation - offArm._rotation) / 10;
if (node !== 3) {
_x += (cam._x - 380 - _x) / 5;
}
if (myBox.revert && node == 3) {
HUD.LukeBox.showEmblem();
num = 2;
revert();
com.greensock.TweenMax.to(this, 1, {'_x': cam._x - cam._width / 1.5, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': goBack});
}
} else {
if (stance == 'ULTRA') {
_root.setPhase('FREEZE');
}
}
}
if (PHASE == 'LEAD') {
if (_root.user.data.LukeUpgrades[1] == false) {
tb._visible = false;
}
}
}
};
Luke.ultra = function () {
HUD.attachMovie('portraitLuke', 'portrait', HUD.getNextHighestDepth(), {'_xscale': 66, '_yscale': 66});
with (Luke) {
com.greensock.TweenLite.killTweensOf(this);
camTarg = this;
gotoAndPlay('ULTRA');
_x = mainTarg._x - 500;
_y = yground;
initBGZ('black');
stance = 'ULTRA';
LeftBound = _x + 250;
BottomBound = yground - 130;
}
};
Luke.ultraGo = function () {
bgZ.remove();
initBGZ('Luke', 'ultraLuke', 1);
var v1 = 0;
while (v1 < 7) {
Luke.randomHawk();
++v1;
}
};
Luke.ultraRevert = function () {
bgZ.remove();
setPhase('FOLLOW');
camTarg = mainTarg;
LeftBound = OrLeftBound;
BottomBound = OrBottomBound;
with (Luke) {
revert();
goBack();
HUD.LukeBox.showEmblem();
HUD.ultraBar.updateDisplay();
com.greensock.TweenMax.to(this, 1, {'_x': cam._x - cam._width / 1.5, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': goBack});
}
};
Luke.randomHawk = function () {
var v2 = _root.dist + random(_root.endDist - _root.dist);
tomahawkArray.push(v2);
};
Luke.leadFunc = function () {
with (Luke) {
if (_currentframe == 1) {
randomHawk();
if (_root.user.data.LukeUpgrades[1] == true) {
randomHawk();
}
}
play();
}
};
Luke.endLeadFunc = function () {
with (Luke) {
stance = 'REST';
removeFromArray('Luke', leadArray);
com.greensock.TweenMax.delayedCall(2, goBack);
}
};
HUD.LukeBox.optDown = function () {
if (Luke !== undefined) {
with (Luke) {
if (node == 2 && stance == 'ATTACK') {
if (extraNum > 0) {
--extraNum;
aimMC.play();
spawnTomahawk(_x + 12.5, _y - 16.5, aimMC._rotation);
} else {
if (num > 0) {
--num;
aimMC.play();
spawnTomahawk(_x + 12.5, _y - 16.5, aimMC._rotation);
}
}
myBox.numTXT.text = num + extraNum;
if (num == 2) {
myBox.tkB._visible = false;
} else {
if (num == 1) {
myBox.tkA._visible = false;
} else {
if (num == 0) {
myBox.numTXT.text = '';
play();
node = 3;
}
}
}
}
}
}
};
Luke.spawnTomahawk = function (spawnX, spawnY, rot, isSpawk) {
var newThawk = 'lukeTomahawk' + getNextHighestDepth();
attachMovie('tomahawk', newThawk, getNextHighestDepth(), {'_x': spawnX, '_y': spawnY, '_xscale': 150, '_yscale': 150, '_rotation': random(360)});
_root[newThawk].xvel = Math.cos(rot * Math.PI / 180) * 30;
_root[newThawk].isSpawk = isSpawk;
_root[newThawk].yvel = Math.sin(rot * Math.PI / 180) * 50;
_root[newThawk].onEnterFrame = function () {
with (_root[newThawk]) {
yvel += 1.8;
_x += xvel;
_y += yvel;
_rotation += 40;
var myTrail = 'LukeTrail' + _root.getNextHighestDepth();
_root.attachMovie('tomahawk', myTrail, _root.getNextHighestDepth(), {'_x': _x, '_y': _y, '_rotation': _rotation, '_alpha': 80});
com.greensock.TweenMax.to(_root[myTrail], 1.5, {'_alpha': 0, 'onComplete': removeMC, 'onCompleteParams': [_root[myTrail]]});
var k = 0;
while (k < enemyArray.length) {
var myEnemy = enemyArray[k];
if (myEnemy.hitTest(_x, _y, false) && myEnemy !== _root.Boss || _root.Boss.hitbox.hitTest(_x, _y, false)) {
swordhitB.start();
horizon.start();
metalhit.start();
var mySpark = 'hitSpark' + _root.getNextHighestDepth();
_root.attachMovie('effectHitB', mySpark, _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
com.greensock.TweenMax.to(_root[mySpark], 0, {'colorMatrixFilter': {'hue': 72, 'brightness': 2}});
setCombo('Luke');
setSpeed(this, myEnemy, 80, 30);
_root.setPhase('FREEZE');
com.greensock.TweenLite.delayedCall(0.5, _root.setPhase, ['FOLLOW']);
com.greensock.TweenLite.delayedCall(0.5, _root.removeMC, [this]);
if (myEnemy !== Boss) {
damage(_root.Luke, myEnemy, 180, 'MID');
} else {
damage(_root.Luke, myEnemy, 100, 'MID');
}
var dmg = 100;
if (Luke.dmgMod !== undefined) {
dmg *= Luke.dmgMod;
}
if (myEnemy.hp <= 0 && myEnemy.hp > -dmg && myEnemy.hp !== undefined && _root.user.data.LukeUpgrades[2] == true) {
++Luke.extraNum;
Luke.myBox.numTXT.text = Luke.num + Luke.extraNum;
}
if (isSpawk == true) {
niceTXT('Spawnahawk', 500, 19);
var hitMC = 'spawkHit' + _root.getNextHighestDepth();
_root.attachMovie('SpawkHit', hitMC, _root.getNextHighestDepth(), {'_x': myEnemy._x, '_y': myEnemy._y - 100});
com.greensock.TweenMax.to(_root[hitMC], 0.5, {'_y': '-100', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(_root[hitMC], 1, {'delay': 1, '_alpha': 0, 'onComplete': removeMC, 'onCompleteParams': [_root[hitMC]]});
shakeCam();
var myHit = 'critSplat' + _root.getNextHighestDepth();
_root.attachMovie('effectCrit', myHit, _root.getNextHighestDepth(), {'_xscale': 180, '_yscale': 180, '_x': targ._x, '_y': targ._y, '_rotation': random(360)});
}
delete this.onEnterFrame;
break;
}
++k;
}
if (_y > yground + 50 || _root.PHASE == 'DONE') {
removeMovieClip(this);
}
}
};
};
Luke.goBack = function () {
with (Luke) {
if (stance !== 'ATTACK') {
myBox.tkB._visible = true;
myBox.tkA._visible = myBox.tkB._visible;
myBox.numTXT.text = num + extraNum;
num = 2;
node = 0;
callNode = false;
gotoAndStop('REST');
stance = 'REST';
}
}
};
Luke.getHurt = function (dmg) {
with (Luke) {
if (invincible !== true && stance !== 'ULTRA') {
HUD.LukeBox.showEmblem();
num = 2;
revert();
hurtSplat(this, 58);
gotoAndPlay('HURT');
tweenRed(myBox);
com.greensock.TweenMax.to(this, 1.2, {'_x': cam._x - cam._width / 1.5, 'ease': com.greensock.easing.Strong.easeIn});
}
}
};
}
}
function initMichael() {
attachMovie('MichaelMC', 'Michael', getNextHighestDepth(), {'_x': cam._x - cam._width / 2 - 70, '_y': cam._y});
var MichaelTween;
Michael.isUltra = false;
Michael.onEnterFrame = function () {
with (Michael) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (curTarg == undefined) {
curTarg = mainTarg;
}
if (myBox._currentframe == 2) {
stance = 'ATTACKB';
gotoAndPlay('ATTACKB');
callNode = true;
node = 0;
} else {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
play();
MichaelTween = com.greensock.TweenMax.to(this, 1, {'_x': curTarg._x - 400});
} else {
if (node == 2) {
PHASE = 'FREEZE';
var newLine = 'michael' + _root.getNextHighestDepth();
_root.attachMovie('MichaelLine', newLine, _root.getNextHighestDepth(), {'_x': _x, '_y': _y - 20});
_root[newLine].timer = 60;
if (_root.user.data.MichaelUpgrades[1] == true) {
_root[newLine].timer += 60;
}
_root[newLine].onEnterFrame = function () {
with (_root[newLine]) {
if (_root.Hero.hitTest(this) && _root.Hero.yspeed > 0) {
_root.Hero._y = _y - 35;
_root.Hero.yspeed = 0;
_root.Hero.lockCombo = false;
_root.Hero.canCombo = _root.Hero.lockCombo;
if (_root.Hero.stance !== 'DEAD') {
_root.Hero.stance = 'RUN';
_root.Hero.gotoAndStop('RUN');
}
}
k = 0;
while (k < _root.enemyArray.length) {
var myEnemy = _root.enemyArray[k];
if (myEnemy.hitTest(this)) {
if (myEnemy == _root.BigBlue) {
if (_root.BigBlue._y > _y && _root.yspeed > 0) {
_root.yspeed = -_root.yspeed;
} else {
if (_root.BigBlue._y < _y + 30 && _root.yspeed < 0) {
if (_root.user.data.MichaelUpgrades[2] == true) {
_root.yspeed = -_root.yspeed * 1;
} else {
_root.yspeed = -_root.yspeed * 0.8;
}
}
}
} else {
if (myEnemy !== _root.Boss) {
if (myEnemy._y > _y && myEnemy.yspeed > 0) {
myEnemy.yspeed = -myEnemy.yspeed;
} else {
if (myEnemy._y < _y + 30 && myEnemy.yspeed < 0) {
myEnemy.yspeed = -myEnemy.yspeed * 0.8;
}
}
}
}
}
++k;
}
--timer;
if (timer < 0) {
gotoAndPlay('die');
delete this.onEnterFrame;
}
}
};
} else {
if (node == 3) {
PHASE = 'FOLLOW';
} else {
if (node == 4) {
myBox.revert = true;
}
}
}
}
}
}
_y += (cam._y - _y) / 6;
if (node == 1) {
MichaelTween.updateTo({'_x': myFunc()}, false);
myFunc = function () {
return curTarg._x - 400;
};
}
if (myBox.revert && node == 4) {
revert(0.4);
com.greensock.TweenMax.to(this, 0.4, {'_x': cam._x - cam._width / 1.5, 'ease': com.greensock.easing.Strong.easeIn});
}
} else {
if (stance == 'ULTRA') {
_root.setPhase('FREEZE');
play();
} else {
if (stance == 'ATTACKB') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
_y = yground;
if (curTarg !== _root.Boss) {
_x = curTarg._x - 400;
}
} else {
if (node == 2) {
hitFunc(50);
setPhase('FREEZE');
} else {
if (node == 3) {
setPhase('FOLLOW');
} else {
if (node == 4) {
hitFunc(60);
setPhase('FREEZE');
} else {
if (node == 5) {
setPhase('FOLLOW');
} else {
if (node == 6) {
hitFunc(70);
setPhase('FREEZE');
} else {
if (node == 7) {
setPhase('FOLLOW');
} else {
if (node == 10) {
if (curTarg !== _root.Boss) {
_x = curTarg._x - 80;
}
hitFunc(100);
setPhase('FREEZE');
} else {
if (node == 11) {
setPhase('FOLLOW');
} else {
if (node == 12) {
myBox.revert = true;
}
}
}
}
}
}
}
}
}
}
}
if (curTarg !== _root.Boss) {
curTarg._y = yground - 1;
} else {
if (node !== 12) {
_y = curTarg._y;
}
}
if (node >= 7 && node < 10) {
_x += (curTarg._x - 100 - _x) / 4;
} else {
if (node < 7) {
_x += (curTarg._x - 400 - _x) / 2;
}
}
if (myBox.revert && node == 12) {
revert(0.8);
_y = yground;
com.greensock.TweenMax.to(this, 0.8, {'_x': cam._x - cam._width / 1.5, 'ease': com.greensock.easing.Strong.easeIn});
if (isUltra) {
ultraRevert();
}
}
}
}
}
}
}
};
Michael.hitFunc = function (dmg) {
with (Michael) {
for (var i in _root.enemyArray) {
var myEnemy = _root.enemyArray[i];
if (hitBox.hitTest(myEnemy)) {
_root.damage(this, myEnemy, dmg, 'MID');
_root.setSpeed(this, myEnemy, 50, -70);
_root.setCombo('Michael');
var mySpark = 'hitSpark' + _root.getNextHighestDepth();
_root.attachMovie('effectSlash', mySpark, _root.getNextHighestDepth(), {'_x': myEnemy._x, '_y': myEnemy._y, '_rotation': random(360)});
com.greensock.TweenMax.to(_root[mySpark], 0, {'colorMatrixFilter': {'hue': 219, 'brightness': 2}});
}
}
}
};
Michael.ultra = function () {
HUD.attachMovie('portraitMichael', 'portrait', HUD.getNextHighestDepth(), {'_x': 50, '_xscale': 66, '_yscale': 66});
with (Michael) {
isUltra = true;
com.greensock.TweenLite.killTweensOf(this);
camTarg = this;
if (_root.user.data.currentLevel !== 21) {
cam._yscale = 100;
cam._xscale = 100;
}
gotoAndPlay('ULTRA');
curTarg = topTarg;
_x = topTarg._x - 400;
_y = yground;
initBGZ('black');
stance = 'ULTRA';
}
LeftBound = Michael._x + 180;
BottomBound = yground - 50;
};
Michael.ultraGo = function () {
if (_root.user.data.currentLevel !== 21) {
cam._yscale = 150;
cam._xscale = 150;
}
bgZ.remove();
initBGZ('Michael', null, 1);
_root.setPhase('FOLLOW');
LeftBound = OrLeftBound;
Michael.stance = 'ATTACKB';
};
Michael.ultraRevert = function () {
bgZ.remove();
camTarg = mainTarg;
HUD.ultraBar.updateDisplay();
BottomBound = OrBottomBound;
with (Michael) {
isUltra = false;
myBox.gotoAndStop(2);
myBox.regenRate = 0.82;
myBox.degenRate = 2.42;
myBox.minRegen = 100;
}
};
}
function initBriStick() {
attachMovie('BriStickMC', 'BriStick', getNextHighestDepth(), {'_x': cam._x - cam._width / 2 - 70, '_y': yground});
BriStick.alreadyRay = new Array();
BriStick.onEnterFrame = function () {
with (BriStick) {
if (PHASE == 'FOLLOW') {
if (_root.user.data.BriStickUpgrades[2] == true) {
_x += 23;
} else {
_x += 15;
}
for (var i in enemyArray) {
var myEnemy = enemyArray[i];
if (myEnemy !== _root.BigBlue && myEnemy !== _root.Boss) {
var didit = false;
for (var k in alreadyRay) {
if (myEnemy == alreadyRay[k]) {
didit = true;
}
}
if (this.hitTest(myEnemy) && !didit) {
smashpow.start();
if (random(2) == 0) {
hardhit.start();
} else {
smashhit.start();
}
gotoAndPlay('punch');
alreadyRay.push(myEnemy);
setSpeed(this, myEnemy, '20', 40);
damage(this, myEnemy, 0, 'MID');
if (_root.user.data.BriStickUpgrades[1] == true) {
damage(this, myEnemy, 25, 'MID');
}
if (_root.user.data.BriStickUpgrades[3] == true) {
myEnemy.setStun(1);
shakeCam(5, 5);
}
var mySpark = 'hitSpark' + _root.getNextHighestDepth();
_root.attachMovie('effectHitB', mySpark, _root.getNextHighestDepth(), {'_x': myEnemy._x, '_y': myEnemy._y, '_rotation': random(360)});
com.greensock.TweenMax.to(_root[mySpark], 0, {'colorMatrixFilter': {'hue': 293, 'brightness': 2}});
}
}
}
if (_x > 2000) {
revert();
removeMovieClip(this);
}
}
}
};
}
function initKirby() {
attachMovie('KirbyMC', 'Kirby', getNextHighestDepth(), {'_x': cam._x - cam._width / 2 - 70, '_y': cam._y});
Kirby.xvel = 0;
Kirby.yvel = 0;
Kirby.hoster;
Kirby.onEnterFrame = function () {
with (Kirby) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
_x += (curTarg._x - 100 - _x) / 6;
_y += (curTarg._y - _y) / 4;
} else {
if (stance == 'COBALT') {
for (var i in enemyArray) {
var myEnemy = enemyArray[i];
if (this.hitTest(myEnemy._x, myEnemy._y, false) && timer == 0) {
timer = 33;
damage(Kirby, myEnemy, 5, 'MID');
setSpeed(Kirby, myEnemy, '10', '10');
setCombo('Kirby');
MC.gotoAndPlay('ATTACK');
}
}
if (timer > 0) {
--timer;
}
_y += yvel;
_x += (cam._x - 150 - _x) / 5;
if (_y < yground) {
yvel += _root.gravity;
} else {
_y = yground;
yvel = 0;
}
} else {
if (stance == 'DRAB') {
while (_y > yground) {
--_y;
}
_x += xvel;
_y += yvel;
if (yvel > 10) {
yvel = 10;
} else {
if (yvel < -10) {
yvel = -10;
}
}
yvel += 0.3;
if (xvel < 5 && cam._x - 300 + Math.random() * 170 > this._x) {
xvel += 0.1;
} else {
if (xvel > -5 && cam._x - 300 + Math.random() * 170 < this._x) {
xvel -= 0.2;
}
}
if (cam._y - 100 < this._y) {
yvel -= 0.6;
} else {
if (cam._y - 100 > this._y) {
yvel += 0.2;
}
}
if (_y >= yground) {
yvel = -1;
}
if (timer >= 30) {
for (var i in enemyArray) {
var myEnemy = enemyArray[i];
if (myEnemy._y > _y - 100 && myEnemy._y < _y + 100) {
MC.gotoAndPlay('ATTACK');
}
}
timer = 0;
} else {
++timer;
}
if (MC._currentframe >= 25 && MC._currentframe <= 33) {
var myBullet = 'kbullet' + _root.getNextHighestDepth();
_root.attachMovie('dBullet', myBullet, _root.getNextHighestDepth(), {'_x': _x + 40, '_y': _y - 30});
_root[myBullet].xspeed = 10 * Math.random() + 20;
_root[myBullet].yspeed = -2 * Math.random() + 1;
_root[myBullet].onEnterFrame = function () {
with (_root[myBullet]) {
this._rotation += this.yspeed * 10;
this._x += this.xspeed;
this._y += this.yspeed;
if (_x > _root.cam._x + _root.cam._width / 2) {
removeMovieClip(this);
}
for (var i in _root.enemyArray) {
var myTarg = _root.enemyArray[i];
if (myTarg.hitTest(this._x, this._y, true)) {
_root.damage(_root.Kirby, myTarg, 10, 'MID');
_root.setSpeed(_root.Kirby, myTarg, '3', '0');
this.gotoAndPlay('HIT');
_root.PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.2, _root.setPhase, ['FOLLOW']);
delete onEnterFrame;
}
}
}
};
}
} else {
if (stance == 'BLUE') {
while (_y > yground) {
--_y;
}
_x += this.xvel;
_y += this.yvel;
if (xvel < 2.5 && cam._x - 300 + Math.random() * 170 > this._x) {
xvel += 0.5;
} else {
if (xvel > -2.5 && cam._x - 300 + Math.random() * 170 < this._x) {
xvel -= 0.5;
}
}
if (_y < yground) {
yvel += _root.gravity;
} else {
if (JMC._currentframe == 43) {
gotoAndStop('BRUN');
}
_y = yground;
yvel = 0;
}
if (timer >= 90 && _currentframe == 40) {
gotoAndStop('BJUMP');
JMC.gotoAndPlay(1);
yvel = -25;
timer = 0;
} else {
++timer;
}
} else {
if (stance == 'MAGE') {
if (_root[hoster] !== undefined) {
_x += (_root[hoster]._x - 125 - _x) / 5;
_y += (_root[hoster]._y - 142 - _y) / 5;
_root[hoster].invincible = true;
if (_root[hoster].kirbShield == undefined) {
_root[hoster].attachMovie('blueProt', 'kirbShield', _root[hoster].getNextHighestDepth(), {'_rotation': -40});
com.greensock.TweenMax.to(_root[hoster].kirbShield, 0, {'tint': 16711680});
}
}
}
}
}
}
}
if (myBox.revert == true && stance !== null) {
if (_root[hoster].kirbShield !== undefined) {
removeMovieClip(_root[hoster].kirbShield);
_root[hoster].invincible = false;
}
myBox.gotoAndStop(1);
gotoAndStop('STAND');
revert(0.5);
com.greensock.TweenMax.to(this, 0.5, {'_x': cam._x - cam._width / 1.5, 'ease': com.greensock.easing.Strong.easeIn});
}
}
}
};
Kirby.absorb = function () {
with (Kirby) {
hoster = HUD.KirbyBox.hoster;
if (_root.user.data.KirbyUpgrades[3] == true) {
if (_root[hoster].hp !== undefined && curTarg.hp !== undefined) {
_root[hoster].hp += curTarg.hp;
if (_root[hoster].hp > _root[hoster].thp) {
_root[hoster].hp = _root[hoster].thp;
}
}
}
if (curTarg.enemyType == 'Cobalt') {
suction.start();
myBox.gotoAndStop('COBALT');
stance = 'COBALT';
gotoAndStop('COBALT');
} else {
if (curTarg.enemyType == 'Blue') {
suction.start();
myBox.gotoAndStop('BLUE');
stance = 'BLUE';
gotoAndStop('BRUN');
if (_root.user.data.KirbyUpgrades[1] == true) {
damage(this, curTarg, curTarg.hp, 'DOWN');
}
} else {
if (curTarg.enemyType == 'Drab') {
suction.start();
myBox.gotoAndStop('DRAB');
stance = 'DRAB';
gotoAndStop('DRAB');
} else {
if (curTarg.enemyType == 'Mage') {
suction.start();
myBox.gotoAndStop('MAGE');
stance = 'MAGE';
gotoAndStop('MAGE');
} else {
myBox.revert = true;
}
}
}
}
}
};
Kirby.getHurt = function (dmg) {
with (Kirby) {
if (invincible !== true && stance !== 'COBALT' && stance !== 'REVERT') {
if (_root[hoster].kirbShield !== undefined) {
removeMovieClip(_root[hoster].kirbShield);
_root[hoster].invincible = false;
}
myBox.gotoAndStop(1);
revert(0.8);
gotoAndPlay('HURT');
tweenRed(myBox);
com.greensock.TweenMax.to(this, 0.8, {'_x': cam._x - cam._width / 1.5, 'ease': com.greensock.easing.Strong.easeIn});
hurtSplat(this, 58);
}
}
};
}
function initJorge() {
attachMovie('JorgeMC', 'Jorge', getNextHighestDepth(), {'_x': cam._x + 200, '_y': yground});
if (HUD.JorgeBox.bigMod == undefined) {
HUD.JorgeBox.bigMod = 0.9;
}
var powCap = 2;
if (user.data.JorgeUpgrades[1] == true) {
powCap = 3;
}
if (HUD.JorgeBox.bigMod < powCap) {
HUD.JorgeBox.bigMod += 0.1;
if (HUD.JorgeBox.bigMod > 2.9) {
niceTXT('Hit 300% POW', 1000, 301);
}
}
if (user.data.JorgeUpgrades[3] == true) {
if (HUD.JorgeBox.bigMod == 2 || HUD.JorgeBox.bigMod == 3) {
addUltra(100);
}
}
Jorge.dmgMod = HUD.JorgeBox.bigMod;
Jorge.powMod = Jorge.dmgMod;
HUD.JorgeBox.modTXT.text = 'POWx' + HUD.JorgeBox.bigMod;
Jorge.onEnterFrame = function () {
with (Jorge) {
if (PHASE == 'FOLLOW' || PHASE == 'FREEZE') {
if (stance == 'ATTACK') {
if (callNode) {
callNode = false;
++node;
if (node == 1) {
play();
} else {
if (node == 2) {
} else {
if (node == 3) {
setCombo('Jorge');
damage(this, curTarg, 10, 'DOWN');
setSpeed(this, curTarg, 14, -14);
hitSplat();
} else {
if (node == 4) {
PHASE = 'FREEZE';
damage(this, curTarg, 10, 'DOWN');
setSpeed(this, curTarg, '5', '-10');
hitSplat();
} else {
if (node == 5) {
PHASE = 'FOLLOW';
} else {
if (node == 6) {
damage(this, curTarg, 10, 'DOWN');
setSpeed(this, curTarg, 10, -10);
hitSplat();
} else {
if (node == 7) {
} else {
if (node == 8) {
damage(this, curTarg, 10, 'UP');
setSpeed(this, curTarg, '20', '15');
hitSplat();
} else {
if (node == 9) {
} else {
if (node == 10) {
PHASE = 'FREEZE';
damage(this, curTarg, 10, 'UP');
setSpeed(this, curTarg, 20, 15);
hitSplat();
} else {
if (node == 11) {
PHASE = 'FOLLOW';
myBox.revert = true;
hitSplat();
}
}
}
}
}
}
}
}
}
}
}
}
if (node >= 2 && node <= 10) {
_x += (curTarg._x - _x) / 2;
_y += (curTarg._y - _y) / 3;
}
if (myBox.revert && (node == 5 || node == 7 || node == 9 || node == 11)) {
PHASE = 'FOLLOW';
_y = yground;
revert(1.1);
gotoAndPlay('END');
com.greensock.TweenMax.to(this, 0.8, {'_x': cam._x + 120 + cam._width / 2, 'delay': 0.3, 'ease': com.greensock.easing.Strong.easeOut});
}
}
}
}
};
Jorge.hitSplat = function () {
with (Jorge) {
var mySpark = 'hitSpark' + getNextHighestDepth();
attachMovie('effectHitB', mySpark, getNextHighestDepth(), {'_x': targ._x, '_y': targ._y, '_xscale': 60, '_yscale': 60, '_rotation': random(360)});
com.greensock.TweenMax.to(_root[mySpark], 0, {'colorMatrixFilter': {'hue': 286, 'brightness': 2}});
}
};
Jorge.getHurt = function () {
with (Jorge) {
if (invincible !== true) {
tweenRed(myBox);
PHASE = 'FOLLOW';
revert(1);
hurtSplat(this, 209);
gotoAndPlay('HURT');
com.greensock.TweenMax.to(this, 0.2, {'_y': '-70', '_x': '-100', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 0.8, {'_x': cam._x - cam._width / 1.5, 'delay': 0.2, 'ease': com.greensock.easing.Strong.easeIn});
}
}
};
}
function initArrangeBoosts(targ, targBox, addUpgrade) {
var targMC = _root[targ];
var numBoosts = 0;
if (!addUpgrade) {
var k = 0;
while (k < 8) {
removeMovieClip(targBox['boost' + k]);
++k;
}
}
var p = 0;
while (p < teamArray.length) {
if (user.data.HangUpgrades[2] == true) {
if (teamArray[p] == 'Hang') {
if (targ == 'Tucker' || targ == 'Corey' || targ == 'JK' || targ == 'Josh' || targ == 'Waqas') {
if (teamArray[p - 1] == targ || teamArray[p + 1] == targ) {
if (!addUpgrade) {
targBox.attachMovie('teamBoostMC', 'boost' + numBoosts, targBox.getNextHighestDepth());
targBox['boost' + numBoosts].gotoAndStop('Hang');
++numBoosts;
}
} else {
if (teamArray[p] == targ) {
Hang.slushA = teamArray[p - 1];
Hang.slushB = teamArray[p + 1];
}
}
}
}
}
if (user.data.AddisonUpgrades[2]) {
if (teamArray[p] == 'Addison') {
if ((teamArray[p - 1] == targ || teamArray[p + 1] == targ) && hasUltra(targ)) {
if (addUpgrade) {
if (targBox.ultraAmt > 1 && targBox.initDone == false) {
--targBox.ultraAmt;
targBox.initDone = true;
}
} else {
targBox.attachMovie('teamBoostMC', 'boost' + numBoosts, targBox.getNextHighestDepth());
targBox['boost' + numBoosts].gotoAndStop('addison');
++numBoosts;
}
}
}
}
if (teamArray[p] == 'Corey') {
if (targ !== 'Kyle' && targ !== 'Khanh' && targ !== 'Michael' && targ !== 'BriStick' && targ !== 'Brian') {
if (teamArray[p - 1] == targ) {
if (addUpgrade) {
Corey.slushA = targ;
} else {
targBox.attachMovie('teamBoostMC', 'boost' + numBoosts, targBox.getNextHighestDepth());
targBox['boost' + numBoosts].gotoAndStop('Corey');
++numBoosts;
}
}
}
}
if (teamArray[p] == 'Kirby') {
if (teamArray[p - 1] == targ) {
if (addUpgrade) {
HUD.KirbyBox.hoster = targ;
} else {
targBox.attachMovie('teamBoostMC', 'boost' + numBoosts, targBox.getNextHighestDepth());
targBox['boost' + numBoosts].gotoAndStop('Kirby');
++numBoosts;
}
}
}
if (user.data.EricUpgrades[1]) {
if (teamArray[p] == 'Eric') {
if (targ == 'Wes' || targ == 'JK' || targ == 'Eric' || targ == 'Josh' || targ == 'Addison' || targ == 'Stewart' || targ == 'Dan' || targ == 'Luke') {
if (addUpgrade) {
if (targMC.dmgMod == undefined) {
targMC.dmgMod = 1;
}
targMC.dmgMod += 0.1;
} else {
targBox.attachMovie('teamBoostMC', 'boost' + numBoosts, targBox.getNextHighestDepth());
targBox['boost' + numBoosts].gotoAndStop('eric');
++numBoosts;
}
}
}
}
if (user.data.JorgeUpgrades[2]) {
if (teamArray[p] == 'Jorge') {
if (targ == 'Pedro' || targ == 'Brian' || targ == 'Hang' || targ == 'Khanh' || targ == 'Sagar' || targ == 'Thomas' || targ == 'Marc' || targ == 'Matt' || targ == 'James' || targ == 'Sean' || targ == 'BriStick' || targ == 'Jorge') {
if (addUpgrade) {
if (targMC.dmgMod == undefined) {
targMC.dmgMod = 1;
}
targMC.dmgMod += 0.1;
} else {
targBox.attachMovie('teamBoostMC', 'boost' + numBoosts, targBox.getNextHighestDepth());
targBox['boost' + numBoosts].gotoAndStop('Jorge');
++numBoosts;
}
}
}
}
if (teamArray[p] == 'James' && checkActive(targ)) {
if (user.data.JamesUpgrades[1] == true) {
if (teamArray[p - 1] == targ) {
if (addUpgrade) {
targBox.regenRate = targBox.baseRate * 1.15;
} else {
targBox.attachMovie('teamBoostMC', 'boost' + numBoosts, targBox.getNextHighestDepth());
targBox['boost' + numBoosts].gotoAndStop('JamesRecharge');
++numBoosts;
}
}
}
if (user.data.JamesUpgrades[2] == false) {
if ((teamArray[p - 1] == targ || teamArray[p + 1] == targ) && checkActive(targ)) {
if (!addUpgrade) {
targBox.attachMovie('teamBoostMC', 'boost' + numBoosts, targBox.getNextHighestDepth());
targBox['boost' + numBoosts].gotoAndStop('James');
++numBoosts;
}
} else {
if (teamArray[p] == targ) {
James.slushA = teamArray[p - 1];
James.slushB = teamArray[p + 1];
}
}
} else {
if (checkActive(targ)) {
if (!addUpgrade && teamArray[p] !== targ) {
targBox.attachMovie('teamBoostMC', 'boost' + numBoosts, targBox.getNextHighestDepth());
targBox['boost' + numBoosts].gotoAndStop('James');
++numBoosts;
}
}
}
}
if (user.data.SeanUpgrades[2] == true && checkActive(targ)) {
if (teamArray[p] == 'Sean') {
if (teamArray[p - 1] == targ) {
if (addUpgrade) {
_root.attachMovie('bluePortal', 'bluePortB', _root.getNextHighestDepth(), {'_x': targMC._x + 80, '_y': targMC._y, '_rotation': 270, '_xscale': 0});
com.greensock.TweenMax.to(_root.bluePortB, 0.5, {'_xscale': 100, 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenMax.to(_root.bluePortB, 0.3, {'_xscale': 0, 'ease': com.greensock.easing.Strong.easeOut, 'delay': 0.5, 'onComplete': removeMC, 'onCompleteParams': [_root.bluePortB]});
if (curTarg !== _root.Boss) {
_root.bluePort.swapDepths(targMC);
}
targMC._x = targMC.curTarg._x - 250;
var newY = targMC.curTarg._y;
if (targ !== 'Luke' && targ !== 'Waqas' && targ !== 'Omar' && targ !== 'BriStick' && targ !== 'Hang') {
targMC._y = targMC.curTarg._y;
} else {
newY = targMC._y;
}
_root.attachMovie('orangePortal', 'orangePortB', _root.getNextHighestDepth(), {'_x': targMC.curTarg._x - 250, '_y': newY, '_rotation': 90, '_xscale': 0});
com.greensock.TweenMax.to(_root.orangePortB, 0.5, {'_xscale': 100, 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenMax.to(_root.orangePortB, 0.3, {'_xscale': 0, 'ease': com.greensock.easing.Strong.easeOut, 'delay': 0.5, 'onComplete': removeMC, 'onCompleteParams': [_root.orangePortB]});
targMC.attachEE('SeanEEffect');
} else {
targBox.attachMovie('teamBoostMC', 'boost' + numBoosts, targBox.getNextHighestDepth());
targBox['boost' + numBoosts].gotoAndStop('Sean');
++numBoosts;
}
}
}
}
if (user.data.JoshUpgrades[2] == true) {
if (teamArray[p] == 'Josh') {
if (teamArray[p + 1] == targ) {
if (addUpgrade) {
targMC.attachMovie('JoshC4', 'kamikazePack', targMC.getNextHighestDepth(), {'_rotation': random(360)});
targMC.kamikazePack.par = targMC;
targMC.kamikazePack.onEnterFrame = function () {
with (targMC.kamikazePack) {
for (var k in enemyArray) {
if (enemyArray[k].hitTest(this) && enemyArray[k] !== _root.Boss || _root.Boss.hitbox.hitTest(this)) {
this.par.getHurt(25);
damage(Josh, enemyArray[k], 70, 'MID');
setSpeed(Josh, enemyArray[k], 40, 25);
setCombo('Josh');
jsplode(enemyArray[k]);
removeMovieClip(this);
}
}
}
};
} else {
targBox.attachMovie('teamBoostMC', 'boost' + numBoosts, targBox.getNextHighestDepth());
targBox['boost' + numBoosts].gotoAndStop('Josh');
++numBoosts;
}
}
}
}
if (teamArray[p] == 'Brian') {
if (targ !== 'Corey' && targ !== 'Luke') {
if (teamArray[p - 1] == targ || teamArray[p + 1] == targ) {
if (addUpgrade) {
if (teamArray[p - 1] == targ) {
Brian.slushA = targ;
}
if (teamArray[p + 1] == targ && user.data.BrianUpgrades[3] == true) {
HUD.BrianBox.slushB = targ;
}
} else {
if (teamArray[p - 1] == targ || teamArray[p + 1] == targ && user.data.BrianUpgrades[3]) {
targBox.attachMovie('teamBoostMC', 'boost' + numBoosts, targBox.getNextHighestDepth());
targBox['boost' + numBoosts].gotoAndStop('Brian');
++numBoosts;
}
}
}
}
}
if (user.data.KhanhUpgrades[2]) {
if (teamArray[p] == 'Khanh') {
if (teamArray[p - 1] == targ || teamArray[p + 1] == targ) {
if (addUpgrade) {
if (targMC.powMod == undefined) {
targMC.powMod = 1;
}
if (targMC.dmgMod == undefined) {
targMC.dmgMod = 1;
}
targMC.powMod += 0.1;
targMC.dmgMod += 0.1;
} else {
targBox.attachMovie('teamBoostMC', 'boost' + numBoosts, targBox.getNextHighestDepth());
targBox['boost' + numBoosts].gotoAndStop('KhanhWing');
++numBoosts;
}
}
}
}
if (user.data.ThomasUpgrades[2]) {
if (teamArray[p] == 'Thomas') {
if (teamArray[p + 1] == targ) {
if (addUpgrade) {
if (targMC.fistsOFury == undefined) {
targMC.fistsOFury = true;
}
} else {
targBox.attachMovie('teamBoostMC', 'boost' + numBoosts, targBox.getNextHighestDepth());
targBox['boost' + numBoosts].gotoAndStop('Thomas');
++numBoosts;
}
}
}
}
++p;
}
var i = 0;
while (i < numBoosts) {
targBox['boost' + i]._y = 24;
targBox['boost' + i]._x = 24 - i * (48 / numBoosts);
++i;
}
}
function updateStats() {
++stopWatch;
if (topTarg._y < maxHeight) {
maxHeight = topTarg._y;
}
if (topSky == false && (BigBlue._y < TopBound - cam._height / 2 && dist > 500 || touchedSky == true)) {
niceTXT('Skyward!', 500, 275);
topSky = true;
}
if (xspeed > maxSpeed) {
maxSpeed = xspeed;
if (maxSpeed >= 300 && topSpeed == false) {
topSpeed = true;
niceTXT('300 Velocity', 500);
}
}
if (combo > maxCombo) {
maxCombo = combo;
}
}
function setCombo(targ) {
if (comboFighter !== targ) {
com.greensock.TweenLite.killTweensOf(HUD.comboMC);
comboTimer = 99;
++combo;
multiplier = 1;
var v1 = 1;
while (v1 < combo) {
multiplier += Math.pow(0.8, v1) + 0.05;
++v1;
}
HUD.comboMC.gotoAndStop(combo);
com.greensock.TweenMax.from(HUD.comboMC, 0.4, {'_xscale': 200, '_yscale': 200, '_alpha': 100, 'ease': com.greensock.easing.Strong.easeOut, 'blurFilter': {'blurX': 10, 'blurY': 10}});
com.greensock.TweenMax.to(HUD.comboMC, 0.4, {'_xscale': 100, '_yscale': 100, '_alpha': 100, '_y': -89, 'ease': com.greensock.easing.Strong.easeOut, 'blurFilter': {'blurX': 0, 'blurY': 0, 'remove': true}});
com.greensock.TweenMax.to(HUD.comboMC, 2, {'_y': -50, 'delay': 1.3, '_alpha': 0, 'ease': com.greensock.easing.Strong.easeIn});
comboFighter = targ;
if (combo > 150) {
orchit.start();
}
if (combo == 25) {
niceTXT('Pretty Good! [' + combo + ' Combo!]', 1000);
} else {
if (combo == 50) {
niceTXT('Awesome! [' + combo + ' Combo!]', 5000);
} else {
if (combo == 75) {
niceTXT('Whoa! [' + combo + ' Combo!]', 10000);
} else {
if (combo == 150) {
niceTXT('WOWOWOW! [' + combo + ' Combo!]', 12000);
} else {
if (combo == 250) {
niceTXT('Okay, So You Like Combos. [' + combo + ' Combo!]', 30000);
} else {
if (combo == 400) {
niceTXT('You can stop now! [' + combo + ' Combo!]', 40000);
} else {
if (combo == 750) {
niceTXT('How\'s that even possible. [' + combo + ' Combo!]', 50000);
} else {
if (combo == 1200) {
niceTXT('You don\'t even want points, do you? [' + combo + ' Combo!]', 100000);
} else {
if (combo == 2000) {
niceTXT('God damn, dude. [' + combo + ' Combo!]', 130000);
} else {
if (combo == 3500) {
niceTXT('I hope you\'re recording this. [' + combo + ' Combo!]', 150000);
} else {
if (combo == 5000) {
niceTXT('Fingers tired yet? [' + combo + ' Combo!]', 200000);
} else {
if (combo == 10000) {
niceTXT('See ya at 100,000, good luck! [' + combo + ' Combo!]', 230000);
} else {
if (combo >= 100000) {
niceTXT('Congrats, you\'ve beaten this game! [' + combo + ' Combo!]', 1000);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
function setCurTarg(newTarg, optColor) {
if (newTarg !== null) {
topTarg = newTarg;
camTarg = newTarg;
targetMC._visible = true;
targetMC.gotoAndPlay(1);
if (optColor !== undefined) {
com.greensock.TweenMax.to(targetMC, 0, {'tint': optColor});
} else {
com.greensock.TweenMax.to(targetMC, 0, {'removeTint': true});
}
var v1 = enemyArray[0];
for (var v2 in enemyArray) {
if (enemyArray[v2].getDepth() > v1.getDepth()) {
v1 = enemyArray[v2];
}
}
if (topTarg.getDepth() !== v1.getDepth() && topTarg !== Boss) {
topTarg.swapDepths(v1);
}
}
}
function initBlue(id, hpParam, hitParam, xspawn, hoster) {
if (id == undefined) {
id = 'blue' + dist;
}
if (xspawn == undefined) {
xspawn = cam._x + cam._width / 2;
}
if (hoster == undefined) {
hoster = BigBlue;
}
if (hitParam == undefined) {
hitParam = 20;
}
var myTarg = this.attachMovie('BlueMC', id, this.getNextHighestDepth(), {'_x': xspawn, '_y': yground});
myTarg.enemyType = 'Blue';
myTarg.xspeed = -10;
myTarg.yspeed = 15;
myTarg.gotoAndStop('NINJA');
myTarg.timer = random(30);
myTarg.thp = hpParam;
myTarg.hp = myTarg.thp;
myTarg.invincible = false;
newHpBar(myTarg, 1);
myTarg.hitParam = hitParam;
myTarg.enemyTarg;
myTarg.stance = 'REST';
myTarg.atkNode = false;
optInitBlue(myTarg);
myTarg.getHurt = function (amount, dmgType) {
with (myTarg) {
if (invincible !== true) {
hp -= amount;
updateBar();
if (hp > 0) {
stance = 'HURT';
gotoAndStop('HURT');
this.MC.gotoAndPlay(1);
}
}
}
};
myTarg.setStun = function (val) {
with (myTarg) {
if (stance !== 'DEAD' && stance !== 'GROUND') {
stance = 'STUNNED';
gotoAndStop('HURT');
this.MC.stop();
com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 16777215, 'tintAmount': 0.7}});
com.greensock.TweenMax.to(this, val / 2, {'colorTransform': {'tint': 16777215, 'tintAmount': 0}, 'delay': val / 2});
com.greensock.TweenLite.delayedCall(val, setStance, [this, 'REST']);
}
}
};
myTarg.onEnterFrame = function () {
with (myTarg) {
if (_root.PHASE !== 'FREEZE' && _root.PHASE !== 'DONE') {
while (_x > RightBound + cam._width / 2) {
--_x;
xspeed = -1;
}
while (_y > yground) {
--_y;
}
if (stance !== 'STUNNED') {
this._x += xspeed;
this._y -= yspeed;
}
if (yspeed < -30) {
yspeed = -30;
}
if (stance !== 'DEAD' && stance !== 'GROUND') {
yspeed -= gravity;
if (hp <= 0) {
removeMC(hpBar);
freshKill(enemyType, 750);
if (topTarg == this) {
setCurTarg(mainTarg);
}
stance = 'DEAD';
this.gotoAndStop('DEAD');
xspeed = 30;
}
}
if (stance == 'REST') {
if (xspeed < 2.5 && hoster._x - Math.random() * 250 > this._x) {
xspeed += 0.5;
} else {
if (xspeed > -2.5 && hoster._x - Math.random() * 250 < this._x) {
xspeed -= 0.5;
}
}
if (_y >= yground) {
this.gotoAndStop('LAND');
yspeed = 0;
if (timer > 60) {
this.gotoAndStop('JUMP');
yspeed = 25;
timer = 0;
} else {
++timer;
}
}
if (this._currentframe == 1 || this._currentframe == 2) {
if (random(hitParam) == 0) {
for (var i in teamArray) {
if (this.MC.hitTest(_root[teamArray[i]])) {
enemyTarg = _root[teamArray[i]];
stance = 'ATTACK';
this.gotoAndStop('ATTACK');
com.greensock.TweenMax.from(this, 4, {'glowFilter': {'color': 16724736, 'alpha': 1, 'blurX': 10, 'blurY': 10, 'strength': 6, 'ease': com.greensock.easing.Strong.easeIn}});
com.greensock.TweenMax.to(this, 4, {'glowFilter': {'color': 16724736, 'alpha': 1, 'blurX': 0, 'blurY': 0, 'strength': 3, 'ease': com.greensock.easing.Strong.easeIn, 'remove': true}});
var highestDepth = enemyArray[0];
for (var k in enemyArray) {
if (enemyArray[k].getDepth() > highestDepth.getDepth()) {
highestDepth = enemyArray[k];
}
}
if (this.getDepth() !== highestDepth.getDepth() && highestDepth !== Boss) {
this.swapDepths(highestDepth);
}
}
}
}
}
} else {
if (stance == 'ATTACK') {
this._y += (enemyTarg._y - this._y) / 2;
this._x += (enemyTarg._x - this._x) / 2;
if (atkNode) {
enemyTarg.getHurt(20);
xspeed = 10;
yspeed = 10;
stance = 'REST';
atkNode = false;
enemyTarg = null;
}
if (enemyTarg == null) {
stance = 'REST';
atkNode = false;
}
} else {
if (stance == 'HURT') {
xspeed = 0;
if (_y > yground) {
landSound();
groundEffect(this, groundType);
stance = 'REST';
yspeed = (Math.abs(yspeed) - 0.3) * 0.85;
xspeed *= 0.75;
}
} else {
if (stance == 'DEAD') {
xspeed -= 1;
yspeed -= gravity;
if (_y > yground) {
landSound();
groundEffect(this, groundType);
yspeed = 0;
this.MC.gotoAndPlay('fall');
stance = 'GROUND';
}
} else {
if (stance == 'GROUND') {
xspeed = -_root.xspeed / 1.5;
}
}
}
}
}
if (_x <= cam._x - cam._width / 1.5) {
removeFromArray(this, _root.enemyArray);
removeMC(this);
}
}
}
};
enemyArray.push(myTarg);
}
function initDrab(id, hpParam, atkRange, xspawn, hoster) {
if (xspawn == undefined) {
xspawn = cam._x - cam._width / 1.5;
}
if (hoster == undefined) {
hoster = mainTarg;
}
if (atkRange == undefined) {
atkRange = 150;
}
var myTarg = this.attachMovie('DrabMC', id, this.getNextHighestDepth(), {'_x': xspawn, '_y': yground - 200});
myTarg.enemyType = 'Drab';
myTarg.xspeed = 20;
myTarg.yspeed = -5;
myTarg.thp = hpParam;
myTarg.hp = myTarg.thp;
myTarg.atkRange = atkRange;
myTarg.invincible = false;
newHpBar(myTarg, 2);
myTarg.timer = 0;
myTarg.enemyTarg;
myTarg.stance = 'REST';
optInitBlue(myTarg);
myTarg.revert = function () {
with (myTarg) {
gotoAndPlay('REST');
stance = 'REST';
}
};
myTarg.setStun = function (val) {
with (myTarg) {
if (stance !== 'DEAD' && stance !== 'GROUND') {
stance = 'STUNNED';
gotoAndStop('STUN');
com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 16777215, 'tintAmount': 0.7}});
com.greensock.TweenMax.to(this, val / 2, {'colorTransform': {'tint': 16777215, 'tintAmount': 0}, 'delay': val / 2});
com.greensock.TweenLite.delayedCall(val, revert);
}
}
};
myTarg.getHurt = function (amount, dmgType) {
with (myTarg) {
if (invincible !== true) {
hp -= amount;
updateBar();
if (hp > 0) {
stance = 'HURT';
gotoAndPlay('HURT');
}
}
}
};
myTarg.atkFunc = function () {
rifleshot.start();
with (myTarg) {
var myBullet = 'dbullet' + _root.getNextHighestDepth();
_root.attachMovie('dBullet', myBullet, _root.getNextHighestDepth(), {'_x': _x - 40, '_y': _y - 30});
_root[myBullet].xspeed = -10 * Math.random() - 20;
_root[myBullet].yspeed = -2 * Math.random() + 1;
_root[myBullet].onEnterFrame = function () {
with (_root[myBullet]) {
this._rotation += this.yspeed * 10;
this._x += this.xspeed;
this._y += this.yspeed;
if (_x < _root.cam._x - _root.cam._width / 2) {
removeMovieClip(this);
}
for (var i in _root.teamArray) {
var myTarg = _root[_root.teamArray[i]];
if (myTarg.hitTest(this._x, this._y, true)) {
_root.ricochet.start();
myTarg.getHurt(20);
this.gotoAndPlay('HIT');
_root.PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.3, _root.setPhase, ['FOLLOW']);
delete this.onEnterFrame;
}
}
}
};
}
};
myTarg.onEnterFrame = function () {
with (myTarg) {
if (_root.PHASE !== 'FREEZE' && _root.PHASE !== 'DONE') {
while (_x > RightBound + cam._width / 2) {
--_x;
xspeed = -1;
}
while (_y > yground) {
--_y;
}
if (stance !== 'STUNNED') {
_x += this.xspeed;
_y += this.yspeed;
}
if (yspeed > 10) {
yspeed = 10;
} else {
if (yspeed < -10) {
yspeed = -10;
}
}
if (stance !== 'DEAD' && stance !== 'GROUND') {
yspeed += 0.3;
if (hp <= 0) {
removeMC(hpBar);
freshKill(enemyType, 1000);
if (topTarg == this) {
setCurTarg(mainTarg);
}
stance = 'DEAD';
this.gotoAndPlay('DEAD');
xspeed = 30;
}
if (stance == 'REST') {
if (xspeed < 5 && hoster._x + Math.random() * 170 > this._x) {
xspeed += 0.1;
} else {
if (xspeed > -5 && hoster._x + Math.random() * 170 < this._x) {
xspeed -= 0.2;
}
}
if (hoster._y - 100 < this._y) {
yspeed -= 0.6;
} else {
if (hoster._y - 100 > this._y) {
yspeed += 0.2;
}
}
if (_y >= yground) {
yspeed = -1;
}
if (timer >= 30) {
for (var i in teamArray) {
var myEnemy = _root[teamArray[i]];
if (myEnemy._y > _y - atkRange && myEnemy._y < _y + atkRange) {
stance = 'ATTACK';
this.gotoAndPlay('ATTACK');
}
}
timer = 0;
} else {
++timer;
}
}
} else {
if (stance == 'DEAD') {
xspeed -= 1;
++yspeed;
if (_y > yground) {
yspeed = 0;
gotoAndPlay('FALL');
stance = 'GROUND';
groundEffect(this, groundType);
}
} else {
if (stance == 'GROUND') {
xspeed = -_root.xspeed / 1.5;
}
}
}
if (_x <= cam._x - cam._width / 1.5) {
removeFromArray(this, _root.enemyArray);
removeMC(this);
}
}
}
};
enemyArray.push(myTarg);
}
function initMage(id, hpParam, hoster, xDif, yDif) {
if (xDif == undefined) {
xDif = 225;
yDif = -272;
}
xspawn = cam._x - cam._width / 1.5;
var myTarg = this.attachMovie('MageMC', id, this.getNextHighestDepth(), {'_x': xspawn, '_y': yground - 200});
myTarg.enemyType = 'Mage';
myTarg.xDif = xDif;
myTarg.yDif = yDif;
myTarg.hoster = hoster;
myTarg.thp = hpParam;
myTarg.hp = myTarg.thp;
myTarg.invincible = false;
newHpBar(myTarg, 3);
myTarg.stance = 'REST';
optInitBlue(myTarg);
myTarg.findHost = function () {
for (var v1 in enemyArray) {
if (enemyArray[v1].enemyType !== 'Mobile' && enemyArray[v1].enemyType !== 'Toaster') {
myTarg.hoster = enemyArray[v1];
if (random(3) == 0) {
break;
}
}
}
};
myTarg.addShield = function () {
with (myTarg) {
var rot = Math.atan2(Math.abs(yDif), Math.abs(xDif)) * 180 / Math.PI;
hoster.attachMovie('blueProt', 'mageShield', hoster.getNextHighestDepth(), {'_rotation': rot});
}
};
if (hoster == undefined) {
myTarg.findHost();
} else {
myTarg.hoster = hoster;
}
myTarg.addShield();
myTarg.revert = function () {
with (myTarg) {
gotoAndPlay('REST');
stance = 'REST';
hoster.mageShield._visible = true;
}
};
myTarg.setStun = function (val) {
with (myTarg) {
if (stance !== 'DEAD') {
stance = 'STUNNED';
gotoAndStop('STUN');
com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 16777215, 'tintAmount': 0.7}});
com.greensock.TweenMax.to(this, val / 2, {'colorTransform': {'tint': 16777215, 'tintAmount': 0}, 'delay': val / 2});
com.greensock.TweenLite.delayedCall(val, revert);
hoster.invincible = false;
hoster.mageShield._visible = false;
}
}
};
myTarg.getHurt = function (amount, dmgType) {
with (myTarg) {
if (invincible !== true && stance !== 'DEAD') {
hp -= amount;
updateBar();
if (hp > 0) {
hoster.invincible = false;
hoster.mageShield._visible = false;
stance = 'HURT';
gotoAndPlay('HURT');
}
}
}
};
myTarg.onEnterFrame = function () {
with (myTarg) {
if (_root.PHASE !== 'FREEZE' && _root.PHASE !== 'DONE') {
while (_x > RightBound + cam._width / 2) {
--_x;
}
while (_y > yground) {
--_y;
}
if (stance !== 'DEAD') {
if (hp <= 0) {
removeMC(hpBar);
freshKill(enemyType, 1500);
if (topTarg == this) {
setCurTarg(mainTarg);
}
stance = 'DEAD';
this.gotoAndPlay('DEAD');
com.greensock.TweenMax.to(this, 2, {'_x': 400, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': removeMC, 'onCompleteParams': [this]});
removeFromArray(this, _root.enemyArray);
hoster.invincible = false;
removeMC(hoster.mageShield);
}
if (stance == 'REST') {
_x += (hoster._x + xDif - _x) / 5;
_y += (hoster._y + yDif - _y) / 5;
hoster.invincible = true;
if (hoster == undefined) {
findHost();
addShield();
}
}
}
}
}
};
enemyArray.push(myTarg);
}
function initToaster(id, hpParam, atk, xspawn) {
if (xspawn == undefined) {
xspawn = cam._x + cam._width / 1.5;
}
if (atk == undefined) {
atk = 0.5;
}
var myTarg = this.attachMovie('Toaster', id, this.getNextHighestDepth(), {'_x': xspawn, '_y': yground + 15});
myTarg.enemyType = 'Toaster';
myTarg.xspeed = -5;
myTarg.yvel = 0;
myTarg.thp = hpParam;
myTarg.hp = myTarg.thp;
myTarg.atk = atk;
myTarg.invincible = false;
newHpBar(myTarg, 2);
myTarg.timer = 0;
myTarg.nadeNum = 0;
myTarg.enemyTarg = mainTarg;
myTarg.stance = 'REST';
optInitBlue(myTarg);
myTarg.revert = function () {
with (myTarg) {
stance = 'REST';
gotoAndStop(1);
}
};
myTarg.setStun = function (val) {
with (myTarg) {
if (stance !== 'DEAD' && stance !== 'GROUND') {
stance = 'STUNNED';
gotoAndStop('STUN');
com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 16777215, 'tintAmount': 0.7}});
com.greensock.TweenMax.to(this, val / 2, {'colorTransform': {'tint': 16777215, 'tintAmount': 0}, 'delay': val / 2});
com.greensock.TweenLite.delayedCall(val, revert);
}
}
};
myTarg.getHurt = function (amount, dmgType) {
with (myTarg) {
if (invincible !== true) {
hp -= amount;
updateBar();
if (hp > 0) {
stance = 'HURT';
gotoAndPlay('HURT');
}
}
}
};
myTarg.fire = function () {
with (myTarg) {
++nadeNum;
var myNade = nadeNum + 'tnade' + this._name;
_root.attachMovie('toasterNade', myNade, _root.getNextHighestDepth(), {'_x': _x, '_y': _y, '_yscale': 250});
_root[myNade].detonate = function () {
with (_root[myNade]) {
for (var i in _root.teamArray) {
var mySlush = _root[_root.teamArray[i]];
if (mySlush.hitTest(this)) {
_root.boomA.start();
mySlush.getHurt(50);
_root.PHASE = 'FREEZE';
com.greensock.TweenLite.delayedCall(0.3, _root.setPhase, ['FOLLOW']);
}
}
_root.attachMovie('effectBoom', 'boom' + _root.dist, _root.getNextHighestDepth(), {'_xscale': 200, '_yscale': 200, '_x': _root[myNade]._x, '_y': _root[myNade]._y});
}
};
var ydist = _y - 300;
if (enemyTarg._y < ydist) {
ydist = enemyTarg._y - 50 + random(100);
}
com.greensock.TweenLite.to(_root[myNade], 0.3, {'_y': ydist, '_yscale': 100, 'ease': com.greensock.easing.Strong.easeOut});
}
};
myTarg.onEnterFrame = function () {
with (myTarg) {
if (_root.PHASE !== 'FREEZE' && _root.PHASE !== 'DONE') {
while (_x > RightBound + cam._width / 2) {
--_x;
xspeed = -1;
}
if (_y < yground) {
yvel += _root.gravity;
} else {
_y = yground;
yvel = 0;
}
if (stance !== 'STUNNED') {
_x += this.xspeed;
_y += yvel;
if (random(30) == 0) {
if (groundType == 'SNOW' || groundType == 'WATER') {
landSound();
}
groundEffect(this, groundType);
}
}
if (stance !== 'DEAD' && stance !== 'GROUND') {
if (hp <= 0) {
removeMC(hpBar);
freshKill(enemyType, 1000);
if (topTarg == this) {
setCurTarg(mainTarg);
}
stance = 'DEAD';
this.gotoAndPlay('DEAD');
groundEffect(this, groundType);
xspeed = 10;
}
if (stance == 'REST') {
if (timer == 30 * atk - 6) {
enemyTarg = mainTarg;
for (var i in teamArray) {
if (_root[teamArray[i]] !== undefined && _root[teamArray[i]]._x > cam._x - 300) {
enemyTarg = _root[teamArray[i]];
}
}
com.greensock.TweenLite.to(this, 0.2, {'_x': enemyTarg._x, 'ease': com.greensock.easing.Strong.easeInOut});
++timer;
} else {
if (timer >= 30 * atk) {
stance = 'ATTACK';
this.gotoAndPlay('SHOOT');
timer = 0;
} else {
++timer;
}
}
}
} else {
if (stance == 'DEAD') {
--xspeed;
}
}
if (_x <= cam._x - cam._width / 1.5) {
removeFromArray(this, _root.enemyArray);
removeMC(this);
}
}
}
};
enemyArray.push(myTarg);
}
function initMobile(id, hpParam, passenger, xspawn) {
if (xspawn == undefined) {
xspawn = cam._x + cam._width / 1.5;
}
if (passenger == undefined) {
passenger = 'Empty';
}
var myTarg = this.attachMovie('snowMobileEnemy', id, this.getNextHighestDepth(), {'_x': xspawn, '_y': yground});
myTarg.enemyType = 'Mobile';
myTarg.xspeed = -5;
myTarg.yvel = 0;
myTarg.thp = hpParam;
myTarg.hp = myTarg.thp;
myTarg.invincible = false;
myTarg.stance = 'REST';
myTarg.timer = 0;
myTarg.masterXspeed = 50;
newHpBar(myTarg, 1);
optInitBlue(myTarg);
if (passenger == 'Empty') {
myTarg.passenger = 'Empty';
com.greensock.TweenLite.to(myTarg, 0.5, {'_x': cam._x + 400 * Math.random(), 'ease': com.greensock.easing.Strong.easeOut});
} else {
if (passenger == BigBlue) {
myTarg._x = cam._x - cam._width / 2;
myTarg.passenger = BigBlue;
BigBlue.onMobile = true;
com.greensock.TweenLite.to(myTarg, 1, {'_x': 1057, 'ease': com.greensock.easing.Strong.easeOut});
} else {
myTarg.passenger = passenger;
com.greensock.TweenLite.to(myTarg, 0.5, {'_x': cam._x + 400 * Math.random(), 'ease': com.greensock.easing.Strong.easeOut});
}
}
myTarg.getHurt = function (amount, dmgType) {
with (myTarg) {
if (invincible !== true) {
hp -= amount;
updateBar();
if (hp > 0) {
com.greensock.TweenMax.from(this, 0.2, {'colorTransform': {'tint': 16777215, 'tintAmount': 0.7}});
com.greensock.TweenMax.from(this, 0.4, {'colorTransform': {'tint': 16777215, 'tintAmount': 0.5}, 'delay': 0.2});
com.greensock.TweenMax.to(this, 0.4, {'colorTransform': {'tint': 16777215, 'tintAmount': 0}, 'delay': 0.2});
}
}
}
};
myTarg.setStun = function (val) {
with (myTarg) {
if (stance !== 'DEAD') {
stance = 'STUNNED';
com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 16777215, 'tintAmount': 0.7}});
com.greensock.TweenMax.to(this, val / 2, {'colorTransform': {'tint': 16777215, 'tintAmount': 0}, 'delay': val / 2});
com.greensock.TweenLite.delayedCall(val, setStance, [this, 'REST']);
}
}
};
myTarg.onEnterFrame = function () {
with (myTarg) {
if (_root.PHASE !== 'FREEZE' && _root.PHASE !== 'DONE') {
for (;;) {
if (!(_x > RightBound + cam._width / 2 && passenger !== BigBlue)) break;
--_x;
xspeed = -1;
}
if (_y < yground) {
yvel += _root.gravity;
} else {
_y = yground;
yvel = 0;
}
if (stance !== 'STUNNED') {
_x += this.xspeed;
_y += yvel;
}
if (random(30) == 0) {
if (groundType == 'SNOW' || groundType == 'WATER') {
landSound();
}
groundEffect(this, groundType);
}
if (stance !== 'DEAD') {
if (hp <= 0) {
removeMC(hpBar);
freshKill(enemyType, 1500);
if (topTarg == this) {
setCurTarg(mainTarg);
}
stance = 'DEAD';
this.gotoAndPlay('DEAD');
groundEffect(this, groundType);
xspeed = 10;
if (passenger == BigBlue) {
BigBlue.onMobile = false;
BigBlue.xspeed = 25;
_root.yspeed = -35;
_root.xspeed = 35;
} else {
if (passenger !== 'Empty') {
passenger.invincible = false;
passenger.getHurt(100000);
}
}
}
if (stance == 'REST') {
if (passenger == 'Empty') {
if (BigBlue.hitTest(this) && !BigBlue.onMobile) {
masterXspeed = _root.xspeed;
passenger = BigBlue;
BigBlue.onMobile = true;
BigBlue.gotoAndStop('SIT');
BigBlue._rotation = 0;
com.greensock.TweenMax.killTweensOf(BigBlue);
masterXspeed = _root.xspeed;
}
} else {
if (passenger == BigBlue) {
if (topTarg == BigBlue) {
setCurTarg(this);
}
BigBlue.gotoAndStop('SIT');
BigBlue._x = _x - 57;
BigBlue._y = _y - 21;
_root.yspeed = 0;
if (masterXspeed > 5) {
xspeed = 2;
masterXspeed -= 0.1;
} else {
xspeed += 0.3;
}
if (_x > 120 + RightBound + cam._width / 2) {
_root.xspeed = 0;
} else {
_root.xspeed = masterXspeed;
}
} else {
if (passenger.stance !== 'DEAD' && passenger.stance !== 'GROUND') {
passenger.jetPack._visible = false;
passenger._x = _x - 81;
passenger._y = _y - 34;
}
}
}
if (passenger !== BigBlue) {
if (timer == 90) {
com.greensock.TweenLite.to(this, 2, {'_x': cam._x - 400 * Math.random(), 'ease': Regular.easeInOut});
} else {
if (timer == 180) {
com.greensock.TweenLite.to(this, 2, {'_x': cam._x + 400 * Math.random(), 'ease': Regular.easeInOut});
timer = 0;
}
}
++timer;
}
}
} else {
if (stance == 'DEAD') {
--xspeed;
}
}
if (_x <= cam._x - cam._width / 1.5) {
removeFromArray(this, _root.enemyArray);
removeMC(this);
}
}
}
};
enemyArray.push(myTarg);
}
function initBit(id, hpParam, hitParam, xspawn) {
if (hitParam == undefined) {
hitParam = 60;
}
if (xspawn == undefined) {
xspawn = cam._x + cam._width / 4;
}
var myTarg = this.attachMovie('blueBit', id, this.getNextHighestDepth(), {'_xscale': hpParam + 60, '_yscale': hpParam + 60, '_x': xspawn, '_y': cam._y - 500});
myTarg.enemyType = 'Bit';
myTarg.xspeed = 0;
myTarg.yspeed = 0;
myTarg.targX = xspawn;
myTarg.timer = random(30);
myTarg.gotoAndStop(random(5) + 1);
myTarg.thp = hpParam;
myTarg.hp = myTarg.thp;
myTarg.invincible = false;
myTarg.hitParam = hitParam;
myTarg.enemyTarg;
myTarg.stance = 'REST';
optInitBlue(myTarg);
myTarg.revert = function () {
myTarg.stance = 'REST';
};
myTarg.setStun = function (val) {
with (myTarg) {
if (stance !== 'DEAD') {
stance = 'STUNNED';
com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 16777215, 'tintAmount': 0.7}});
com.greensock.TweenMax.to(this, val / 2, {'colorTransform': {'tint': 16777215, 'tintAmount': 0}, 'delay': val / 2});
com.greensock.TweenLite.delayedCall(val, revert);
}
}
};
myTarg.getHurt = function (amount, dmgType) {
with (myTarg) {
if (invincible !== true) {
bithurt.start();
hp -= amount;
if (hp > 0) {
_root.xspeed += 5;
stance = 'HURT';
com.greensock.TweenMax.from(this, 0.2, {'tint': 16777215});
com.greensock.TweenMax.to(this, 0.4, {'removeTint': true, 'delay': 1, 'onComplete': this.revert()});
}
}
}
};
myTarg.onEnterFrame = function () {
with (myTarg) {
if (_root.PHASE !== 'FREEZE' && _root.PHASE !== 'DONE') {
if (_x > RightBound + cam._width / 2) {
_x = RightBound + cam._width / 2;
xspeed = -xspeed;
}
if (stance !== 'STUNNED') {
this._x += xspeed;
this._y -= yspeed;
}
if (yspeed < -30) {
yspeed = -30;
}
if (stance !== 'DEAD') {
yspeed -= gravity;
if (hp <= 0) {
freshKill(enemyType, 400);
removeFromArray(this, enemyArray);
setCurTarg(enemyArray[random(enemyArray.length)]);
stance = 'DEAD';
gotoAndPlay('DEAD');
}
} else {
play();
}
if (stance == 'REST') {
++timer;
if (_y > yground + 40) {
_y = yground + 40;
yspeed = (Math.abs(yspeed) - 0.3) * 0.85;
xspeed *= 0.5;
if (random(3) == 0) {
bitB.start();
groundEffect(this, groundType);
}
if (timer > 60) {
bitA.start();
timer = 0;
yspeed = 15 + random(20);
if (targX + Math.random() * 200 > this._x) {
xspeed = 10;
} else {
if (targX - Math.random() * 200 < this._x) {
xspeed = -10;
}
}
}
}
if (random(hitParam) == 0) {
for (var i in teamArray) {
if (hitTest(_root[teamArray[i]])) {
enemyTarg = _root[teamArray[i]];
com.greensock.TweenMax.from(this, 4, {'glowFilter': {'color': 16724736, 'alpha': 1, 'blurX': 10, 'blurY': 10, 'strength': 6, 'ease': com.greensock.easing.Strong.easeIn}});
com.greensock.TweenMax.to(this, 4, {'glowFilter': {'color': 16724736, 'alpha': 1, 'blurX': 0, 'blurY': 0, 'strength': 3, 'ease': com.greensock.easing.Strong.easeIn, 'remove': true}});
if (enemyTarg !== null) {
_x = enemyTarg._x;
_y = enemyTarg._y;
enemyTarg.getHurt(3);
}
xspeed = 10;
yspeed = 10;
stance = 'REST';
enemyTarg = null;
tweenShake(this);
var highestDepth = enemyArray[0];
for (var k in enemyArray) {
if (enemyArray[k].getDepth() > highestDepth.getDepth()) {
highestDepth = enemyArray[k];
}
}
if (this.getDepth() !== highestDepth.getDepth()) {
this.swapDepths(highestDepth);
}
}
}
}
}
}
}
};
enemyArray.push(myTarg);
}
function initCobalt(id, hpParam, xspawn) {
if (xspawn == undefined) {
xspawn = cam._x + cam._width / 1.5;
}
var myTarg = this.attachMovie('Cobalt', id, this.getNextHighestDepth(), {'_x': xspawn, '_y': yground});
cobaltArray.push(myTarg);
myTarg.enemyType = 'Cobalt';
myTarg.xspeed = -5;
myTarg.yvel = 0;
myTarg.thp = hpParam;
myTarg.hp = myTarg.thp;
myTarg.invincible = false;
myTarg.stance = 'REST';
myTarg.timer = 0;
myTarg.chil = undefined;
mytarg.par = undefined;
newHpBar(myTarg, 4, 138);
optInitBlue(myTarg);
myTarg.getHurt = function (amount, dmgType) {
with (myTarg) {
if (invincible !== true && stance !== 'DEAD') {
metalhit.start();
hp -= amount;
updateBar();
if (hp > 0) {
com.greensock.TweenMax.from(this, 0.2, {'colorTransform': {'tint': 16777215, 'tintAmount': 0.7}});
com.greensock.TweenMax.from(this, 0.4, {'colorTransform': {'tint': 16777215, 'tintAmount': 0.5}, 'delay': 0.2});
com.greensock.TweenMax.to(this, 0.4, {'colorTransform': {'tint': 16777215, 'tintAmount': 0}, 'delay': 0.2});
}
}
}
};
myTarg.setStun = function (val) {
with (myTarg) {
if (stance !== 'DEAD') {
stance = 'STUNNED';
com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 16777215, 'tintAmount': 0.7}});
com.greensock.TweenMax.to(this, val / 2, {'colorTransform': {'tint': 16777215, 'tintAmount': 0}, 'delay': val / 2});
com.greensock.TweenLite.delayedCall(val, setStance, [this, 'REST']);
}
}
};
myTarg.onEnterFrame = function () {
with (myTarg) {
if (_root.PHASE !== 'FREEZE' && _root.PHASE !== 'DONE') {
while (_x > RightBound + cam._width / 2) {
--_x;
xspeed = -1;
}
if (stance !== 'STUNNED') {
_x += this.xspeed;
_y += yvel;
}
if (stance !== 'DEAD') {
if (hp <= 0) {
removeMC(hpBar);
freshKill(enemyType, 1500);
if (topTarg == this) {
setCurTarg(mainTarg);
}
stance = 'DEAD';
this.gotoAndStop('DEAD');
groundEffect(this, groundType);
xspeed = 18;
yvel = -20;
removeFromArray(this, _root.cobaltArray);
if (chil == undefined) {
par.chil = undefined;
} else {
chil.par = par;
par.chil = chil;
}
}
if (stance == 'REST') {
for (var i in teamArray) {
var mySlush = _root[teamArray[i]];
if (this.hitTest(mySlush._x, mySlush._y, false) && timer == 0) {
metalplate.start();
timer = 33;
mySlush.getHurt(5);
gotoAndPlay('ATTACK');
}
}
if (timer > 0) {
--timer;
}
if (chil == undefined) {
if (_y < yground - 50) {
yvel += _root.gravity;
} else {
_y = yground - 50;
yvel = 0;
}
xspeed = (mainTarg._x - 150 - _x) / 5;
for (var t in cobaltArray) {
var otherCobalt = cobaltArray[t];
if (otherCobalt !== this && otherCobalt.chil !== this && otherCobalt.par !== this && otherCobalt.hitTest(_x - 50, _y, false)) {
metalplate.start();
chil = otherCobalt.getPar();
chil.par = this;
break;
}
}
} else {
xspeed = (chil._x - _x) / 2;
yvel = (chil._y - 138 - _y) / 2;
mc.gotoAndStop(1);
}
}
} else {
if (stance == 'DEAD') {
xspeed -= 0.5;
yvel += _root.gravity;
_rotation += 25;
if (_y > yground - 50) {
yvel = -Math.abs(yvel) * 0.8;
}
if (_x <= cam._x - cam._width / 1.5) {
removeFromArray(this, _root.enemyArray);
removeMC(this);
}
}
}
}
}
};
myTarg.getPar = function () {
with (myTarg) {
if (par !== null && par !== undefined) {
return par.getPar();
} else {
return this;
}
}
};
enemyArray.push(myTarg);
}
function newHpBar(myTarg, type, ydist) {
myTarg.hpBar = this.createEmptyMovieClip('hpBar' + this.getNextHighestDepth(), this.getNextHighestDepth());
myTarg.hpBar.myParent = myTarg;
if (ydist == undefined) {
ydist = 65;
}
myTarg.ydist = ydist;
myTarg.hpBar.onEnterFrame = function () {
with (myTarg.hpBar) {
_x = myParent._x;
_y = myParent._y - ydist;
}
};
var colorA;
var colorB;
if (type == 1) {
colorA = 39423;
colorB = 153;
} else {
if (type == 2) {
colorA = 65433;
colorB = 26214;
} else {
if (type == 3) {
colorA = 12316159;
colorB = 32767;
} else {
if (type == 4) {
colorA = 9482434;
colorB = 4020651;
}
}
}
}
if (myTarg.hp >= 300) {
var newWidth = 120;
myTarg.hpBar.attachMovie('shineBar', 'shineA', 10, {'_width': newWidth, '_x': -newWidth / 2, '_rotation': 90});
myTarg.hpBar.attachMovie('ChargeBarThick', 'barA', 9, {'_width': newWidth, '_x': -newWidth / 2, '_rotation': 90});
myTarg.hpBar.attachMovie('ChargeBarThick', 'backA', 8, {'_width': newWidth, '_x': -newWidth / 2, '_rotation': 90});
com.greensock.TweenMax.to(myTarg.hpBar.barA, 0, {'tint': colorA, 'tintAmount': 1});
com.greensock.TweenMax.to(myTarg.hpBar.backA, 0, {'tint': colorB, 'tintAmount': 1});
myTarg.updateBar = function () {
with (myTarg) {
var scaleA = 100 * hp / thp;
if (scaleA <= 0) {
scaleA = 0;
}
com.greensock.TweenMax.to(hpBar.barA, 0.5, {'_yscale': scaleA, 'ease': com.greensock.easing.Strong.easeOut});
}
};
} else {
if (myTarg.hp > 0) {
var newWidth = 80 * myTarg.hp / 100;
if (myTarg.hp > 100) {
newWidth = 80;
}
myTarg.hpBar.attachMovie('shineBar', 'shineA', 10, {'_xscale': 63, '_width': newWidth, '_x': -newWidth / 2, '_rotation': 90});
myTarg.hpBar.attachMovie('ChargeBarMC', 'barA', 9, {'_xscale': 63, '_width': newWidth, '_x': -newWidth / 2, '_rotation': 90});
myTarg.hpBar.attachMovie('ChargeBarMC', 'backA', 8, {'_xscale': 63, '_width': newWidth, '_x': -newWidth / 2, '_rotation': 90});
com.greensock.TweenMax.to(myTarg.hpBar.barA, 0, {'tint': colorA, 'tintAmount': 1});
com.greensock.TweenMax.to(myTarg.hpBar.backA, 0, {'tint': colorB, 'tintAmount': 1});
}
if (myTarg.hp > 100) {
var newWidth = 80 * (myTarg.hp - 100) / 100;
if (myTarg.hp > 200) {
newWidth = 80;
}
myTarg.hpBar.attachMovie('shineBar', 'shineB', 7, {'_xscale': 40, '_y': -15, '_width': newWidth, '_x': -40, '_rotation': 90});
myTarg.hpBar.attachMovie('ChargeBarMC', 'barB', 6, {'_xscale': 40, '_y': -15, '_width': newWidth, '_x': -40, '_rotation': 90});
myTarg.hpBar.attachMovie('ChargeBarMC', 'backB', 5, {'_xscale': 40, '_y': -15, '_width': newWidth, '_x': -40, '_rotation': 90});
com.greensock.TweenMax.to(myTarg.hpBar.barB, 0, {'tint': colorA, 'tintAmount': 1});
com.greensock.TweenMax.to(myTarg.hpBar.backB, 0, {'tint': colorB, 'tintAmount': 1});
}
if (myTarg.hp > 200) {
var newWidth = 80 * (myTarg.hp - 200) / 100;
myTarg.hpBar.attachMovie('shineBar', 'shineC', 4, {'_xscale': 30, '_y': -26, '_width': newWidth, '_x': -40, '_rotation': 90});
myTarg.hpBar.attachMovie('ChargeBarMC', 'barC', 3, {'_xscale': 30, '_y': -26, '_width': newWidth, '_x': -40, '_rotation': 90});
myTarg.hpBar.attachMovie('ChargeBarMC', 'backC', 2, {'_xscale': 30, '_y': -26, '_width': newWidth, '_x': -40, '_rotation': 90});
com.greensock.TweenMax.to(myTarg.hpBar.barC, 0, {'tint': colorA, 'tintAmount': 1});
com.greensock.TweenMax.to(myTarg.hpBar.backC, 0, {'tint': colorB, 'tintAmount': 1});
}
myTarg.updateBar = function () {
with (myTarg) {
var scaleA = 100 * hp / thp;
if (scaleA <= 0) {
scaleA = 0;
}
var scaleB = 100 * (hp - 100) / thp;
if (scaleB <= 0) {
scaleB = 0;
}
var scaleC = 100 * (hp - 200) / thp;
if (scaleC <= 0) {
scaleC = 0;
}
com.greensock.TweenMax.to(hpBar.barA, 0.5, {'_yscale': scaleA, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(hpBar.barB, 0.5, {'_yscale': scaleB, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(hpBar.barC, 0.5, {'_yscale': scaleC, 'ease': com.greensock.easing.Strong.easeOut});
}
};
}
myTarg.onUnload = function () {
removeMC(myTarg.hpBar);
};
}
function freshKill(type, ptValue) {
++killCount;
score += ptValue;
initScoreDigits(ptValue, type);
addUltra(Math.round(ptValue / 50));
if (type == 'Mobile') {
++_root.mobileKillCount;
} else {
if (type == 'Mage') {
++_root.mageKillCount;
}
}
updateScore();
}
function addUltra(amount) {
var v2 = false;
for (var v3 in _root.teamArray) {
if (_root[teamArray[v3]].stance == 'ULTRA') {
v2 = true;
}
}
if (v2 == false) {
if (ultraCharge < 100) {
ultraCharge += amount;
} else {
if (ultraCharge < 200) {
ultraCharge += amount * 0.75;
} else {
if (ultraCharge < 300) {
ultraCharge += amount * 0.5;
} else {
ultraCharge += amount * 0.25;
}
}
}
if (ultraCharge > user.data.ultraLimit * 100) {
ultraCharge = user.data.ultraLimit * 100;
}
HUD.ultraBar.updateDisplay();
}
}
function damage(dealer, targ, amount, dmgType, bonusDamage) {
if (PHASE !== 'DONE' && dealer !== 'None' && targ.invincible !== true) {
if (dealer.dmgMod !== undefined) {
amount *= dealer.dmgMod;
amount = Math.round(amount);
}
var v3;
if (combo > 1) {
scoreCombo += amount * 5;
multiplier = Math.round(multiplier * 100) / 100;
v3 = Math.round(amount * 5 * multiplier);
} else {
v3 = amount * 5;
}
score += v3;
HUD.comboMC.pointsTxt.text = scoreCombo + 'pts';
HUD.comboMC.multiTxt.text = 'x' + multiplier + '!';
initScoreDigits(v3, 'Score');
updateScore();
}
if (bonusDamage !== undefined) {
amount += bonusDamage;
}
targ.getHurt(amount, dmgType);
if (dealer.fistsOFury == true) {
addUltra(1);
}
if (targ.hp < 0) {
if (dealer !== Ben && !(dealer == Marc && user.data.MarcUpgrades[2] == true) && dealer !== Michael && dealer !== Omar && dealer !== Sagar) {
dealer.myBox.revert = true;
dealer.curTarg = undefined;
}
}
}
function initScoreDigits(num, type) {
com.greensock.TweenLite.killTweensOf(HUD.comboMC.ptValue);
removeMovieClip(HUD.comboMC.ptValue);
var v7 = -55.65;
var v6 = 0;
var v2;
if (HUD.comboMC._currentframe !== 1) {
v7 = 112.65;
}
if (type !== 'Score') {
v6 = 40;
com.greensock.TweenLite.killTweensOf(HUD.comboMC.killValue);
removeMovieClip(HUD.comboMC.killValue);
if (HUD.comboMC.ptValue !== undefined) {
v7 += 45;
}
HUD.comboMC.attachMovie('scoreTxtB', 'killValue', HUD.comboMC.getNextHighestDepth(), {'_x': 145, '_y': v7});
v2 = HUD.comboMC.killValue;
v2.addTXT.text = type + 'Kill';
} else {
if (HUD.comboMC.killValue !== undefined) {
v7 += 50;
}
HUD.comboMC.attachMovie('scoreTxt', 'ptValue', HUD.comboMC.getNextHighestDepth(), {'_x': 145, '_y': v7});
v2 = HUD.comboMC.ptValue;
if (num < 250) {
v2.gotoAndStop(1);
} else {
if (num < 800) {
v6 = 10;
v2.gotoAndStop(2);
} else {
if (num < 3000) {
v6 = 20;
v2.gotoAndStop(3);
} else {
v6 = 30;
v2.gotoAndStop(4);
}
}
}
}
var v1 = 1;
while (v1 <= (String(num)).length) {
var v4 = v2.attachMovie('numText', 'numText' + v1, v1, {'_x': (v1 - 1) * -21});
var v5 = Number((String(num)).charAt((String(num)).length - v1)) + 1;
v4.gotoAndStop(v5 + v6);
v2.plusSign._x -= 21;
++v1;
}
com.greensock.TweenMax.to(v2, 0.3, {'_x': 110, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(v2, 2, {'_alpha': 0, 'delay': 1.3, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': removeMC, 'onCompletParams': [v2]});
}
function removeMC(targ) {
removeMovieClip(targ);
}
function gsplode(myTarg) {
var v3 = 'gSplode' + getNextHighestDepth();
attachMovie('effectGreensplode', v3, getNextHighestDepth(), {'_x': myTarg._x + 20, '_y': myTarg._y - 30});
setCombo('Kyle');
com.greensock.TweenMax.from(myTarg, 2, {'colorTransform': {'tint': 52275, 'tintAmount': 0.9}});
com.greensock.TweenMax.to(myTarg, 2, {'colorTransform': {'tint': 52275, 'tintAmount': 0}});
com.greensock.TweenMax.to(_root[v3], 1, {'_x': '-80'});
}
function jsplode(myTarg) {
var v2 = 'jSplode' + getNextHighestDepth();
attachMovie('effectBoom', v2, getNextHighestDepth(), {'_x': myTarg._x, '_y': myTarg._y});
com.greensock.TweenMax.to(_root[v2], 0, {'colorMatrixFilter': {'hue': 88, 'brightness': 1}});
com.greensock.TweenMax.to(_root[v2], 1, {'_x': '-80'});
com.greensock.TweenMax.from(myTarg, 2, {'colorTransform': {'tint': 849902, 'tintAmount': 0.9}});
com.greensock.TweenMax.to(myTarg, 2, {'colorTransform': {'tint': 849902, 'tintAmount': 0}});
}
function setPhase(newPhase) {
if (PHASE !== 'DONE') {
PHASE = newPhase;
}
}
function removeFromArray(element, myArray) {
var myLength = myArray.length;
var hasElement = false;
testElement = function () {
var v1 = 0;
while (v1 < myLength) {
if (myArray[v1] == element) {
hasElement = true;
}
++v1;
}
};
testElement();
while (hasElement) {
var v1 = 0;
while (v1 < myLength) {
if (myArray[v1] == element) {
myArray.splice(v1, 1);
hasElement = false;
}
++v1;
}
testElement();
}
}
function gotoPlay(targ, frame) {
targ.gotoAndPlay(frame);
}
function gotoStop(targ, frame) {
targ.gotoAndStop(frame);
}
function setStance(targ, val) {
targ.stance = val;
}
function tweenShake(targ) {
com.greensock.TweenMax.from(targ, 0.5, {'_rotation': 40});
com.greensock.TweenMax.to(targ, 0.5, {'_rotation': 0, 'ease': com.greensock.easing.Elastic.easeOut});
}
function shakeCam(xvel, yvel) {
if (xvel == undefined) {
xvel = 5;
}
if (yvel == undefined) {
yvel = 5;
}
shakeX = xvel;
shakeY = yvel;
if (random(2) == 0) {
shakeX *= -1;
}
}
function tweenRed(targBox) {
com.greensock.TweenMax.from(targBox, 0.7, {'tint': 16711680});
com.greensock.TweenMax.to(targBox, 0.7, {'removeTint': true});
}
function tweenSpinBox(targBox) {
targBox.cool.gotoAndStop(2);
targBox.cool._alpha = 100;
targBox.cool._yscale = 100;
targBox.cool._xscale = 100;
com.greensock.TweenMax.to(targBox.cool, 2, {'_xscale': 0, '_yscale': 0, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(targBox, 2, {'_rotation': 720, 'ease': com.greensock.easing.Strong.easeOut});
}
function physics() {
if (yspeed < -50) {
yspeed = -50;
}
if (xspeed < 0) {
xspeed = 0;
}
if (BigBlue._currentframe !== 17) {
BigBlue._y -= yspeed;
yspeed -= gravity;
}
if (BigBlue._currentframe !== 11 && BigBlue._currentframe !== 12 && BigBlue._currentframe !== 13 && BigBlue._currentframe !== 17) {
if (Math.abs(xspeed) >= 80) {
BigBlue._rotation += xspeed / 3;
BigBlue.gotoAndStop(3);
} else {
if (Math.abs(xspeed) >= 60) {
BigBlue._rotation += xspeed / 35;
BigBlue.gotoAndStop(4);
} else {
if (Math.abs(xspeed) >= 30) {
BigBlue._rotation += 1;
if (yspeed > 0) {
BigBlue.gotoAndStop(5);
} else {
BigBlue.gotoAndStop(6);
}
} else {
if (yspeed == 0) {
BigBlue.gotoAndStop(9);
}
if (yspeed > 0) {
BigBlue.gotoAndStop(7);
} else {
BigBlue.gotoAndStop(8);
}
}
}
}
if (Math.abs(xspeed) < 40 || BigBlue._y > 150 && Math.abs(yspeed) < 10) {
if (BBtracker.ring._currentframe == 1) {
BBtracker.ring.gotoAndPlay('WARNING');
}
} else {
BBtracker.ring.gotoAndStop(1);
}
}
while (BigBlue._x > RightBound + cam._width / 2) {
--BigBlue._x;
BigBlue.xspeed = -10;
}
if (BigBlue._currentframe !== 17) {
if (BigBlue.xspeed < 50) {
BigBlue._x += BigBlue.xspeed;
} else {
BigBlue._x += 50;
}
if (BigBlue.xspeed < 5 && 1000 - Math.random() * 170 > BigBlue._x) {
BigBlue.xspeed += 0.5;
} else {
if (BigBlue.xspeed > -5 && 1000 - Math.random() * 170 < BigBlue._x) {
BigBlue.xspeed -= 0.5;
}
}
if (BigBlue._y > yground) {
BigBlue._rotation = 0;
if (Math.abs(yspeed) < 15) {
BigBlue.gotoAndStop(9);
yspeed = 0;
if (xspeed > 0) {
xspeed -= 0.6;
} else {
xspeed = 0;
}
} else {
if (xspeed < 10) {
yspeed *= 0.41;
} else {
yspeed = Math.abs(yspeed * friction) - 1.3;
landSound();
}
xspeed *= friction;
groundEffect(BigBlue, groundType);
}
}
}
}
function checkSlowdown() {
if (Math.abs(yspeed) < 15) {
if (xspeed <= 0) {
if (!BigBlue.hasC4 || BigBlue.hasC4 && BigBlue.onMobile) {
PHASE = 'DONE';
if (user.data.currentLevel == 8 && user.data.hardMode == false) {
winFunc();
} else {
loseFunc();
}
} else {
if (HUD.detonateMC == undefined && !BigBlue.onMobile) {
PHASE = 'FREEZE';
HUD.attachMovie('JoshDetonate', 'detonateMC', HUD.getNextHighestDepth(), {'_x': -90, '_y': 190, '_xscale': 80, '_yscale': 80});
com.greensock.TweenMax.to(HUD.detonateMC, 0.4, {'_x': -480, 'delay': 1, 'onComplete': removeMC, 'onCompleteParams': [HUD.detonateMC], 'ease': com.greensock.easing.Strong.easeIn});
JoshSplodeFunc = function () {
PHASE = 'FOLLOW';
boomC.start();
shakeCam();
damage(Josh, BigBlue, 100, 'UP');
jsplode(BigBlue);
setSpeed(Josh, BigBlue, 50, 50);
BigBlue.hasC4 = false;
var v2 = 0;
for (var v3 in enemyArray) {
var v1 = enemyArray[v3];
if (v1._x > BigBlue._x - 150 && v1._x < BigBlue._x + 150 && v1._y > BigBlue._y - 150) {
damage(Josh, v1, 100, 'UP');
setSpeed(Josh, v1, 50, 50);
jsplode(v1);
++v2;
}
}
if (v2 >= 5) {
niceTXT('C4 Detonation (5+ Enemies)', 1500, 28);
}
removeMovieClip(BigBlue.JoshC4);
};
com.greensock.TweenMax.to(Josh, 0.8, {'_alpha': 100, 'onComplete': JoshSplodeFunc});
}
}
}
}
}
function autoLose() {
if (PHASE !== 'DONE') {
if (user.data.currentLevel == 5 || user.data.currentLevel == 10 || user.data.currentLevel == 15 || user.data.currentLevel == 21) {
Hero.getHurt(10000);
} else {
if (user.data.currentLevel == 8 && user.data.hardMode == false) {
PHASE = 'DONE';
winFunc();
} else {
com.greensock.TweenMax.to(BigBlue, 1, {'_x': cam._x + cam._width, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [BigBlue]});
removeMovieClip(BBtracker);
removeMovieClip(chargeFrame);
PHASE = 'DONE';
loseFunc();
}
}
}
}
function groundEffect(targ, type) {
if (targ._y >= yground - 100) {
var v4 = xspeed * 3;
if (v4 > 375) {
v4 = 375;
}
if (type == 'GRASS') {
i = 0;
while (i < 3) {
attachMovie('effectGrass', 'grass' + dist + i, getNextHighestDepth(), {'_x': targ._x, '_y': targ._y, '_xscale': 100});
var v3 = this['grass' + dist + i];
v3.gotoAndPlay(random(20));
com.greensock.TweenLite.to(v3, 1, {'_x': v3._x - xspeed * 5 * Math.random(), 'ease': com.greensock.easing.Linear.easeNone, '_alpha': 0});
com.greensock.TweenMax.to(v3, 0.5, {'_y': v3._y - yspeed * 8 * Math.random(), 'ease': Regular.easeOut, 'yoyo': true, 'repeat': 1});
com.greensock.TweenLite.delayedCall(1, removeMC, [v3]);
++i;
}
attachMovie('effectDust', 'dust' + dist, getNextHighestDepth(), {'_x': targ._x, '_y': targ._y, '_xscale': v4, '_yscale': v4});
com.greensock.TweenLite.delayedCall(2, removeMC, [this['dust' + dist]]);
} else {
if (type == 'ROAD') {
attachMovie('effectDust', 'dust' + dist, getNextHighestDepth(), {'_x': targ._x, '_y': targ._y, '_xscale': v4, '_yscale': v4});
com.greensock.TweenLite.delayedCall(2, removeMC, [this['dust' + dist]]);
com.greensock.TweenMax.to(this['dust' + dist], 0, {'colorMatrixFilter': {'saturation': 0}});
} else {
if (type == 'WATER') {
i = 0;
while (i < 2) {
attachMovie('effectGrass', 'grass' + dist + i, getNextHighestDepth(), {'_x': targ._x, '_y': targ._y, '_xscale': 100});
var v3 = this['grass' + dist + i];
v3.gotoAndPlay(random(20));
com.greensock.TweenLite.to(v3, 1, {'_x': v3._x - xspeed * 5 * Math.random(), 'ease': com.greensock.easing.Linear.easeNone, '_alpha': 0});
com.greensock.TweenMax.to(v3, 0.5, {'_y': v3._y - yspeed * 8 * Math.random(), 'ease': Regular.easeOut, 'yoyo': true, 'repeat': 1});
com.greensock.TweenLite.delayedCall(1, removeMC, [v3]);
++i;
}
attachMovie('effectWater', 'water' + dist, getNextHighestDepth(), {'_x': targ._x, '_y': targ._y, '_xscale': v4, '_yscale': v4});
com.greensock.TweenLite.delayedCall(2, removeMC, [this['water' + dist]]);
} else {
if (type == 'SNOW') {
attachMovie('effectWater', 'water' + dist, getNextHighestDepth(), {'_x': targ._x, '_y': targ._y, '_xscale': v4, '_yscale': v4});
com.greensock.TweenMax.to(this['water' + dist], 0, {'colorTransform': {'tint': 16777215, 'tintAmount': 1}});
com.greensock.TweenLite.delayedCall(2, removeMC, [this['water' + dist]]);
} else {
if (type == 'SPOOKY') {
i = 0;
while (i < 3) {
attachMovie('effectGrass', 'grass' + dist + i, getNextHighestDepth(), {'_x': targ._x, '_y': targ._y, '_xscale': 100});
var v3 = this['grass' + dist + i];
v3.gotoAndPlay(random(20));
com.greensock.TweenLite.to(v3, 1, {'_x': v3._x - xspeed * 5 * Math.random(), 'ease': com.greensock.easing.Linear.easeNone, '_alpha': 0});
com.greensock.TweenMax.to(v3, 0.5, {'_y': v3._y - yspeed * 8 * Math.random(), 'ease': Regular.easeOut, 'yoyo': true, 'repeat': 1});
com.greensock.TweenMax.to(v3, 0, {'colorTransform': {'tint': 10040268, 'tintAmount': 1}});
com.greensock.TweenLite.delayedCall(1, removeMC, [v3]);
++i;
}
attachMovie('effectDust', 'dust' + dist, getNextHighestDepth(), {'_x': targ._x, '_y': targ._y, '_xscale': v4, '_yscale': v4});
com.greensock.TweenMax.to(this['dust' + dist], 0, {'colorMatrixFilter': {'hue': 218, 'brightness': 0}});
com.greensock.TweenLite.delayedCall(2, removeMC, [this['dust' + dist]]);
} else {
if (type == 'ORANGEGRASS') {
i = 0;
while (i < 8) {
attachMovie('effectGrass', 'grass' + dist + i, getNextHighestDepth(), {'_x': targ._x, '_y': targ._y, '_xscale': 100});
var v3 = this['grass' + dist + i];
v3.gotoAndPlay(random(20));
com.greensock.TweenMax.to(v3, 0, {'tint': 16555010});
com.greensock.TweenLite.to(v3, 1, {'_x': v3._x - xspeed * 5 * Math.random(), 'ease': com.greensock.easing.Linear.easeNone, '_alpha': 0});
com.greensock.TweenMax.to(v3, 0.5, {'_y': v3._y - yspeed * 8 * Math.random(), 'ease': Regular.easeOut, 'yoyo': true, 'repeat': 1});
com.greensock.TweenLite.delayedCall(1, removeMC, [v3]);
++i;
}
} else {
if (type == 'BITS') {
attachMovie('effectBits', 'bitEff' + dist, getNextHighestDepth(), {'_x': targ._x, '_y': targ._y, '_xscale': v4, '_yscale': v4});
com.greensock.TweenLite.delayedCall(2, removeMC, [this['bitEff' + dist]]);
} else {
if (type == 'BITSB') {
attachMovie('effectBits', 'bitEff' + dist, getNextHighestDepth(), {'_x': targ._x, '_y': targ._y, '_xscale': v4, '_yscale': v4});
com.greensock.TweenMax.to(this['bitEff' + dist], 0, {'tint': 4939083});
com.greensock.TweenLite.delayedCall(2, removeMC, [this['bitEff' + dist]]);
} else {
if (type == 'MOON') {
attachMovie('effectDust', 'dust' + dist, getNextHighestDepth(), {'_x': targ._x, '_y': targ._y, '_xscale': v4, '_yscale': v4});
com.greensock.TweenMax.to(this['dust' + dist], 0, {'colorMatrixFilter': {'tint': 5474984, 'tintAmount': 0.7}});
com.greensock.TweenLite.delayedCall(2, removeMC, [this['dust' + dist]]);
}
}
}
}
}
}
}
}
}
}
}
function initMenuBar(del, isPlay, targ, xpos) {
removeMovieClip(targ.menuBar);
targ.attachMovie('menuBar', 'menuBar', targ.getNextHighestDepth(), {'_x': xpos, '_y': -240});
var ret = targ.menuBar.retryBTN;
var tea = targ.menuBar.teamBTN;
var map = targ.menuBar.mapBTN;
var inf = targ.menuBar.infoBTN;
var exi = targ.menuBar.exitBTN;
com.greensock.TweenLite.to(targ.menuBar, del, {'_y': -180, 'delay': del, 'ease': com.greensock.easing.Back.easeInOut});
targ.menuBar.tabs.gotoAndStop(curMenu);
targ.menuBar.deleteFunc = function () {
with (targ.menuBar) {
delete retryBTN.onRelease;
delete teamBTN.onRelease;
delete mapBTN.onRelease;
delete infoBTN.onRelease;
delete exitBTN.onRelease;
}
};
if (isPlay) {
ret.num = 3;
} else {
if (user.data.wonLevel) {
ret.num = 2;
} else {
ret.num = 1;
}
}
ret.gotoAndStop(1);
ret.TXT.gotoAndStop(ret.num);
ret.onRollOver = function () {
with (ret) {
gotoAndStop(2);
TXT.gotoAndStop(num);
}
};
ret.onRollOut = function () {
with (ret) {
gotoAndStop(1);
TXT.gotoAndStop(num);
}
};
ret.onPress = function () {
with (ret) {
gotoAndStop(3);
TXT.gotoAndStop(num);
}
};
ret.onRelease = function () {
curMenu = 1;
ret._parent.deleteFunc();
if (ret.num == 1) {
user.data.teamArray = teamArray;
fadeIn('Alpha');
com.greensock.TweenLite.delayedCall(0.25, fadeOut, ['game', 'Alpha']);
com.greensock.TweenLite.delayedCall(0.25, init);
com.greensock.TweenLite.delayedCall(0.2, unloadAll);
} else {
if (ret.num == 2) {
com.greensock.TweenLite.to(ret._parent, 0.5, {'_y': -240, 'ease': com.greensock.easing.Back.easeInOut});
checkCutscene(ret, 2, user.data.currentLevel);
} else {
user.data.isNoob = true;
user.data.currentLevel = mapMC.curBTN.num;
user.data.teamArray = teamArray;
prevTriesArray = new Array();
checkCutscene(this, 0.1, user.data.currentLevel);
}
}
};
targ.menuBar.newNotify._visible = false;
if (user.data.tutArray[2] == true && curMenu !== 2) {
tea.gotoAndStop(1);
tea.onRollOver = function () {
tea.gotoAndStop(2);
};
tea.onRollOut = function () {
tea.gotoAndStop(1);
};
tea.onPress = function () {
tea.gotoAndStop(3);
};
tea.onRelease = function () {
curMenu = 2;
tea._parent.deleteFunc();
fadeIn('Alpha');
com.greensock.TweenLite.delayedCall(0.25, fadeOut, ['game', 'Alpha']);
com.greensock.TweenLite.delayedCall(0.25, setupShop);
com.greensock.TweenLite.delayedCall(0.2, unloadAll);
};
for (var i in allArray) {
if (user.data[allArray[i] + 'Upgrades'][0] == 'Locked') {
targ.menuBar.newNotify._visible = true;
break;
}
}
} else {
tea.gotoAndStop(1);
tea._visible = false;
}
if (user.data.tutArray[4] == true && curMenu !== 3) {
map.gotoAndStop(1);
map.onRollOver = function () {
map.gotoAndStop(2);
};
map.onRollOut = function () {
map.gotoAndStop(1);
};
map.onPress = function () {
map.gotoAndStop(3);
};
map.onRelease = function () {
curMenu = 3;
map._parent.deleteFunc();
fadeIn('Alpha');
com.greensock.TweenLite.delayedCall(0.25, fadeOut, ['game', 'Alpha']);
com.greensock.TweenLite.delayedCall(0.25, setupMap);
com.greensock.TweenLite.delayedCall(0.2, unloadAll);
};
} else {
map.gotoAndStop(1);
map._visible = false;
}
if (curMenu !== 4) {
inf.gotoAndStop(1);
inf.onRollOver = function () {
inf.gotoAndStop(2);
};
inf.onRollOut = function () {
inf.gotoAndStop(1);
};
inf.onPress = function () {
inf.gotoAndStop(3);
};
inf.onRelease = function () {
curMenu = 4;
inf._parent.deleteFunc();
fadeIn('Alpha');
com.greensock.TweenLite.delayedCall(0.25, fadeOut, ['game', 'Alpha']);
com.greensock.TweenLite.delayedCall(0.25, setupInfo);
com.greensock.TweenLite.delayedCall(0.2, unloadAll);
};
} else {
inf.gotoAndStop(1);
inf._visible = false;
}
exi.gotoAndStop(1);
exi.onRollOver = function () {
exi.gotoAndStop(2);
};
exi.onRollOut = function () {
exi.gotoAndStop(1);
};
exi.onPress = function () {
exi.gotoAndStop(3);
};
exi.onRelease = function () {
newSong(null, 1, 0);
newAmbi(null, 1, 0);
inf._parent.deleteFunc();
fadeIn('Squares');
com.greensock.TweenLite.delayedCall(2, fadeOut, ['Main', 'Squares']);
com.greensock.TweenLite.delayedCall(2, removeMC, [cutMC]);
com.greensock.TweenLite.delayedCall(1.9, unloadAll);
};
}
function loseFunc() {
sortDepth();
PHASE = 'DONE';
if (!levelDone) {
removeTriesMarker();
optEndLevel();
levelDone = true;
for (var v4 in teamArray) {
var v3 = _root[teamArray[v4]];
v3.stop();
v3.onEnterFrame = function () {
this.stop();
};
com.greensock.TweenLite.killTweensOf(v3);
com.greensock.TweenLite.to(v3, 1.5, {'_x': cam._x - cam._width, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [v3]});
com.greensock.TweenLite.delayedCall(0.5, removeMC, [v3]);
}
hideBoxes();
Key.removeListener(keyListener);
HUD.restartBTN._y -= 500;
removeMovieClip(BBtracker);
removeMovieClip(targetMC);
removeMovieClip(HUD.ngPlusMC);
removeMovieClip(HUD.tutKeep);
removeMovieClip(HUD.tutKhanh);
removeMovieClip(HUD.tutQWE);
removeMovieClip(HUD.tutClickFighters);
removeMovieClip(mouseTarger);
removeMovieClip(chargeFrame);
removeMovieClip(chargeBar);
removeMovieClip(HUD.tutSpaceMC);
bgB._visible = true;
bgA._visible = true;
bgZ.remove();
bgA._x = cam._x - 600;
bgB._x = cam._x - 500;
bgC._x = cam._x - 600;
if (user.data.currentLevel !== 5 && user.data.currentLevel !== 10) {
for (v4 in enemyArray) {
if (enemyArray[v4]._y < yground - 10) {
com.greensock.TweenLite.to(enemyArray[v4], 1, {'_y': yground, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': gotoStop, 'onCompleteParams': [enemyArray[v4], 'DONE']});
} else {
enemyArray[v4].gotoAndStop('DONE');
}
}
}
com.greensock.TweenLite.to(cam, 5, {'_y': yground - 200, 'delay': 1.5, 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenLite.to(HUD.distBarA, 0.5, {'_y': '-20', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(HUD.distBarA, 2, {'_y': 450, 'delay': 0.5, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenLite.to(HUD.distBarA, 2.5, {'_x': '70', '_rotation': '-200'});
com.greensock.TweenLite.to(HUD.distBarB, 0.5, {'_rotation': '30', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(HUD.distBarB, 2, {'_y': 450, 'delay': 0.5, '_rotation': '20', 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenLite.to(HUD.distBarB, 2.5, {'_x': '20'});
com.greensock.TweenLite.to(HUD.marker, 2, {'_y': '-20', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(HUD.marker, 2, {'_y': 215, 'delay': 0.5, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenLite.to(HUD.volumeBTN, 0.5, {'_y': '-20'});
com.greensock.TweenLite.to(HUD.volumeBTN, 1.5, {'_y': 215, 'delay': 0.5, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenLite.to(HUD.volumeBTN, 1.5, {'_x': '20'});
com.greensock.TweenLite.to(HUD.qualityBTN, 2, {'_y': 215, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenLite.to(HUD.qualityBTN, 2, {'_x': '40'});
v4 = 0;
while (v4 < 8) {
var v5 = HUD['digit' + v4]._x - random(70) * v4;
com.greensock.TweenLite.to(HUD['digit' + v4], 0.5, {'_y': '-20', 'delay': 0.1 * v4, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(HUD['digit' + v4], 1, {'_y': 215, 'delay': 0.5 + 0.1 * v4, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenLite.to(HUD['digit' + v4], 1.5, {'_x': v5, 'delay': 0.1 * v4, '_rotation': random(400)});
com.greensock.TweenLite.delayedCall(0.5 + 0.1 * v4, removeMC, [HUD['digit' + v4]]);
++v4;
}
com.greensock.TweenLite.to(HUD.commaA, 0.5, {'_y': '-20', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(HUD.commaA, 1, {'_y': 215, 'delay': 0.5, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenLite.to(HUD.commaA, 1.5, {'_x': '-35', '_rotation': random(400)});
com.greensock.TweenLite.to(HUD.commaB, 0.5, {'_y': '-20', 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(HUD.commaB, 1, {'_y': 215, 'delay': 0.5, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenLite.to(HUD.commaB, 1.5, {'_x': '-70', '_rotation': random(400)});
com.greensock.TweenLite.to(HUD.distBarA, 0, {'_visible': false, 'delay': 3});
com.greensock.TweenLite.to(HUD.distBarB, 0, {'_visible': false, 'delay': 3});
com.greensock.TweenLite.to(HUD.marker, 0, {'_visible': false, 'delay': 3});
com.greensock.TweenLite.to(HUD.volumeBTN, 0, {'_visible': false, 'delay': 2});
com.greensock.TweenLite.to(HUD.qualityBTN, 0, {'_visible': false, 'delay': 2});
com.greensock.TweenLite.to(HUD.commaA, 0, {'_visible': false, 'delay': 2});
com.greensock.TweenLite.to(HUD.commaB, 0, {'_visible': false, 'delay': 2});
v4 = 0;
while (v4 <= 8) {
com.greensock.TweenLite.to(HUD['digit' + v4], 0, {'_visible': false, 'delay': 2});
++v4;
}
BigBlue.gotoAndStop('ESCAPE');
HUD.attachMovie('sponsorLogo', 'sponsorLogo', HUD.getNextHighestDepth(), {'_x': 470, '_y': 61});
com.greensock.TweenLite.to(HUD.sponsorLogo, 1, {'_x': 222, 'delay': 0.5, 'ease': com.greensock.easing.Back.easeInOut});
initMenuBar(0.5, false, HUD, 0);
initTipsMC(random(tipsArray.length));
if (user.data.tutArray[2] == false) {
HUD.attachMovie('levelOneRetry', 'tutMC', HUD.getNextHighestDepth(), {'_x': -470});
com.greensock.TweenLite.to(HUD.tutMC, 1, {'_x': -246, 'delay': 0.5, 'ease': com.greensock.easing.Back.easeInOut});
} else {
initStats(1);
}
if (ultraCharge > user.data.ultraCharge) {
ultraCharge = user.data.ultraCharge;
} else {
user.data.ultraCharge = ultraCharge;
}
}
}
function winFunc() {
sortDepth();
if (!levelDone) {
removeTriesMarker();
optEndLevel();
prevTriesArray = new Array();
levelDone = true;
levelWin = true;
user.data.wonLevel = levelWin;
PHASE = 'DONE';
setupWinLevel();
Key.removeListener(keyListener);
for (var v4 in enemyArray) {
com.greensock.TweenLite.to(enemyArray[v4], 1, {'_x': cam._x + cam._width, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [enemyArray[v4]]});
}
for (v4 in teamArray) {
var v3 = _root[teamArray[v4]];
v3.gotoAndStop(1);
v3.onEnterFrame = function () {
this.gotoAndStop(1);
};
com.greensock.TweenLite.killTweensOf(v3);
com.greensock.TweenLite.to(v3, 1.5, {'_x': cam._x + cam._width, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [v3]});
com.greensock.TweenLite.delayedCall(0.5, removeMC, [v3]);
}
hideBoxes();
bgB._visible = true;
bgA._visible = true;
bgZ.remove();
HUD.restartBTN._y -= 500;
removeMovieClip(HUD.ngPlusMC);
removeMovieClip(BBtracker);
removeMovieClip(targetMC);
removeMovieClip(HUD.tutKeep);
removeMovieClip(HUD.tutKhanh);
removeMovieClip(HUD.tutQWE);
removeMovieClip(HUD.tutClickFighters);
removeMovieClip(mouseTarger);
com.greensock.TweenLite.to(HUD.distBarA, 2, {'_alpha': 0, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(HUD.distBarB, 2, {'_alpha': 0, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(HUD.marker, 2, {'_alpha': 0, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(HUD.volumeBTN, 0.5, {'_x': '-500', '_alpha': 0, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(HUD.qualityBTN, 2, {'_x': '-500', '_alpha': 0, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(HUD.commaA, 0.5, {'_alpha': 0, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.to(HUD.commaB, 0.5, {'_alpha': 0, 'ease': com.greensock.easing.Strong.easeOut});
v4 = 0;
while (v4 <= 8) {
com.greensock.TweenLite.to(HUD['digit' + v4], 0.5, {'_alpha': 0, 'delay': 0.1 * v4, 'ease': com.greensock.easing.Strong.easeOut});
++v4;
}
if (user.data.currentLevel == 5 || user.data.currentLevel == 10 || user.data.currentLevel == 15 || user.data.currentLevel == 21) {
HUD.attachMovie('stageCleared', 'completeMC', HUD.getNextHighestDepth());
} else {
HUD.attachMovie('lvlComplete', 'completeMC', HUD.getNextHighestDepth());
}
if (bonusComplete) {
HUD.attachMovie('bonus' + user.data.currentLevel + 'scene', 'bonusMC', HUD.getNextHighestDepth(), {'_y': -150});
com.greensock.TweenLite.to(HUD.bonusMC, 1, {'_y': 0, 'delay': 3, 'ease': com.greensock.easing.Strong.easeInOut, 'onComplete': gotoPlay, 'onCompleteParams': [HUD.bonusMC, 2]});
}
HUD.attachMovie('newUnlocks', 'newUnlocksMC', HUD.getNextHighestDepth(), {'_y': 210, '_alpha': 0});
HUD.newUnlocksMC.gotoAndStop(user.data.currentLevel);
if (user.data.levelProgress !== user.data.currentLevel || noUnlocks) {
HUD.newUnlocksMC.MC._visible = false;
HUD.newUnlocksMC.newFighter.text = bonusPointsTxt;
HUD.newUnlocksMC.TXT.text = '+' + convertComma(bonusPoints) + 'pts';
HUD.newUnlocksMC.exTXT._visible = false;
} else {
HUD.newUnlocksMC.TXT._visible = false;
if (user.data.hardMode) {
HUD.newUnlocksMC.exTXT._visible = false;
}
}
if (user.data.currentLevel == 8 && user.data.hardMode == false) {
earnedScore = 0;
score += bonusPoints;
HUD.newUnlocksMC.newFighter.text = _root.dir / 2 - 15 + ' Trees x 500';
}
com.greensock.TweenLite.to(HUD.newUnlocksMC, 1, {'_y': 0, '_alpha': 100, 'delay': 2.3, 'ease': com.greensock.easing.Strong.easeInOut});
HUD.newUnlocksMC.btn.onRelease = function () {
if (HUD.bonusMC !== undefined) {
com.greensock.TweenLite.to(HUD.bonusMC, 1, {'_y': -150, 'ease': com.greensock.easing.Strong.easeInOut, 'onComplete': removeMC, 'onCompleteParams': [HUD.bonusMC]});
}
HUD.newUnlocksMC.btn._visible = false;
com.greensock.TweenLite.to(HUD.completeMC, 1, {'_alpha': 0, 'ease': com.greensock.easing.Strong.easeInOut, 'onComplete': removeMC, 'onCompleteParams': [HUD.completeMC]});
com.greensock.TweenLite.to(HUD.newUnlocksMC, 1, {'_y': 210, '_alpha': 0, 'ease': com.greensock.easing.Strong.easeInOut, 'onComplete': removeMC, 'onCompleteParams': [HUD.newUnlocksMC]});
if (user.data.tutArray[3] == false) {
HUD.attachMovie('newTeamOption', 'tutTeamMC', HUD.getNextHighestDepth(), {'_x': -470, '_y': -85});
com.greensock.TweenLite.to(HUD.tutTeamMC, 1, {'_x': -100, 'delay': 0.5, 'ease': com.greensock.easing.Strong.easeOut});
user.data.tutArray[3] = true;
} else {
if (user.data.tutArray[4] == 'Unlock It') {
HUD.attachMovie('newMapOption', 'tutMapMC', HUD.getNextHighestDepth(), {'_x': -470, '_y': -88});
com.greensock.TweenLite.to(HUD.tutMapMC, 1, {'_x': 19, 'delay': 0.5, 'ease': com.greensock.easing.Strong.easeOut});
user.data.tutArray[4] = true;
} else {
if (user.data.tutArray[3] == 'Unlock It') {
HUD.attachMovie('newTeamSize', 'tutSizeMC', HUD.getNextHighestDepth(), {'_x': -470, '_y': -88});
com.greensock.TweenLite.to(HUD.tutSizeMC, 1, {'_x': -100, 'delay': 0.5, 'ease': com.greensock.easing.Strong.easeOut});
user.data.tutArray[3] = true;
} else {
initStats(0);
}
}
}
initMenuBar(0.5, false, HUD, 0);
initTipsMC(tipWin);
if (user.data.currentLevel == user.data.levelProgress) {
++user.data.levelProgress;
}
++user.data.currentLevel;
};
}
}
function newCharSound(slush, opt) {
if (HUD.newUnlocksMC.MC._visible) {
var v1 = 2.5;
if (opt == true) {
v1 = 0;
}
com.greensock.TweenLite.delayedCall(v1, charSound, [slush]);
}
}
function initTipsMC(startIndex) {
HUD.attachMovie('tips', 'tipsMC', HUD.getNextHighestDepth(), {'_y': 262});
com.greensock.TweenLite.to(HUD.tipsMC, 1, {'_y': 156, 'delay': 0.5, 'ease': com.greensock.easing.Strong.easeInOut});
HUD.tipsMC.curNum = startIndex;
if (startIndex == tipWin) {
HUD.tipsMC.gotoAndStop(tipWin);
} else {
HUD.tipsMC.gotoAndStop(_root.tipsArray[startIndex]);
}
HUD.tipsMC.onPress = function () {
clickB.start();
with (HUD.tipsMC) {
_y = 262;
com.greensock.TweenLite.to(this, 0.3, {'_y': 156, 'ease': com.greensock.easing.Strong.easeOut});
++curNum;
if (curNum >= _root.tipsArray.length) {
curNum = 0;
}
gotoAndStop(_root.tipsArray[curNum]);
}
};
}
function checkCutscene(myBTN, sec, level) {
if (user.data.story == 'LevelFourPrecut' && level == 4 || user.data.story == 'LevelFivePrecut' && level == 5 || user.data.story == 'LevelTenPrecut' && level == 10 || user.data.story == 'LevelTenPostcut' && level == 11 || user.data.story == 'LevelFifteenPrecut' && level == 15 || user.data.story == 'LevelFifteenPostcut' && level == 16 || user.data.story == 'LevelEighteenPrecut' && level == 18 || user.data.story == 'LevelEighteenPostcut' && level == 19 || user.data.story == 'LevelTwentyOnePrecut' && level == 21 || user.data.story == 'LevelTwentyOnePostcut' && level == 21) {
fadeIn('Squares');
com.greensock.TweenLite.delayedCall(sec, fadeOut, ['cutscene', 'Squares']);
com.greensock.TweenLite.delayedCall(sec, unloadAll);
removeMovieClip(myBTN);
} else {
if (myBTN == 'startScreen') {
init();
} else {
fadeIn('Alpha');
com.greensock.TweenLite.delayedCall(0.25, fadeOut, ['game', 'Alpha']);
com.greensock.TweenLite.delayedCall(0.25, init);
com.greensock.TweenLite.delayedCall(0.2, unloadAll);
}
}
}
function initStats(levelVar) {
var bestScore = user.data.bestArray[user.data.currentLevel];
earnedScore += score - bestScore;
if (earnedScore < 0) {
earnedScore = 0;
}
if (user.data.levelProgress !== user.data.currentLevel || noUnlocks) {
earnedScore += bonusPoints;
}
user.data.scoreTotal += earnedScore;
HUD.attachMovie('HUDstats', 'statsMC', HUD.getNextHighestDepth(), {'_x': -452, '_y': 14});
com.greensock.TweenLite.to(HUD.statsMC, 1, {'_x': -100, 'ease': com.greensock.easing.Back.easeInOut, 'delay': levelVar * 0.5});
with (HUD.statsMC) {
if (levelVar == 0) {
digitTwo.gotoAndStop(11);
digitThree.gotoAndStop(11);
} else {
var distPercent = 100 * prevTriesArray[prevTriesArray.length - 1];
var dig2 = 11 + Math.floor(distPercent / 10);
if (dig2 == 21) {
dig2 = 11;
}
digitTwo.gotoAndStop(dig2);
digitThree.gotoAndStop(11 + Math.floor(distPercent % 10));
}
digitOne.gotoAndStop(12);
digitOne._visible = levelVar == 0;
EXTxt.text = 'Defeated ' + killCount + ' Enemies ' + '\n' + 'Max Combo: ' + maxCombo + ' Combo' + '\n' + 'Max Height: ' + -Math.round(maxHeight) + '\n' + 'Max Velocity: ' + Math.round(maxSpeed) + '\n' + 'Game Time: ' + Math.round(stopWatch / 30) + 's = ' + Math.round(10 * stopWatch / 1800) / 10 + 'mins ' + '\n' + Math.round(initPOW) + '% Charge Strength' + '\n';
if (levelVar == 0 && (user.data.currentLevel !== user.data.levelProgress || noUnlocks)) {
scoreInfoTXTB.text = '+' + bonusPoints + ' points for rebeating this level.';
} else {
scoreInfoTXTB.text = 'Rebeat this level for guaranteed bonus points!';
}
if (user.data.currentLevel == 8 && user.data.hardMode == false) {
scoreInfoTXTB.text = 'Replay this bonus level for a higher score.';
}
ScoreTxt.text = convertComma(score) + 'pts';
BestTxt.text = '-' + convertComma(bestScore) + 'pts';
EarnedTxt.text = '+' + convertComma(earnedScore) + 'pts';
TotalTxt.text = '=' + convertComma(user.data.scoreTotal) + 'pts';
}
if (score > bestScore) {
user.data.bestArray[user.data.currentLevel] = score;
}
}
function setSpeed(fighter, myTarg, xval, yval) {
if (fighter.powMod !== undefined) {
var v5 = Number(xval) * fighter.powMod;
var v4 = Number(yval) * fighter.powMod;
if (xval === String(xval)) {
xval = String(v5);
} else {
xval = v5;
}
if (yval === String(yval)) {
yval = String(v4);
} else {
yval = v4;
}
}
if (myTarg.invincible !== true) {
if (myTarg == BigBlue) {
if (xval === String(xval)) {
xspeed += Number(xval);
} else {
xspeed = xval;
}
BigBlue.xspeed += Number(xval) / 5;
if (yval === String(yval)) {
yspeed += Number(yval);
} else {
yspeed = yval;
}
} else {
if (xval === String(xval)) {
myTarg.xspeed += Number(xval) / 5;
} else {
myTarg.xspeed = xval / 5;
}
if (yval === String(yval)) {
myTarg.yspeed += Number(yval);
} else {
myTarg.yspeed = yval;
}
}
}
}
function updateScore() {
var v2 = 1;
while (v2 <= (String(score)).length) {
var v1 = HUD['digit' + (v2 - 1)];
var v3 = Number((String(score)).charAt((String(score)).length - v2)) + 1;
if (!v1._visible) {
v1._visible = true;
}
if (HUD.digit6._visible) {
HUD.commaB._visible = true;
} else {
if (HUD.digit3._visible) {
HUD.commaA._visible = true;
}
}
if (v3 !== v1._currentframe) {
v1.gotoAndStop(v3);
com.greensock.TweenMax.from(v1, 0.3, {'_y': -190, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(v1, 0.3, {'_y': -120, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(v1, 1, {'_y': -180, 'ease': com.greensock.easing.Strong.easeOut});
}
++v2;
}
}
function updateHUD() {
updateBB();
if (PHASE !== 'DONE' && PHASE !== 'FREEZE') {
HUD.marker._x = -333 + HUD.distBarA._width;
HUD.distBarA._xscale = (dist / endDist) * 100;
HUD.distBarB._xscale = 100 - HUD.distBarA._xscale;
if (comboTimer > 0) {
--comboTimer;
} else {
combo = 0;
scoreCombo = 0;
comboFighter = 'None';
}
dist += xspeed / 10;
dist = Math.round(dist);
} else {
if ((camTarg == null || camTarg == undefined) && topTarg !== undefined) {
camTarg = topTarg;
}
HUD._y = cam._y;
HUD._x = cam._x;
HUD._yscale = cam._xscale;
HUD._xscale = HUD._yscale;
}
}
function sortDepth() {
if (cam.getDepth() !== getNextHighestDepth() - 1) {
cam.swapDepths(getInstanceAtDepth(getNextHighestDepth() - 1));
}
if (BBtracker == undefined) {
if (HUD.getDepth() < getNextHighestDepth() - 2) {
HUD.swapDepths(getInstanceAtDepth(getNextHighestDepth() - 2));
}
} else {
if (BigBlue == undefined) {
removeMovieClip(BBtracker);
}
if (BBtracker.getDepth() !== getNextHighestDepth() - 2) {
BBtracker.swapDepths(getInstanceAtDepth(getNextHighestDepth() - 2));
}
if (HUD.getDepth() < getNextHighestDepth() - 3) {
HUD.swapDepths(getInstanceAtDepth(getNextHighestDepth() - 3));
}
}
if (targetMC.getDepth() !== getNextHighestDepth() - 4) {
targetMC.swapDepths(getInstanceAtDepth(getNextHighestDepth() - 4));
}
}
function camFollow() {
bgC._x = cam._x - 600;
bgB._x = bgC._x;
bgA._x = bgC._x;
targetMC._x = topTarg._x;
targetMC._y = topTarg._y;
var v2 = camTarg._x;
var v1 = camTarg._y;
if (v2 <= LeftBound) {
v2 = LeftBound;
} else {
if (v2 > RightBound) {
v2 = RightBound;
}
}
if (v1 >= BottomBound) {
v1 = BottomBound;
} else {
if (v1 < TopBound) {
v1 = TopBound;
}
}
HUD._y = cam._y;
HUD._x = cam._x;
HUD._yscale = cam._xscale;
HUD._xscale = HUD._yscale;
if (Math.abs(v2 - cam._x) / 8 > 1 && Math.abs(shakeX) <= 5) {
cam._x += (v2 - cam._x) / 10;
}
if (Math.abs(v1 - cam._y) / 4 > 1 && Math.abs(shakeY) <= 5) {
cam._y += (v1 - cam._y) / 8;
}
updateShake();
}
function updateShake() {
if (Math.abs(shakeX) > 1) {
shakeX *= -1;
cam._x += shakeX;
shakeX *= 0.75;
}
if (Math.abs(shakeY) > 1) {
shakeY *= -1;
cam._y += shakeY;
shakeY *= 0.75;
}
}
function updateBB() {
if (BBtracker !== undefined) {
if (BigBlue._x < cam._x - cam._width / 2) {
BBtracker.gotoAndStop(2);
BBtracker._x = cam._x - cam._width / 2;
if (BigBlue._y < cam._y - cam._height / 2) {
BBtracker._y = cam._y - cam._height / 2;
BBtracker._rotation = 45;
} else {
if (BigBlue._y > cam._y + cam._height / 2) {
BBtracker._y = cam._y + cam._height / 2;
BBtracker._rotation = -45;
} else {
BBtracker._y = BigBlue._y;
BBtracker._rotation = 0;
}
}
} else {
if (BigBlue._x > cam._x + cam._width / 2) {
BBtracker.gotoAndStop(2);
BBtracker._x = cam._x + cam._width / 2;
if (BigBlue._y < cam._y - cam._height / 2) {
BBtracker._y = cam._y - cam._height / 2;
BBtracker._rotation = 135;
} else {
if (BigBlue._y > cam._y + cam._height / 2) {
BBtracker._y = cam._y + cam._height / 2;
BBtracker._rotation = -135;
} else {
BBtracker._y = BigBlue._y;
BBtracker._rotation = 180;
}
}
} else {
if (BigBlue._y < cam._y - cam._height / 2) {
BBtracker.gotoAndStop(2);
BBtracker._y = cam._y - cam._height / 2;
BBtracker._x = BigBlue._x;
BBtracker._rotation = 90;
} else {
if (BigBlue._y > cam._y + cam._height / 2) {
BBtracker.gotoAndStop(2);
BBtracker._y = cam._y + cam._height / 2;
BBtracker._x = BigBlue._x;
BBtracker._rotation = -90;
} else {
BBtracker.gotoAndStop(1);
BBtracker._x = BigBlue._x;
BBtracker._y = BigBlue._y;
BBtracker._rotation = 0;
}
}
}
}
}
}
function updateLeads() {
for (var v3 in leadArray) {
var v2 = _root[leadArray[v3]];
v2.leadFunc();
}
Andrew._visible = true;
if (leadArray.length == 0) {
followFunc();
}
}
function attachBGfunc(myBG, level) {
myBG.onEnterFrame = function () {
with (myBG) {
optFunc();
if (PHASE == 'FOLLOW') {
this._x -= _root.xspeed / level;
}
if (_x + _width < -50 && noDespawn == undefined) {
com.greensock.TweenLite.killTweensOf(this);
removeMovieClip(this);
}
}
};
}
function newBG(instNameA, instNameB, myDepth) {
if (this[instNameA] == undefined) {
createEmptyMovieClip(instNameA, myDepth);
with (this[instNameA]) {
_x = cam._x - 400;
_y = 0;
attachMovie(instNameB, 'BG1', 10);
attachMovie(instNameB, 'BG2', 11);
BG1._x = -BG1._width / 2;
BG2._x = BG2._width / 2 - 4;
}
} else {
this[instNameA].nextBG = instNameB;
this[instNameA].trans = 'Start';
}
}
function initBGZ(bgType, symbolType, dir) {
bgZ.remove();
if (dir == undefined) {
dir = 1;
}
bgZ.attachMovie('ultraBG', 'ultraBG', bgZ.getNextHighestDepth(), {'_width': cam._width + 40, '_height': cam._height + 40});
bgZ.ultraBG.gotoAndStop(bgType);
bgZ.attachMovie(symbolType, 'bgOne', bgZ.getNextHighestDepth(), {'_width': cam._width + 20, '_height': cam._height + 20});
bgZ.attachMovie(symbolType, 'bgTwo', bgZ.getNextHighestDepth(), {'_width': cam._width + 20, '_height': cam._height + 20});
bgZ.bgTwo._x = bgZ.bgOne._x + bgZ.bgOne._width - 3;
bgC._visible = false;
bgB._visible = bgC._visible;
bgA._visible = bgC._visible;
bgZ.remove = function () {
bgC._visible = true;
bgB._visible = bgC._visible;
bgA._visible = bgC._visible;
removeMovieClip(bgZ.bgOne);
removeMovieClip(bgZ.bgTwo);
removeMovieClip(bgZ.ultraBG);
delete bgZ.finishFunc;
delete bgZ.onEnterFrame;
};
bgZ.onEnterFrame = function () {
with (bgZ) {
_x = cam._x;
_y = cam._y;
bgOne._x += 50 * dir;
bgTwo._x += 50 * dir;
if (dir > 0) {
if (bgOne._x >= 10 + bgOne._width) {
bgOne._x = bgTwo._x - bgTwo._width + 3;
} else {
if (bgTwo._x >= 10 + bgTwo._width) {
bgTwo._x = bgOne._x - bgOne._width + 3;
}
}
} else {
if (bgOne._x <= -10 - bgOne._width) {
bgOne._x = -bgTwo._x + bgTwo._width - 3;
} else {
if (bgTwo._x <= -10 - bgTwo._width) {
bgTwo._x = -bgOne._x + bgOne._width - 3;
}
}
}
}
};
}
function scrollBG() {
i = 0;
while (i < bgArray.length) {
if (speedArray[i] == undefined) {
speedArray[i] = speedArray[i - 1] * 1.5;
}
bgArray[i].BG1._x -= xspeed / speedArray[i];
bgArray[i].BG2._x -= xspeed / speedArray[i];
if (bgArray[i].BG1._x <= -30 - bgArray[i].BG1._width) {
if (bgArray[i].trans == 'Start') {
var v1 = bgArray[i].BG1._x;
removeMovieClip(bgArray[i].BG1);
bgArray[i].attachMovie(bgArray[i].nextBG + '_TR', 'BG1', 5, {'_x': v1});
if (bgArray[i].BG1 == undefined) {
bgArray[i].attachMovie(bgArray[i].nextBG, 'BG1', 5, {'_x': v1});
}
bgArray[i].trans = 'Mid';
bgArray[i].BG1.cacheAsBitmap = true;
} else {
if (bgArray[i].trans == 'Done') {
var v1 = bgArray[i].BG1._x;
removeMovieClip(bgArray[i].BG1);
bgArray[i].attachMovie(bgArray[i].nextBG, 'BG1', 5, {'_x': v1});
bgArray[i].trans = 'BothDone';
bgArray[i].BG1.cacheAsBitmap = true;
}
}
bgArray[i].BG1._x = bgArray[i].BG2._x + bgArray[i].BG2._width - 3;
}
if (bgArray[i].BG2._x <= -30 - bgArray[i].BG2._width) {
if (bgArray[i].trans == 'Mid') {
v1 = bgArray[i].BG2._x;
removeMovieClip(bgArray[i].BG2);
bgArray[i].attachMovie(bgArray[i].nextBG, 'BG2', 15, {'_x': v1});
bgArray[i].trans = 'Done';
bgArray[i].BG2.cacheAsBitmap = true;
}
bgArray[i].BG2._x = bgArray[i].BG1._x + bgArray[i].BG1._width - 3;
}
++i;
}
}
function showBoxes() {
for (var i in teamArray) {
var myBox = HUD[teamArray[i] + 'Box'];
myBox._visible = true;
com.greensock.TweenMax.from(myBox, 1, {'_x': 300, '_alpha': 0, 'ease': com.greensock.easing.Strong.easeOut});
myBox.getUnlocked();
}
if (user.data.ultraUnlock == true) {
HUD.attachMovie('ultraBar', 'ultraBar', HUD.getNextHighestDepth(), {'_x': 365, '_y': 192});
com.greensock.TweenLite.to(HUD.ultraBar, 1, {'_x': -335, 'ease': com.greensock.easing.Strong.easeOut});
HUD.ultraBar.updateDisplay = function () {
with (HUD.ultraBar) {
var myScale;
if (_root.ultraCharge <= 100) {
gotoAndStop(1);
outline.gotoAndStop(1);
myScale = _root.ultraCharge;
} else {
if (_root.ultraCharge <= 200) {
gotoAndStop(2);
outline.gotoAndStop(2);
myScale = _root.ultraCharge - 100;
if (_root.ultraCharge == 200 && _root.user.data.ultraLimit == 2) {
gotoAndStop(3);
outline.gotoAndPlay('twofull');
myScale = 0;
}
} else {
if (_root.ultraCharge <= 300) {
gotoAndStop(3);
outline.gotoAndStop(3);
myScale = _root.ultraCharge - 200;
if (_root.ultraCharge == 300 && _root.user.data.ultraLimit == 3) {
myScale = 0;
gotoAndStop(4);
outline.gotoAndPlay('threefull');
}
} else {
if (_root.ultraCharge <= 400) {
gotoAndStop(4);
outline.gotoAndStop(4);
myScale = _root.ultraCharge - 300;
if (_root.ultraCharge == 400 && _root.user.data.ultraLimit == 4) {
myScale = 0;
gotoAndStop(5);
outline.gotoAndPlay('fourfull');
}
}
}
}
}
myScale *= 0.952;
for (var j in teamArray) {
if (checkUltraCharge(HUD[teamArray[j] + 'Box'].ultraAmt) && _root.user.data[teamArray[j] + 'Upgrades'][3] == true && hasUltra(teamArray[j])) {
HUD[teamArray[j] + 'Box'].ultraRDY._visible = true;
com.greensock.TweenMax.to(HUD[teamArray[j] + 'Box'].ultraRDY, 1, {'_rotation': 360, 'repeat': -1, 'ease': com.greensock.easing.Linear.easeNone});
if (user.data.tutArray[7] == false) {
user.data.tutArray[7] = true;
HUD.attachMovie('tutUltraB', 'tutUltraB', HUD.getNextHighestDepth());
HUD.tutUltraB.onEnterFrame = function () {
for (var v3 in teamArray) {
if (_root[teamArray[v3]].stance == 'ULTRA') {
removeMovieClip(this);
}
}
if (_root.PHASE == 'DONE') {
removeMovieClip(this);
}
};
com.greensock.TweenLite.delayedCall(10, removeMC, [HUD.tutUltraB]);
}
} else {
HUD[teamArray[j] + 'Box'].ultraRDY._visible = false;
com.greensock.TweenLite.killTweensOf(HUD[teamArray[j] + 'Box'].ultraRDY);
}
}
com.greensock.TweenLite.to(bar, 0.5, {'_xscale': myScale, 'ease': com.greensock.easing.Strong.easeOut});
}
};
HUD.ultraBar.updateDisplay();
}
}
function checkActive(targ) {
var v1 = false;
for (var v3 in activeArray) {
if (targ == activeArray[v3]) {
v1 = true;
break;
}
}
return v1;
}
function hideBoxes() {
for (var v1 in teamArray) {
com.greensock.TweenLite.to(HUD[teamArray[v1] + 'Box'], 1, {'_x': -418, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenLite.delayedCall(1, removeMC, [HUD[teamArray[v1] + 'Box']]);
}
if (user.data.ultraUnlock == true) {
com.greensock.TweenMax.to(HUD.ultraBar, 1, {'_x': 365, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [HUD.ultraBar]});
}
}
function subtractUltra(lvl) {
var v2 = 0;
while (v2 < lvl) {
ultraCharge -= 100;
++v2;
}
HUD.ultraBar.updateDisplay();
++_root.ultrasUsed;
}
function followFunc() {
if (BBtracker == undefined) {
attachMovie('BBtrackerMC', 'BBtracker', getNextHighestDepth(), {'_x': BigBlue._x, '_y': BigBlue._y, '_alpha': 0});
}
com.greensock.TweenMax.to(BigBlue, 1, {'_x': 1000, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(cam, 1, {'_xscale': 150, '_yscale': 150, 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenMax.to(BBtracker, 1, {'_alpha': 100, 'ease': com.greensock.easing.Strong.easeOut});
PHASE = 'FOLLOW';
Andrew.gotoAndPlay('FOLLOW');
com.greensock.TweenMax.to(Andrew, 6, {'onComplete': removeMC, 'onCompleteParams': [Andrew]});
showBoxes();
if (user.data.tutArray[1] == false) {
HUD.attachMovie('tutClickFighters', 'tutClickFighters', _root.getNextHighestDepth(), {'_x': -310, '_y': 150});
com.greensock.TweenMax.from(HUD.tutClickFighters, 1, {'delay': 1.5, '_y': 200, '_alpha': 0, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.delayedCall(1.5, setPhase, ['FREEZE']);
HUD.tutClickFighters.onMouseDown = function () {
PHASE = 'FOLLOW';
com.greensock.TweenMax.to(HUD.tutClickFighters, 0.5, {'_y': 300, '_alpha': 0, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': gotoStop, 'onCompleteParams': [HUD.tutClickFighters, 2]});
com.greensock.TweenMax.to(HUD.tutClickFighters, 0.5, {'_y': 150, '_alpha': 100, 'delay': 3, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(HUD.tutClickFighters, 0.5, {'_y': 300, '_alpha': 0, 'delay': 8, 'ease': com.greensock.easing.Strong.easeOut, 'onComplete': removeMC, 'onCompleteParams': [HUD.tutClickFighters]});
user.data.tutArray[1] = true;
delete HUD.tutClickFighters.onMouseDown;
};
}
setCurTarg(BigBlue, 5947391);
removeMovieClip(chargeFrame);
removeMovieClip(chargeBar);
removeMovieClip(HUD.tutSpaceMC);
sortDepth();
}
function chargePOW() {
myTween = com.greensock.TweenMax.to(this, 0.8, {'initPOW': 100, 'repeat': -1, 'yoyo': true, 'ease': com.greensock.easing.Strong.easeIn});
com.greensock.TweenMax.to(cam, 0.5, {'_xscale': 75, '_yscale': 75, '_x': 160, '_y': Andrew._y, 'ease': com.greensock.easing.Strong.easeInOut});
Andrew.play();
}
function setupMap() {
attachMovie('camMC', 'cam', getNextHighestDepth(), {'_x': 350, '_y': 200});
attachMovie('displayMC', 'HUD', getNextHighestDepth(), {'_x': 350, '_y': 200});
HUD.gotoAndStop('blank');
attachMovie('fieldMap', 'mapMC', 6, {'_y': 200});
initMenuBar(0, true, HUD, 0);
mapMC.createEmptyMovieClip('lvlList', mapMC.getNextHighestDepth());
mapMC.curBTN = 'None';
mapMC.infoMC._alpha = 0;
mapMC.updateText = function () {
if (mapMC.curBTN == 'None') {
com.greensock.TweenMax.to(mapMC.infoMC, 1, {'_alpha': 0, '_y': 100, 'ease': com.greensock.easing.Strong.easeOut});
HUD.menuBar.retryBTN._visible = false;
HUD.menuBar.selectTXT.text = 'Select a level!';
} else {
com.greensock.TweenMax.from(mapMC.infoMC, 1, {'_alpha': 0, '_y': 100, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(mapMC.infoMC, 1, {'_alpha': 100, '_y': 0, 'ease': com.greensock.easing.Strong.easeOut});
HUD.menuBar.retryBTN._visible = true;
HUD.menuBar.selectTXT.text = '';
mapMC.infoMC.gotoAndStop(mapMC.curBTN.num);
}
};
mapMC.updateText();
var v2 = 1;
while (v2 <= user.data.levelProgress) {
mapMC.lvlList.attachMovie('lvl' + v2 + 'map', v2 + 'btn', mapMC.lvlList.getNextHighestDepth(), {'_x': 60 + 130 * (v2 - 1)});
var v3 = mapMC.lvlList[v2 + 'btn'];
if (user.data.bonusArray[v2] == true) {
v3.attachMovie('star' + v2, 'bonusStar', v3.getNextHighestDepth(), {'_y': 120, '_xscale': 120, '_yscale': 120});
}
v3.num = v2;
v3.onRollOver = function () {
rollA.start();
com.greensock.TweenMax.to(this, 0.2, {'glowFilter': {'color': FFFFFF, 'alpha': 1, 'blurX': 10, 'blurY': 10, 'strength': 3, 'ease': com.greensock.easing.Strong.easeOut}});
};
v3.onRelease = function () {
clickB.start();
if (mapMC.curBTN !== this) {
this.swapDepths(mapMC.lvlList.getNextHighestDepth() - 1);
this.titleTXT._visible = false;
mapMC.curBTN.titleTXT._visible = true;
com.greensock.TweenMax.to(mapMC.curBTN, 1, {'_xscale': 100, '_yscale': 100, 'ease': com.greensock.easing.Strong.easeOut});
mapMC.curBTN = this;
com.greensock.TweenMax.to(this, 1, {'_xscale': 200, '_yscale': 200, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(mapMC.lvlList, 1, {'_x': 350 - this._x, '_y': 90, 'ease': com.greensock.easing.Strong.easeOut});
mapMC.scrollBar._x = 54 + (this._x / mapMC.lvlList._width) * 603;
mapMC.bline._visible = false;
mapMC.scrollBar._visible = false;
mapMC.updateText();
} else {
com.greensock.TweenMax.to(this, 1, {'_xscale': 100, '_yscale': 100, 'ease': com.greensock.easing.Strong.easeOut});
this.titleTXT._visible = true;
mapMC.curBTN = 'None';
com.greensock.TweenMax.to(mapMC.lvlList, 1, {'_x': mapMC.updateLoc(), '_y': 0, 'ease': com.greensock.easing.Strong.easeOut});
mapMC.bline._visible = true;
mapMC.scrollBar._visible = true;
mapMC.updateText();
}
};
v3.onRollOut = function () {
com.greensock.TweenMax.to(this, 0.2, {'glowFilter': {'color': FFFFF, 'alpha': 1, 'blurX': 0, 'blurY': 0, 'strength': 0, 'ease': com.greensock.easing.Strong.easeOut, 'remove': true}});
};
false;
++v2;
}
}
function setupShop() {
attachMovie('camMC', 'cam', getNextHighestDepth(), {'_x': 350, '_y': 200});
attachMovie('displayMC', 'HUD', getNextHighestDepth(), {'_x': 350, '_y': 200});
HUD.gotoAndStop('blank');
attachMovie('shopWindow', 'shopMC', 6, {'_x': 0, '_y': 200});
initMenuBar(0, false, HUD, 0);
if (user.data.tutArray[10] == false) {
HUD.menuBar.attachMovie('retryShine', 'retryShine', HUD.menuBar.getNextHighestDepth(), {'_x': -251, '_y': 6, '_alpha': 0});
com.greensock.TweenMax.to(HUD.menuBar.retryShine, 0.7, {'_alpha': 100, 'yoyo': true, 'repeat': -1, 'ease': Regular.easeInOut});
user.data.tutArray[10] = true;
}
txtTotal = convertComma(user.data.scoreTotal);
shopMC.createEmptyMovieClip('shoplist', shopMC.getNextHighestDepth());
shopMC.attachMovie('dropAdd', 'dropAdd', shopMC.getNextHighestDepth(), {'_x': -200, '_y': 104.2});
shopMC.attachMovie('upgradeList', 'upgradeList', shopMC.getNextHighestDepth(), {'_x': 860, '_y': -59});
shopMC.couponBTN._visible = false;
if (user.data.coupon == true) {
shopMC.couponBTN._visible = true;
shopMC.couponBTN.gotoAndStop(1);
shopMC.couponBTN.isOn = false;
shopMC.couponBTN.onRelease = function () {
clickB.start();
with (shopMC.couponBTN) {
if (!isOn) {
gotoAndStop(3);
costMod = 0.5;
isOn = true;
} else {
gotoAndStop(1);
costMod = 1;
isOn = false;
}
}
};
shopMC.couponBTN.onRollOver = function () {
with (shopMC.couponBTN) {
gotoAndStop(2);
com.greensock.TweenMax.to(this, 0.1, {'glowFilter': {'color': FFFFFF, 'alpha': 1, 'blurX': 5, 'blurY': 5, 'strength': 4, 'ease': com.greensock.easing.Strong.easeOut}});
}
};
shopMC.couponBTN.onRollOut = function () {
with (shopMC.couponBTN) {
if (!isOn) {
gotoAndStop(1);
com.greensock.TweenMax.to(this, 0.1, {'glowFilter': {'color': FFFFFF, 'alpha': 1, 'blurX': 0, 'blurY': 0, 'strength': 0, 'ease': com.greensock.easing.Strong.easeOut, 'remove': true}});
} else {
gotoAndStop(3);
}
}
};
shopMC.revertCost = function () {
if (costMod == 0.5) {
user.data.coupon = false;
costMod = 1;
shopMC.couponBTN._visible = false;
}
};
}
shopMC.curBTN = 'None';
shopMC.ultraMC._visible = user.data.ultraUnlock;
shopMC.tokenMC._visible = shopMC.ultraMC._visible;
shopMC.tokenTXT._visible = shopMC.ultraMC._visible;
shopMC.tokenLABEL._visible = false;
shopMC.tokenTXT.text = user.data.slushTokens;
shopMC.shopFrame.gotoAndStop(_root.user.data.teamSize - 3);
shopMC.tokenMC.onRollOver = function () {
shopMC.tokenLABEL._visible = true;
};
shopMC.tokenMC.onRollOut = function () {
shopMC.tokenLABEL._visible = false;
};
with (shopMC.ultraMC) {
var myScale;
if (_root.ultraCharge <= 100) {
gotoAndStop(1);
outline.gotoAndStop(1);
myScale = _root.ultraCharge;
} else {
if (_root.ultraCharge <= 200) {
gotoAndStop(2);
outline.gotoAndStop(2);
myScale = _root.ultraCharge - 100;
if (_root.ultraCharge == 200 && _root.user.data.ultraLimit == 2) {
gotoAndStop(3);
outline.gotoAndPlay('twofull');
myScale = 0;
}
} else {
if (_root.ultraCharge <= 300) {
gotoAndStop(3);
outline.gotoAndStop(3);
myScale = _root.ultraCharge - 200;
if (_root.ultraCharge == 300 && _root.user.data.ultraLimit == 3) {
myScale = 0;
gotoAndStop(4);
outline.gotoAndPlay('threefull');
}
} else {
if (_root.ultraCharge <= 400) {
gotoAndStop(4);
outline.gotoAndStop(4);
myScale = _root.ultraCharge - 300;
if (_root.ultraCharge == 400 && _root.user.data.ultraLimit == 4) {
myScale = 0;
gotoAndStop(5);
outline.gotoAndPlay('fourfull');
}
}
}
}
}
myScale *= 0.952;
com.greensock.TweenLite.to(bar, 0.5, {'_xscale': myScale, 'ease': com.greensock.easing.Strong.easeOut});
}
shopMC.updateTeam = function () {
addTeamArrays(true);
for (var u in shopMC.boxArray) {
removeMovieClip(shopMC.boxArray[u]);
}
shopMC.boxArray = new Array();
var numBox = teamArray.length - 1;
var b = teamArray.length - 1;
while (b >= 0) {
var type = 'None';
for (var i in idleArray) {
if (teamArray[b] == idleArray[i]) {
type = 'Idle';
}
}
for (var k in activeArray) {
if (teamArray[b] == activeArray[k]) {
type = 'Active';
}
}
if (teamArray[b] == 'Pedro' && _root.user.data.PedroUpgrades[3] == true) {
shopMC.attachMovie('PedroBoxB', 'PedroBox', shopMC.getNextHighestDepth());
} else {
if (teamArray[b] == 'Eric' && _root.user.data.EricUpgrades[2] == true) {
shopMC.attachMovie('EricBoxB', 'EricBox', shopMC.getNextHighestDepth());
} else {
shopMC.attachMovie(teamArray[b] + type + 'Box', teamArray[b] + 'Box', shopMC.getNextHighestDepth());
}
}
if (type == 'Active' || type == 'Idle') {
var thisBox = shopMC[teamArray[b] + 'Box'];
thisBox._x = -350;
com.greensock.TweenMax.to(thisBox, 0.4, {'_x': 30 + numBox * 60, 'ease': com.greensock.easing.Strong.easeOut});
thisBox._y = 168;
thisBox._yscale = 80;
thisBox._xscale = 80;
thisBox.charge = 100;
thisBox.mySlush = teamArray[b];
thisBox.drag = false;
thisBox.prevx = 30 + numBox * 60;
thisBox.indx = b;
thisBox.anim = false;
shopMC.boxArray.unshift(thisBox);
--numBox;
initArrangeBoosts(teamArray[b], thisBox, false);
thisBox.onDragOut = function () {
with (this) {
if (!anim) {
drag = true;
var k = 0;
while (k < shopMC.boxArray.length) {
if (this.getDepth() < shopMC.boxArray[k].getDepth()) {
this.swapDepths(shopMC.boxArray[k]);
}
++k;
}
}
}
};
thisBox.onMouseMove = function () {
with (this) {
if (drag == true) {
_x = _root._xmouse;
_y = _root._ymouse - 200;
}
}
};
thisBox.onRelease = function () {
with (this) {
setAnim = function () {
anim = false;
};
if (drag == false) {
var wasBTN = shopMC.curBTN;
shopMC.curBTN.releaseFunc();
if (wasBTN !== shopMC.shoplist[this.mySlush + 'ShopBTN']) {
shopMC.shoplist[this.mySlush + 'ShopBTN'].releaseFunc();
}
}
if (drag == true) {
drag = false;
var swapped = false;
var k = shopMC.boxArray.length - 1;
while (k >= 0) {
if (_x >= shopMC.boxArray[k]._x - 27 && _x <= shopMC.boxArray[k]._x + 27 && shopMC.boxArray[k] !== this) {
anim = true;
com.greensock.TweenMax.to(this, 0.2, {'_x': shopMC.boxArray[k]._x, '_y': 168, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(shopMC.boxArray[k], 0.2, {'_x': prevx, '_y': 168, 'ease': com.greensock.easing.Strong.easeOut});
shopMC.boxArray[k].prevx = prevx;
prevx = shopMC.boxArray[k]._x;
var temp = teamArray[k];
teamArray[k] = teamArray[indx];
teamArray[indx] = temp;
var tempb = shopMC.boxArray[k].indx;
shopMC.boxArray[k].indx = indx;
var tempc = shopMC.boxArray[k];
shopMC.boxArray[k] = shopMC.boxArray[indx];
shopMC.boxArray[indx] = tempc;
indx = tempb;
var p = teamArray.length - 1;
while (p >= 0) {
initArrangeBoosts(teamArray[p], shopMC.boxArray[p], false);
--p;
}
com.greensock.TweenLite.delayedCall(0.2, setAnim);
break;
}
--k;
}
if (!swapped) {
com.greensock.TweenMax.to(this, 0.5, {'_x': prevx, '_y': 168, 'ease': com.greensock.easing.Strong.easeOut});
}
}
}
};
delete thisBox;
}
--b;
}
};
shopMC.checkFifty = function () {
if (_root.checkNumLocks() == 58) {
shopMC.attachMovie('fiftyPercent', 'fiftyNotify', shopMC.getNextHighestDepth(), {'_alpha': 0, '_y': 250});
shopMC.fiftyNotify._x = 350;
com.greensock.TweenMax.to(shopMC.fiftyNotify, 0.5, {'_y': 50, '_alpha': 100, '_xscale': 150, '_yscale': 150, 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenMax.to(shopMC.fiftyNotify, 1, {'delay': 5, '_y': 250, '_alpha': 0, 'ease': com.greensock.easing.Strong.easeInOut, 'onComplete': removeMC, 'onCompleteParams': [shopMC.fiftyNotify]});
user.data.slushTokens += 1;
shopMC.tokenTXT.text = user.data.slushTokens;
} else {
if (_root.checkNumLocks() == 116) {
shopMC.attachMovie('fiftyPercent', 'fiftyNotify', shopMC.getNextHighestDepth(), {'_alpha': 0, '_y': 250});
shopMC.fiftyNotify.gotoAndStop(2);
shopMC.fiftyNotify._x = 350;
com.greensock.TweenMax.to(shopMC.fiftyNotify, 0.5, {'_y': 50, '_alpha': 100, '_xscale': 150, '_yscale': 150, 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenMax.to(shopMC.fiftyNotify, 1, {'delay': 8, '_y': 250, '_alpha': 0, 'ease': com.greensock.easing.Strong.easeInOut, 'onComplete': removeMC, 'onCompleteParams': [shopMC.fiftyNotify]});
}
}
};
shopMC.animDeduction = function (charge) {
removeMC(this.deductMC);
this.attachMovie('numShopText', 'deductMC', this.getNextHighestDepth(), {'_x': 652.9, '_y': 161});
this.deductMC.TXT.text = '-' + convertComma(charge);
com.greensock.TweenMax.to(this.deductMC, 0.75, {'_y': 109, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this.deductMC, 1, {'_alpha': 0, 'delay': 1, 'onComplete': removeMC, 'onCompleteParams': [this.deductMC]});
shopMC.checkFifty();
};
var shopSpace = -80;
var i = 0;
while (i < allArray.length) {
var myBTN;
if (user.data[allArray[i] + 'Upgrades'][0] == 'Unlocked') {
shopMC.shoplist.attachMovie(allArray[i] + 'Shop', allArray[i] + 'ShopBTN', shopMC.shoplist.getNextHighestDepth(), {'_y': 100});
myBTN = shopMC.shoplist[allArray[i] + 'ShopBTN'];
shopSpace += 20 + myBTN._width;
myBTN._x = shopSpace;
myBTN.isSelected = false;
myBTN.char = allArray[i];
myBTN.gotoAndStop(1);
} else {
if (user.data[allArray[i] + 'Upgrades'][0] == 'Locked') {
myBTN = shopMC.shoplist.attachMovie(allArray[i] + 'Shop', allArray[i] + 'ShopBTN', shopMC.shoplist.getNextHighestDepth(), {'_y': 100});
myBTN = shopMC.shoplist[allArray[i] + 'ShopBTN'];
shopSpace += 20 + myBTN._width;
myBTN._x = shopSpace;
myBTN.char = allArray[i];
myBTN.gotoAndStop(2);
}
}
myBTN.onRollOver = function () {
rollA.start();
com.greensock.TweenMax.to(this, 0.1, {'glowFilter': {'color': FFFFFF, 'alpha': 1, 'blurX': 10, 'blurY': 10, 'strength': 3, 'ease': com.greensock.easing.Strong.easeOut}});
};
myBTN.unlockAnim = function () {
upgradeSND.start();
com.greensock.TweenMax.to(this, 0.3, {'_xscale': 110, '_yscale': 200, 'ease': com.greensock.easing.Strong.easeIn, 'colorTransform': {'tint': 16777215, 'tintAmount': 1}, 'onComplete': gotoStop, 'onCompleteParams': [this, 1]});
com.greensock.TweenMax.to(this, 0.7, {'_xscale': 125, '_yscale': 125, 'ease': com.greensock.easing.Strong.easeOut, 'colorTransform': {'tint': 16777215, 'tintAmount': 0}, 'removeTint': true, 'delay': 0.3});
com.greensock.TweenMax.from(_root.shopMC.upgradeList, 0.4, {'_x': 860, 'ease': com.greensock.easing.Strong.easeInOut});
com.greensock.TweenMax.to(_root.shopMC.dropAdd, 1, {'_x': 110, '_alpha': 100, 'ease': com.greensock.easing.Strong.easeOut});
this.initAll();
};
myBTN.initAll = function () {
this.swapDepths(shopMC.shoplist.getNextHighestDepth() - 1);
shopMC.dropAdd.char = this.char;
if (user.data[this.char + 'Upgrades'][0] == 'Unlocked') {
charSound(this.char);
shopMC.dropAdd.gotoAndStop(2);
shopMC.upgradeList.gotoAndStop(this.char);
for (var v6 in teamArray) {
if (this.char == teamArray[v6]) {
shopMC.dropAdd.gotoAndStop(1);
}
}
shopMC.dropAdd.onRollOver = function () {
rollA.start();
com.greensock.TweenMax.to(this, 0.3, {'_x': 120, 'ease': com.greensock.easing.Strong.easeOut});
};
shopMC.dropAdd.onRollOut = function () {
com.greensock.TweenMax.to(this, 0.3, {'_x': 110, 'ease': com.greensock.easing.Strong.easeOut});
};
shopMC.dropAdd.onRelease = function () {
clickA.start();
tweenShake(this);
if (this._currentframe == 1) {
var v3 = 0;
while (v3 <= teamArray) {
if (this.char == teamArray[v3]) {
teamArray.splice(v3, 1);
this.gotoAndStop(2);
break;
}
++v3;
}
} else {
if (teamArray.length < user.data.teamSize) {
teamArray.push(this.char);
this.gotoAndStop(1);
} else {
if (_root.user.data.tutArray[11] == false) {
shopMC.attachMovie('tutDrop', 'tutDrop', shopMC.getNextHighestDepth(), {'_y': 78, '_x': -245, '_alpha': 0});
com.greensock.TweenMax.to(shopMC.tutDrop, 1, {'_x': 160, '_alpha': 100, 'ease': com.greensock.easing.Strong.easeInOut});
_root.user.data.tutArray[11] = true;
}
this.gotoAndStop(4);
}
}
shopMC.updateTeam();
};
shopMC.upgradeList.aboutBTN.onRelease = function () {
clickA.start();
shopMC.upgradeList.gotoAndStop('about');
updateSlushUnlock(shopMC.curBTN.char, shopMC.upgradeList.newMC);
shopMC.upgradeList.newMC.unlockTXT.text = 'Unlocked!';
shopMC.upgradeList.newMC.onRollOver = function () {
rollA.start();
com.greensock.TweenMax.to(this, 0.1, {'_x': -90, '_y': 21, '_xscale': 100, '_yscale': 100, 'glowFilter': {'color': 0, 'alpha': 100, 'blurX': 0, 'blurY': 10, 'strength': 2}});
shopMC.upgradeList.backBTN._visible = false;
};
shopMC.upgradeList.newMC.onRollOut = function () {
com.greensock.TweenMax.to(this, 0.1, {'_x': -12, '_y': 3, '_xscale': 69, '_yscale': 69, 'glowFilter': {'color': 0, 'alpha': 0, 'blurX': 0, 'blurY': 0, 'strength': 0, 'remove': true}});
shopMC.upgradeList.backBTN._visible = true;
};
shopMC.upgradeList.backBTN.onRelease = function () {
clickA.start();
shopMC.upgradeList.gotoAndStop(shopMC.curBTN.char);
shopMC.curBTN.initAll();
};
};
} else {
if (user.data[this.char + 'Upgrades'][0] == 'Locked') {
shopMC.upgradeList.gotoAndStop('Unlock');
updateSlushUnlock(this.char, shopMC.upgradeList.newMC);
shopMC.upgradeList.newMC.parentBTN = this;
shopMC.upgradeList.newMC.onRelease = function () {
clickA.start();
if (teamArray.length < user.data.teamSize) {
teamArray.push(this.parentBTN.char);
shopMC.dropAdd.gotoAndStop(1);
shopMC.updateTeam();
}
user.data[this.parentBTN.char + 'Upgrades'][0] = 'Unlocked';
this.parentBTN.unlockAnim();
charSound(this.parentBTN.char);
this._parent.gotoAndStop(this.parentBTN.char);
};
shopMC.upgradeList.newMC.onRollOver = function () {
com.greensock.TweenMax.to(this, 0.1, {'_x': -90, '_y': 21, '_xscale': 100, '_yscale': 100, 'glowFilter': {'color': 0, 'alpha': 100, 'blurX': 0, 'blurY': 10, 'strength': 2}});
this._parent.unlockTXT._visible = false;
};
shopMC.upgradeList.newMC.onRollOut = function () {
com.greensock.TweenMax.to(this, 0.1, {'_x': -12, '_y': 3, '_xscale': 69, '_yscale': 69, 'glowFilter': {'color': 0, 'alpha': 0, 'blurX': 0, 'blurY': 0, 'strength': 0, 'remove': true}});
this._parent.unlockTXT._visible = true;
};
shopMC.dropAdd.gotoAndStop(3);
}
}
var v4 = 1;
while (v4 <= 4) {
var v3 = shopMC.upgradeList['upgrade' + v4];
v3.num = v4;
v3.char = this.char;
v3.lockMC._visible = !user.data[this.char + 'Upgrades'][v4];
v3.onRollOver = function () {
this.gotoAndStop(2);
this.lockMC._visible = !user.data[this.char + 'Upgrades'][this.num];
this.lockMC.gotoAndStop(1);
if (this.lockMC._visible) {
rollC.start();
if (_root[this.char + 'Prices'][this.num] !== null && _root[this.char + 'Prices'][this.num] !== 'Token') {
this.costTXT.text = _root.convertComma(_root[this.char + 'Prices'][this.num] * costMod) + 'pts';
}
} else {
rollB.start();
this.costTXT.text = '';
}
};
v3.onRollOut = function () {
this.gotoAndStop(1);
};
v3.onRelease = function () {
if (_root[this.char + 'Prices'][this.num] == 'Token' && user.data[this.char + 'Upgrades'][this.num] == false) {
if (user.data.slushTokens >= 1) {
ultraSND.start();
user.data.slushTokens -= 1;
shopMC.checkFifty();
user.data[this.char + 'Upgrades'][this.num] = true;
this.lockMC.gotoAndStop(2);
this.costTXT.text = '';
shopMC.tokenTXT.text = user.data.slushTokens;
shopMC.updateTeam();
} else {
boing.start();
}
} else {
if (user.data.scoreTotal >= _root[this.char + 'Prices'][this.num] * costMod && user.data[this.char + 'Upgrades'][this.num] == false && _root[this.char + 'Prices'][this.num] !== null) {
if (this.char == 'Omar' && this.num == 2 && user.data.OmarUpgrades[1] == false) {
} else {
upgradeSND.start();
user.data.scoreTotal -= _root[this.char + 'Prices'][this.num] * costMod;
shopMC.animDeduction(_root[this.char + 'Prices'][this.num] * costMod);
shopMC.revertCost();
txtTotal = convertComma(user.data.scoreTotal);
user.data[this.char + 'Upgrades'][this.num] = true;
this.lockMC.gotoAndStop(2);
this.costTXT.text = '';
shopMC.updateTeam();
}
} else {
boing.start();
}
}
};
++v4;
}
};
myBTN.releaseFunc = function (req) {
with (myBTN) {
if (shopMC.curBTN !== this) {
com.greensock.TweenMax.to(shopMC.curBTN, 1, {'_xscale': 100, '_yscale': 100, 'ease': com.greensock.easing.Strong.easeOut});
shopMC.curBTN = this;
shopMC.upgradeList._x = 860;
shopMC.dropAdd._x = -200;
com.greensock.TweenMax.to(shopMC.upgradeList, 0.5, {'_x': 570, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(shopMC.dropAdd, 0.5, {'_x': 110, '_alpha': 100, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 1, {'_xscale': 125, '_yscale': 125, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(shopMC.shoplist, 1, {'_x': 350 - this._x, 'ease': com.greensock.easing.Strong.easeOut});
shopMC.scrollBar._x = 50 + (this._x / shopMC.initWidth) * 600;
com.greensock.TweenMax.to(shopMC.bg, 1, {'_x': shopMC.updateLoc(1), 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(shopMC.bgb, 1, {'_x': shopMC.updateLoc(2), 'ease': com.greensock.easing.Strong.easeOut});
this.initAll();
} else {
com.greensock.TweenMax.to(this, 1, {'_xscale': 100, '_yscale': 100, 'ease': com.greensock.easing.Strong.easeOut});
shopMC.curBTN = 'None';
com.greensock.TweenMax.to(shopMC.upgradeList, 1, {'_x': 906, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(shopMC.dropAdd, 1, {'_x': -200, '_alpha': 0, 'ease': com.greensock.easing.Strong.easeOut});
if (req == undefined) {
com.greensock.TweenMax.to(shopMC.shoplist, 1, {'_x': shopMC.updateLoc(0), 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(shopMC.bg, 1, {'_x': shopMC.updateLoc(1), 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(shopMC.bgb, 1, {'_x': shopMC.updateLoc(2), 'ease': com.greensock.easing.Strong.easeOut});
}
}
}
};
myBTN.onRelease = function () {
this.releaseFunc();
};
myBTN.onRollOut = function () {
com.greensock.TweenMax.to(this, 0.2, {'glowFilter': {'color': FFFFFF, 'alpha': 1, 'blurX': 0, 'blurY': 0, 'strength': 0, 'ease': com.greensock.easing.Strong.easeOut, 'remove': true}});
};
myBTN.onEnterFrame = function () {
with (this) {
_visible = hitTest(cam);
}
};
delete myBTN;
++i;
}
if (user.data.hardMode == true) {
var NGshop = shopMC.shoplist.attachMovie('NGshop', 'NGshop', shopMC.shoplist.getNextHighestDepth(), {'_y': 100});
shopSpace += 20 + NGshop._width;
NGshop._x = shopSpace;
NGshop.onRollOver = function () {
rollA.start();
com.greensock.TweenMax.to(this, 0.2, {'glowFilter': {'color': FFFFFF, 'alpha': 1, 'blurX': 10, 'blurY': 10, 'strength': 3, 'ease': com.greensock.easing.Strong.easeOut}});
};
NGshop.onRollOut = function () {
com.greensock.TweenMax.to(this, 0.2, {'glowFilter': {'color': FFFFF, 'alpha': 1, 'blurX': 0, 'blurY': 0, 'strength': 0, 'ease': com.greensock.easing.Strong.easeOut, 'remove': true}});
};
NGshop.onRelease = function () {
clickA.start();
this.releaseFunc();
};
NGshop.updateTokens = function () {
if (user.data.ngArray[0] == 3) {
_root.costArray[0] = 100000;
} else {
if (user.data.ngArray[0] == 2) {
_root.costArray[0] = 300000;
} else {
if (user.data.ngArray[0] == 1) {
_root.costArray[0] = 900000;
}
}
}
};
NGshop.updateTokens();
NGshop.initAll = function () {
this.swapDepths(shopMC.shoplist.getNextHighestDepth() - 1);
shopMC.upgradeList.gotoAndStop('NGshop');
var v6 = shopMC.upgradeList.upgrade1;
v6.lockMC._visible = _root.user.data.ngArray[0] > 0;
v6.onRollOver = function () {
clickA.start();
this.gotoAndStop(2);
this.lockMC._visible = _root.user.data.ngArray[0] > 0;
this.lockMC.gotoAndStop(1);
if (this.lockMC._visible) {
this.costTXT.text = _root.convertComma(_root.costArray[0] * costMod) + 'pts';
} else {
this.costTXT.text = '';
}
};
v6.onRollOut = function () {
this.gotoAndStop(1);
};
v6.onRelease = function () {
if (user.data.scoreTotal >= _root.costArray[0] * costMod && user.data.ngArray[0] > 0) {
user.data.scoreTotal -= _root.costArray[0] * costMod;
shopMC.animDeduction(_root.costArray[0] * costMod);
shopMC.revertCost();
ultraSND.start();
txtTotal = convertComma(user.data.scoreTotal);
--user.data.ngArray[0];
shopMC.shoplist.NGshop.updateTokens();
++user.data.slushTokens;
shopMC.tokenTXT.text = user.data.slushTokens;
this.lockMC.gotoAndStop(2);
this.costTXT.text = '';
shopMC.updateTeam();
} else {
boing.start();
}
};
var v5 = shopMC.upgradeList.pageUpgrade;
v5.lockMC._visible = _root.user.data.ngArray[1] > 0;
v5.onRollOver = function () {
clickA.start();
this.gotoAndStop(2);
this.lockMC._visible = _root.user.data.ngArray[1] > 0;
this.lockMC.gotoAndStop(1);
if (this.lockMC._visible) {
this.costTXT.text = _root.convertComma(_root.costArray[1] * costMod) + 'pts';
} else {
this.costTXT.text = '';
}
};
v5.onRollOut = function () {
this.gotoAndStop(1);
};
v5.onRelease = function () {
if (user.data.scoreTotal >= _root.costArray[1] * costMod && user.data.ngArray[1] > 0) {
user.data.scoreTotal -= _root.costArray[1] * costMod;
shopMC.animDeduction(_root.costArray[1] * costMod);
upgradeSND.start();
shopMC.revertCost();
txtTotal = convertComma(user.data.scoreTotal);
--user.data.ngArray[1];
this.lockMC.gotoAndStop(2);
this.costTXT.text = '';
shopMC.updateTeam();
} else {
boing.start();
}
};
var v3 = 3;
while (v3 <= 4) {
var v4 = shopMC.upgradeList['upgrade' + v3];
v4.num = v3;
v4.lockMC._visible = !_root.user.data.ngArray[v3 - 1];
v4.onRollOver = function () {
clickA.start();
this.gotoAndStop(2);
this.lockMC._visible = !_root.user.data.ngArray[this.num - 1];
this.lockMC.gotoAndStop(1);
if (this.lockMC._visible) {
this.costTXT.text = _root.convertComma(_root.costArray[this.num - 1] * costMod) + 'pts';
} else {
this.costTXT.text = '';
}
};
v4.onRollOut = function () {
this.gotoAndStop(1);
};
v4.onRelease = function () {
if (user.data.scoreTotal >= _root.costArray[this.num - 1] * costMod && user.data.ngArray[this.num - 1] == false) {
user.data.scoreTotal -= _root.costArray[this.num - 1] * costMod;
shopMC.animDeduction(_root.costArray[this.num - 1] * costMod);
shopMC.revertCost();
ultraSND.start();
txtTotal = convertComma(user.data.scoreTotal);
user.data.ngArray[this.num - 1] = true;
if (this.num == 3) {
user.data.teamSize = 7;
shopMC.shopFrame.gotoAndStop(4);
} else {
if (this.num == 4) {
user.data.ultraLimit = 4;
}
}
this.lockMC.gotoAndStop(2);
this.costTXT.text = '';
shopMC.updateTeam();
} else {
boing.start();
}
};
++v3;
}
};
NGshop.releaseFunc = function (req) {
with (NGshop) {
if (shopMC.curBTN !== this) {
com.greensock.TweenMax.to(shopMC.curBTN, 1, {'_xscale': 100, '_yscale': 100, 'ease': com.greensock.easing.Strong.easeOut});
shopMC.curBTN = this;
shopMC.upgradeList._x = 860;
shopMC.dropAdd._x = -200;
com.greensock.TweenMax.to(shopMC.upgradeList, 0.5, {'_x': 570, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(this, 1, {'_xscale': 125, '_yscale': 125, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(shopMC.shoplist, 1, {'_x': 350 - this._x, 'ease': com.greensock.easing.Strong.easeOut});
shopMC.scrollBar._x = 50 + (this._x / shopMC.initWidth) * 600;
com.greensock.TweenMax.to(shopMC.bg, 1, {'_x': shopMC.updateLoc(1), 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(shopMC.bgb, 1, {'_x': shopMC.updateLoc(2), 'ease': com.greensock.easing.Strong.easeOut});
this.initAll();
} else {
com.greensock.TweenMax.to(this, 1, {'_xscale': 100, '_yscale': 100, 'ease': com.greensock.easing.Strong.easeOut});
shopMC.curBTN = 'None';
com.greensock.TweenMax.to(shopMC.upgradeList, 1, {'_x': 860, 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(shopMC.dropAdd, 1, {'_x': -200, '_alpha': 0, 'ease': com.greensock.easing.Strong.easeOut});
if (req == undefined) {
com.greensock.TweenMax.to(shopMC.shoplist, 1, {'_x': shopMC.updateLoc(0), 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(shopMC.bg, 1, {'_x': shopMC.updateLoc(1), 'ease': com.greensock.easing.Strong.easeOut});
com.greensock.TweenMax.to(shopMC.bgb, 1, {'_x': shopMC.updateLoc(2), 'ease': com.greensock.easing.Strong.easeOut});
}
}
}
};
}
shopMC.updateTeam();
}
function setupInfo() {
attachMovie('camMC', 'cam', getNextHighestDepth(), {'_x': 350, '_y': 200});
attachMovie('displayMC', 'HUD', getNextHighestDepth(), {'_x': 350, '_y': 200});
HUD.gotoAndStop('blank');
attachMovie('infoMC', 'infoMC', 6, {'_x': 0, '_y': 200});
initMenuBar(0, false, HUD, 0);
}
function updateSlushUnlock(mySlush, MC) {
MC.gotoAndStop(mySlush);
MC.attachMovie('newMC', nwMC, MC.getNextHighestDepth(), {'_x': 161, '_y': -78, '_rotation': 16.6, '_xscale': 60, '_yscale': 60});
MC.boxMC.charge = 100;
MC.boxMC.rgn._yscale = 100;
MC.boxMC.hpbar._visible = false;
}
function lookupColor(mySlush, isFill) {
var v2;
var v1;
switch (mySlush) {
case 'Andrew':
v2 = 5947391;
v1 = 3376383;
break;
case 'Pedro':
v2 = 16776960;
v1 = 0;
break;
case 'Marc':
v2 = 16751001;
v1 = 16711680;
break;
case 'Matt':
v2 = 16711935;
v1 = null;
break;
case 'Khanh':
v2 = 10066278;
v1 = 5327416;
break;
case 'Kyle':
v2 = 16750848;
v1 = 13369344;
break;
case 'Ben':
v2 = 65280;
v1 = 16777215;
break;
case 'Tucker':
v2 = 16777215;
v1 = 16724736;
break;
case 'Wes':
v2 = 16763904;
v1 = 39321;
break;
case 'Brian':
v2 = 10079334;
v1 = 204;
break;
case 'Corey':
v2 = 16751103;
v1 = 16777215;
break;
case 'JK':
v2 = 16777113;
v1 = 6711039;
break;
case 'Sagar':
v2 = 10040166;
v1 = null;
break;
case 'Hang':
v2 = 16711680;
v1 = 10027008;
break;
case 'Eric':
v2 = 65535;
v1 = 255;
break;
case 'Thomas':
v2 = 0;
v1 = 255;
break;
case 'Omar':
v2 = 7033637;
v1 = 16777215;
break;
case 'Josh':
v2 = 13395507;
v1 = 16777215;
break;
case 'James':
v2 = 6710937;
v1 = 0;
break;
case 'Addison':
v2 = 39168;
v1 = 6684825;
break;
case 'Sean':
v2 = 10027263;
v1 = 16750848;
break;
case 'Waqas':
v2 = 6710886;
v1 = null;
break;
case 'Stewart':
v2 = 13421823;
v1 = 10768804;
break;
case 'Dan':
v2 = 13421772;
v1 = 255;
break;
case 'Luke':
v2 = 52377;
v1 = 255;
break;
case 'Michael':
v2 = 10066329;
v1 = 26265;
break;
case 'BriStick':
v2 = 26265;
v1 = 16777215;
break;
case 'Kirby':
v2 = 16600532;
v1 = 16647181;
break;
case 'Jorge':
v2 = 10092288;
v1 = 3394560;
}
if (isFill) {
return v2;
} else {
return v1;
}
}
function addTeamArrays(isEveryone) {
activeArray = new Array();
idleArray = new Array();
leadArray = new Array();
var v3;
if (isEveryone) {
v3 = allArray;
} else {
v3 = teamArray;
}
var v2 = 0;
while (v2 < v3.length) {
var v1 = v3[v2];
switch (v1) {
case 'Pedro':
activeArray.push(v1);
break;
case 'Marc':
activeArray.push(v1);
break;
case 'Matt':
activeArray.push(v1);
break;
case 'Ben':
activeArray.push(v1);
break;
case 'Tucker':
idleArray.push(v1);
break;
case 'Khanh':
idleArray.push(v1);
break;
case 'Corey':
idleArray.push(v1);
break;
case 'JK':
idleArray.push(v1);
break;
case 'Brian':
idleArray.push(v1);
break;
case 'Kyle':
if (user.data.KyleUpgrades[2]) {
activeArray.push(v1);
}
idleArray.push(v1);
leadArray.push(v1);
break;
case 'Wes':
activeArray.push(v1);
break;
case 'Sagar':
activeArray.push(v1);
break;
case 'Hang':
activeArray.push(v1);
break;
case 'Eric':
activeArray.push(v1);
break;
case 'Thomas':
activeArray.push(v1);
break;
case 'Omar':
activeArray.push(v1);
break;
case 'Josh':
if (user.data.JoshUpgrades[1]) {
leadArray.push(v1);
}
idleArray.push(v1);
break;
case 'James':
activeArray.push(v1);
break;
case 'Addison':
activeArray.push(v1);
break;
case 'Sean':
activeArray.push(v1);
break;
case 'Waqas':
activeArray.push(v1);
idleArray.push(v1);
break;
case 'Stewart':
activeArray.push(v1);
break;
case 'Dan':
activeArray.push(v1);
break;
case 'Luke':
leadArray.push(v1);
activeArray.push(v1);
idleArray.push(v1);
break;
case 'Michael':
activeArray.push(v1);
break;
case 'BriStick':
activeArray.push(v1);
break;
case 'Kirby':
activeArray.push(v1);
break;
case 'Jorge':
activeArray.push(v1);
break;
case 'Andrew':
}
++v2;
}
}
function charSound(slush) {
var v2 = 'charSound' + getNextHighestDepth();
attachMovie('charSound', v2, getNextHighestDepth());
_root[v2].gotoAndPlay(slush);
var v3 = new Sound(_root[v2]);
v3.setVolume(80);
}
function applyLevelFilter(ylimit, belowClr, aboveClr, belowAlpha, aboveAlpha) {
for (var v19 in teamArray) {
var v2 = _root[teamArray[v19]];
if (v2._y < ylimit && v2.isLit) {
com.greensock.TweenMax.to(v2, 1, {'dropShadowFilter': {'color': belowClr, 'alpha': belowAlpha, 'blurX': 20, 'blurY': 20, 'strength': 1, 'angle': 287, 'distance': 8, 'inner': true}});
com.greensock.TweenMax.to(v2, 1, {'dropShadowFilter': {'color': aboveClr, 'alpha': aboveAlpha, 'blurX': 20, 'blurY': 20, 'strength': 1, 'angle': 72, 'distance': 8, 'inner': true}});
v2.isLit = false;
} else {
if (v2._y >= ylimit && v2.isLit == false) {
com.greensock.TweenMax.to(v2, 1, {'dropShadowFilter': {'color': aboveClr, 'alpha': aboveAlpha, 'blurX': 20, 'blurY': 20, 'strength': 1, 'angle': 287, 'distance': 8, 'inner': true}});
com.greensock.TweenMax.to(v2, 1, {'dropShadowFilter': {'color': belowClr, 'alpha': belowAlpha, 'blurX': 20, 'blurY': 20, 'strength': 1, 'angle': 72, 'distance': 8, 'inner': true}});
v2.isLit = true;
}
}
}
for (var v18 in enemyArray) {
var v3 = enemyArray[v18];
if (v3._y < ylimit && v3.isLit) {
com.greensock.TweenMax.to(v3, 1, {'dropShadowFilter': {'color': belowClr, 'alpha': belowAlpha, 'blurX': 20, 'blurY': 20, 'strength': 1, 'angle': 287, 'distance': 8, 'inner': true}});
com.greensock.TweenMax.to(v3, 1, {'dropShadowFilter': {'color': aboveClr, 'alpha': aboveAlpha, 'blurX': 20, 'blurY': 20, 'strength': 1, 'angle': 72, 'distance': 8, 'inner': true}});
v3.isLit = false;
} else {
if (v3._y >= ylimit && v3.isLit == false) {
com.greensock.TweenMax.to(v3, 1, {'dropShadowFilter': {'color': aboveClr, 'alpha': aboveAlpha, 'blurX': 20, 'blurY': 20, 'strength': 1, 'angle': 287, 'distance': 8, 'inner': true}});
com.greensock.TweenMax.to(v3, 1, {'dropShadowFilter': {'color': belowClr, 'alpha': belowAlpha, 'blurX': 20, 'blurY': 20, 'strength': 1, 'angle': 72, 'distance': 8, 'inner': true}});
v3.isLit = true;
}
}
}
}
function hasUltra(mySlush) {
return mySlush == 'Kyle' || mySlush == 'Tucker' || mySlush == 'Corey' || mySlush == 'Hang' || mySlush == 'Eric' || mySlush == 'Thomas' || mySlush == 'Omar' || mySlush == 'James' || mySlush == 'Ben' || mySlush == 'Addison' || mySlush == 'Sean' || mySlush == 'Waqas' || mySlush == 'Luke' || mySlush == 'Michael';
}
function checkUltraCharge(amt) {
return ultraCharge >= amt * 100;
}
function hurtSplat(targ, h) {
var v2 = 0;
while (v2 < 4) {
var v3 = 'hitSplatFB' + getNextHighestDepth();
_root.attachMovie('effectHitA', v3, getNextHighestDepth(), {'_xscale': 150, '_yscale': 150, '_x': targ._x, '_y': targ._y, '_rotation': 45 + 90 * v2});
com.greensock.TweenMax.to(_root[v3], 0, {'colorMatrixFilter': {'hue': h, 'saturation': 2}});
++v2;
}
}
function convertComma(myNum) {
var v6 = myNum;
var v3 = v6.toString();
var v1 = v3.slice(0, v3.length);
var v2 = v1.length;
if (v2 <= 3) {
return v3;
} else {
if (v2 > 3 && v2 < 7) {
var v9 = v1.slice(0, -3);
var v4 = v1.slice(-3);
var v7 = v9 + ',' + v4;
return v7;
} else {
if (v2 > 6 && v2 < 10) {
var v9 = v1.slice(0, -6);
var v4 = v1.slice(-6, -3);
var v8 = v1.slice(-3);
var v7 = v9 + ',' + v4 + ',' + v8;
return v7;
} else {
v2 > 9;
if (v2 < 13) {
var v9 = v1.slice(0, -9);
var v4 = v1.slice(-9, -6);
var v8 = v1.slice(-6, -3);
var v5 = v1.slice(-3);
var v7 = v9 + ',' + v4 + ',' + v8 + ',' + v5;
return v7;
}
}
}
}
}
function addTriesMarker() {
var v1 = 0;
while (v1 < prevTriesArray.length) {
var v3 = 'flag' + v1;
var v2 = -333 + 295 * prevTriesArray[v1];
if (user.data.currentLevel == 5 || user.data.currentLevel == 10 || user.data.currentLevel == 15 || user.data.currentLevel == 21) {
v2 = -16.5 - 295 * prevTriesArray[v1];
} else {
if (user.data.currentLevel == 16 || user.data.currentLevel == 18) {
v2 = -67 - 295 * prevTriesArray[v1];
}
}
if (user.data.currentLevel == 8 && user.data.hardMode == false) {
} else {
HUD.attachMovie('tryFlag', v3, HUD.getNextHighestDepth(), {'_x': v2, '_y': -185});
HUD[v3].numTXT.text = Number(v1 + 1);
}
++v1;
}
}
function niceTXT(msg, pt, hu) {
score += pt;
initScoreDigits(pt, 'Score');
updateScore();
dinnerbell.start();
var v1 = 'nice' + HUD.getNextHighestDepth();
HUD.attachMovie('niceTXT', v1, HUD.getNextHighestDepth(), {'_y': -109});
HUD[v1].TXT.text = msg;
HUD[v1].PT.text = '+' + pt;
tweenShake(HUD[v1]);
if (hu !== undefined) {
com.greensock.TweenMax.to(HUD[v1], 0, {'colorMatrixFilter': {'hue': hu}});
}
com.greensock.TweenMax.from(HUD[v1], 0.2, {'ease': com.greensock.easing.Strong.easeOut, 'blurFilter': {'blurX': 10, 'blurY': 10}});
com.greensock.TweenMax.to(HUD[v1], 0.2, {'ease': com.greensock.easing.Strong.easeOut, 'blurFilter': {'blurX': 0, 'blurY': 0, 'remove': true}});
com.greensock.TweenMax.to(HUD[v1], 2, {'delay': 1.3, '_alpha': 0, 'ease': com.greensock.easing.Strong.easeIn, 'onComplete': removeMC, 'onCompleteParams': [HUD[v1]]});
}
function removeTriesMarker() {
k = 0;
while (k < prevTriesArray.length) {
removeMovieClip(HUD['flag' + k]);
++k;
}
}
function landSound() {
if (groundType == 'ROAD' || groundType == 'MOON') {
if (random(2) == 0) {
hardhit.start();
} else {
smashhitB.start();
}
} else {
if (groundType == 'GRASS' || groundType == 'SPOOKY' || groundType == 'ORANGEGRASS') {
if (random(2) == 0) {
grassA.start();
} else {
snowgrasshit.start();
}
} else {
if (groundType == 'BITS' || groundType == 'BITSB') {
bithurt.start();
if (random(2) == 0) {
bitA.start();
} else {
bitB.start();
}
} else {
if (groundType == 'SNOW') {
if (random(2) == 0) {
snowgrasshit.start();
} else {
snowhit.start();
}
} else {
if (groundType == 'WATER') {
splashA.start();
}
}
}
}
}
}
stop();
costMod = 1;
var activeArray;
var idleArray;
var leadArray;
var enemyArray;
var tipsArray;
var bgArray;
var speedArray;
var prevTriesArray = new Array();
var powerhitA = new Sound();
powerhitA.attachSound('powerhitA');
var smgA = new Sound();
smgA.attachSound('smgA');
var dinnerbell = new Sound();
dinnerbell.attachSound('dinnerbell');
var punchSND = new Sound();
punchSND.attachSound('punchSND');
var flashSND = new Sound();
flashSND.attachSound('flashSND');
var costArray = new Array(100000, 80000, 1200000, 500000);
curMenu = 2;
onEnterFrame = function () {
switch (PHASE) {
case 'LAUNCH':
if (SPACE || mouseHold == 1 && !HUD.volumeBTN.hitTest(_xmouse, _ymouse, false) && !HUD.qualityBTN.hitTest(_xmouse, _ymouse, false)) {
PHASE = 'CHARGE';
attachMovie('chargeBarMC', 'chargeBar', getNextHighestDepth(), {'_x': 73, '_y': 202, '_xscale': 64.40000000000001, '_yscale': 1, '_rotation': 90});
attachMovie('chargeFrameMC', 'chargeFrame', getNextHighestDepth(), {'_x': 113, '_y': 202});
chargePOW();
}
break;
case 'CHARGE':
sortDepth();
chargeBar._yscale = initPOW;
if (!SPACE && mouseHold == 0 || mouseHold == 2) {
bgAnimateHit();
Andrew.gotoAndStop('HIT');
myTween.pause();
xspeed = initPOW * 100 / 100;
yspeed = initPOW * 50 / 100;
damage(Andrew, BigBlue, Math.round(initPOW), 'UP');
PHASE = 'STALL';
shakeCam(Math.round(initPOW) / 2, Math.round(initPOW) / 2);
if (initPOW >= 98) {
niceTXT('Max Charge', 750, 84);
}
hardhit.start();
if (leadArray.length == 0) {
com.greensock.TweenMax.delayedCall(0.5 * initPOW / 100, followFunc);
} else {
PHASE = 'LEADS';
}
}
updateShake();
break;
case 'LEADS':
sortDepth();
updateLeads();
updateShake();
break;
case 'FOLLOW':
if (user.data.currentLevel !== 5 && user.data.currentLevel !== 10 && user.data.currentLevel !== 15 && user.data.currentLevel !== 21) {
if (!BigBlue.onMobile) {
physics();
}
checkSlowdown();
}
camFollow();
sortDepth();
scrollBG();
updateHUD();
updateStats();
updateLevel();
updateShake();
break;
case 'FREEZE':
camFollow();
sortDepth();
updateHUD();
break;
case 'DONE':
updateHUD();
break;
case 'STALL':
updateShake();
break;
default:
}
if (levelDone) {
PHASE = 'DONE';
}
SPACEpress = false;
UPpress = false;
WKEYpress = UPpress;
};
onMouseUp = function () {
mouseHold = 2;
};
onMouseDown = function () {
mouseHold = 1;
if (Stewart != undefined && Stewart.stance == 'ATTACK') {
HUD.StewartBox.optDown();
}
if (Luke != undefined && Luke.stance == 'ATTACK') {
HUD.LukeBox.optDown();
}
var v2 = false;
for (var v3 in teamArray) {
if (HUD[teamArray[v3] + 'Box'].hitTest(_xmouse, _ymouse, false)) {
v2 = true;
break;
}
}
if (user.data.currentLevel == 5 || user.data.currentLevel == 10 || user.data.currentLevel == 15 || user.data.currentLevel == 21) {
if (!v2) {
Hero.clickFunc();
}
} else {
for (v3 in enemyArray) {
var v1 = enemyArray[v3];
if (v1.hitTest(_xmouse, _ymouse, false) && (v1.hp > 0 || v1 == mainTarg) && !v2) {
setCurTarg(v1);
}
}
}
};
var hardhitA = new Sound();
hardhitA.attachSound('hardhitA');
var blasterA = new Sound();
blasterA.attachSound('blasterA');
var laserA = new Sound();
laserA.attachSound('laserA');
var fireA = new Sound();
fireA.attachSound('fireA');
var pewSnd = new Sound();
pewSnd.attachSound('LShitPew');
var thudSnd = new Sound();
thudSnd.attachSound('LShitThud');
var smgA = new Sound();
smgA.attachSound('smgA');
var smgB = new Sound();
smgB.attachSound('smgB');
var swordhitA = new Sound();
swordhitA.attachSound('swordhitA');
var boomC = new Sound();
boomC.attachSound('boomC');
var thudshot = new Sound();
thudshot.attachSound('thudshot');
var flareA = new Sound();
flareA.attachSound('flareA');
var flareB = new Sound();
flareB.attachSound('flareB');
var boomA = new Sound();
boomA.attachSound('boomA');
var boomB = new Sound();
boomB.attachSound('boomB');
var firelight = new Sound();
firelight.attachSound('firelight');
var swordhitC = new Sound();
swordhitC.attachSound('swordhitC');
var swordhitB = new Sound();
swordhitB.attachSound('swordhitB');
var horizon = new Sound();
horizon.attachSound('horizon');
var smashpow = new Sound();
smashpow.attachSound('smashpow');
var suction = new Sound();
suction.attachSound('suction');
var comboSND = new Sound();
comboSND.attachSound('comboSND');
var orchit = new Sound();
orchit.attachSound('orch24');
var rifleshot = new Sound();
rifleshot.attachSound('rifleshot');
var slaphitA = new Sound();
slaphitA.attachSound('slaphitA');
var ricochet = new Sound();
ricochet.attachSound('ricochet');
var bithurt = new Sound();
bithurt.attachSound('bithurt');
var metalplate = new Sound();
metalplate.attachSound('metalplate');
var metalhit = new Sound();
metalhit.attachSound('metalhit');
updateScore();
var hardhit = new Sound();
hardhit.attachSound('hardhit6');
var smashhitB = new Sound();
smashhitB.attachSound('smashhitB');
var grassA = new Sound();
grassA.attachSound('grassA');
var bitA = new Sound();
bitA.attachSound('bitA');
var bitB = new Sound();
bitB.attachSound('bitB');
var snowgrasshit = new Sound();
snowgrasshit.attachSound('snowgrasshit');
var snowhit = new Sound();
snowhit.attachSound('snowhit');
var splashA = new Sound();
splashA.attachSound('splashA');
removeFromArray('Hero', _root.teamArray);
if (setScreen == 'game') {
checkCutscene('startScreen', 2, user.data.currentLevel);
} else {
if (setScreen == 'team') {
setupShop();
} else {
if (setScreen == 'map') {
setupMap();
} else {
if (setScreen == 'info') {
setupInfo();
}
}
}
}
}
frame 6 {
function finishFunc() {
setScreen = 'Cutscene';
if (isCredits == 0) {
fadeIn('Squares');
removeMovieClip(skipBtn);
com.greensock.TweenLite.delayedCall(2, fadeOut, ['game', 'Squares']);
com.greensock.TweenLite.delayedCall(2.05, init);
com.greensock.TweenLite.delayedCall(2, removeMC, [cutMC]);
delete finishFunc;
delete onEnterFrame;
delete recolor;
} else {
if (isCredits == 1) {
isCredits = 2;
cutMC.gotoAndPlay('SKIP');
} else {
if (isCredits == 2) {
removeMovieClip(skipBtn);
fadeIn('Squares');
com.greensock.TweenLite.delayedCall(2, fadeOut, ['Main', 'Squares']);
com.greensock.TweenLite.delayedCall(2, removeMC, [cutMC]);
com.greensock.TweenLite.delayedCall(1.9, unloadAll);
}
}
}
}
function recolor(targ, num) {
com.greensock.TweenMax.to(targ, 0, {'glowFilter': {'index': 0, 'color': clrArray[num - 1], 'alpha': 1, 'blurX': 100, 'blurY': 100, 'strength': 3, 'inner': true}, 'overwrite': 0});
if (glowArray[num - 1] !== null) {
com.greensock.TweenMax.to(targ, 0, {'glowFilter': {'index': 1, 'color': glowArray[num - 1], 'alpha': 1, 'blurX': 4, 'blurY': 4, 'strength': 50}, 'overwrite': 0});
}
}
var clrArray = new Array();
var glowArray = new Array();
var isCredits = 0;
if (teamArray.length >= 3) {
var i = 0;
while (i < 3) {
clrArray.push(lookupColor(teamArray[i], true));
++i;
}
var j = 0;
while (j < 3) {
glowArray.push(lookupColor(teamArray[j], false));
++j;
}
} else {
clrArray = new Array(lookupColor('Pedro', true), lookupColor('Marc', true), lookupColor('Khanh', true));
glowArray = new Array(lookupColor('Pedro', false), lookupColor('Marc', false), lookupColor('Khanh', false));
}
if (user.data.story == 'LevelFourPrecut') {
user.data.story = 'LevelFour';
newSong(null, 1, 0);
attachMovie('entryCutscene', 'cutMC', getNextHighestDepth());
} else {
if (user.data.story == 'LevelFivePrecut') {
user.data.story = 'LevelFive';
newSong(RunFightTheme, 1, 80);
attachMovie('hokietronIntro', 'cutMC', getNextHighestDepth());
clrArray.push(lookupColor('Andrew', true));
glowArray.push(lookupColor('Andrew', false));
} else {
if (user.data.story == 'LevelTenPrecut') {
user.data.story = 'LevelTen';
newSong(RunFightTheme, 1, 80);
attachMovie('etherintro', 'cutMC', getNextHighestDepth());
clrArray.push(lookupColor('Andrew', true));
glowArray.push(lookupColor('Andrew', false));
} else {
if (user.data.story == 'LevelTenPostcut') {
user.data.story = 'LevelEleven';
attachMovie('etheroutro', 'cutMC', getNextHighestDepth());
clrArray.push(lookupColor('Andrew', true));
glowArray.push(lookupColor('Andrew', false));
} else {
if (user.data.story == 'LevelFifteenPrecut') {
user.data.story = 'LevelFifteen';
attachMovie('blueTeamIntro', 'cutMC', getNextHighestDepth());
clrArray.push(lookupColor('Andrew', true));
glowArray.push(lookupColor('Andrew', false));
reInitRun();
newSong(RunTheme, 1, 80);
} else {
if (user.data.story == 'LevelFifteenPostcut') {
user.data.story = 'LevelSixteen';
attachMovie('pokemonIntro', 'cutMC', getNextHighestDepth());
clrArray.push(lookupColor('Andrew', true));
glowArray.push(lookupColor('Andrew', false));
newSong(RunTheme, 1, 80);
} else {
if (user.data.story == 'LevelEighteenPrecut') {
user.data.story = 'LevelEighteen';
attachMovie('pokemonOutro', 'cutMC', getNextHighestDepth());
newSong(RunTheme, 1, 80);
} else {
if (user.data.story == 'LevelEighteenPostcut') {
user.data.story = 'LevelNineteen';
attachMovie('moonIntro', 'cutMC', getNextHighestDepth());
newSong(RunTheme, 1, 80);
} else {
if (user.data.story == 'LevelTwentyOnePrecut') {
user.data.story = 'LevelTwentyOne';
attachMovie('bossIntro', 'cutMC', getNextHighestDepth());
clrArray.push(lookupColor('Andrew', true));
glowArray.push(lookupColor('Andrew', false));
newSong(RunTheme, 1, 80);
reInitMain();
} else {
if (user.data.story == 'LevelTwentyOnePostcut') {
newSong(RunFightTheme, 1, 80);
user.data.story = 'GameFinish';
attachMovie('finalCut', 'cutMC', getNextHighestDepth());
clrArray.push(lookupColor('Andrew', true));
glowArray.push(lookupColor('Andrew', false));
isCredits = 1;
}
}
}
}
}
}
}
}
}
}
onEnterFrame = function () {
recolor(cutMC.A, 1);
recolor(cutMC.B, 2);
recolor(cutMC.C, 3);
recolor(cutMC.T, 4);
};
attachMovie('SkipScene', 'skipBtn', _root.getNextHighestDepth(), {'_x': 800, '_y': 380});
skipBtn.stop();
com.greensock.TweenMax.to(skipBtn, 1, {'delay': 2, '_x': 643});
skipBtn.onRollOver = function () {
rollA.start();
skipBtn.gotoAndStop(2);
};
skipBtn.onRollOut = function () {
skipBtn.gotoAndStop(1);
};
skipBtn.onRelease = function () {
clickA.start();
removeMovieClip(skipBtn);
cutMC.stop();
finishFunc();
};
}