Combined Code
movieClip 6 {
}
movieClip 8 {
}
movieClip 10 {
}
movieClip 12 {
}
movieClip 14 {
}
movieClip 15 platform {
frame 1 {
stop();
}
}
movieClip 20 dots {
frame 1 {
stop();
}
}
frame 1 {
stop();
Stage.showMenu = false;
playagain_btn.onRelease = function () {};
}
movieClip 22 {
}
movieClip 23 {
}
// unknown tag 88 length 63
movieClip 26 {
frame 1 {
stop();
}
}
instance loader of movieClip 26 {
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
_root.loader.P = percent;
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
}
movieClip 271 __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 272 __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;
}
var v3 = tween.timeline;
if (!tween.cachedOrphan && v3) {
v3.remove(tween, true);
}
tween.timeline = this;
tween.cachedStartTime = Number(time) + tween.__get__delay();
if (tween.gc) {
tween.setEnabled(true, true);
}
if (tween.cachedPaused && v3 != this) {
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 273 __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 274 __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 275 __Packages.mochi.as2.MochiEventDispatcher {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiEventDispatcher) {
var v1 = function () {
this.eventTable = {};
};
mochi.as2.MochiEventDispatcher = v1;
var v2 = v1.prototype;
v2.buildDelegate = function (thisObject, thatObject) {
var v2 = {'thisObject': thisObject, 'thatObject': thatObject};
if (thatObject != undefined) {
var funct = (typeof thatObject == 'string') ? thisObject[thatObject] : thatObject;
v2.delegate = function (args) {
funct.call(thisObject, args);
};
return v2;
}
v2.delegate = thisObject;
return v2;
};
v2.compareDelegate = function (d_A, d_B) {
if (d_A.thisObject != d_B.thisObject || d_A.thatObject != d_B.thatObject) {
return false;
}
return true;
};
v2.addEventListener = function (event, thisObject, thatObject) {
this.removeEventListener(event, thisObject, thatObject);
this.eventTable[event].push(this.buildDelegate(thisObject, thatObject));
};
v2.removeEventListener = function (event, thisObject, thatObject) {
var v3 = this.buildDelegate(thisObject, thatObject);
if (this.eventTable[event] == undefined) {
this.eventTable[event] = [];
return undefined;
}
for (var v4 in this.eventTable[event]) {
if (!this.compareDelegate(this.eventTable[event][v4], v3)) {
continue;
}
this.eventTable[event].splice(Number(v4), 1);
}
};
v2.triggerEvent = function (event, args) {
if (this.eventTable[event] == undefined) {
return undefined;
}
for (var v4 in this.eventTable[event]) {
this.eventTable[event][v4].delegate(args);
}
};
ASSetPropFlags(mochi.as2.MochiEventDispatcher.prototype, null, 1);
}
#endinitclip
}
movieClip 276 __Packages.mochi.as2.MochiServices {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiServices) {
var v1 = function () {};
mochi.as2.MochiServices = v1;
var v2 = v1.prototype;
v1.__get__id = function () {
return mochi.as2.MochiServices._id;
};
v1.__get__clip = function () {
return mochi.as2.MochiServices._container;
};
v1.__get__childClip = function () {
return mochi.as2.MochiServices._clip;
};
v1.getVersion = function () {
return '3.9.4 as2';
};
v1.allowDomains = function (server) {
var v1 = ((server.split('/'))[2].split(':'))[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain('*');
System.security.allowDomain(v1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain('*');
System.security.allowInsecureDomain(v1);
}
}
return v1;
};
v1.__get__isNetworkAvailable = function () {
if (System.security) {
var v1 = System.security;
if (v1.sandboxType == 'localWithFile') {
return false;
}
}
return true;
};
v1.__set__comChannelName = function (val) {
if (val != undefined) {
if (val.length > 3) {
mochi.as2.MochiServices._sendChannelName = val + '_fromgame';
mochi.as2.MochiServices.initComChannels();
}
}
return mochi.as2.MochiServices.__get__comChannelName();
};
v1.__get__connected = function () {
return mochi.as2.MochiServices._connected;
};
v1.connect = function (id, clip, onError) {
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else {
if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
mochi.as2.MochiServices.warnID(id, false);
if (!mochi.as2.MochiServices._connected && mochi.as2.MochiServices._clip == undefined) {
trace('MochiServices Connecting...');
mochi.as2.MochiServices._connecting = true;
mochi.as2.MochiServices.init(id, clip);
}
};
v1.disconnect = function () {
if (mochi.as2.MochiServices._connected || mochi.as2.MochiServices._connecting) {
mochi.as2.MochiServices._connected = false;
mochi.as2.MochiServices._connecting = mochi.as2.MochiServices._connected;
mochi.as2.MochiServices.flush(true);
if (mochi.as2.MochiServices._clip != undefined) {
mochi.as2.MochiServices._clip.removeMovieClip();
delete mochi.as2.MochiServices._clip;
}
mochi.as2.MochiServices._listenChannel.close();
}
};
v1.init = function (id, clip) {
mochi.as2.MochiServices._id = id;
if (clip != undefined) {
mochi.as2.MochiServices._container = clip;
} else {
mochi.as2.MochiServices._container = _root;
}
mochi.as2.MochiServices.loadCommunicator(id, mochi.as2.MochiServices._container);
};
v1.loadCommunicator = function (id, clip) {
var v6 = '_mochiservices_com_' + id;
var v5 = new MovieClipLoader();
var v3 = {};
if (mochi.as2.MochiServices._clip != null) {
return mochi.as2.MochiServices._clip;
}
if (!mochi.as2.MochiServices.__get__isNetworkAvailable()) {
mochi.as2.MochiServices.onError('NotConnected');
return null;
}
if ((mochi.as2.MochiServices.urlOptions()).servURL) {
mochi.as2.MochiServices._servURL = (mochi.as2.MochiServices.urlOptions()).servURL;
}
var v4 = mochi.as2.MochiServices._servURL + mochi.as2.MochiServices._services;
if ((mochi.as2.MochiServices.urlOptions()).servicesURL) {
v4 = (mochi.as2.MochiServices.urlOptions()).servicesURL;
}
mochi.as2.MochiServices.allowDomains(v4);
mochi.as2.MochiServices._clip = clip.createEmptyMovieClip(v6, 10336, false);
mochi.as2.MochiServices._listenChannelName += Math.floor((new Date()).getTime()) + '_' + Math.floor(Math.random() * 99999);
mochi.as2.MochiServices.listen();
if (v3.waitInterval != null) {
clearInterval(v3.waitInterval);
}
v3.onLoadError = mochi.as2.MochiServices.loadError;
v3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
v3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
v3.startTime = getTimer();
v3.wait = function () {
if (getTimer() - this.startTime > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError('IOError');
}
clearInterval(this.waitInterval);
}
};
v3.waitInterval = setInterval(v3, 'wait', 1000);
v5.addListener(v3);
v5.loadClip(v4 + '?listenLC=' + mochi.as2.MochiServices._listenChannelName + '&mochiad_options=' + escape(_root.mochiad_options) + '&api_version=' + mochi.as2.MochiServices.getVersion(), mochi.as2.MochiServices._clip);
mochi.as2.MochiServices._sendChannel = new LocalConnection();
mochi.as2.MochiServices._sendChannel._queue = [];
return mochi.as2.MochiServices._clip;
};
v1.loadError = function (target_mc, errorCode, httpStatus) {
trace('MochiServices could not load.');
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError(errorCode);
};
v1.onStatus = function (infoObject) {
if (infoObject.level !== 'error') {
} else {
mochi.as2.MochiServices._connected = false;
mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName);
}
};
v1.listen = function () {
mochi.as2.MochiServices._listenChannel = new LocalConnection();
mochi.as2.MochiServices._listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
mochi.as2.MochiServices._listenChannel.allowDomain = function (d) {
return true;
};
mochi.as2.MochiServices._listenChannel.allowInsecureDomain = mochi.as2.MochiServices._listenChannel.allowDomain;
mochi.as2.MochiServices._listenChannel._nextcallbackID = 0;
mochi.as2.MochiServices._listenChannel._callbacks = {};
mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName);
trace('Waiting for MochiAds services to connect...');
};
v1.initComChannels = function () {
if (!mochi.as2.MochiServices._connected) {
mochi.as2.MochiServices._sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'handshakeDone'});
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'registerGame', 'id': mochi.as2.MochiServices._id, 'version': mochi.as2.MochiServices.getVersion()});
mochi.as2.MochiServices._listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
mochi.as2.MochiServices._listenChannel.onReceive = function (pkg) {
var v5 = pkg.callbackID;
var v4 = this._callbacks[v5];
if (!v4) {
return undefined;
}
var v2 = v4.callbackMethod;
var v3 = v4.callbackObject;
if (v3 && typeof v2 == 'string') {
v2 = v3[v2];
}
if (v2 != undefined) {
v2.apply(v3, pkg.args);
}
delete this._callbacks[v5];
};
mochi.as2.MochiServices._listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case 'services':
mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args);
break;
case 'events':
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case 'coins':
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case 'social':
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
}
};
mochi.as2.MochiServices._listenChannel.onError = function () {
mochi.as2.MochiServices.onError('IOError');
};
trace('[SERVICES_API] connected!');
mochi.as2.MochiServices._connecting = false;
mochi.as2.MochiServices._connected = true;
while (mochi.as2.MochiServices._sendChannel._queue.length > 0) {
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', mochi.as2.MochiServices._sendChannel._queue.shift());
}
}
};
v1.flush = function (error) {
var v1;
var v2;
while (mochi.as2.MochiServices._sendChannel._queue.length > 0) {
v1 = mochi.as2.MochiServices._sendChannel._queue.shift();
false;
if (v1.callbackID != null) {
v2 = mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID];
}
delete mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID];
if (error) {
mochi.as2.MochiServices.handleError(v1.args, v2.callbackObject, v2.callbackMethod);
}
}
};
v1.handleError = function (args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError('NotConnected');
}
if (args.options != null && args.options.onError != null) {
args.options.onError('NotConnected');
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = 'NotConnected';
if (callbackObject != null && typeof callbackMethod == 'string') {
callbackObject[callbackMethod](args);
} else {
if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
};
v1.send = function (methodName, args, callbackObject, callbackMethod) {
if (mochi.as2.MochiServices._connected) {
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID});
} else {
if (mochi.as2.MochiServices._clip == undefined || !mochi.as2.MochiServices._connecting) {
trace('Error: MochiServices not connected. Please call MochiServices.connect(). Function: ' + methodName);
mochi.as2.MochiServices.handleError(args, callbackObject, callbackMethod);
mochi.as2.MochiServices.flush(true);
return undefined;
} else {
mochi.as2.MochiServices._sendChannel._queue.push({'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID});
}
}
mochi.as2.MochiServices._listenChannel._callbacks[mochi.as2.MochiServices._listenChannel._nextcallbackID] = {'callbackObject': callbackObject, 'callbackMethod': callbackMethod};
++mochi.as2.MochiServices._listenChannel._nextcallbackID;
};
v1.urlOptions = function () {
var v5 = {};
var v6;
if (_root._url.indexOf('mochiad_options') != -1) {
var v2 = _root._url.indexOf('mochiad_options') + 'mochiad_options'.length + 1;
v6 = _root._url.substr(v2, _root._url.length);
} else {
if (_root.mochiad_options) {
v6 = _root.mochiad_options;
}
}
if (v6) {
var v4 = _root.mochiad_options.split('&');
var v2 = 0;
while (v2 < v4.length) {
var v3 = v4[v2].split('=');
v5[unescape(v3[0])] = unescape(v3[1]);
++v2;
}
}
return v5;
};
v1.warnID = function (bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace('WARNING: ' + (leaderboard ? 'board' : 'game') + ' ID is not the appropriate length');
return undefined;
} else {
if (bid == '1e113c7239048b3f') {
if (leaderboard) {
trace('WARNING: Using testing board ID');
} else {
trace('WARNING: Using testing board ID as game ID');
}
return undefined;
} else {
if (bid == '84993a1de4031cd8') {
if (leaderboard) {
trace('WARNING: Using testing game ID as board ID');
} else {
trace('WARNING: Using testing game ID');
}
return undefined;
}
}
}
var v1 = 0;
while (v1 < bid.length) {
switch (bid.charAt(v1)) {
if (bid.charAt(v1) !== 'f') {
} else {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
case 'a':
break;
case 'b':
case 'c':
case 'd':
case 'e':
}
default:
trace('WARNING: Board ID contains illegal characters: ' + bid);
return undefined;
}
++v1;
}
};
v1.addLinkEvent = function (url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var v2 = new Object();
v2.mav = mochi.as2.MochiServices.getVersion();
v2.swfv = btn.getSWFVersion() || 6;
v2.swfurl = btn._url;
v2.fv = System.capabilities.version;
v2.os = System.capabilities.os;
v2.lang = System.capabilities.language;
v2.scres = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY;
var s = '?';
var v3 = 0;
for (var v6 in v2) {
if (v3 != 0) {
s += '&';
}
++v3;
s = s + v6 + '=' + escape(v2[v6]);
}
if (!(mochi.as2.MochiServices.netupAttempted || mochi.as2.MochiServices._connected)) {
var ping = btn.createEmptyMovieClip('ping', 777);
var v7 = btn.createEmptyMovieClip('nettest', 778);
mochi.as2.MochiServices.netupAttempted = true;
ping.loadMovie('http://link.mochiads.com/linkping.swf?t=' + getTimer());
v7.onEnterFrame = function () {
if (ping._totalframes > 0 && ping._totalframes == ping._framesloaded) {
delete this.onEnterFrame;
} else {
if (getTimer() - t0 > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
}
};
}
var v4 = btn.createEmptyMovieClip('clk', 1001);
v4._alpha = 0;
v4.beginFill(1044735);
v4.moveTo(0, 0);
v4.lineTo(0, btn._height);
v4.lineTo(btn._width, btn._height);
v4.lineTo(btn._width, 0);
v4.lineTo(0, 0);
v4.endFill();
v4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL(url + s, '_blank');
} else {
getURL(burl, '_blank');
}
if (onClick != undefined) {
onClick();
}
};
};
v1.setContainer = function (clip) {};
v1.stayOnTop = function (clip) {};
v1.addEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiServices._dispatcher.addEventListener(eventType, thisObject, thatObject);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiServices._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiServices._dispatcher.removeEventListener(eventType, thisObject, thatObject);
};
v1.CONNECTED = 'onConnected';
v1._servURL = 'http://www.mochiads.com/static/lib/services/';
v1._services = 'services.swf';
v1._mochiLC = 'MochiLC.swf';
v1._listenChannelName = '__ms_';
v1._connecting = false;
v1._connected = false;
v1.netup = true;
v1.netupAttempted = false;
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
v1.addProperty('childClip', v1.__get__childClip, function () {});
v1.addProperty('clip', v1.__get__clip, function () {});
v1.addProperty('comChannelName', function () {}, v1.__set__comChannelName);
v1.addProperty('connected', v1.__get__connected, function () {});
v1.addProperty('id', v1.__get__id, function () {});
v1.addProperty('isNetworkAvailable', v1.__get__isNetworkAvailable, function () {});
ASSetPropFlags(mochi.as2.MochiServices.prototype, null, 1);
}
#endinitclip
}
movieClip 277 __Packages.mochi.as2.MochiEvents {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiEvents) {
var v1 = function () {};
mochi.as2.MochiEvents = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.getAchievements = function (properties) {
mochi.as2.MochiServices.send('events_getAchievements', properties);
};
v1.unlockAchievement = function (properties) {
mochi.as2.MochiServices.send('events_unlockAchievement', properties);
};
v1.startSession = function (achievementID) {
mochi.as2.MochiServices.send('events_beginSession', {'achievementID': achievementID}, null, null);
};
v1.showAwards = function (options) {
mochi.as2.MochiServices.send('events_showAwards', options, null, null);
};
v1.setNotifications = function (style) {
mochi.as2.MochiServices.send('events_setNotifications', style, null, null);
};
v1.addEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiEvents._dispatcher.addEventListener(eventType, thisObject, thatObject);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiEvents._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiEvents._dispatcher.removeEventListener(eventType, thisObject, thatObject);
};
v1.startPlay = function (tag) {
if (tag == undefined) {
tag = 'gameplay';
}
mochi.as2.MochiServices.send('events_setRoundID', {'tag': String(tag)}, null, null);
};
v1.endPlay = function () {
mochi.as2.MochiServices.send('events_clearRoundID', null, null, null);
};
v1.trackEvent = function (tag, value) {
mochi.as2.MochiServices.send('events_trackEvent', {'tag': tag, 'value': value}, null, null);
};
v1.ACHIEVEMENTS_OWNED = 'AchievementOwned';
v1.ACHIEVEMENT_NEW = 'AchievementReceived';
v1.GAME_ACHIEVEMENTS = 'GameAchievements';
v1.ERROR = 'Error';
v1.IO_ERROR = 'IOError';
v1.IO_PENDING = 'IOPending';
v1.ALIGN_TOP_LEFT = 'ALIGN_TL';
v1.ALIGN_TOP = 'ALIGN_T';
v1.ALIGN_TOP_RIGHT = 'ALIGN_TR';
v1.ALIGN_LEFT = 'ALIGN_L';
v1.ALIGN_CENTER = 'ALIGN_C';
v1.ALIGN_RIGHT = 'ALIGN_R';
v1.ALIGN_BOTTOM_LEFT = 'ALIGN_BL';
v1.ALIGN_BOTTOM = 'ALIGN_B';
v1.ALIGN_BOTTOM_RIGHT = 'ALIGN_BR';
v1.FORMAT_SHORT = 'ShortForm';
v1.FORMAT_LONG = 'LongForm';
v1.FORMAT_NONE = 'NoForm';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiEvents.prototype, null, 1);
}
#endinitclip
}
movieClip 278 __Packages.mochi.as2.MochiCoins {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiCoins) {
var v1 = function () {};
mochi.as2.MochiCoins = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.showStore = function (options) {
mochi.as2.MochiServices.send('coins_showStore', {'options': options}, null, null);
};
v1.showItem = function (options) {
if (options == undefined || typeof options.item != 'string') {
trace('ERROR: showItem call must pass an Object with an item key');
return undefined;
}
mochi.as2.MochiServices.send('coins_showItem', {'options': options}, null, null);
};
v1.showVideo = function (options) {
if (options == undefined || typeof options.item != 'string') {
trace('ERROR: showVideo call must pass an Object with an item key');
return undefined;
}
mochi.as2.MochiServices.send('coins_showVideo', {'options': options}, null, null);
};
v1.getStoreItems = function () {
mochi.as2.MochiServices.send('coins_getStoreItems');
};
v1.requestFunding = function (properties) {
mochi.as2.MochiServices.send('social_requestFunding', properties);
};
v1.addEventListener = function (eventType, delegate) {
mochi.as2.MochiCoins._dispatcher.addEventListener(eventType, delegate);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiCoins._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, delegate) {
mochi.as2.MochiCoins._dispatcher.removeEventListener(eventType, delegate);
};
v1.STORE_SHOW = 'StoreShow';
v1.STORE_HIDE = 'StoreHide';
v1.ITEM_OWNED = 'ItemOwned';
v1.ITEM_NEW = 'ItemNew';
v1.STORE_ITEMS = 'StoreItems';
v1.ERROR = 'Error';
v1.IO_ERROR = 'IOError';
v1.NO_USER = 'NoUser';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiCoins.prototype, null, 1);
}
#endinitclip
}
movieClip 279 __Packages.mochi.as2.MochiSocial {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiSocial) {
var v1 = function () {};
mochi.as2.MochiSocial = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.showLoginWidget = function (options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send('social_showLoginWidget', {'options': options});
};
v1.hideLoginWidget = function () {
mochi.as2.MochiServices.send('social_hideLoginWidget');
};
v1.requestLogin = function (properties) {
mochi.as2.MochiServices.send('social_requestLogin', properties);
};
v1.getFriendsList = function (properties) {
mochi.as2.MochiServices.send('social_getFriendsList', properties);
};
v1.showProfile = function (options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send('social_showProfile', options);
};
v1.postToStream = function (properties) {
mochi.as2.MochiServices.send('social_postToStream', properties);
};
v1.inviteFriends = function (properties) {
mochi.as2.MochiServices.send('social_inviteFriends', properties);
};
v1.requestFan = function (properties) {
mochi.as2.MochiServices.send('social_requestFan', properties);
};
v1.saveUserProperties = function (properties) {
mochi.as2.MochiServices.send('social_saveUserProperties', properties);
};
v1.addEventListener = function (eventType, delegate) {
mochi.as2.MochiSocial._dispatcher.addEventListener(eventType, delegate);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiSocial._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, delegate) {
mochi.as2.MochiSocial._dispatcher.removeEventListener(eventType, delegate);
};
v1.LOGGED_IN = 'LoggedIn';
v1.LOGGED_OUT = 'LoggedOut';
v1.LOGIN_SHOW = 'LoginShow';
v1.LOGIN_HIDE = 'LoginHide';
v1.LOGIN_SHOWN = 'LoginShown';
v1.PROFILE_SHOW = 'ProfileShow';
v1.PROFILE_HIDE = 'ProfileHide';
v1.PROPERTIES_SAVED = 'PropertySaved';
v1.WIDGET_LOADED = 'WidgetLoaded';
v1.FRIEND_LIST = 'FriendsList';
v1.PROFILE_DATA = 'ProfileData';
v1.GAMEPLAY_DATA = 'GameplayData';
v1.ACTION_CANCELED = 'onCancel';
v1.ACTION_COMPLETE = 'onComplete';
v1.USER_INFO = 'UserInfo';
v1.ERROR = 'Error';
v1.IO_ERROR = 'IOError';
v1.NO_USER = 'NoUser';
v1.PROPERTIES_SIZE = 'PropertiesSize';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiSocial.prototype, null, 1);
}
#endinitclip
}
movieClip 280 __Packages.mochi.as2.MochiScores {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiScores) {
var v1 = function () {};
mochi.as2.MochiScores = v1;
var v2 = v1.prototype;
v1.setBoardID = function (boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send('scores_setBoardID', {'boardID': boardID});
};
v1.showLeaderboard = function (options) {
options.clip = mochi.as2.MochiServices.clip;
if (options.clip != mochi.as2.MochiServices.__get__clip() || (mochi.as2.MochiServices.__get__childClip())._target == undefined) {
mochi.as2.MochiServices.disconnect();
trace('WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!');
trace('make sure MochiServices.connect is called as early in the application runtime as possible.');
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof options.name == 'object') {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else {
if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
}
var v1 = Number(options.score);
if (isNaN(v1)) {
trace('ERROR: Submitted score \'' + options.score + '\' will be rejected, score is \'Not a Number\'');
} else {
if (v1 == Number.NEGATIVE_INFINITY || v1 == Number.POSITIVE_INFINITY) {
trace('ERROR: Submitted score \'' + options.score + '\' will be rejected, score is an infinite');
} else {
if (Math.floor(v1) != v1) {
trace('WARNING: Submitted score \'' + options.score + '\' will be truncated');
}
options.score = v1;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
(mochi.as2.MochiServices.__get__clip()).stop();
}
if (options.onClose != null) {
mochi.as2.MochiScores.onClose = options.onClose;
} else {
mochi.as2.MochiScores.onClose = function () {
(mochi.as2.MochiServices.__get__clip()).play();
};
}
if (options.onError != null) {
mochi.as2.MochiScores.onError = options.onError;
} else {
mochi.as2.MochiScores.onError = mochi.as2.MochiScores.onClose;
}
if (options.boardID == null) {
if (mochi.as2.MochiScores.boardID != null) {
options.boardID = mochi.as2.MochiScores.boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace('[MochiScores] NOTE: Security Sandbox Violation errors below are normal');
mochi.as2.MochiServices.send('scores_showLeaderboard', {'options': options}, null, mochi.as2.MochiScores.doClose);
};
v1.closeLeaderboard = function () {
mochi.as2.MochiServices.send('scores_closeLeaderboard');
};
v1.getPlayerInfo = function (callbackObj, callbackMethod) {
mochi.as2.MochiServices.send('scores_getPlayerInfo', null, callbackObj, callbackMethod);
};
v1.submit = function (score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace('ERROR: Submitted score \'' + String(score) + '\' will be rejected, score is \'Not a Number\'');
} else {
if (score == Number.NEGATIVE_INFINITY || score == Number.POSITIVE_INFINITY) {
trace('ERROR: Submitted score \'' + String(score) + '\' will be rejected, score is an infinite');
} else {
if (Math.floor(score) != score) {
trace('WARNING: Submitted score \'' + String(score) + '\' will be truncated');
}
score = Number(score);
}
}
mochi.as2.MochiServices.send('scores_submit', {'score': score, 'name': name}, callbackObj, callbackMethod);
};
v1.requestList = function (callbackObj, callbackMethod) {
mochi.as2.MochiServices.send('scores_requestList', null, callbackObj, callbackMethod);
};
v1.scoresArrayToObjects = function (scores) {
var v5 = {};
var v1;
var v4;
var v2;
var v6;
for (var v8 in scores) {
if (typeof scores[v8] == 'object') {
if (scores[v8].cols != null && scores[v8].rows != null) {
v5[v8] = [];
v2 = scores[v8];
v4 = 0;
while (v4 < v2.rows.length) {
v6 = {};
v1 = 0;
while (v1 < v2.cols.length) {
v6[v2.cols[v1]] = v2.rows[v4][v1];
++v1;
}
v5[v8].push(v6);
++v4;
}
} else {
v5[v8] = {};
for (var v7 in scores[v8]) {
v5[v8][v7] = scores[v8][v7];
}
}
} else {
v5[v8] = scores[v8];
}
}
return v5;
};
v1.doClose = function (args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = 'IOError';
}
mochi.as2.MochiScores.onError.apply(null, [args.errorCode]);
} else {
mochi.as2.MochiScores.onClose.apply();
}
};
ASSetPropFlags(mochi.as2.MochiScores.prototype, null, 1);
}
#endinitclip
}
movieClip 281 __Packages.mochi.as2.MochiDigits {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiDigits) {
var v1 = function (digit, index) {
this.Encoder = 0;
this.setValue(digit, index);
};
mochi.as2.MochiDigits = v1;
var v2 = v1.prototype;
v2.__get__value = function () {
return Number(this.toString());
};
v2.__set__value = function (v) {
this.setValue(v);
return this.__get__value();
};
v2.addValue = function (v) {
this.value += v;
};
v2.setValue = function (digit, index) {
var v3 = digit.toString();
if (index == undefined || isNaN(index)) {
index = 0;
}
this.Fragment = v3.charCodeAt(index++) ^ this.Encoder;
if (index < v3.length) {
this.Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
this.Sibling = null;
}
this.reencode();
};
v2.reencode = function () {
var v2 = int(2147483647 * Math.random());
this.Fragment ^= v2 ^ this.Encoder;
this.Encoder = v2;
};
v2.toString = function () {
var v2 = String.fromCharCode(this.Fragment ^ this.Encoder);
return (this.Sibling != null) ? v2.concat(this.Sibling.toString()) : v2;
};
v2.addProperty('value', v2.__get__value, v2.__set__value);
ASSetPropFlags(mochi.as2.MochiDigits.prototype, null, 1);
}
#endinitclip
}
movieClip 282 __Packages.mx.events.EventDispatcher {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.events) {
_global.mx.events = new Object();
}
if (!_global.mx.events.EventDispatcher) {
var v1 = function () {};
mx.events.EventDispatcher = v1;
var v2 = v1.prototype;
v1._removeEventListener = function (queue, event, handler) {
if (queue != undefined) {
var v4 = queue.length;
var v1;
v1 = 0;
while (v1 < v4) {
var v2 = queue[v1];
if (v2 == handler) {
queue.splice(v1, 1);
return undefined;
}
++v1;
}
}
};
v1.initialize = function (object) {
if (mx.events.EventDispatcher._fEventDispatcher == undefined) {
mx.events.EventDispatcher._fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = mx.events.EventDispatcher._fEventDispatcher.addEventListener;
object.removeEventListener = mx.events.EventDispatcher._fEventDispatcher.removeEventListener;
object.dispatchEvent = mx.events.EventDispatcher._fEventDispatcher.dispatchEvent;
object.dispatchQueue = mx.events.EventDispatcher._fEventDispatcher.dispatchQueue;
};
v2.dispatchQueue = function (queueObj, eventObj) {
var v7 = '__q_' + eventObj.type;
var v4 = queueObj[v7];
if (v4 != undefined) {
var v5;
for (v5 in v4) {
var v1 = v4[v5];
var v3 = typeof v1;
if (v3 == 'object' || v3 == 'movieclip') {
if (v1.handleEvent != undefined) {
v1.handleEvent(eventObj);
}
if (v1[eventObj.type] != undefined) {
if (mx.events.EventDispatcher.exceptions[eventObj.type] == undefined) {
v1[eventObj.type](eventObj);
}
}
} else {
v1.apply(queueObj, [eventObj]);
}
}
}
};
v2.dispatchEvent = function (eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + 'Handler'](eventObj);
this.dispatchQueue(this, eventObj);
};
v2.addEventListener = function (event, handler) {
var v3 = '__q_' + event;
if (this[v3] == undefined) {
this[v3] = new Array();
}
_global.ASSetPropFlags(this, v3, 1);
mx.events.EventDispatcher._removeEventListener(this[v3], event, handler);
this[v3].push(handler);
};
v2.removeEventListener = function (event, handler) {
var v2 = '__q_' + event;
mx.events.EventDispatcher._removeEventListener(this[v2], event, handler);
};
v1._fEventDispatcher = undefined;
v1.exceptions = {'move': 1, 'draw': 1, 'load': 1};
ASSetPropFlags(mx.events.EventDispatcher.prototype, null, 1);
}
#endinitclip
}
movieClip 283 __Packages.mx.transitions.Transition {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.transitions) {
_global.mx.transitions = new Object();
}
if (!_global.mx.transitions.Transition) {
var v1 = function (content, transParams, manager) {
if (!arguments.length) {
return undefined;
}
this.init(content, transParams, manager);
};
mx.transitions.Transition = v1;
var v2 = v1.prototype;
v2.__set__manager = function (mgr) {
if (this._manager != undefined) {
this.removeEventListener('transitionInDone', this._manager);
this.removeEventListener('transitionOutDone', this._manager);
this.removeEventListener('transitionProgress', this._manager);
}
this._manager = mgr;
this.addEventListener('transitionInDone', this._manager);
this.addEventListener('transitionOutDone', this._manager);
this.addEventListener('transitionProgress', this._manager);
return this.__get__manager();
};
v2.__get__manager = function () {
return this._manager;
};
v2.__set__content = function (c) {
if (typeof c == 'movieclip') {
this._content = c;
this._twn.obj = c;
}
return this.__get__content();
};
v2.__get__content = function () {
return this._content;
};
v2.__set__direction = function (direction) {
this._direction = direction ? 1 : 0;
return this.__get__direction();
};
v2.__get__direction = function () {
return this._direction;
};
v2.__set__duration = function (d) {
if (d) {
this._duration = d;
this._twn.duration = d;
}
return this.__get__duration();
};
v2.__get__duration = function () {
return this._duration;
};
v2.__set__easing = function (e) {
if (typeof e == 'string') {
e = eval(e);
} else {
if (e == undefined) {
e = this._noEase;
}
}
this._easing = e;
this._twn.easing = e;
return this.__get__easing();
};
v2.__get__easing = function () {
return this._easing;
};
v2.__set__progress = function (p) {
if (this._progress == p) {
return undefined;
}
this._progress = p;
if (this._direction) {
this._render(1 - p);
} else {
this._render(p);
}
this.dispatchEvent({'type': 'transitionProgress', 'target': this, 'progress': p});
return this.__get__progress();
};
v2.__get__progress = function () {
return this._progress;
};
v2.init = function (content, transParams, manager) {
this.__set__content(content);
this.__set__direction(transParams.direction);
this.__set__duration(transParams.duration);
this.__set__easing(transParams.easing);
this.__set__manager(manager);
this._innerBounds = (this.__get__manager())._innerBounds;
this._outerBounds = (this.__get__manager())._outerBounds;
this._width = (this.__get__manager())._width;
this._height = (this.__get__manager())._height;
this._resetTween();
};
v2.toString = function () {
return '[Transition ' + this.className + ']';
};
v2.start = function () {
(this.__get__content())._visible = true;
this._twn.start();
};
v2.stop = function () {
this._twn.fforward();
this._twn.stop();
};
v2.cleanUp = function () {
this.removeEventListener('transitionInDone', this._manager);
this.removeEventListener('transitionOutDone', this._manager);
this.removeEventListener('transitionProgress', this._manager);
this.stop();
};
v2.getNextHighestDepthMC = function (mc) {
var v4 = mc.getNextHighestDepth();
if (v4 != undefined) {
return v4;
} else {
v4 = -1;
var v3;
var v1;
for (var v5 in mc) {
v1 = mc[v5];
if (typeof v1 == 'movieclip' && v1._parent == mc) {
v3 = v1.getDepth();
if (v3 > v4) {
v4 = v3;
}
}
}
return v4 + 1;
}
};
v2.drawBox = function (mc, x, y, w, h) {
mc.moveTo(x, y);
mc.lineTo(x + w, y);
mc.lineTo(x + w, y + h);
mc.lineTo(x, y + h);
mc.lineTo(x, y);
};
v2.drawCircle = function (mc, x, y, r) {
mc.moveTo(x + r, y);
mc.curveTo(r + x, 0.414213562373095 * r + y, Math.SQRT1_2 * r + x, Math.SQRT1_2 * r + y);
mc.curveTo(0.414213562373095 * r + x, r + y, x, r + y);
mc.curveTo(-0.414213562373095 * r + x, r + y, -Math.SQRT1_2 * r + x, Math.SQRT1_2 * r + y);
mc.curveTo(-r + x, 0.414213562373095 * r + y, -r + x, y);
mc.curveTo(-r + x, -0.414213562373095 * r + y, -Math.SQRT1_2 * r + x, -Math.SQRT1_2 * r + y);
mc.curveTo(-0.414213562373095 * r + x, -r + y, x, -r + y);
mc.curveTo(0.414213562373095 * r + x, -r + y, Math.SQRT1_2 * r + x, -Math.SQRT1_2 * r + y);
mc.curveTo(r + x, -0.414213562373095 * r + y, r + x, y);
};
v2._render = function (p) {};
v2._resetTween = function () {
this._twn.stop();
this._twn.removeListener(this);
this._twn = new mx.transitions.Tween(this, null, this.__get__easing(), 0, 1, this.__get__duration(), true);
this._twn.stop();
this._twn.prop = 'progress';
this._twn.addListener(this);
};
v2._noEase = function (t, b, c, d) {
return c * t / d + b;
};
v2.onMotionFinished = function (src) {
if (this.__get__direction()) {
this.dispatchEvent({'type': 'transitionOutDone', 'target': this});
} else {
this.dispatchEvent({'type': 'transitionInDone', 'target': this});
}
};
v1.version = '1.1.0.52';
v1.IN = 0;
v1.OUT = 1;
v2.type = mx.transitions.Transition;
v2.className = 'Transition';
v2._direction = 0;
v2._duration = 2;
v1.__mixinFED = mx.events.EventDispatcher.initialize(mx.transitions.Transition.prototype);
v2.addProperty('content', v2.__get__content, v2.__set__content);
v2.addProperty('direction', v2.__get__direction, v2.__set__direction);
v2.addProperty('duration', v2.__get__duration, v2.__set__duration);
v2.addProperty('easing', v2.__get__easing, v2.__set__easing);
v2.addProperty('manager', v2.__get__manager, v2.__set__manager);
v2.addProperty('progress', v2.__get__progress, v2.__set__progress);
ASSetPropFlags(mx.transitions.Transition.prototype, null, 1);
}
#endinitclip
}
movieClip 284 __Packages.mx.transitions.TransitionManager {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.transitions) {
_global.mx.transitions = new Object();
}
if (!_global.mx.transitions.TransitionManager) {
var v1 = function (content) {
this.__set__content(content);
this._transitions = {};
};
mx.transitions.TransitionManager = v1;
var v2 = v1.prototype;
v2.__set__content = function (c) {
this.removeEventListener('allTransitionsInDone', this._content);
this.removeEventListener('allTransitionsOutDone', this._content);
this._content = c;
this.saveContentAppearance();
this.addEventListener('allTransitionsInDone', this._content);
this.addEventListener('allTransitionsOutDone', this._content);
return this.__get__content();
};
v2.__get__content = function () {
return this._content;
};
v2.__get__transitionsList = function () {
return this._transitions;
};
v2.__get__numTransitions = function () {
var v2 = 0;
for (var v3 in this._transitions) {
++v2;
}
return v2;
};
v2.__get__numInTransitions = function () {
var v3 = 0;
var v2 = this._transitions;
for (var v4 in v2) {
if (!v2[v4].direction) {
++v3;
}
}
return v3;
};
v2.__get__numOutTransitions = function () {
var v3 = 0;
var v2 = this._transitions;
for (var v4 in v2) {
if (v2[v4].direction) {
++v3;
}
}
return v3;
};
v2.__get__contentAppearance = function () {
return this._contentAppearance;
};
v1.start = function (content, transParams) {
if (content.__transitionManager == undefined) {
content.__transitionManager = new mx.transitions.TransitionManager(content);
}
if (transParams.direction == 1) {
content.__transitionManager._triggerEvent = 'hide';
return content.__transitionManager.startTransition(transParams);
}
content.__transitionManager._triggerEvent = 'reveal';
return content.__transitionManager.startTransition(transParams);
};
v2.startTransition = function (transParams) {
this.removeTransition(this.findTransition(transParams));
var v3 = transParams.type;
var v2 = new v3(this._content, transParams, this);
this.addTransition(v2);
v2.start();
return v2;
};
v2.addTransition = function (trans) {
trans.ID = ++mx.transitions.TransitionManager.IDCount;
this._transitions[trans.ID] = trans;
return trans;
};
v2.removeTransition = function (trans) {
if (this._transitions[trans.ID] == undefined) {
return false;
}
trans.cleanUp();
return delete this._transitions[trans.ID];
};
v2.findTransition = function (transParams) {
var v2;
for (var v4 in this._transitions) {
v2 = this._transitions[v4];
if (v2.type == transParams.type) {
return v2;
}
}
return undefined;
};
v2.removeAllTransitions = function () {
for (var v2 in this._transitions) {
this._transitions[v2].cleanUp();
this.removeTransition(this._transitions[v2]);
}
};
v2.saveContentAppearance = function () {
var v2 = this._content;
if (this._contentAppearance == undefined) {
this._contentAppearance = {};
var v3 = this._contentAppearance;
for (var v4 in this._visualPropList) {
v3[v4] = v2[v4];
}
v3.colorTransform = (new Color(v2)).getTransform();
}
this._innerBounds = v2.getBounds(targetPath(v2));
this._outerBounds = v2.getBounds(targetPath(v2._parent));
this._width = v2._width;
this._height = v2._height;
};
v2.restoreContentAppearance = function () {
var v2 = this._content;
var v3 = this._contentAppearance;
for (var v4 in this._visualPropList) {
v2[v4] = v3[v4];
}
(new Color(v2)).setTransform(v3.colorTransform);
};
v2.transitionInDone = function (e) {
this.removeTransition(e.target);
if (this.__get__numInTransitions() == 0) {
var v2;
v2 = this._content._visible;
if (this._triggerEvent == 'hide' || this._triggerEvent == 'hideChild') {
this._content._visible = false;
}
if (v2) {
this.dispatchEvent({'type': 'allTransitionsInDone', 'target': this});
}
}
};
v2.transitionOutDone = function (e) {
this.removeTransition(e.target);
if (this.__get__numOutTransitions() == 0) {
this.restoreContentAppearance();
var v2;
v2 = this._content._visible;
if (v2 && (this._triggerEvent == 'hide' || this._triggerEvent == 'hideChild')) {
this._content._visible = false;
}
updateAfterEvent();
if (v2) {
this.dispatchEvent({'type': 'allTransitionsOutDone', 'target': this});
}
}
};
v2.toString = function () {
return '[TransitionManager]';
};
v1.version = '1.1.0.52';
v1.IDCount = 0;
v2.type = mx.transitions.TransitionManager;
v2.className = 'TransitionManager';
v2._visualPropList = {'_x': null, '_y': null, '_xscale': null, '_yscale': null, '_alpha': null, '_rotation': null};
v1.__mixinFED = mx.events.EventDispatcher.initialize(mx.transitions.TransitionManager.prototype);
v2.addProperty('content', v2.__get__content, v2.__set__content);
v2.addProperty('contentAppearance', v2.__get__contentAppearance, function () {});
v2.addProperty('numInTransitions', v2.__get__numInTransitions, function () {});
v2.addProperty('numOutTransitions', v2.__get__numOutTransitions, function () {});
v2.addProperty('numTransitions', v2.__get__numTransitions, function () {});
v2.addProperty('transitionsList', v2.__get__transitionsList, function () {});
ASSetPropFlags(mx.transitions.TransitionManager.prototype, null, 1);
}
#endinitclip
}
movieClip 285 __Packages.mx.transitions.OnEnterFrameBeacon {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.transitions) {
_global.mx.transitions = new Object();
}
if (!_global.mx.transitions.OnEnterFrameBeacon) {
var v1 = function () {};
mx.transitions.OnEnterFrameBeacon = v1;
var v2 = v1.prototype;
v1.init = function () {
var v4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(v4);
var v3 = _root.createEmptyMovieClip('__OnEnterFrameBeacon', 9876);
v3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage('onEnterFrame');
};
}
};
v1.version = '1.1.0.52';
ASSetPropFlags(mx.transitions.OnEnterFrameBeacon.prototype, null, 1);
}
#endinitclip
}
movieClip 286 __Packages.mx.transitions.BroadcasterMX {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.transitions) {
_global.mx.transitions = new Object();
}
if (!_global.mx.transitions.BroadcasterMX) {
var v1 = function () {};
mx.transitions.BroadcasterMX = v1;
var v2 = v1.prototype;
v1.initialize = function (o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
};
v2.addListener = function (o) {
this.removeListener(o);
if (this.broadcastMessage == undefined) {
this.broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return this._listeners.push(o);
};
v2.removeListener = function (o) {
var v2 = this._listeners;
var v3 = v2.length;
while (v3--) {
if (v2[v3] == o) {
v2.splice(v3, 1);
if (!v2.length) {
this.broadcastMessage = undefined;
}
return true;
}
}
return false;
};
v2.broadcastMessage = function () {
var v5 = String(arguments.shift());
var v4 = this._listeners.concat();
var v6 = v4.length;
var v3 = 0;
while (v3 < v6) {
v4[v3][v5].apply(v4[v3], arguments);
++v3;
}
};
v1.version = '1.1.0.52';
ASSetPropFlags(mx.transitions.BroadcasterMX.prototype, null, 1);
}
#endinitclip
}
movieClip 287 __Packages.mx.transitions.Tween {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.transitions) {
_global.mx.transitions = new Object();
}
if (!_global.mx.transitions.Tween) {
var v1 = function (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return undefined;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
this.__set__position(begin);
this.__set__duration(duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.__set__finish(finish);
this._listeners = [];
this.addListener(this);
this.start();
};
mx.transitions.Tween = v1;
var v2 = v1.prototype;
v2.__set__time = function (t) {
this.prevTime = this._time;
if (t > this.__get__duration()) {
if (this.looping) {
this.rewind(t - this._duration);
this.update();
this.broadcastMessage('onMotionLooped', this);
} else {
if (this.useSeconds) {
this._time = this._duration;
this.update();
}
this.stop();
this.broadcastMessage('onMotionFinished', this);
}
} else {
if (t < 0) {
this.rewind();
this.update();
} else {
this._time = t;
this.update();
}
}
return this.__get__time();
};
v2.__get__time = function () {
return this._time;
};
v2.__set__duration = function (d) {
this._duration = (d == null || d <= 0) ? _global.Infinity : d;
return this.__get__duration();
};
v2.__get__duration = function () {
return this._duration;
};
v2.__set__FPS = function (fps) {
var v2 = this.isPlaying;
this.stopEnterFrame();
this._fps = fps;
if (v2) {
this.startEnterFrame();
}
return this.__get__FPS();
};
v2.__get__FPS = function () {
return this._fps;
};
v2.__set__position = function (p) {
this.setPosition(p);
return this.__get__position();
};
v2.setPosition = function (p) {
this.prevPos = this._pos;
this._pos = p;
this.obj[this.prop] = this._pos;
this.broadcastMessage('onMotionChanged', this, this._pos);
updateAfterEvent();
};
v2.__get__position = function () {
return this.getPosition();
};
v2.getPosition = function (t) {
if (t == undefined) {
t = this._time;
}
return this.func(t, this.begin, this.change, this._duration);
};
v2.__set__finish = function (f) {
this.change = f - this.begin;
return this.__get__finish();
};
v2.__get__finish = function () {
return this.begin + this.change;
};
v2.continueTo = function (finish, duration) {
this.begin = this.position;
this.__set__finish(finish);
if (duration != undefined) {
this.__set__duration(duration);
}
this.start();
};
v2.yoyo = function () {
this.continueTo(this.begin, this.__get__time());
};
v2.startEnterFrame = function () {
if (this._fps == undefined) {
_global.MovieClip.addListener(this);
} else {
this._intervalID = setInterval(this, 'onEnterFrame', 1000 / this._fps);
}
this.isPlaying = true;
};
v2.stopEnterFrame = function () {
if (this._fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(this._intervalID);
}
this.isPlaying = false;
};
v2.start = function () {
this.rewind();
this.startEnterFrame();
this.broadcastMessage('onMotionStarted', this);
};
v2.stop = function () {
this.stopEnterFrame();
this.broadcastMessage('onMotionStopped', this);
};
v2.resume = function () {
this.fixTime();
this.startEnterFrame();
this.broadcastMessage('onMotionResumed', this);
};
v2.rewind = function (t) {
this._time = (t == undefined) ? 0 : t;
this.fixTime();
this.update();
};
v2.fforward = function () {
this.__set__time(this._duration);
this.fixTime();
};
v2.nextFrame = function () {
if (this.useSeconds) {
this.__set__time((getTimer() - this._startTime) / 1000);
} else {
this.__set__time(this._time + 1);
}
};
v2.onEnterFrame = function () {
this.nextFrame();
};
v2.prevFrame = function () {
if (!this.useSeconds) {
this.__set__time(this._time - 1);
}
};
v2.toString = function () {
return '[Tween]';
};
v2.fixTime = function () {
if (this.useSeconds) {
this._startTime = getTimer() - this._time * 1000;
}
};
v2.update = function () {
this.__set__position(this.getPosition(this._time));
};
v1.version = '1.1.0.52';
v1.__initBeacon = mx.transitions.OnEnterFrameBeacon.init();
v1.__initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
v2.func = function (t, b, c, d) {
return c * t / d + b;
};
v2.addProperty('FPS', v2.__get__FPS, v2.__set__FPS);
v2.addProperty('duration', v2.__get__duration, v2.__set__duration);
v2.addProperty('finish', v2.__get__finish, v2.__set__finish);
v2.addProperty('position', v2.__get__position, v2.__set__position);
v2.addProperty('time', v2.__get__time, v2.__set__time);
ASSetPropFlags(mx.transitions.Tween.prototype, null, 1);
}
#endinitclip
}
movieClip 288 __Packages.mx.transitions.Fade {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.transitions) {
_global.mx.transitions = new Object();
}
if (!_global.mx.transitions.Fade) {
var v1 = function (content, transParams, manager) {
super();
this.init(content, transParams, manager);
};
mx.transitions.Fade = v1;
mx.transitions.Fade extends mx.transitions.Transition;
var v2 = v1.prototype;
v2.init = function (content, transParams, manager) {
super.init(content, transParams, manager);
this._alphaFinal = ((this.__get__manager()).__get__contentAppearance())._alpha;
};
v2._render = function (p) {
this._content._alpha = this._alphaFinal * p;
};
v1.version = '1.1.0.52';
v2.type = mx.transitions.Fade;
v2.className = 'Fade';
ASSetPropFlags(mx.transitions.Fade.prototype, null, 1);
}
#endinitclip
}
movieClip 289 __Packages.mx.transitions.easing.None {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.transitions) {
_global.mx.transitions = new Object();
}
if (!_global.mx.transitions.easing) {
_global.mx.transitions.easing = new Object();
}
if (!_global.mx.transitions.easing.None) {
var v1 = function () {};
mx.transitions.easing.None = 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;
};
v1.version = '1.1.0.52';
ASSetPropFlags(mx.transitions.easing.None.prototype, null, 1);
}
#endinitclip
}
movieClip 290 __Packages.com.greensock.easing.Quad {
#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.Quad) {
var v1 = function () {};
com.greensock.easing.Quad = v1;
var v2 = v1.prototype;
v1.easeIn = function (t, b, c, d) {
t /= d;
return c * t * t + b;
};
v1.easeOut = function (t, b, c, d) {
t /= d;
return -c * t * (t - 2) + b;
};
v1.easeInOut = function (t, b, c, d) {
t /= d * 0.5;
if (t < 1) {
return c * 0.5 * t * t + b;
}
return -c * 0.5 * (--t * (t - 2) - 1) + b;
};
ASSetPropFlags(com.greensock.easing.Quad.prototype, null, 1);
}
#endinitclip
}
frame 2 {
function CountOn() {
++count;
if (count == 6) {
gotoAndPlay('Scene1');
}
}
stop();
var count = 0;
setInterval(CountOn, 1000);
}
frame 2 {
btn.onRelease = function () {
getURL('http://www.zapxo.com', '');
};
}
movieClip 30 {
}
movieClip 96 {
frame 60 {
stop();
}
}
movieClip 101 {
}
movieClip 106 {
}
movieClip 109 {
}
movieClip 110 {
}
movieClip 113 {
}
movieClip 118 {
}
movieClip 124 {
}
movieClip 126 {
}
movieClip 127 {
}
movieClip 130 {
}
movieClip 131 {
}
movieClip 132 {
}
movieClip 150 {
frame 17 {
stop();
}
}
movieClip 157 {
}
movieClip 158 {
frame 82 {
}
frame 106 {
stop();
}
}
frame 3 {
function gotoPortfolio() {
getURL('http://zapxo.com', '_top');
}
stop();
mochi.as2.MochiServices.connect('dda8eb48bee9677d');
Stage.showMenu = false;
var contextmenu = new ContextMenu();
contextmenu.hideBuiltInItems();
var copyright = new ContextMenuItem('©2011 Zapxo', gotoPortfolio);
contextmenu.customItems.push(copyright);
_root.menu = contextmenu;
com.greensock.TweenLite.to(play_btn, 0.5, {'_x': 330, '_y': 200, 'ease': Quad.easeIn});
com.greensock.TweenLite.to(instructions_btn, 0.75, {'_x': 330, '_y': 250, 'ease': Quad.easeIn});
play_btn.onRelease = function () {
_root.gotoAndStop(_root._currentframe + 2);
};
instructions_btn.onRelease = function () {
_root.gotoAndStop(_root._currentframe + 1);
};
}
movieClip 163 {
}
// unknown tag 88 length 33
// unknown tag 88 length 33
movieClip 178 {
}
movieClip 179 {
frame 151 {
gotoAndPlay(1);
}
}
frame 4 {
goback_btn.onRelease = function () {
_root.gotoAndStop(_root._currentframe - 1);
};
}
movieClip 193 {
frame 1 {
gotoAndPlay(1);
}
frame 30 {
stop();
}
}
frame 5 {
function updateScore() {
score_txt = score;
if (score >= personalBest) {
personalBest = score;
sharedObject.data.personalBest = personalBest;
Object.flush();
}
personalbest_txt = personalBest;
}
function onEnterFrame() {
if (Key.isDown(81)) {
if (_quality == 'HIGH') {
_quality = 'MEDIUM';
} else {
if (_quality == 'MEDIUM') {
_quality = 'LOW';
} else {
if (_quality == 'LOW') {
_quality = 'HIGH';
}
}
}
}
var v1 = new Sound();
if (Key.isDown(77)) {
v1.setVolume(0);
}
if (Key.isDown(78)) {
v1.setVolume(100);
}
if (scoreArray[curBg] <= score) {
curBg += 1;
backgrounds.gotoAndStop(curBg);
}
BallAnimation();
if (ball.hitTest(deathzone)) {
ball._y = 1000;
removeall();
gotoAndStop(6);
}
pGo -= 1;
if (pGo <= 0) {
if (Key.isDown(39)) {
xSpeed += xer;
}
if (Key.isDown(37)) {
xSpeed -= xer;
}
xSpeed *= airFriction;
ySpeed += gravity;
ySpeed *= frictioner;
ball._x += xSpeed;
ball._y += ySpeed;
i = platforms.length - 1;
while (i >= 0) {
if (platforms[i].hitTest(ball)) {
ySpeed = -19;
platformFall[i] = 1;
platforms[i]._rotation = (ball._x - platforms[i]._x) / 3;
score += 1;
updateScore();
bounce.start();
}
while (platforms[i].hitTest(ball._x, ball._y + ball._height / 2, true)) {
ball._y -= 0.1;
}
--i;
}
if (ball._x <= ball._width / 2) {
ball._x = ball._width / 2;
xSpeed = 0;
}
if (ball._x >= Stage.width - ball._width / 2) {
ball._x = Stage.width - ball._width / 2;
xSpeed = 0;
}
i = greenplatform.length - 1;
while (i >= 0) {
if (greenplatform[i].hitTest(ball)) {
score += 3;
ySpeed = -19;
bounce2.start();
explosion1();
updateScore();
removeGreenPlatform();
}
--i;
}
i = blueplatform.length - 1;
while (i >= 0) {
if (blueplatform[i].hitTest(ball)) {
score += 5;
ySpeed = -19;
bounce2.start();
explosion2();
updateScore();
removeBluePlatform();
}
--i;
}
i = purpleplatform.length - 1;
while (i >= 0) {
if (purpleplatform[i].hitTest(ball)) {
score += 10;
ySpeed = -19;
bounce2.start();
explosion3();
updateScore();
removePurplePlatform();
}
--i;
}
i = spikyplatform.length - 1;
while (i >= 0) {
if (spikyplatform[i].hitTest(ball)) {
ball._y = 1000;
gotoAndStop(6);
removeSpikyPlatform();
removeall();
}
--i;
}
}
pDelay -= 1;
if (pDelay <= 0) {
pDelay = 20;
createPlatform();
}
platformMovement();
GreenPlatformMovement();
BluePlatformMovement();
PurplePlatformMovement();
SpikyPlatformMovement();
blockeMove();
explosionMove();
if (ball._y <= ball._height / 2) {
ball._y = ball._height / 2;
ySpeed = 0;
}
}
function createPlatform() {
addor = 0;
pAdd = random(5);
if (pAdd == 1 && bGo <= 0 && addor == 0) {
createGreenPlatform();
addor = 1;
}
pAdd = random(8);
if (pAdd == 1 && bGo <= 0 && addor == 0) {
createBluePlatform();
addor = 1;
}
pAdd = random(15);
if (pAdd == 1 && pGo <= 0 && addor == 0) {
createPurplePlatform();
addor = 1;
}
pAdd = random(10);
if (pAdd == 1 && pGo <= 0) {
createSpikyPlatform();
addor = 1;
}
if (addor == 0) {
platform = attachMovie('platform', 'platform' + depth, depth);
++depth;
platform._x = 10 + random(750);
platform._y = Stage.height;
platforms.push(platform);
platformFall.push(0);
platformSpeedY.push(3);
}
}
function createGreenPlatform() {
platform = attachMovie('platform', 'plaform' + depth, depth);
++depth;
platform._x = 10 + random(750);
platform._y = Stage.height;
platform.gotoAndStop(2);
greenplatform.push(platform);
}
function createBluePlatform() {
platform = attachMovie('platform', 'plaform' + depth, depth);
++depth;
platform._x = 10 + random(750);
platform._y = Stage.height;
platform.gotoAndStop(3);
blueplatform.push(platform);
}
function createPurplePlatform() {
platform = attachMovie('platform', 'platform' + depth, depth);
++depth;
platform._x = 10 + random(750);
platform._y = Stage.height;
platform.gotoAndStop(4);
purpleplatform.push(platform);
}
function createSpikyPlatform() {
platform = attachMovie('platform', 'platform' + depth, depth);
++depth;
platform._x = 10 + random(750);
platform._y = Stage.height;
platform.gotoAndStop(5);
spikyplatform.push(platform);
}
function platformMovement() {
platformSpeed += 0.001;
i = platforms.length - 1;
while (i >= 0) {
platforms[i]._y -= platformSpeed;
if (platforms[i]._y <= -platforms[i]._width / 2 || platforms[i]._y >= Stage.height + platforms[i]._height * 2) {
removePlatform();
}
if (platformFall[i] > 0) {
platforms[i]._y += platformSpeedY[i];
platformSpeedY[i] += 0.5;
}
--i;
}
}
function GreenPlatformMovement() {
i = greenplatform.length - 1;
while (i >= 0) {
greenplatform[i]._y -= oSpeed;
if (greenplatform[i]._y <= -greenplatform[i]._width / 2) {
removeGreenPlatform();
}
--i;
}
}
function BluePlatformMovement() {
i = blueplatform.length - 1;
while (i >= 0) {
blueplatform[i]._y -= oSpeed;
if (blueplatform[i]._y <= -blueplatform[i]._width / 2) {
removeBluePlatform();
}
--i;
}
}
function PurplePlatformMovement() {
i = purpleplatform.length - 1;
while (i >= 0) {
purpleplatform[i]._y -= oSpeed;
if (purpleplatform[i]._y <= -purpleplatform[i]._width / 2) {
removePurplePlatform();
}
--i;
}
}
function SpikyPlatformMovement() {
oSpeed += 0.001;
i = spikyplatform.length - 1;
while (i >= 0) {
spikyplatform[i]._y -= oSpeed;
if (spikyplatform[i]._y <= -spikyplatform[i]._width / 2) {
removeSpikyPlatform();
}
--i;
}
}
function removePlatform() {
platforms[i].removeMovieClip();
platforms.splice(i, 1);
platformFall.splice(i, 1);
platformSpeedY.splice(i, 1);
}
function removeGreenPlatform() {
greenplatform[i].removeMovieClip();
greenplatform.splice(i, 1);
}
function removeBluePlatform() {
blueplatform[i].removeMovieClip();
blueplatform.splice(i, 1);
}
function removePurplePlatform() {
purpleplatform[i].removeMovieClip();
purpleplatform.splice(i, 1);
}
function removeSpikyPlatform() {
spikyplatform[i].removeMovieClip();
spikyplatform.splice(i, 1);
}
function blockeMove() {
i = lsers.length - 1;
while (i >= 0) {
lsers[i]._x += lsX[i];
lsers[i]._y += lsY[i];
lsY[i] += grav;
lsX[i] *= airF;
if (lsers[i]._x + lsers[i]._width / 2 >= Stage.width) {
lsX[i] *= -1;
}
if (lsers[i]._x - lsers[i]._width / 2 <= 0) {
lsX[i] *= -1;
lsers[i]._x += lsX[i];
}
if (lsers[i]._y + lsers[i]._height / 2 >= Stage.height) {
lsY[i] *= -0.5;
lsers[i]._y = Stage.height - lsers[i]._height / 2;
}
lsLive[i] -= 1;
if (lsLive[i] <= 0) {
lsers[i]._alpha -= 2;
if (lsers[i]._alpha <= 0) {
removeBlock();
}
}
--i;
}
}
function removeBlock() {
lsers[i].removeMovieClip();
lsers.splice(i, 1);
lsX.splice(i, 1);
lsY.splice(i, 1);
lsLive.splice(i, 1);
}
function explosionMove() {
i = explosion.length - 1;
while (i >= 0) {
explosion[i]._x += explosionX[i];
explosion[i]._y += explosionY[i];
explosionX[i] *= 0.98;
explosionY[i] *= 0.98;
explosion[i]._alpha -= 5;
if (explosion[i]._alpha <= 0) {
removeExplosion();
}
--i;
}
}
function BallAnimation() {
b = 1;
while (b >= 0) {
ba = attachMovie('dots', 'ba' + depth, depth);
++depth;
ba._x = ball._x;
ba._y = ball._y;
rotTemp = random(360);
explosion.push(ba);
explosionX.push(random(6) - 3);
explosionY.push(random(6) - 3);
ba._yscale = random(50) + 25;
ba._xscale = ba._yscale;
ba.gotoAndStop(4);
--b;
}
}
function explosion1() {
b = 10;
while (b >= 0) {
gd = attachMovie('dots', 'gd' + depth, depth);
++depth;
gd._x = ball._x;
gd._y = ball._y;
rotTemp = random(360);
explosion.push(gd);
explosionX.push(random(20) - 10);
explosionY.push(random(20) - 10);
gd._yscale = random(50) + 25;
gd._xscale = gd._yscale;
--b;
}
}
function explosion2() {
b = 10;
while (b >= 0) {
bd = attachMovie('dots', 'bd' + depth, depth);
bd.gotoAndStop(2);
++depth;
bd._x = ball._x;
bd._y = ball._y;
rotTemp = random(360);
explosion.push(bd);
explosionX.push(random(20) - 10);
explosionY.push(random(20) - 10);
bd._yscale = random(50) + 25;
bd._xscale = bd._yscale;
--b;
}
}
function explosion3() {
b = 10;
while (b >= 0) {
pd = attachMovie('dots', 'pd' + depth, depth);
pd.gotoAndStop(3);
++depth;
pd._x = ball._x;
pd._y = ball._y;
rotTemp = random(360);
explosion.push(pd);
explosionX.push(random(20) - 10);
explosionY.push(random(20) - 10);
pd._yscale = random(50) + 25;
pd._xscale = pd._yscale;
--b;
}
}
function removeExplosion() {
explosion[i].removeMovieClip();
explosion.splice(i, 1);
explosionX.splice(i, 1);
explosionY.splice(i, 1);
}
function removeall() {
i = platforms.length - 1;
while (i >= 0) {
removePlatform();
--i;
}
i = greenplatform.length - 1;
while (i >= 0) {
removeGreenPlatform();
--i;
}
i = blueplatform.length - 1;
while (i >= 0) {
removeBluePlatform();
--i;
}
i = purpleplatform.length - 1;
while (i >= 0) {
removePurplePlatform();
--i;
}
i = spikyplatform.length - 1;
while (i >= 0) {
removeSpikyPlatform();
--i;
}
i = lsers.length - 1;
while (i >= 0) {
removeBlock();
--i;
}
i = explosion.length - 1;
while (i >= 0) {
removeExplosion();
--i;
}
var v2 = {'n': [4, 8, 7, 12, 4, 12, 11, 3, 14, 7, 12, 14, 14, 9, 13, 10], 'f': function (i, s) {
if (s.length == 16) {
return s;
}
return this.f(i + 1, s + this.n[i].toString(16));
}};
var v3 = v2.f(0, '487c4cb3e7cee9da');
mochi.as2.MochiScores.showLeaderboard({'boardID': v3, 'score': score, 'onClose': function () {
gotoAndStop(3);
}});
}
var score = 0;
var personalBest = 0;
var curBg = 1;
var addor = 0;
var pAdd = 0;
var pGo = 60;
var depth = 100;
var platformSpeed = 3;
var oSpeed = 3;
var grav = 1;
var airF = 0.9;
var dire = 0;
var ySpeed = 0;
var xSpeed = 0;
var xer = 1.5;
var gravity = 0.7;
var frictioner = 0.965;
var airFriction = 0.95;
var platformDelay = 20;
scoreArray = new Array(0, 50, 100, 200, 500);
platforms = new Array();
platformFall = new Array();
platformSpeedY = new Array();
purpleplatform = new Array();
blueplatform = new Array();
spikyplatform = new Array();
greenplatform = new Array();
lsers = new Array();
lsY = new Array();
lsX = new Array();
lsLive = new Array();
explosion = new Array();
explosionX = new Array();
explosionY = new Array();
var song = new Sound();
song.attachSound('song');
song.start(0, 99);
var bounce = new Sound();
bounce.attachSound('bounce');
var bounce2 = new Sound();
bounce2.attachSound('bounce2');
sharedObject = SharedObject.getLocal('Bouncy');
if (sharedObject.data.personalBest > 0) {
personalBest = sharedObject.data.personalBest;
}
updateScore();
}
movieClip 198 {
}
movieClip 200 {
}
movieClip 202 {
}
movieClip 204 {
}
movieClip 205 {
}
movieClip 211 {
}
movieClip 213 {
}
movieClip 214 {
}
movieClip 221 {
}
movieClip 224 {
}
movieClip 227 {
}
movieClip 229 {
}
movieClip 231 {
}
movieClip 233 {
}
movieClip 235 {
}
movieClip 236 {
}
movieClip 241 {
}
movieClip 244 {
frame 1 {
stop();
}
frame 2 {
mx.transitions.TransitionManager.start(secondbackground, {'type': mx.transitions.Fade, 'direction': mx.transitions.Transition.IN, 'duration': 0.2, 'easing': mx.transitions.easing.None.easeNone});
}
frame 3 {
mx.transitions.TransitionManager.start(thirdbackground, {'type': mx.transitions.Fade, 'direction': mx.transitions.Transition.IN, 'duration': 0.2, 'easing': mx.transitions.easing.None.easeNone});
}
frame 4 {
mx.transitions.TransitionManager.start(fourthbackground, {'type': mx.transitions.Fade, 'direction': mx.transitions.Transition.IN, 'duration': 0.2, 'easing': mx.transitions.easing.None.easeNone});
}
frame 5 {
mx.transitions.TransitionManager.start(fifthbackground, {'type': mx.transitions.Fade, 'direction': mx.transitions.Transition.IN, 'duration': 0.2, 'easing': mx.transitions.easing.None.easeNone});
}
}
movieClip 248 {
}
movieClip 250 {
}
movieClip 252 {
}
movieClip 254 {
}
// unknown tag 88 length 63
movieClip 257 {
}
movieClip 260 {
}
movieClip 262 {
}
movieClip 263 {
frame 74 {
stop();
}
}
frame 6 {
function onEnterFrame() {}
stop();
com.greensock.TweenLite.to(playagain_btn, 0.5, {'_x': 320, '_y': 425, 'ease': com.greensock.easing.Quad.easeIn});
sharedObject.data.personalBest = personalBest;
Object.flush();
score_txt = score;
i = lsers.length - 1;
while (i >= 0) {
removeBlock();
--i;
}
platforms[0].removeMovieClip();
playagain_btn.onRelease = function () {
this.gotoAndPlay('Scene1', 3);
};
Key.removeListener(keyListener);
song.stop();
stop();
var death = new Sound();
death.attachSound('death');
death.start();
}
movieClip 269 {
frame 1 {
gotoAndPlay(1);
}
frame 15 {
stop();
}
}