[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Combined Code (103.85 KiB) ● ● ● ●
frame 1 {
NewgroundsAPI.connectMovie(8772);
NewgroundsAPI.logCustomEvent('Preloader');
}
frame 1 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot__('f8338cec', this, 10301, true);
}
movieClip 8 {
}
movieClip 9 {
}
movieClip 11 {
}
movieClip 13 {
}
movieClip 15 {
}
movieClip 17 {
}
movieClip 18 {
}
movieClip 19 {
}
movieClip 20 {
}
movieClip 22 {
}
movieClip 23 {
}
movieClip 24 {
}
movieClip 25 {
}
movieClip 26 {
}
movieClip 28 {
}
movieClip 29 {
}
movieClip 30 {
}
movieClip 31 {
}
movieClip 38 {
}
movieClip 40 {
}
button 48 {
on (release) {
_root.play();
}
}
movieClip 49 {
frame 1 {
function timerHandler() {
if (!loadingComplete) {
var v2 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * v2;
if (v2 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
return undefined;
}
gotoAndStop('loaded');
return undefined;
}
}
}
function startMovie() {
_root.play();
}
_root.stop();
stop();
var AUTO_PLAY = true;
var loadingComplete = false;
timerHandler();
}
instance of movieClip 40 {
onClipEvent (enterFrame) {
_parent.timerHandler();
}
}
frame 2 {
stop();
}
}
movieClip 4106 __Packages.xm.corpus.resizableComponent {
#initclip
if (!_global.xm) {
_global.xm = new Object();
}
if (!_global.xm.corpus) {
_global.xm.corpus = new Object();
}
if (!_global.xm.corpus.resizableComponent) {
var v1 = function () {
super();
this.init();
};
xm.corpus.resizableComponent = v1;
xm.corpus.resizableComponent extends MovieClip;
var v2 = v1.prototype;
v2.__set__width = function (p_width) {
this.setSize(p_width, this.__get__height());
return this.__get__width();
};
v2.__set__height = function (p_height) {
this.setSize(this.__get__width(), p_height);
return this.__get__height();
};
v2.__get__width = function () {
return this.__width;
};
v2.__get__height = function () {
return this.__height;
};
v2.setSize = function (p_width, p_height) {
p_width = Math.min(this.maxWidth, Math.max(this.minWidth, p_width));
p_height = Math.min(this.maxHeight, Math.max(this.minHeight, p_height));
if (this.__width != p_width || this.__height != p_height) {
this.__width = p_width;
this.__height = p_height;
this.dispatchEvent({'type': 'resize'});
}
};
v2.evaluateTarget = function (p_target) {
var v4 = p_target.split('.');
var v3 = this._parent;
var v2 = 0;
while (v2 < v4.length) {
v3 = v3[v4[v2]];
++v2;
}
return v3;
};
v2.init = function (Void) {
xm.corpus.dispatch.initialize(this);
if (this.__get__width() == undefined) {
this.__width = Math.min(this.maxWidth, Math.max(this.minWidth, this._width));
}
if (this.__get__height() == undefined) {
this.__height = Math.min(this.maxHeight, Math.max(this.minHeight, this._height));
}
this._xscale = 100;
this._yscale = 100;
this.Aligner = new xm.corpus.aligner(this);
};
v2.dispatchEvent = function (p_eventObj) {};
v2.addEventListener = function (p_eventName, p_handler) {};
v2.addEventListenerL = function (p_eventName, p_obj, p_handler) {};
v2.removeEventListener = function (p_eventName, p_handler) {};
v2.removeEventListenerL = function (p_eventName, p_obj, p_handler) {};
v2.removeAllEventListeners = function (p_eventName) {};
v2.minWidth = 0;
v2.minHeight = 0;
v2.maxWidth = Number.POSITIVE_INFINITY;
v2.maxHeight = Number.POSITIVE_INFINITY;
v2.addProperty('height', v2.__get__height, v2.__set__height);
v2.addProperty('width', v2.__get__width, v2.__set__width);
ASSetPropFlags(xm.corpus.resizableComponent.prototype, null, 1);
}
#endinitclip
}
movieClip 4107 __Packages.xm.corpus.aligner {
#initclip
if (!_global.xm) {
_global.xm = new Object();
}
if (!_global.xm.corpus) {
_global.xm.corpus = new Object();
}
if (!_global.xm.corpus.aligner) {
var v1 = function (p_host) {
this.host = p_host;
this.init();
};
xm.corpus.aligner = v1;
var v2 = v1.prototype;
v2.init = function (Void) {
this.alignees = new Object();
xm.corpus.dispatch.initialize(this);
if (this.host == Stage || this.host == _global.gStage) {
if (Stage.scaleMode != 'noScale' || Stage.align != 'TL') {
Stage.scaleMode = 'noScale';
Stage.align = 'TL';
}
if (Stage.showMenu) {
Stage.showMenu = false;
}
}
if (this.host.addEventListener) {
this.host.addEventListener('resize', this);
} else {
this.host.addListener(this);
}
};
v2.free = function (Void) {
this.removeAll();
if (this.host.addEventListener) {
this.host.removeEventListener('resize', this);
} else {
this.host.removeListener(this);
}
if (this._intervalid != undefined) {
clearInterval(this._intervalid);
}
};
v2.update = function (p_clip) {
var c;
c = eval(p_clip);
if (c == undefined) {
this.remove(p_clip);
} else {
updateAfterEvent();
var a = this.alignees[p_clip];
var $host = this.host;
with (a) {
if (hAlign || vAlign) {
var t = {};
if (hAlign) {
if (hCenterPointCalculated == 'center') {
t.x = hPositionOffset + hPositionRounding(($host.width - hPositionMargin) * hPosition) - Math.round((c.setSize ? c.width : c._width) / 2);
} else {
if (hCenterPointCalculated == 'right') {
t.x = hPositionOffset + hPositionRounding(($host.width - hPositionMargin) * hPosition) - Math.round(c.setSize ? c.width : c._width);
} else {
t.x = hPositionOffset + hPositionRounding(($host.width - hPositionMargin) * hPosition);
}
}
} else {
t.x = 0;
}
if (vAlign) {
if (vCenterPointCalculated == 'center') {
t.y = vPositionOffset + vPositionRounding(($host.height - vPositionMargin) * vPosition) - Math.round((c.setSize ? c.height : c._height) / 2);
} else {
if (vCenterPointCalculated == 'bottom') {
t.y = vPositionOffset + vPositionRounding(($host.height - vPositionMargin) * vPosition) - Math.round(c.setSize ? c.height : c._height);
} else {
t.y = vPositionOffset + vPositionRounding(($host.height - vPositionMargin) * vPosition);
}
}
} else {
t.y = 0;
}
$host.localToGlobal(t);
c._parent.globalToLocal(t);
if (hAlign && c._x != t.x) {
c._x = t.x;
}
if (vAlign && c._y != t.y) {
c._y = t.y;
}
}
if (proportionalStretch != 'none') {
if (proportionalStretch != 'out' && $host.width / $host.height >= boundingRectagleWidth / boundingRectagleHeight || proportionalStretch == 'out' && $host.width / $host.height < boundingRectagleWidth / boundingRectagleHeight) {
c._xscale = (($host.height - vPositionMargin) / boundingRectagleHeight) * 100;
c._yscale = (($host.height - vPositionMargin) / boundingRectagleHeight) * 100;
} else {
c._xscale = (($host.width - hPositionMargin) / boundingRectagleWidth) * 100;
c._yscale = (($host.width - hPositionMargin) / boundingRectagleWidth) * 100;
}
} else {
if (c.setSize && (hStretch || vStretch)) {
var w = hStretch ? hSizeRounding($host.width * hSize) - hSizeMargin : c.width;
if (w < 0) {
w = 0;
}
var h = vStretch ? vSizeRounding($host.height * vSize) - vSizeMargin : c.height;
if (h < 0) {
h = 0;
}
if (c.width != w || c.height != h) {
c.setSize(w, h);
}
} else {
if (hStretch) {
var w = hSizeRounding($host.width * hSize) - hSizeMargin;
if (w < 0) {
w = 0;
}
if (c._width != w) {
c._width = w;
}
}
if (vStretch) {
var h = vSizeRounding($host.height * vSize) - vSizeMargin;
if (h < 0) {
h = 0;
}
if (c._height != h) {
c._height = h;
}
}
}
}
}
}
};
v2.remove = function (p_clip) {
if (this.alignees[p_clip].resizeReceiver != undefined) {
var c = eval(p_clip);
if (c.addEventListener) {
c.removeEventListener('resize', this.alignees[p_clip].resizeReceiver);
} else {
c.removeListener(this.alignees[p_clip].resizeReceiver);
}
}
delete this.alignees[p_clip];
};
v2.removeAll = function (Void) {
var v2;
for (v2 in this.alignees) {
this.remove(v2);
}
};
v2.register = function (p_mclip, p_alignData) {
this.registerOnly(p_mclip, p_alignData);
this.update(String(p_mclip));
};
v2.registerOnly = function (p_mclip, p_alignData) {
var p_clip = String(p_mclip);
if (this.alignees[p_clip]) {
this.remove(p_clip);
}
this.alignees[p_clip] = new xm.corpus.alignData();
var a = this.alignees[p_clip];
var i;
for (i in p_alignData) {
a[i] = p_alignData[i];
}
a._clipReference = p_clip;
if (a.hCenterPointCalculated != 'none' || a.vCenterPointCalculated != 'none') {
var c = eval(p_clip);
a.resizeReceiver = new xm.corpus.alignResizeReceiver(p_clip, this);
if (c.addEventListener) {
c.addEventListener('resize', a.resizeReceiver);
} else {
c.addListener(a.resizeReceiver);
}
}
};
v2.updateAll = function (_timedout) {
if (_timedout == true) {
clearInterval(this._intervalid);
this._intervalid = undefined;
} else {
if (this.redrawInertness > 0) {
if (this._intervalid == undefined) {
this._intervalid = setInterval(this, 'updateAll', this.redrawInertness, true);
this._starttimer = getTimer();
return undefined;
} else {
if (getTimer() - this._starttimer > this.redrawInertness) {
clearInterval(this._intervalid);
this._intervalid = undefined;
} else {
return undefined;
}
}
}
}
var v2;
for (v2 in this.alignees) {
this.update(v2);
}
this.dispatchEvent({'type': 'resize'});
};
v2._register = function (p_clip, p_alignData) {
p_alignData._allowRemove = false;
this.register(p_clip, p_alignData);
};
v2._remove = function (p_clip) {
if (this.alignees[p_clip]._allowRemove) {
this.remove(p_clip);
}
};
v2.dispatchEvent = function (p_eventObj) {};
v2.addEventListener = function (p_eventName, p_handler) {};
v2.addEventListenerL = function (p_eventName, p_obj, p_handler) {};
v2.removeEventListener = function (p_eventName, p_handler) {};
v2.removeEventListenerL = function (p_eventName, p_obj, p_handler) {};
v2.removeAllEventListeners = function (p_eventName) {};
v2.redrawInertness = 0;
v2.resize = xm.corpus.aligner.prototype.updateAll;
v2.onResize = xm.corpus.aligner.prototype.updateAll;
ASSetPropFlags(xm.corpus.aligner.prototype, null, 1);
}
#endinitclip
}
movieClip 4108 __Packages.xm.corpus.dispatch {
#initclip
if (!_global.xm) {
_global.xm = new Object();
}
if (!_global.xm.corpus) {
_global.xm.corpus = new Object();
}
if (!_global.xm.corpus.dispatch) {
var v1 = function () {};
xm.corpus.dispatch = v1;
var v2 = v1.prototype;
v1.initialize = function (p_obj) {
p_obj.addEventListener = xm.corpus.dispatch.dispatchInstance.addEventListener;
p_obj.removeEventListener = xm.corpus.dispatch.dispatchInstance.removeEventListener;
p_obj.addEventListenerL = xm.corpus.dispatch.dispatchInstance.addEventListenerL;
p_obj.removeEventListenerL = xm.corpus.dispatch.dispatchInstance.removeEventListenerL;
p_obj.removeAllEventListeners = xm.corpus.dispatch.dispatchInstance.removeAllEventListeners;
p_obj.removeAllListeners = xm.corpus.dispatch.dispatchInstance.removeAllListeners;
p_obj.dispatchEvent = xm.corpus.dispatch.dispatchInstance.dispatchEvent;
p_obj._$listeners = {};
};
v2.dispatchEvent = function (p_eventObj) {
var v6 = p_eventObj.type;
var v2 = this._$listeners[v6];
this[v6 + 'Handler'](p_eventObj);
var v3;
for (v3 in v2) {
var v4 = typeof v2[v3].f;
if (v4 == 'string') {
v2[v3].o[v2[v3].f](p_eventObj);
} else {
if (v4 == 'function') {
v2[v3].f.apply(v2[v3].o, p_eventObj);
} else {
if (v4 == 'object' || v4 == 'movieclip') {
if (v2[v3].f.handleEvent) {
v2[v3].f[v6](p_eventObj);
} else {
v2[v3].f.handleEvent(p_eventObj);
}
}
}
}
}
if (v6 != 'ALL') {
p_eventObj.type = 'ALL';
this.dispatchEvent(p_eventObj);
}
};
v2.addEventListener = function (p_eventName, p_handler) {
if (typeof p_handler == 'function') {
this.addEventListenerL(p_eventName, this, p_handler);
} else {
this.addEventListenerL(p_eventName, p_handler);
}
};
v2.addEventListenerL = function (p_eventName, p_obj, p_handler) {
var v2 = this._$listeners[p_eventName];
if (p_handler == undefined) {
p_handler = p_eventName;
}
if (v2 == undefined) {
this._$listeners[p_eventName] = [];
v2 = this._$listeners[p_eventName];
}
var v3;
for (v3 in v2) {
if (v2[v3].o == p_obj && v2[v3].f == p_handler) {
return undefined;
}
}
v2[v2.length] = {'o': p_obj, 'f': p_handler};
};
v2.removeEventListener = function (p_eventName, p_handler) {
if (typeof p_handler == 'function') {
this.removeEventListenerL(p_eventName, this, p_handler);
} else {
this.removeEventListenerL(p_eventName, p_handler);
}
};
v2.removeEventListenerL = function (p_eventName, p_obj, p_handler) {
var v2 = this._$listeners[p_eventName];
var v3;
for (v3 in v2) {
if (v2[v3].o == p_obj && v2[v3].f == p_handler) {
v2.splice(v3, 1);
return undefined;
}
}
};
v2.removeAllEventListeners = function (p_eventName) {
delete this._$listeners[p_eventName];
};
v2.removeAllListeners = function (Void) {
this._$listeners = {};
};
v1.dispatchInstance = new xm.corpus.dispatch();
ASSetPropFlags(xm.corpus.dispatch.prototype, null, 1);
}
#endinitclip
}
movieClip 4109 __Packages.xm.corpus.alignData {
#initclip
if (!_global.xm) {
_global.xm = new Object();
}
if (!_global.xm.corpus) {
_global.xm.corpus = new Object();
}
if (!_global.xm.corpus.alignData) {
var v1 = function () {};
xm.corpus.alignData = v1;
var v2 = v1.prototype;
v1.noRounding = function (p_n) {
return p_n;
};
v2.hAlign = false;
v2.vAlign = false;
v2.hPosition = 0;
v2.vPosition = 0;
v2.hPositionMargin = 0;
v2.vPositionMargin = 0;
v2.hPositionOffset = 0;
v2.vPositionOffset = 0;
v2.hCenterPointCalculated = 'none';
v2.vCenterPointCalculated = 'none';
v2.hPositionRounding = xm.corpus.alignData.noRounding;
v2.vPositionRounding = xm.corpus.alignData.noRounding;
v2.resizeReceiver = undefined;
v2.hStretch = false;
v2.vStretch = false;
v2.hSize = 1;
v2.vSize = 1;
v2.hSizeMargin = 0;
v2.vSizeMargin = 0;
v2.hSizeRounding = xm.corpus.alignData.noRounding;
v2.vSizeRounding = xm.corpus.alignData.noRounding;
v2.proportionalStretch = 'none';
v2.boundingRectagleWidth = 550;
v2.boundingRectagleHeight = 400;
ASSetPropFlags(xm.corpus.alignData.prototype, null, 1);
}
#endinitclip
}
movieClip 4110 __Packages.xm.corpus.alignResizeReceiver {
#initclip
if (!_global.xm) {
_global.xm = new Object();
}
if (!_global.xm.corpus) {
_global.xm.corpus = new Object();
}
if (!_global.xm.corpus.alignResizeReceiver) {
var v1 = function (p_clip, p_alignerObj) {
this.alignee = p_clip;
this.alignerObj = p_alignerObj;
};
xm.corpus.alignResizeReceiver = v1;
var v2 = v1.prototype;
v2.resize = function (Void) {
this.alignerObj.update(this.alignee);
};
ASSetPropFlags(xm.corpus.alignResizeReceiver.prototype, null, 1);
}
#endinitclip
}
movieClip 4111 __Packages.xm.components.ToobPlayerComponent {
#initclip
if (!_global.xm) {
_global.xm = new Object();
}
if (!_global.xm.components) {
_global.xm.components = new Object();
}
if (!_global.xm.components.ToobPlayerComponent) {
var v1 = function () {
super();
};
xm.components.ToobPlayerComponent = v1;
xm.components.ToobPlayerComponent extends xm.corpus.resizableComponent;
var v2 = v1.prototype;
v2.init = function (Void) {
super.init();
this.tabChildren = false;
};
v2.setFullScreen = function (p_fs) {
if (this.isFullScreen == p_fs) {
return undefined;
}
this.isFullScreen = p_fs;
if (this.isFullScreen) {
this.dispatchEvent({'type': 'enterFullScreen'});
} else {
this.dispatchEvent({'type': 'exitFullScreen'});
}
};
v2.lateInit = function (Void) {
this.initialized = true;
this.__set__volume(this.volume);
this.__set__autoPlay(this.autoPlay);
this.__set__autoRepeat(this.autoRepeat);
this.__set__videoResizeMode(this.videoResizeMode);
this.__set__previewImageResizeMode(this.previewImageResizeMode);
this.display.addEventListenerL('start', this, this.videoStart);
this.display.addEventListenerL('playing', this, this.videoPlaying);
this.display.addEventListenerL('closed', this, this.videoClosed);
this.display.addEventListenerL('complete', this, this.videoComplete);
this.__set__previewImageUrl(this.previewImageUrl);
this.__set__url(this.url);
};
v2.prePlay = function (Void) {
this.preStatus = 'play';
this.display.dispatchEvent({'type': 'prePlay'});
};
v2.preStop = function (Void) {
this.preStatus = 'stop';
this.display.dispatchEvent({'type': 'preStop'});
};
v2.__get__url = function () {
return this.__url;
};
v2.__get__previewImageUrl = function () {
return this.__previewImageUrl;
};
v2.__get__showFullScreenButton = function () {
return this.__showFullScreenButton;
};
v2.__set__showFullScreenButton = function (p_val) {
this.__showFullScreenButton = p_val;
this.dispatchEvent({'type': 'showOrHideFullScreenButton'});
return this.__get__showFullScreenButton();
};
v2.loadYouTubePreviewImage = function (Void) {
this.__set__previewImageUrl(this.youTubeProxy + '?image=' + escape('http://img.youtube.com/vi/' + this.youTubeId + '/' + (this.preferHigherQuality ? 'hq' : '') + 'default.jpg'));
};
v2.videoStart = function (Void) {
this.display._visible = true;
this.image._visible = false;
};
v2.videoPlaying = function (Void) {
this.display._visible = true;
this.image._visible = false;
};
v2.videoClosed = function (Void) {
this.display._visible = false;
this.image._visible = true;
};
v2.videoComplete = function (Void) {
this.display._visible = false;
this.image._visible = true;
};
v2.__set__url = function (p_val) {
this.__url = p_val;
if (this.__get__url() == '' || this.__get__url() == undefined || !this.initialized) {
return undefined;
}
this.display.stop();
this.youTubeId = xm.components.ToobPlayerComponent.extractYouTubeId(this.__get__url());
if (this.youTubeId) {
this.display.preferredWidth = 320;
this.display.preferredHeight = 240;
if (this.autoLoadYouTubePreviewImage) {
this.loadYouTubePreviewImage();
}
this.isAcquiringYouTubeUrl = true;
delete this.youTubeProxyXML.onXMLLoad;
delete this.youTubeProxyXML.onError;
this.youTubeProxyXML = new xm.util.quickParsedXML(this.youTubeProxy + '?id=' + escape(this.youTubeId) + '&hq=' + Number(this.preferHigherQuality));
this.youTubeProxyXML.retry = false;
this.youTubeProxyXML.toobPlayerRef = this;
this.youTubeProxyXML.onError = function () {
this.toobPlayerRef.preStop();
this.toobPlayerRef.isAcquiringYouTubeUrl = false;
this.toobPlayerRef.display.dispatchEvent({'type': 'errorAcquiringYouTubeUrl'});
};
this.youTubeProxyXML.onXMLLoad = function () {
var v2 = (this.defaultParse())[0];
if (!v2.video_id) {
this.onError();
} else {
this.toobPlayerRef.isAcquiringYouTubeUrl = false;
delete this.toobPlayerRef.preStatus;
this.toobPlayerRef.display.url = v2.video_id;
if (!this.toobPlayerRef.autoPlay && this.toobPlayerRef.ctrl.playpause._currentFrame == 2) {
this.toobPlayerRef.display.play();
}
this.toobPlayerRef.display.dispatchEvent({'type': 'acquiredYouTubeUrl'});
}
};
this.display.dispatchEvent({'type': 'acquiringYouTubeUrl'});
if (this.__get__autoPlay()) {
this.prePlay();
}
} else {
delete this.youTubeProxyXML.onXMLLoad;
delete this.youTubeProxyXML.onError;
this.isAcquiringYouTubeUrl = false;
this.display.__set__url(this.url);
}
return this.__get__url();
};
v2.__set__previewImageUrl = function (p_val) {
this.__previewImageUrl = p_val;
if (this.__get__previewImageUrl() == '' || this.__get__previewImageUrl() == undefined || !this.initialized) {
return undefined;
}
this.image.__set__url(this.previewImageUrl);
return this.__get__previewImageUrl();
};
v2.__get__autoPlay = function () {
return this.__autoPlay;
};
v2.__set__autoPlay = function (p_val) {
this.__autoPlay = p_val;
this.display.autoPlay = this.autoPlay;
return this.__get__autoPlay();
};
v2.__get__autoRepeat = function () {
return this.__autoRepeat;
};
v2.__set__autoRepeat = function (p_val) {
this.__autoRepeat = p_val;
this.display.autoRepeat = this.autoRepeat;
return this.__get__autoRepeat();
};
v2.__get__volume = function () {
return this.__volume;
};
v2.__set__volume = function (p_val) {
this.__volume = p_val;
this.display.__set__volume(this.volume);
return this.__get__volume();
};
v2.__get__videoResizeMode = function () {
return this.__videoResizeMode;
};
v2.__set__videoResizeMode = function (p_val) {
this.__videoResizeMode = p_val;
this.display.__set__resizeMode(this.videoResizeMode);
return this.__get__videoResizeMode();
};
v2.__get__previewImageResizeMode = function () {
return this.__previewImageResizeMode;
};
v2.__set__previewImageResizeMode = function (p_val) {
this.__previewImageResizeMode = p_val;
this.image.__set__resizeMode(this.previewImageResizeMode);
return this.__get__previewImageResizeMode();
};
v2.checkYouTubeId = function (p_id, p_handler) {
var v2 = new xm.util.quickParsedXML(this.youTubeProxy + '?id=' + escape(p_id));
v2.retry = false;
v2.handler = p_handler;
v2.onError = function () {
this.handler(false);
};
v2.onXMLLoad = function () {
var v2 = (this.defaultParse())[0];
if (!v2.video_id) {
this.handler(false, p_id);
} else {
this.handler(true, p_id);
}
};
};
v1.extractYouTubeId = function (p_url) {
var v1;
v1 = p_url.indexOf('youtube.com/watch?v=');
if (v1 != -1) {
var v2 = p_url.substr(v1 + 20);
v1 = v2.indexOf('&');
if (v1 < 0) {
v1 = undefined;
}
return v2.substr(0, v1);
} else {
v1 = p_url.indexOf('youtube.com/v/');
if (v1 != -1) {
var v2 = p_url.substr(v1 + 14);
var v6 = v2.indexOf('&');
var v5 = v2.indexOf('\'');
var v4 = v2.indexOf('"');
if (v6 < 0) {
v6 = Infinity;
}
if (v5 < 0) {
v5 = Infinity;
}
if (v4 < 0) {
v4 = Infinity;
}
v1 = Math.min(v4, Math.min(v6, v5));
if (v1 == Infinity) {
v1 = undefined;
}
return v2.substr(0, v1);
} else {
if (p_url.indexOf('.') == -1) {
return p_url;
}
}
}
};
v2.__get__mouseWheel = function () {
return this.__mouseWheel;
};
v2.__set__mouseWheel = function (p_val) {
Mouse.removeListener(this);
this.__mouseWheel = p_val;
if (this.__mouseWheel != 'none') {
Mouse.addListener(this);
}
return this.__get__mouseWheel();
};
v2._wheelSeekStop = function (p_toob) {
clearInterval(p_toob._wheelSeekIId);
delete p_toob._wheelSeekIId;
if (p_toob._wheelSeekWasPlaying) {
p_toob.display.disablePlayingEvents = true;
p_toob.display.__set__time(p_toob.display.time);
p_toob.display.pause(false);
p_toob.display.disablePlayingEvents = false;
p_toob.display.__set__time(p_toob.display.time);
}
};
v2.onMouseWheel = function (p_delta, t_scrollTarget) {
if (this._xmouse >= 0 && this._xmouse < this.__get__width() && this._ymouse >= 0 && this._ymouse < this.__get__height()) {
if (this.__get__mouseWheel() == 'volume') {
this.display.__set__volume(Math.max(0, Math.min(100, this.display.__get__volume() - p_delta * this.mouseWheelVolumeStep)));
} else {
if (this.__get__mouseWheel() == 'seek') {
if (this._wheelSeekIId == undefined) {
this._wheelSeekIId = setInterval(this._wheelSeekStop, 350, this);
this._wheelSeekWasPlaying = this.display.playing;
this._wheelSeekTime = this.display.time;
this.display.disablePlayingEvents = true;
this.display.pause(true);
this.display.disablePlayingEvents = false;
} else {
clearInterval(this._wheelSeekIId);
this._wheelSeekIId = setInterval(this._wheelSeekStop, 350, this);
}
this._wheelSeekTime = Math.max(0, Math.min(this.display.duration ? this.display.duration : Infinity, this._wheelSeekTime - p_delta * this.mouseWheelSeekStep * 1));
this.display.__set__time(this._wheelSeekTime);
}
}
}
updateAfterEvent();
};
v1.rmFitIntoAR = 'fit into component area / mind aspect ratio';
v1.rmFitInto = 'fit into component area';
v1.rmFillOut = 'fill out component area';
v1.rmCenter = 'center in component area';
v1.rmCenterOrFitInto = 'center in component area / shrink if necessary';
v1.rmComponentToVideo = 'resize component to video size';
v2.isAcquiringYouTubeUrl = false;
v2.isFullScreen = false;
v2.autoLoadYouTubePreviewImage = false;
v2.preferHigherQuality = true;
v2.mouseWheelVolumeStep = 5;
v2.mouseWheelSeekStep = 5;
v2.addProperty('autoPlay', v2.__get__autoPlay, v2.__set__autoPlay);
v2.addProperty('autoRepeat', v2.__get__autoRepeat, v2.__set__autoRepeat);
v2.addProperty('mouseWheel', v2.__get__mouseWheel, v2.__set__mouseWheel);
v2.addProperty('previewImageResizeMode', v2.__get__previewImageResizeMode, v2.__set__previewImageResizeMode);
v2.addProperty('previewImageUrl', v2.__get__previewImageUrl, v2.__set__previewImageUrl);
v2.addProperty('showFullScreenButton', v2.__get__showFullScreenButton, v2.__set__showFullScreenButton);
v2.addProperty('url', v2.__get__url, v2.__set__url);
v2.addProperty('videoResizeMode', v2.__get__videoResizeMode, v2.__set__videoResizeMode);
v2.addProperty('volume', v2.__get__volume, v2.__set__volume);
ASSetPropFlags(xm.components.ToobPlayerComponent.prototype, null, 1);
}
#endinitclip
}
movieClip 4112 __Packages.xm.util.quickXML {
#initclip
if (!_global.xm) {
_global.xm = new Object();
}
if (!_global.xm.util) {
_global.xm.util = new Object();
}
if (!_global.xm.util.quickXML) {
var v1 = function (p_url) {
super();
this.url = p_url;
this.fetch();
};
xm.util.quickXML = v1;
xm.util.quickXML extends XML;
var v2 = v1.prototype;
v2.onData = function (p_raw) {
if (p_raw) {
if (p_raw.substr(0, 4) != '<xml') {
trace('INVALID XML:');
trace('-------------------------------------------');
trace(p_raw);
trace('-------------------------------------------');
this.onError('Invalid XML');
return super.onData(p_raw);
}
if (xm.util.quickXML.globalVerboseXml) {
trace('XML:');
trace('-------------------------------------------');
trace(p_raw.substr(0, 255));
trace('-------------------------------------------');
}
}
return super.onData(p_raw);
};
v2.fetch = function (Void) {
if (xm.util.quickXML.globalVerboseXml) {
trace('<- ' + this.url);
}
if (this._iid != undefined) {
clearInterval(this._iid);
delete this._iid;
}
if (this.preventCaching && (this.url.substr(0, 7) == 'http://' || !Boolean(_global.MMSave))) {
if (this.url.indexOf('?') != -1) {
this.load(this.url + '&rnd=' + random(9999) + '_' + random(9999));
} else {
this.load(this.url + '?rnd=' + random(9999) + '_' + random(9999));
}
} else {
this.load(this.url);
}
};
v2.onLoad = function (p_success) {
if (!p_success) {
trace(' ERROR LOADING XML');
if (_global.MMSave) {
trace(' Loading will not retry while testing in IDE.');
} else {
if (this.retry) {
this._iid = setInterval(this.fetch, 100);
}
}
this.onError('Loading error');
} else {
this.onXMLLoad();
}
};
v2.preventCaching = true;
v2.retry = true;
v1.globalVerboseXml = false;
ASSetPropFlags(xm.util.quickXML.prototype, null, 1);
}
#endinitclip
}
movieClip 4113 __Packages.xm.util.quickParsedXML {
#initclip
if (!_global.xm) {
_global.xm = new Object();
}
if (!_global.xm.util) {
_global.xm.util = new Object();
}
if (!_global.xm.util.quickParsedXML) {
var v1 = function (p_url) {
super(p_url);
};
xm.util.quickParsedXML = v1;
xm.util.quickParsedXML extends xm.util.quickXML;
var v2 = v1.prototype;
v2.defaultParse = function (Void) {
var v7 = new Array();
var v5 = this.firstChild.childNodes;
var v4 = 0;
while (v4 < v5.length) {
var v3 = new Object();
var v2 = v5[v4].attributes;
for (var v6 in v2) {
v3[v6] = ((unescape(v2[v6])).split('\r\n')).join('\n');
}
v7.push(v3);
++v4;
}
return v7;
};
ASSetPropFlags(xm.util.quickParsedXML.prototype, null, 1);
}
#endinitclip
}
movieClip 4114 __Packages.xm.components.FLVDisplayComponent {
#initclip
if (!_global.xm) {
_global.xm = new Object();
}
if (!_global.xm.components) {
_global.xm.components = new Object();
}
if (!_global.xm.components.FLVDisplayComponent) {
var v1 = function () {
super();
};
xm.components.FLVDisplayComponent = v1;
xm.components.FLVDisplayComponent extends xm.corpus.resizableComponent;
var v2 = v1.prototype;
v2.__get__bufferTime = function () {
return this.__bufferTime;
};
v2.__set__bufferTime = function (p_btime) {
this.__bufferTime = p_btime;
this.ns.setBufferTime(p_btime);
return this.__get__bufferTime();
};
v2.__get__zoom = function () {
return this.__zoom;
};
v2.__set__zoom = function (p_zoom) {
this.__zoom = p_zoom;
if (this._currentframe == 1) {
return undefined;
}
this.resetResizeMode();
this.dispatchEvent({'type': 'zoom'});
return this.__get__zoom();
};
v2.__get__volume = function () {
return this.__volume;
};
v2.__set__volume = function (p_volume) {
this.__volume = p_volume;
this._sound.setVolume(p_volume);
this.dispatchEvent({'type': 'volume'});
return this.__get__volume();
};
v2.setPlaying = function (p_val) {
if (this.__get__playing() != p_val) {
this.__playing = p_val;
if (!this.disablePlayingEvents) {
this.dispatchEvent({'type': this.__get__playing() ? 'playing' : 'notPlaying'});
}
} else {
this.__playing = p_val;
}
};
v2.__get__playing = function () {
return this.__playing;
};
v2.__onMetaData = function (p_eobj) {
this._this.___onMetaData(p_eobj);
};
v2.___onMetaData = function (p_eobj) {
this.__set__bufferTime(this.bufferTime);
if (p_eobj.width) {
this.preferredWidth = p_eobj.width;
}
if (p_eobj.height) {
this.preferredHeight = p_eobj.height;
}
if (p_eobj.duration) {
this.duration = parseFloat(p_eobj.duration);
} else {
delete this.duration;
}
this.resetResizeMode();
if (this.__get__playing()) {
this.ns.pause(false);
}
this.dispatchEvent({'type': 'meta'});
};
v2.__onStatus = function (p_eobj) {
this._this.___onStatus(p_eobj);
};
v2.___onStatus = function (p_eobj) {
if (p_eobj.code == 'NetStream.Play.StreamNotFound') {
this.setPlaying(false);
this.preloading = false;
this.preloadingBL = undefined;
this.preloadingBT = undefined;
this.started = false;
this.opening = false;
this.dispatchEvent({'type': 'closed'});
this.dispatchEvent({'type': 'change'});
this.dispatchEvent({'type': 'error'});
} else {
if (p_eobj.code == 'NetStream.Buffer.Empty') {
this.dispatchEvent({'type': 'bufferEmpty'});
} else {
if (p_eobj.code == 'NetStream.Buffer.Full') {
this.dispatchEvent({'type': 'bufferFull'});
} else {
if (p_eobj.code == 'NetStream.Buffer.Flush') {
this.dispatchEvent({'type': 'bufferFlush'});
} else {
if (p_eobj.code == 'NetStream.Play.Start') {
this.started = true;
this.opening = false;
this.dispatchEvent({'type': 'start'});
this.setPlaying(true);
this.video.smoothing = true;
} else {
if (p_eobj.code == 'NetStream.Play.Stop') {
var v3 = this.__get__playing();
if (v3) {
if (this.autoRepeat) {
this.__set__time(0);
this.ns.pause(false);
} else {
this.pause(true);
this.__set__time(0);
}
}
this.dispatchEvent({'type': 'complete'});
}
}
}
}
}
}
};
v2.__get__resizeMode = function () {
return this.__resizeMode;
};
v2.__set__resizeMode = function (p_mode) {
this.__resizeMode = p_mode;
if (this._currentframe == 1) {
return undefined;
}
this.resetResizeMode();
return this.__get__resizeMode();
};
v2.resetResizeMode = function (Void) {
var v2 = Math.round(this.preferredWidth * this.__get__zoom() / 100);
var v3 = Math.round(this.preferredHeight * this.__get__zoom() / 100);
var v4 = this.__get__resizeMode();
if (v4 == xm.components.FLVDisplayComponent.rmCenterOrFitInto) {
v4 = (v2 > this.__get__width() || v3 > this.__get__height()) ? xm.components.FLVDisplayComponent.rmFitIntoAR : xm.components.FLVDisplayComponent.rmCenter;
}
if (v4 == xm.components.FLVDisplayComponent.rmCenter) {
this.video._width = v2;
this.video._height = v3;
this.video._x = Math.ceil((this.__get__width() - v2) / 2);
this.video._y = Math.ceil((this.__get__height() - v3) / 2);
} else {
if (v4 == xm.components.FLVDisplayComponent.rmFitInto) {
this.video._width = this.width;
this.video._height = this.height;
this.video._x = 0;
this.video._y = 0;
} else {
if (v4 == xm.components.FLVDisplayComponent.rmComponentToVideo) {
this.video._width = v2;
this.video._height = v3;
this.video._x = 0;
this.video._y = 0;
this.setSize(v2, v3);
} else {
var v5 = this.__get__width() / this.__get__height() > v2 / v3;
if ((v4 == xm.components.FLVDisplayComponent.rmFillOut) ? v5 : !v5) {
this.video._width = this.width;
this.video._height = this.__get__width() * v3 / v2;
this.video._y = -Math.round((this.video._height - this.__get__height()) / 2);
this.video._x = 0;
} else {
this.video._height = this.height;
this.video._width = this.__get__height() * v2 / v3;
this.video._x = -Math.round((this.video._width - this.__get__width()) / 2);
this.video._y = 0;
}
}
}
}
this.dispatchEvent({'type': 'resizeVideo'});
};
v2.setSize = function (p_width, p_height) {
super.setSize(p_width, p_height);
if (this.__get__resizeMode() != xm.components.FLVDisplayComponent.rmComponentToVideo) {
this.resetResizeMode();
}
};
v2.__get__url = function () {
return this.__url;
};
v2.onEnterFrame = function (Void) {
if (this.preloading) {
if (this.preloadingBL != this.ns.bytesLoaded || this.preloadingBT != this.ns.bytesTotal) {
this.preloadingBL = this.ns.bytesLoaded;
this.preloadingBT = this.ns.bytesTotal;
this.dispatchEvent({'type': 'progress', 'bl': this.preloadingBL, 'bt': this.preloadingBT});
}
if (this.preloadingBL >= this.preloadingBT && this.preloadingBT > 0) {
this.preloading = false;
this.dispatchEvent({'type': 'loaded'});
}
}
if (this.__get__time() != this.oldTime) {
this.oldTime = this.time;
this.stuckTime = getTimer();
this.dispatchEvent({'type': 'change'});
} else {
if (this.__get__playing() && !this.preloading) {
if (getTimer() - this.stuckTime > 1000) {
this.__set__time(this.__get__time() + 1);
}
} else {
this.stuckTime = getTimer();
}
}
};
v2.__set__url = function (p_val) {
this.__url = p_val;
if (this._currentframe == 1 || this.__get__url() == '' || this.__get__url() == undefined) {
return undefined;
}
this.stop();
if (this.autoPlay) {
this.play();
}
return this.__get__url();
};
v2.clear = function (Void) {
this.stop();
this.video.clear();
};
v2.play = function (Void) {
if (this.__get__url() == '' || this.__get__url() == undefined) {
return undefined;
}
this.setPlaying(false);
this.started = false;
this.opening = true;
this.preloading = true;
this.preloadingBL = undefined;
this.preloadingBT = undefined;
this.ns.setBufferTime(0);
this.ns.play(this.__get__url());
this.ns.pause(true);
this.dispatchEvent({'type': 'opening'});
};
v2.pause = function (p_pause) {
this.ns.pause(p_pause);
if (p_pause == undefined) {
this.setPlaying(!this.__get__playing());
} else {
if (p_pause) {
this.setPlaying(false);
} else {
this.setPlaying(true);
}
}
};
v2.stop = function (Void) {
this.setPlaying(false);
this.preloading = false;
this.started = false;
this.opening = false;
delete this.duration;
this.ns.close();
this.preloadingBL = this.ns.bytesLoaded;
this.preloadingBT = this.ns.bytesTotal;
this.dispatchEvent({'type': 'closed'});
this.dispatchEvent({'type': 'progress', 'bl': this.preloadingBL, 'bt': this.preloadingBT});
};
v2.__get__time = function () {
return this.ns.time;
};
v2.__set__time = function (p_time) {
this.ns.seek(p_time);
this.dispatchEvent({'type': 'seeking'});
return this.__get__time();
};
v2.init = function (Void) {
super.init();
this.nextFrame();
this.Aligner.register(this._mask, {'hStretch': true, 'vStretch': true});
this.setMask(this._mask);
this.nc = new NetConnection();
this.nc.connect(null);
this.ns = new NetStream(this.nc);
this.video.smoothing = true;
this.video.attachVideo(this.ns);
this.ns._this = this;
this.ns.onMetaData = this.__onMetaData;
this.ns.onStatus = this.__onStatus;
this._mask.attachAudio(this.ns);
this._sound = new Sound(this._mask);
var v3 = 0;
while (v3 < this.callWhenInitialized.length) {
var v4 = this.callWhenInitialized[v3];
v4.f.apply(v4.o);
++v3;
}
this.__set__bufferTime(this.bufferTime);
this.__set__url(this.url);
this.__set__volume(this.volume);
this.__set__resizeMode(this.resizeMode);
};
v1.rmFitIntoAR = 'fit into component area / mind aspect ratio';
v1.rmFitInto = 'fit into component area';
v1.rmFillOut = 'fill out component area';
v1.rmCenter = 'center in component area';
v1.rmCenterOrFitInto = 'center in component area / shrink if necessary';
v1.rmComponentToVideo = 'resize component to video size';
v2.__volume = 100;
v2.__zoom = 100;
v2.__bufferTime = 0.5;
v2.__resizeMode = xm.components.FLVDisplayComponent.rmFitIntoAR;
v2.disablePlayingEvents = false;
v2.preferredWidth = 320;
v2.preferredHeight = 240;
v2.autoRepeat = false;
v2.autoPlay = true;
v2.addProperty('bufferTime', v2.__get__bufferTime, v2.__set__bufferTime);
v2.addProperty('playing', v2.__get__playing, function () {});
v2.addProperty('resizeMode', v2.__get__resizeMode, v2.__set__resizeMode);
v2.addProperty('time', v2.__get__time, v2.__set__time);
v2.addProperty('url', v2.__get__url, v2.__set__url);
v2.addProperty('volume', v2.__get__volume, v2.__set__volume);
v2.addProperty('zoom', v2.__get__zoom, v2.__set__zoom);
ASSetPropFlags(xm.components.FLVDisplayComponent.prototype, null, 1);
}
#endinitclip
}
movieClip 4115 __Packages.xm.components.FLVControllerComponent {
#initclip
if (!_global.xm) {
_global.xm = new Object();
}
if (!_global.xm.components) {
_global.xm.components = new Object();
}
if (!_global.xm.components.FLVControllerComponent) {
var v1 = function () {
super();
};
xm.components.FLVControllerComponent = v1;
xm.components.FLVControllerComponent extends xm.corpus.resizableComponent;
var v2 = v1.prototype;
v2.addListeners = function (Void) {
this.addEventListener('resize', this);
this.display.addEventListenerL('resize', this, 'resizeDisplay');
this.display.addEventListener('resizeVideo', this);
this.display.addEventListener('start', this);
this.display.addEventListener('complete', this);
this.display.addEventListener('progress', this);
this.display.addEventListener('loaded', this);
this.display.addEventListener('change', this);
this.display.addEventListener('opening', this);
this.display.addEventListener('seeking', this);
this.display.addEventListener('closed', this);
this.display.addEventListener('error', this);
this.display.addEventListener('volume', this);
this.display.addEventListener('zoom', this);
this.display.addEventListener('playing', this);
this.display.addEventListener('notPlaying', this);
this.display.addEventListener('bufferEmpty', this);
this.display.addEventListener('bufferFull', this);
this.display.addEventListener('bufferFlush', this);
this.display.addEventListener('acquiringYouTubeUrl', this);
this.display.addEventListener('acquiredYouTubeUrl', this);
this.display.addEventListener('errorAcquiringYouTubeUrl', this);
this.display.addEventListener('prePlay', this);
this.display.addEventListener('preStop', this);
};
v2.init = function (Void) {
super.init();
this.nextFrame();
this.display = this.evaluateTarget(this._targetInstanceName);
if (this.display.addEventListener) {
this.addListeners();
} else {
if (!this.display.callWhenInitialized) {
this.display.callWhenInitialized = new Array();
}
this.display.callWhenInitialized.push({'f': this.addListeners, 'o': this});
}
};
ASSetPropFlags(xm.components.FLVControllerComponent.prototype, null, 1);
}
#endinitclip
}
movieClip 4116 __Packages.xm.components.ImageContainerComponent {
#initclip
if (!_global.xm) {
_global.xm = new Object();
}
if (!_global.xm.components) {
_global.xm.components = new Object();
}
if (!_global.xm.components.ImageContainerComponent) {
var v1 = function () {
super();
};
xm.components.ImageContainerComponent = v1;
xm.components.ImageContainerComponent extends xm.corpus.resizableComponent;
var v2 = v1.prototype;
v2.__get__resizeMode = function () {
return this.__resizeMode;
};
v2.__set__resizeMode = function (p_mode) {
this.__resizeMode = p_mode;
if (this._currentframe == 1) {
return undefined;
}
this.refresh();
return this.__get__resizeMode();
};
v2.setSize = function (p_width, p_height) {
super.setSize(p_width, p_height);
if (this.__get__resizeMode() != xm.components.ImageContainerComponent.rmComponentToImage) {
this.refresh();
}
};
v2.__get__applyMask = function () {
return this.__applyMask;
};
v2.__set__applyMask = function (p_mode) {
if (p_mode == this.__get__applyMask() && !this._initializing) {
return undefined;
}
this.__applyMask = p_mode;
if (this._currentframe == 1) {
return undefined;
}
if (this.__get__applyMask()) {
this.attachMovie('ImageContainer Component: Mask', '_mask', this.getNextHighestDepth());
this.Aligner.register(this._mask, {'hStretch': true, 'vStretch': true});
this._container.setMask(this._mask);
} else {
this._mask.removeMovieClip();
this._container.setMask(null);
}
return this.__get__applyMask();
};
v2.__get__url = function () {
return this.__url;
};
v2.__set__url = function (p_val) {
if ((this.preventImageCaching || xm.components.ImageContainerComponent.globalPreventImageCaching) && ((this.__get__url()).substr(0, 7) == 'http://' || !Boolean(_global.MMSave)) && p_val != undefined && p_val != '' && !this._initializing) {
if (p_val.indexOf('?') >= 0) {
p_val += '&rnd=' + getTimer() + '_' + random(999999999);
} else {
p_val += '?rnd=' + getTimer() + '_' + random(999999999);
}
}
if (p_val == this.__get__url() && !this._initializing || p_val == undefined || p_val == '') {
return undefined;
}
this.__url = p_val;
if (this._currentframe == 1) {
return undefined;
}
this.addImageToSupraQueue(this.__get__url());
return this.__get__url();
};
v2.addImageToQueue = function (p_url) {
var v2 = this._container.createEmptyMovieClip(String(++xm.components.ImageContainerComponent.imageCounter), this._container.getNextHighestDepth());
v2 = v2.createEmptyMovieClip(String(xm.components.ImageContainerComponent.imageCounter), v2.getNextHighestDepth());
this.imageQueue.push({'mc': v2, 'url': p_url});
if (this.loadingType == xm.components.ImageContainerComponent.ltParallel) {
this.clearNotLoadedImagesBelow(v2);
}
if (!(this.loadingType == xm.components.ImageContainerComponent.ltQueue && this.anyLoading)) {
this.loadNextImage();
}
};
v2.loadNextImage = function () {
var v3 = 0;
while (v3 < this.imageQueue.length) {
var v2 = this.imageQueue[v3];
if (!v2.started) {
v2.started = true;
this.anyLoading = true;
this.loader.loadClip(v2.url, v2.mc);
this.dispatchEvent({'type': 'loadStart', 'image': v2.mc});
return undefined;
}
++v3;
}
this.anyLoading = false;
};
v2.clear = function (Void) {
while (this.imageQueue.length) {
var v2 = this.imageQueue[0];
v2.mc.removeMovieClip();
this.imageQueue.shift();
}
delete this.__url;
this.anyShowing = false;
if (this.anyLoading) {
this.dispatchEvent({'type': 'loadComplete'});
}
this.loadNextImage();
};
v2.clearImagesBelow = function (p_cont) {
while (this.imageQueue.length) {
var v2 = this.imageQueue[0];
if (!v2.started || v2.mc == p_cont) {
break;
}
v2.mc.removeMovieClip();
this.imageQueue.shift();
}
};
v2.clearNotLoadedImagesBelow = function (p_cont) {
var v3 = 0;
while (v3 < this.imageQueue.length) {
var v2 = this.imageQueue[v3];
if (v2.mc == p_cont) {
break;
}
if (!v2.mc.imageLoaded) {
v2.mc.removeMovieClip();
this.imageQueue.splice(v3, 1);
} else {
++v3;
}
}
};
v2.findInQueue = function (p_mc) {
var v2 = 0;
while (v2 < this.imageQueue.length) {
if (this.imageQueue[v2].mc == p_mc) {
return this.imageQueue[v2];
}
++v2;
}
};
v2.getImageBelow = function (p_mc) {
var v3;
var v2 = 0;
while (v2 < this.imageQueue.length) {
if (this.imageQueue[v2].mc == p_mc) {
return v3;
}
if (this.imageQueue[v2].mc.imageLoaded) {
v3 = this.imageQueue[v2].mc;
}
++v2;
}
};
v2._retryTimeout = function (Void) {
clearInterval(this._iid);
delete this._iid;
this.loadNextImage();
};
v2.onLoadError = function (p_mc) {
var v2 = this.findInQueue(p_mc);
if (!v2) {
return undefined;
}
if (p_mc == this.imageQueue[this.imageQueue.length - 1].mc) {
v2.started = false;
clearInterval(this._iid);
this._iid = setInterval(this, '_retryTimeout', this.retryDelay * 1000);
} else {
this.loadNextImage();
}
};
v2.onLoadComplete = function (p_mc) {
var v3 = this.findInQueue(p_mc);
if (!v3) {
return undefined;
}
p_mc.url = (this.findInQueue(p_mc)).url;
p_mc.imageLoaded = true;
this.clearNotLoadedImagesBelow(p_mc);
this.dispatchEvent({'type': 'loadComplete', 'image': p_mc});
};
v2.onLoadInit = function (p_mc) {
var v5 = this.findInQueue(p_mc);
if (!v5) {
return undefined;
}
this.anyShowing = true;
if (this.smoothing) {
var v6 = p_mc.url;
var v3 = new flash.display.BitmapData(p_mc._width, p_mc._height, this.smoothTransparency, 0);
v3.draw(p_mc);
var v4 = p_mc._parent;
p_mc = v4.createEmptyMovieClip(p_mc._name, p_mc.getDepth());
p_mc.attachBitmap(v3, 0, 'never', true);
p_mc.url = v6;
p_mc.imageLoaded = true;
}
p_mc.imageLoaded = true;
p_mc.imageReady = true;
if (!p_mc.preferredWidth) {
p_mc.preferredWidth = p_mc._width;
p_mc.preferredHeight = p_mc._height;
}
this.refreshSingle(p_mc);
this.dispatchEvent({'type': 'loadInit', 'image': p_mc});
this.loadNextImage();
if (this.supraQueueing) {
this.__set__supraQueued(this.__get__supraQueued() - 1);
this.processSupraQueue();
}
};
v2.refresh = function (Void) {
var v2 = 0;
while (v2 < this.imageQueue.length) {
if (this.imageQueue[v2].mc.imageReady) {
this.refreshSingle(this.imageQueue[v2].mc);
}
++v2;
}
};
v2.refreshSingle = function (p_mc) {
var v3 = this.__get__resizeMode();
if (v3 == xm.components.ImageContainerComponent.rmCenterOrFitInto) {
v3 = (p_mc.preferredWidth > this.__get__width() || p_mc.preferredHeight > this.__get__height()) ? xm.components.ImageContainerComponent.rmFitIntoAR : xm.components.ImageContainerComponent.rmCenter;
}
if (v3 == xm.components.ImageContainerComponent.rmCenter) {
p_mc._width = p_mc.preferredWidth;
p_mc._height = p_mc.preferredHeight;
p_mc._x = Math.ceil((this.__get__width() - p_mc.preferredWidth) / 2);
p_mc._y = Math.ceil((this.__get__height() - p_mc.preferredHeight) / 2);
} else {
if (v3 == xm.components.ImageContainerComponent.rmFitInto) {
p_mc._width = this.width;
p_mc._height = this.height;
p_mc._x = 0;
p_mc._y = 0;
} else {
if (v3 == xm.components.ImageContainerComponent.rmComponentToImage) {
p_mc._width = p_mc.preferredWidth;
p_mc._height = p_mc.preferredHeight;
p_mc._x = 0;
p_mc._y = 0;
this.setSize(p_mc.preferredWidth, p_mc.preferredHeight);
} else {
var v4 = this.__get__width() / this.__get__height() > p_mc.preferredWidth / p_mc.preferredHeight;
if ((v3 == xm.components.ImageContainerComponent.rmFillOut) ? v4 : !v4) {
p_mc._width = this.width;
p_mc._yscale = p_mc._xscale;
p_mc._y = -Math.round((p_mc._height - this.__get__height()) / 2);
p_mc._x = 0;
} else {
p_mc._height = this.height;
p_mc._xscale = p_mc._yscale;
p_mc._x = -Math.round((p_mc._width - this.__get__width()) / 2);
p_mc._y = 0;
}
}
}
}
};
v2.onLoadProgress = function (p_mc, p_bl, p_bt) {
var v2 = this.findInQueue(p_mc);
if (!v2) {
return undefined;
}
if (p_bt > 0) {
this.dispatchEvent({'type': 'loadProgress', 'bl': p_bl, 'bt': p_bt, 'image': p_mc});
}
};
v2.__get__supraQueueParent = function () {
var v2 = this.evaluateTarget(this.supraQueueParentTarget);
if (!v2.__supraQueue) {
v2.__supraQueued = 0;
v2.__supraQueue = new Array();
}
return v2;
};
v2.__get__supraQueue = function () {
return (this.__get__supraQueueParent()).__supraQueue;
};
v2.__set__supraQueued = function (p_val) {
(this.__get__supraQueueParent()).__supraQueued = p_val;
return this.__get__supraQueued();
};
v2.__get__supraQueued = function () {
return (this.__get__supraQueueParent()).__supraQueued;
};
v2.addImageToSupraQueue = function (p_url) {
if (this.supraQueueing) {
(this.__get__supraQueue()).push({'o': this, 'url': p_url});
this.processSupraQueue();
} else {
this.addImageToQueue(p_url);
}
};
v2.processSupraQueue = function (Void) {
for (;;) {
if (!((this.__get__supraQueue()).length && this.__get__supraQueued() < this.supraQueueWidth)) break;
var v2 = (this.__get__supraQueue()).shift();
v2.o.addImageToQueue(v2.url);
this.__set__supraQueued(this.__get__supraQueued() + 1);
}
};
v2.init = function (Void) {
super.init();
this.nextFrame();
this.imageQueue = new Array();
this.loader = new MovieClipLoader();
this.loader.addListener(this);
this._initializing = true;
this.__set__applyMask(this.applyMask);
this.__set__url(this.url);
this._initializing = false;
};
v1.rmFitIntoAR = 'fit into component area / mind aspect ratio';
v1.rmFitInto = 'fit into component area';
v1.rmFillOut = 'fill out component area';
v1.rmCenter = 'center in component area';
v1.rmCenterOrFitInto = 'center in component area / shrink if necessary';
v1.rmComponentToImage = 'resize component to image size';
v1.ltQueue = 'queue';
v1.ltParallel = 'parallel';
v1.imageCounter = 0;
v2.__resizeMode = xm.components.ImageContainerComponent.rmFitInto;
v2.smoothing = true;
v2.smoothTransparency = false;
v2.retryDelay = 0.5;
v2.preventImageCaching = false;
v2.loadingType = xm.components.ImageContainerComponent.ltQueue;
v2.supraQueueing = false;
v2.supraQueueParentTarget = '_parent';
v2.supraQueueWidth = 1;
v2.addProperty('applyMask', v2.__get__applyMask, v2.__set__applyMask);
v2.addProperty('resizeMode', v2.__get__resizeMode, v2.__set__resizeMode);
v2.addProperty('supraQueue', v2.__get__supraQueue, function () {});
v2.addProperty('supraQueueParent', v2.__get__supraQueueParent, function () {});
v2.addProperty('supraQueued', v2.__get__supraQueued, v2.__set__supraQueued);
v2.addProperty('url', v2.__get__url, v2.__set__url);
ASSetPropFlags(xm.components.ImageContainerComponent.prototype, null, 1);
}
#endinitclip
}
movieClip 4117 __Packages.xm.util.miniTweener {
#initclip
if (!_global.xm) {
_global.xm = new Object();
}
if (!_global.xm.util) {
_global.xm.util = new Object();
}
if (!_global.xm.util.miniTweener) {
var v1 = function () {};
xm.util.miniTweener = v1;
var v2 = v1.prototype;
v1.addTween = function (p_mc, p_params) {
var v7;
v7 = p_mc[xm.util.miniTweener.tweenerMcName];
if (!v7) {
v7 = p_mc.createEmptyMovieClip(xm.util.miniTweener.tweenerMcName, p_mc.getNextHighestDepth());
}
var time = p_params.time;
var transition = (typeof p_params.transition == 'function') ? p_params.transition : ((p_params.transition == 'linear') ? xm.util.miniTweener.easeNone : xm.util.miniTweener.easeOutExpo);
var startTime = getTimer();
var onComplete = p_params.onComplete;
var onUpdate = p_params.onUpdate;
var rounded = p_params.rounded;
delete p_params.time;
delete p_params.transition;
delete p_params.startTime;
delete p_params.onComplete;
delete p_params.onUpdate;
delete p_params.rounded;
for (var v9 in p_params) {
var v2;
v2.startTime = startTime;
v2 = v7['prop_' + v9];
if (!v2) {
v2 = v7.createEmptyMovieClip('prop_' + v9, v7.getNextHighestDepth());
} else {
if (!v2.completed) {
v2.onEnterFrame();
} else {
v2.completed = false;
}
}
v2.time = time;
v2.transition = transition;
v2.startTime = startTime;
v2.prop = v9;
v2.endPropValue = p_params[v9];
v2.startPropValue = p_mc[v9];
v2.onUpdate = onUpdate;
v2.onComplete = onComplete;
v2.rounded = rounded;
v2.onEnterFrame = function () {
var v2 = this._parent._parent;
var v3 = getTimer();
var v4 = this.transition(Math.min(this.time * 1000, v3 - this.startTime), this.startPropValue, this.endPropValue - this.startPropValue, this.time * 1000);
v2[this.prop] = this.rounded ? Math.round(v4) : v4;
this.onUpdate.apply(v2);
if (v3 - this.startTime >= this.time * 1000) {
this.completed = true;
this.onComplete.apply(v2);
if (v3 - this.startTime >= this.time * 1000) {
this.removeMovieClip();
}
}
};
}
};
v1.removeTweens = function (p_mc) {
p_mc[xm.util.miniTweener.tweenerMcName].removeMovieClip();
};
v1.easeOutExpo = function (t, b, c, d) {
return (t == d) ? b + c : c * 1.001 * (-Math.pow(2, -10 * t / d) + 1) + b;
};
v1.easeNone = function (t, b, c, d) {
return c * t / d + b;
};
v1.tweenerMcName = '__mini_tweener';
ASSetPropFlags(xm.util.miniTweener.prototype, null, 1);
}
#endinitclip
}
frame 16 {
NewgroundsAPI.logCustomEvent('Menu Load');
}
frame 16 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot__('dd9e2395', this, 10301, true);
}
movieClip 54 {
}
movieClip 55 {
}
movieClip 58 {
}
movieClip 59 {
}
movieClip 60 {
}
movieClip 61 {
}
movieClip 62 {
}
movieClip 63 {
}
movieClip 64 {
}
movieClip 75 {
}
movieClip 79 {
}
button 84 {
on (press) {
gotoAndPlay('home to movie');
}
}
button 89 {
on (press) {
gotoAndPlay('home to scenes');
}
}
button 94 {
on (press) {
gotoAndPlay('home to bonus');
}
}
frame 43 {
stop();
}
frame 56 {
gotoAndPlay('scenes in');
}
frame 70 {
gotoAndPlay('bonus in');
}
frame 71 {
stopAllSounds();
}
frame 91 {
gotoAndPlay(598);
}
frame 92 {
NewgroundsAPI.logCustomEvent('BonusFeatures');
}
frame 92 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot__('b4846427', this, 10301, true);
}
movieClip 98 {
}
// unknown tag 88 length 197
button 104 {
on (press) {
gotoAndPlay('bonus to concept art');
}
}
button 109 {
on (press) {
gotoAndPlay('bonus to animatic');
}
}
button 114 {
on (press) {
gotoAndPlay('bonus to FX');
}
}
button 119 {
on (press) {
gotoAndPlay('Bonus to trailer');
}
}
button 124 {
on (press) {
getURL('http://www.tarboy.com/music.html', '_blank');
}
}
// unknown tag 88 length 228
button 129 {
on (press) {
getURL('http://www.tarboy.com', '_blank');
}
}
button 132 {
on (press) {
getURL('http://www.tarboy.com/blog.html', '_blank');
}
}
button 136 {
on (press) {
getURL('http://www.youtube.com/watch?v=ACHVwA1D8fE&fmt=18', '_blank');
}
}
button 141 {
on (press) {
getURL('http://www.jameslee.deviantart.com', '_blank');
}
}
button 145 {
on (press) {
gotoAndPlay('bonus to home');
}
}
frame 105 {
stop();
}
frame 117 {
gotoAndPlay('home in');
}
frame 131 {
gotoAndPlay('concept art in');
}
frame 145 {
gotoAndPlay('animatic in');
}
frame 159 {
gotoAndPlay('fx in');
}
frame 173 {
gotoAndPlay('tailer in');
}
frame 174 {
NewgroundsAPI.logCustomEvent('SceneSelect');
}
frame 174 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot__('df10e8ab', this, 10301, true);
}
button 155 {
on (press) {
gotoAndPlay('scene to home');
}
}
button 159 {
on (press) {
gotoAndPlay('scene to sc1');
}
}
button 163 {
on (press) {
gotoAndPlay('scene to sc2');
}
}
button 167 {
on (press) {
gotoAndPlay('scene to sc3');
}
}
button 171 {
on (press) {
gotoAndPlay('scene to sc4');
}
}
button 175 {
on (press) {
gotoAndPlay('scene to sc6');
}
}
button 179 {
on (press) {
gotoAndPlay('scene to sc7');
}
}
button 183 {
on (press) {
gotoAndPlay('scene to sc9');
}
}
button 187 {
on (press) {
gotoAndPlay('scene to sc11');
}
}
button 191 {
on (press) {
gotoAndPlay('scene to sc12');
}
}
frame 187 {
stop();
}
movieClip 193 {
}
movieClip 194 {
}
movieClip 195 {
}
movieClip 196 {
}
movieClip 197 {
}
movieClip 198 {
}
movieClip 199 {
}
movieClip 200 {
}
movieClip 201 {
}
frame 223 {
stopAllSounds();
}
frame 241 {
gotoAndPlay('sc1');
}
frame 242 {
stopAllSounds();
}
frame 260 {
gotoAndPlay('sc2');
}
frame 261 {
stopAllSounds();
}
frame 279 {
gotoAndPlay('sc3');
}
frame 280 {
stopAllSounds();
}
frame 297 {
gotoAndPlay('sc4');
}
frame 298 {
stopAllSounds();
}
frame 316 {
gotoAndPlay('sc6');
}
frame 317 {
stopAllSounds();
}
frame 334 {
gotoAndPlay('sc7');
}
frame 335 {
stopAllSounds();
}
frame 353 {
gotoAndPlay('sc9');
}
frame 354 {
stopAllSounds();
}
frame 372 {
gotoAndPlay('sc11');
}
frame 373 {
stopAllSounds();
}
frame 390 {
gotoAndPlay('sc12');
}
frame 417 {
gotoAndPlay('home in');
}
frame 418 {
stopAllSounds();
}
movieClip 204 {
}
movieClip 206 {
}
movieClip 208 ImageContainer Component: Mask {
}
movieClip 209 ImageContainer (Basic Fade) {
#initclip
Object.registerClass('ImageContainer (Basic Fade)', xm.components.ImageContainerComponent);
#endinitclip
frame 2 {
function loadInit(eventObj) {
clearImagesBelow(eventObj.image);
_alpha = 0;
xm.util.miniTweener.addTween(this, {'_alpha': 100, 'time': 0.2, 'transition': linear});
}
addEventListener('loadInit', this);
}
}
movieClip 211 {
}
movieClip 213 FLVDisplay {
#initclip
Object.registerClass('FLVDisplay', xm.components.FLVDisplayComponent);
#endinitclip
}
movieClip 215 {
frame 1 {
onRelease = null;
useHandCursor = false;
}
}
movieClip 217 {
}
movieClip 219 {
}
movieClip 221 {
}
movieClip 223 {
}
movieClip 225 {
}
movieClip 226 Dark: FLVController: Audio Slider {
#initclip
Object.registerClass('Dark: FLVController: Audio Slider', xm.components.FLVControllerComponent);
#endinitclip
frame 1 {
function resize() {
volume();
}
function volume() {
m._width = Math.round((Math.min(100, isNaN(display.volume) ? 0 : display.volume) / 100) * 39 / 4) * 4;
_parent.vol.tf.text = Math.round(isNaN(display.volume) ? 0 : display.volume);
}
hit.onPress = function () {
onMouseMove = _onMouseMove;
onMouseMove();
};
_onMouseMove = function () {
display.volume = Math.min(Math.max((_xmouse / 38) * 100, 0), 100);
updateAfterEvent();
};
hit.onRelease = function () {
delete onMouseMove;
};
hit.onRollOver = function () {
xm.util.miniTweener.addTween(_parent.vol, {'_white': 255, 'time': 0.1, 'transition': 'linear'});
};
hit.onRollOut = function () {
xm.util.miniTweener.addTween(_parent.vol, {'_white': 0, 'time': 0.1, 'transition': 'linear'});
};
hit.onReleaseOutside = function () {
xm.util.miniTweener.addTween(_parent.vol, {'_white': 0, 'time': 0.1, 'transition': 'linear'});
hit.onRelease();
};
volume();
}
}
// unknown tag 88 length 14
movieClip 230 {
}
movieClip 232 {
}
movieClip 234 {
}
movieClip 236 {
}
movieClip 237 {
}
movieClip 238 {
instance of movieClip 226 Dark: FLVController: Audio Slider {
onClipEvent (construct) {
_targetInstanceName = '_parent.display';
}
}
}
movieClip 240 {
}
movieClip 242 {
}
movieClip 244 {
}
movieClip 246 {
}
movieClip 248 {
}
movieClip 250 {
}
movieClip 251 Dark: FLVController: Bar {
#initclip
Object.registerClass('Dark: FLVController: Bar', xm.components.FLVControllerComponent);
#endinitclip
frame 1 {
function change() {
if (!dragging) {
if (isNaN(display.duration)) {
posbg._width = 3;
} else {
posbg._width = 3 + Math.round((display.time / display.duration) * (width - 3));
}
pos._width = posbg._width - 2;
}
}
Aligner.register(bg, {'hStretch': true, 'hSize': 1, 'hSizeMargin': 2});
Aligner.register(bgborder, {'hStretch': true, 'hSize': 1, 'hSizeMargin': 0});
Aligner.register(hit, {'hStretch': true, 'hSize': 1, 'hSizeMargin': 0});
loadedborder._width = 3;
loadedbar._width = 1;
opening = function () {
delete maxTime;
};
resize = function () {
if (maxTime == undefined || maxTime < display.time) {
maxTime = display.time;
}
var v1 = Math.max(display.preloadingBL / display.preloadingBT, (display.duration != undefined) ? ((maxTime != undefined) ? maxTime : 0) / display.duration : 0);
if (isNaN(v1)) {
loadedbar._width = 1;
} else {
loadedbar._width = Math.round((width - 2) * v1 + 3 * (1 - v1));
}
loadedborder._width = loadedbar._width + 2;
change();
};
loaded = resize;
progress = loaded;
hit.onPress = function () {
wasPlaying = false;
if (display.started) {
dragging = true;
onMouseMove = _onMouseMove;
wasPlaying = display.playing;
display.disablePlayingEvents = true;
display.pause(true);
display.disablePlayingEvents = false;
onMouseMove();
}
};
_onMouseMove = function () {
display.time = Math.min(Math.max(((_xmouse - 2) / (width - 3)) * display.duration, 0), display.duration);
handle._x = Math.round(Math.min(Math.max(_xmouse, 0), pbar._width - 1));
posbg._width = 3 + Math.round(Math.min(Math.max(_xmouse - 2, 0), loadedbar._width - 2));
pos._width = posbg._width - 2;
updateAfterEvent();
};
hit.onRelease = function () {
dragging = false;
delete onMouseMove;
if (wasPlaying) {
display.time = display.time;
display.pause(false);
}
};
hit.onReleaseOutside = function () {
hit.onRelease();
hit.onRollOut();
};
hit.onRollOver = function () {
xm.util.miniTweener.addTween(_parent.r.time.current, {'_white': 255, 'time': 0.1, 'transition': 'linear'});
};
hit.onRollOut = function () {
xm.util.miniTweener.addTween(_parent.r.time.current, {'_white': 0, 'time': 0.1, 'transition': 'linear'});
};
resize();
}
}
movieClip 253 {
}
movieClip 255 {
}
movieClip 257 {
}
movieClip 259 {
}
movieClip 261 {
}
movieClip 262 {
frame 1 {
stop();
b_play.onRelease = function () {
var v2 = _parent.display;
if (_parent._parent.acquiringYouTubeUrl) {
_parent._parent.prePlay();
return undefined;
}
if (v2.playing) {
v2.pause();
} else {
if (!v2.started) {
v2.play();
} else {
if (v2.time >= v2.duration) {
v2.time = 0;
}
v2.pause(false);
}
}
};
b_play.onRollOver = function () {
xm.util.miniTweener.addTween(hi_play, {'_alpha': 100, 'time': 0.1, 'transition': 'linear'});
};
b_play.onReleaseOutside = function () {
xm.util.miniTweener.addTween(hi_play, {'_alpha': 0, 'time': 0.1, 'transition': 'linear'});
};
b_play.onRollOut = b_play.onReleaseOutside;
}
frame 2 {
b_pause.onRelease = function () {
var v2 = _parent.display;
if (_parent._parent.acquiringYouTubeUrl) {
_parent._parent.preStop();
return undefined;
}
if (v2.playing) {
v2.pause();
} else {
if (!v2.started) {
v2.play();
} else {
if (v2.time >= v2.duration) {
v2.time = 0;
}
v2.pause(false);
}
}
};
b_pause.onRollOver = function () {
xm.util.miniTweener.addTween(hi_pause, {'_alpha': 100, 'time': 0.1, 'transition': 'linear'});
};
b_pause.onReleaseOutside = function () {
xm.util.miniTweener.addTween(hi_pause, {'_alpha': 0, 'time': 0.1, 'transition': 'linear'});
};
b_pause.onRollOut = b_pause.onReleaseOutside;
}
}
movieClip 264 {
}
movieClip 266 {
}
movieClip 267 {
frame 1 {
stop();
b_stop.onRelease = function () {
if (_parent._parent.acquiringYouTubeUrl) {
_parent._parent.preStop();
return undefined;
}
_parent.display.time = 0;
_parent.display.pause();
xm.util.miniTweener.addTween(this, {'__wait': null, 'time': 0.2, 'onComplete': function () {
_parent.display.stop();
}});
};
b_stop.onRollOver = function () {
xm.util.miniTweener.addTween(hi_stop, {'_alpha': 100, 'time': 0.1, 'transition': 'linear'});
};
b_stop.onReleaseOutside = function () {
xm.util.miniTweener.addTween(hi_stop, {'_alpha': 0, 'time': 0.1, 'transition': 'linear'});
};
b_stop.onRollOut = b_stop.onReleaseOutside;
}
}
movieClip 268 FLVController (Dark) {
#initclip
Object.registerClass('FLVController (Dark)', xm.components.FLVControllerComponent);
#endinitclip
frame 1 {
function expandTime(p_time) {
var v1 = Math.floor(p_time / 60);
p_time -= v1 * 60;
var v2 = Math.floor(p_time);
if (v2 >= 10) {
return (v1 < 10 ? '0' : '') + v1 + ':' + '' + v2;
}
return (v1 < 10 ? '0' : '') + v1 + ':' + '0' + v2;
}
Aligner.register(bg, {'hStretch': true, 'hSize': 1});
Aligner.register(r, {'hAlign': true, 'hPosition': 1});
Aligner.register(bar, {'hStretch': true, 'hSize': 1, 'hSizeMargin': 222});
r.time.current.tf.autoSize = true;
prePlay = function () {
playpause.gotoAndStop(2);
};
playing = prePlay;
preStop = function () {
playpause.gotoAndStop(1);
};
notPlaying = preStop;
closed = function () {
r.time.current.tf.text = expandTime(display.time);
r.time.slash._x = Math.round(r.time.current.tf._width) - 3;
r.time.total.tf.text = expandTime(display.duration ? display.duration : 0);
r.time.total._x = r.time.slash._x + 5;
};
change = closed;
MovieClip.prototype.getWhite = function () {
return this.transform.colorTransform.redOffset;
};
MovieClip.prototype.setWhite = function (p_val) {
var v2 = this.transform.colorTransform;
v2.blueOffset = p_val;
v2.greenOffset = v2.blueOffset;
v2.redOffset = v2.blueOffset;
this.transform.colorTransform = v2;
};
MovieClip.prototype.addProperty('_white', MovieClip.prototype.getWhite, MovieClip.prototype.setWhite);
ASSetPropFlags(MovieClip.prototype, '_white', 1, 0);
}
instance bar of movieClip 251 Dark: FLVController: Bar {
onClipEvent (construct) {
_targetInstanceName = 'display';
}
}
}
movieClip 270 {
}
movieClip 272 {
}
movieClip 273 {
#initclip
if (Stage.scaleMode == 'noScale') {
oldScaleMode = Stage.scaleMode;
Stage.scaleMode = 'showAll';
_global.documentWidth = Stage.width;
_global.documentHeight = Stage.height;
Stage.scaleMode = oldScaleMode;
delete oldScaleMode;
} else {
_global.documentWidth = Stage.width;
_global.documentheight = Stage.height;
}
#endinitclip
frame 1 {
stop();
_Stage = Stage;
toobPlayer = _parent._parent;
b_fs.onRelease = function () {
if (!toobPlayer.isFullScreen) {
beforeDisplayState = _Stage.displayState;
beforeX = toobPlayer._x;
beforeY = toobPlayer._y;
beforeW = toobPlayer.width;
beforeH = toobPlayer.height;
toobPlayer.setFullScreen(true);
if (_Stage.displayState != 'fullScreen') {
_Stage.displayState = 'fullScreen';
}
onResize = _onResize;
onResize();
} else {
if (_Stage.displayState != beforeDisplayState) {
_Stage.displayState = beforeDisplayState;
}
delete onResize;
toobPlayer._x = beforeX;
toobPlayer._y = beforeY;
toobPlayer.setSize(beforeW, beforeH);
toobPlayer.setFullScreen(false);
}
};
Stage.addListener(this);
_onResize = function () {
if (Stage.align == 'LT' || Stage.align == 'TL') {
toobPlayer._x = 0;
toobPlayer._y = 0;
} else {
if (Stage.align == 'T') {
toobPlayer._x = -Math.floor((Stage.width - documentWidth) / 2);
toobPlayer._y = 0;
} else {
if (Stage.align == 'TR') {
toobPlayer._x = -(Stage.width - documentWidth);
toobPlayer._y = 0;
} else {
if (Stage.align == 'L') {
toobPlayer._x = 0;
toobPlayer._y = -Math.floor((Stage.height - documentHeight) / 2);
} else {
if (Stage.align == 'R') {
toobPlayer._x = -(Stage.width - documentWidth);
toobPlayer._y = -Math.floor((Stage.height - documentHeight) / 2);
} else {
if (Stage.align == 'LB') {
toobPlayer._x = 0;
toobPlayer._y = -(Stage.height - documentHeight);
} else {
if (Stage.align == 'B') {
toobPlayer._x = -Math.floor((Stage.width - documentWidth) / 2);
toobPlayer._y = -(Stage.height - documentHeight);
} else {
if (Stage.align == 'RB') {
toobPlayer._x = -(Stage.width - documentWidth);
toobPlayer._y = -(Stage.height - documentHeight);
} else {
if (Stage.align == '') {
toobPlayer._x = -Math.floor((Stage.width - documentWidth) / 2);
toobPlayer._y = -Math.floor((Stage.height - documentHeight) / 2);
}
}
}
}
}
}
}
}
}
toobPlayer.setSize(Stage.width, Stage.height);
};
onFullScreen = function (p_fs) {
if (!p_fs && toobPlayer.isFullScreen) {
b_fs.onRelease();
}
};
b_fs.onRollOver = function () {
xm.util.miniTweener.addTween(hi_fs, {'_alpha': 100, 'time': 0.1, 'transition': 'linear'});
};
b_fs.onReleaseOutside = function () {
xm.util.miniTweener.addTween(hi_fs, {'_alpha': 0, 'time': 0.1, 'transition': 'linear'});
};
b_fs.onRollOut = b_fs.onReleaseOutside;
}
}
movieClip 274 {
frame 1 {
stop();
}
}
movieClip 276 {
}
movieClip 278 {
}
movieClip 281 {
}
movieClip 283 {
frame 1 {
display = _parent._parent.display;
tf.autoSize = true;
onEnterFrame = function () {
if (display.ns.bufferLength >= display.bufferTime || !display.playing) {
_parent._parent.clear();
}
tf.text = Math.min(100, Math.round((display.ns.bufferLength / display.bufferTime) * 100));
percent._x = tf._x + Math.round(tf._width) - 4;
};
}
}
movieClip 285 {
}
movieClip 286 FLVController (Text Status) {
#initclip
Object.registerClass('FLVController (Text Status)', xm.components.FLVControllerComponent);
#endinitclip
frame 2 {
function reveal(p_status) {
if (display.preloading || !display.started) {
xm.util.miniTweener.removeTweens(status);
status._alpha = 100;
delay = 7;
status.gotoAndStop(p_status);
}
}
function clear() {
xm.util.miniTweener.addTween(status, {'_alpha': 0, 'time': 0.15, 'transition': 'linear', 'onComplete': function () {
status.gotoAndStop('clear');
}});
}
opening = function () {
reveal('connecting');
};
acquiringYouTubeUrl = function () {
reveal('acquiring');
};
acquiredYouTubeUrl = function () {
clear();
};
errorAcquiringYouTubeUrl = function () {
delete onEnterFrame;
reveal('error');
};
error = errorAcquiringYouTubeUrl;
bufferEmpty = function () {
clear();
delay = 7;
onEnterFrame = _onEnterFrame;
};
start = bufferEmpty;
seeking = start;
_onEnterFrame = function () {
if (!(delay--)) {
if (display.ns.bufferLength < display.bufferTime && display.playing) {
reveal('buffering');
}
delete onEnterFrame;
}
};
bufferFull = function () {
delete onEnterFrame;
clear();
};
complete = bufferFull;
closed = complete;
if (_parent.isAcquiringYouTubeUrl) {
acquiringYouTubeUrl();
} else {
if (display.opening) {
opening();
} else {
status.gotoAndStop('clear');
}
}
}
}
movieClip 287 ToobPlayer (Dark) {
#initclip
Object.registerClass('ToobPlayer (Dark)', xm.components.ToobPlayerComponent);
#endinitclip
frame 1 {
Aligner.register(display, {'hStretch': true, 'vStretch': true, 'vSizeMargin': 30});
Aligner.register(image, {'hStretch': true, 'vStretch': true, 'vSizeMargin': 30});
Aligner.register(bg, {'hStretch': true, 'vStretch': true, 'vSizeMargin': 30});
addEventListener('showOrHideFullScreenButton', this);
showOrHideFullScreenButton = function () {
if (showFullScreenButton) {
fs.gotoAndStop('show');
Aligner.register(ctrl, {'hStretch': true, 'hSizeMargin': 30, 'vAlign': true, 'vPosition': 1, 'vPositionOffset': -30});
Aligner.register(fs, {'hAlign': true, 'hPosition': 1, 'hPositionOffset': -30, 'vAlign': true, 'vPosition': 1, 'vPositionOffset': -30});
} else {
fs.gotoAndStop('hide');
Aligner.register(ctrl, {'hStretch': true, 'vAlign': true, 'vPosition': 1, 'vPositionOffset': -30});
Aligner.register(fs, {'hAlign': true, 'hPosition': 1, 'hPositionOffset': 0, 'vAlign': true, 'vPosition': 1, 'vPositionOffset': -30});
}
};
showOrHideFullScreenButton();
bg.onRollOver = function () {
ctrl.playpause.b_play.onRollOver();
ctrl.playpause.b_pause.onRollOver();
};
bg.onReleaseOutside = function () {
ctrl.playpause.b_play.onRollOut();
ctrl.playpause.b_pause.onRollOut();
};
bg.onRollOut = bg.onReleaseOutside;
bg.onRelease = function () {
ctrl.playpause.b_play.onRelease();
ctrl.playpause.b_pause.onRelease();
onEnterFrame = function () {
bg.onRollOver();
delete onEnterFrame;
};
};
lateInit();
}
instance image of movieClip 209 ImageContainer (Basic Fade) {
onClipEvent (construct) {
applyMask = true;
loadingType = 'queue';
preventImageCaching = false;
resizeMode = 'fill out component area';
retryDelay = 0.5;
smoothing = true;
smoothTransparency = false;
supraQueueing = false;
supraQueueParentTarget = '_parent';
supraQueueWidth = 1;
url = '';
}
}
instance display of movieClip 213 FLVDisplay {
onClipEvent (construct) {
autoPlay = false;
autoRepeat = false;
bufferTime = 5;
resizeMode = 'fit into component area / mind aspect ratio';
url = '';
volume = 100;
zoom = 100;
}
}
instance ctrl of movieClip 268 FLVController (Dark) {
onClipEvent (construct) {
_targetInstanceName = 'display';
}
}
instance of movieClip 286 FLVController (Text Status) {
onClipEvent (construct) {
_targetInstanceName = 'display';
}
}
}
instance of movieClip 287 ToobPlayer (Dark) {
onClipEvent (construct) {
autoLoadYouTubePreviewImage = true;
autoPlay = true;
autoRepeat = false;
mouseWheel = 'volume';
preferHigherQuality = true;
previewImageResizeMode = 'fill out component area';
previewImageUrl = '';
showFullScreenButton = false;
url = 'http://www.tarboy.com/Bonus_Videos/Making%20Tarboy%20-%20Concept%20Art.mp4';
videoResizeMode = 'fit into component area / mind aspect ratio';
volume = 50;
youTubeProxy = 'http://emehmedovic.com/xmca/toobplayer/fl_youTubeProxy.php';
}
}
button 289 {
on (press) {
gotoAndPlay('concept art to bonus');
}
}
button 294 {
on (press) {
getURL('http://www.youtube.com/watch?v=-NAgeJ0ojQ0&fmt=18', '_blank');
}
}
frame 435 {
NewgroundsAPI.logCustomEvent('ConceptArt');
}
frame 435 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot__('48e0c371', this, 10301, true);
}
frame 435 {
stop();
}
frame 462 {
gotoAndPlay('bonus in');
}
frame 463 {
stopAllSounds();
}
instance of movieClip 287 ToobPlayer (Dark) {
onClipEvent (construct) {
autoLoadYouTubePreviewImage = true;
autoPlay = true;
autoRepeat = false;
mouseWheel = 'volume';
preferHigherQuality = true;
previewImageResizeMode = 'fill out component area';
previewImageUrl = '';
showFullScreenButton = false;
url = 'http://www.tarboy.com/Bonus_Videos/Making%20Tarboy%20-%20Animatic.mp4';
videoResizeMode = 'fit into component area / mind aspect ratio';
volume = 50;
youTubeProxy = 'http://emehmedovic.com/xmca/toobplayer/fl_youTubeProxy.php';
}
}
button 296 {
on (press) {
gotoAndPlay('animatic to bonus');
}
}
button 297 {
on (press) {
getURL('http://www.youtube.com/watch?v=f7qrNQwCcVo&fmt=18', '_blank');
}
}
frame 480 {
NewgroundsAPI.logCustomEvent('Animatic');
}
frame 480 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot__('0e281bf4', this, 10301, true);
}
frame 480 {
stop();
}
frame 507 {
gotoAndPlay('bonus in');
}
frame 508 {
stopAllSounds();
}
instance of movieClip 287 ToobPlayer (Dark) {
onClipEvent (construct) {
autoLoadYouTubePreviewImage = true;
autoPlay = true;
autoRepeat = false;
mouseWheel = 'volume';
preferHigherQuality = true;
previewImageResizeMode = 'fill out component area';
previewImageUrl = '';
showFullScreenButton = false;
url = 'http://www.tarboy.com/Bonus_Videos/Making%20Tarboy%20-%20Special%20Effects%20and%20Animation%20Tests.mp4';
videoResizeMode = 'fit into component area / mind aspect ratio';
volume = 50;
youTubeProxy = 'http://emehmedovic.com/xmca/toobplayer/fl_youTubeProxy.php';
}
}
button 298 {
on (press) {
gotoAndPlay('fx to bonus');
}
}
button 299 {
on (press) {
getURL('http://www.youtube.com/watch?v=haqKHnZqK7c&fmt=18', '_blank');
}
}
frame 525 {
NewgroundsAPI.logCustomEvent('FXanimation');
}
frame 525 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot__('398a0113', this, 10301, true);
}
frame 525 {
stop();
}
frame 552 {
gotoAndPlay('bonus in');
}
frame 553 {
stopAllSounds();
}
instance of movieClip 287 ToobPlayer (Dark) {
onClipEvent (construct) {
autoLoadYouTubePreviewImage = true;
autoPlay = true;
autoRepeat = false;
mouseWheel = 'volume';
preferHigherQuality = true;
previewImageResizeMode = 'fill out component area';
previewImageUrl = '';
showFullScreenButton = false;
url = 'http://www.tarboy.com/Bonus_Videos/Tarboy%20Trailer.mp4';
videoResizeMode = 'fit into component area / mind aspect ratio';
volume = 50;
youTubeProxy = 'http://emehmedovic.com/xmca/toobplayer/fl_youTubeProxy.php';
}
}
button 300 {
on (press) {
gotoAndPlay('trailer to bonus');
}
}
button 301 {
on (press) {
getURL('http://www.youtube.com/watch?v=TGtrZguJSWg&fmt=18', '_blank');
}
}
frame 570 {
NewgroundsAPI.logCustomEvent('Trailer');
}
frame 570 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot__('8628a5fa', this, 10301, true);
}
frame 570 {
stop();
}
frame 597 {
gotoAndPlay('bonus in');
}
frame 598 {
gotoAndPlay(637);
stopAllSounds();
}
button 307 {
on (press) {
gotoAndPlay('sc1');
}
}
button 311 {
on (press) {
gotoAndPlay('sc2');
}
}
button 315 {
on (press) {
gotoAndPlay(16);
}
}
button 319 {
on (press) {
stop();
}
}
button 323 {
on (press) {
play();
}
}
frame 637 {
NewgroundsAPI.logCustomEvent('MovieStart');
}
frame 637 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot__('860e25a1', this, 10301, true);
}
movieClip 328 {
}
movieClip 331 {
}
movieClip 333 {
}
movieClip 337 {
}
// unknown tag 88 length 85
movieClip 372 {
}
button 374 {
on (press) {
gotoAndPlay('sc3');
}
}
movieClip 386 {
}
movieClip 388 {
}
movieClip 395 {
}
movieClip 397 {
}
movieClip 399 {
}
movieClip 426 {
}
movieClip 438 {
}
movieClip 441 {
}
movieClip 445 {
}
movieClip 448 {
}
// unknown tag 88 length 135
movieClip 606 {
}
movieClip 609 {
}
movieClip 614 {
}
movieClip 617 {
}
movieClip 619 {
}
movieClip 647 {
}
movieClip 655 {
}
movieClip 679 {
}
movieClip 816 {
}
movieClip 1035 {
}
movieClip 1038 {
}
// unknown tag 88 length 4
// unknown tag 88 length 82
movieClip 1071 {
}
movieClip 1077 {
}
movieClip 1080 {
}
movieClip 1082 {
}
movieClip 1097 {
}
movieClip 1122 {
}
movieClip 1129 {
}
movieClip 1357 {
}
movieClip 1359 {
}
movieClip 1391 {
}
movieClip 1397 {
}
movieClip 1398 {
}
movieClip 1413 {
}
movieClip 1433 {
}
button 1440 {
on (press) {
gotoAndPlay('sc2');
}
}
button 1441 {
on (press) {
gotoAndPlay('sc4');
}
}
movieClip 1469 {
}
movieClip 1496 {
}
// unknown tag 88 length 104
movieClip 1537 {
}
movieClip 1538 {
}
movieClip 1554 {
}
movieClip 1555 {
}
movieClip 1558 {
}
movieClip 1655 {
}
movieClip 1698 {
}
movieClip 1700 {
}
movieClip 1708 {
}
button 1756 {
on (press) {
gotoAndPlay('sc3');
}
}
button 1757 {
on (press) {
gotoAndPlay('sc5');
}
}
movieClip 1886 {
}
movieClip 1887 {
}
movieClip 1893 {
}
movieClip 1912 {
}
movieClip 1966 {
}
movieClip 1970 {
}
movieClip 2048 {
}
button 2092 {
on (press) {
gotoAndPlay('sc4');
}
}
button 2093 {
on (press) {
gotoAndPlay('sc6');
}
}
movieClip 2137 {
}
movieClip 2138 {
}
movieClip 2200 {
}
movieClip 2235 {
}
movieClip 2238 {
}
movieClip 2280 {
}
movieClip 2284 {
}
movieClip 2285 {
}
movieClip 2292 {
}
movieClip 2299 {
}
movieClip 2315 {
}
movieClip 2317 {
}
movieClip 2320 {
}
movieClip 2327 {
}
movieClip 2330 {
}
movieClip 2332 {
}
movieClip 2340 {
}
movieClip 2353 {
}
movieClip 2369 {
}
movieClip 2384 {
}
movieClip 2386 {
}
movieClip 2388 {
}
button 2396 {
on (press) {
gotoAndPlay('sc5');
}
}
button 2397 {
on (press) {
gotoAndPlay('sc7');
}
}
movieClip 2438 {
}
movieClip 2460 {
}
movieClip 2484 {
}
movieClip 2617 {
}
movieClip 2620 {
}
movieClip 2622 {
}
movieClip 2630 {
}
movieClip 2637 {
}
movieClip 2639 {
}
movieClip 2645 {
}
movieClip 2646 {
}
movieClip 2647 {
}
movieClip 2658 {
}
movieClip 2682 {
}
movieClip 2695 {
}
movieClip 2706 {
}
movieClip 2714 {
}
movieClip 2728 {
}
movieClip 2734 {
}
movieClip 2737 {
}
movieClip 2749 {
}
movieClip 2761 {
}
movieClip 2762 {
}
movieClip 2763 {
}
movieClip 2766 {
}
movieClip 2773 {
}
movieClip 2777 {
}
movieClip 2779 {
}
movieClip 2782 {
}
movieClip 2786 {
}
movieClip 2794 {
}
movieClip 2813 {
}
movieClip 2825 {
}
movieClip 2826 {
}
movieClip 2839 {
}
movieClip 2848 {
}
movieClip 2849 {
}
movieClip 2850 {
}
movieClip 2883 {
}
movieClip 2887 {
}
movieClip 2888 {
}
movieClip 2889 {
}
movieClip 2890 {
}
frame 5105 {
NewgroundsAPI.logCustomEvent('MovieMid');
}
frame 5105 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot__('4243ce16', this, 10301, true);
}
button 2893 {
on (press) {
gotoAndPlay('sc6');
}
}
button 2894 {
on (press) {
gotoAndPlay('sc8');
}
}
movieClip 2942 {
}
movieClip 2943 {
}
// unknown tag 88 length 197
movieClip 3221 {
}
movieClip 3223 {
}
movieClip 3224 {
}
movieClip 3227 {
}
movieClip 3229 {
}
movieClip 3230 {
}
movieClip 3235 {
}
movieClip 3237 {
}
movieClip 3242 {
}
movieClip 3244 {
}
movieClip 3250 {
}
movieClip 3257 {
}
movieClip 3295 {
}
movieClip 3297 {
}
movieClip 3299 {
}
movieClip 3301 {
}
movieClip 3303 {
}
// unknown tag 88 length 67
movieClip 3314 {
}
movieClip 3352 {
}
movieClip 3357 {
}
movieClip 3362 {
}
movieClip 3363 {
}
movieClip 3364 {
}
movieClip 3367 {
}
movieClip 3374 {
}
movieClip 3390 {
}
movieClip 3476 {
}
movieClip 3479 {
}
movieClip 3612 {
}
button 3613 {
on (press) {
gotoAndPlay('sc7');
}
}
button 3614 {
on (press) {
gotoAndPlay('sc9');
}
}
button 3698 {
on (press) {
gotoAndPlay('sc8');
}
}
button 3699 {
on (press) {
gotoAndPlay('sc10');
}
}
movieClip 3722 {
}
movieClip 3725 {
}
movieClip 3731 {
}
movieClip 3734 {
}
movieClip 3748 {
}
movieClip 3773 {
}
movieClip 3780 {
}
movieClip 3790 {
}
movieClip 3793 {
}
movieClip 3802 {
}
button 3804 {
on (press) {
gotoAndPlay('sc9');
}
}
button 3805 {
on (press) {
gotoAndPlay('sc11');
}
}
movieClip 3815 {
}
movieClip 3817 {
}
movieClip 3821 {
}
movieClip 3822 {
}
movieClip 3825 {
}
movieClip 3832 {
}
movieClip 3850 {
}
movieClip 3853 {
}
movieClip 3866 {
}
movieClip 3867 {
}
movieClip 3868 {
}
movieClip 3870 {
}
button 3951 {
on (press) {
gotoAndPlay('sc10');
}
}
button 3952 {
on (press) {
gotoAndPlay('sc12');
}
}
movieClip 3998 {
}
movieClip 3999 {
}
movieClip 4000 {
}
movieClip 4001 {
}
movieClip 4004 {
}
movieClip 4005 {
}
movieClip 4006 {
}
movieClip 4007 {
}
movieClip 4031 {
}
frame 8981 {
NewgroundsAPI.logCustomEvent('MovieB4Credits');
}
frame 8981 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot__('1691e622', this, 10301, true);
}
button 4034 {
on (press) {
gotoAndPlay('sc11');
}
}
movieClip 4046 {
}
movieClip 4056 {
}
movieClip 4062 {
}
movieClip 4063 {
}
movieClip 4064 {
}
movieClip 4065 {
}
movieClip 4066 {
}
movieClip 4067 {
}
movieClip 4068 {
}
movieClip 4069 {
}
movieClip 4070 {
}
movieClip 4071 {
}
movieClip 4080 {
}
movieClip 4081 {
}
movieClip 4082 {
}
movieClip 4083 {
}
movieClip 4084 {
}
movieClip 4085 {
}
movieClip 4086 {
}
movieClip 4087 {
}
movieClip 4088 {
}
movieClip 4090 {
}
frame 9783 {
NewgroundsAPI.logCustomEvent('MovieAfterCredits');
}
frame 9783 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot__('0069cc9a', this, 10301, true);
}
frame 9903 {
gotoAndPlay(16);
}