Combined Code
movieClip 3 {
}
movieClip 4 {
}
movieClip 6 {
}
movieClip 8 {
}
movieClip 12 {
}
movieClip 13 {
}
movieClip 16 {
}
movieClip 22 com.newgrounds.components.Preloader {
#initclip
Object.registerClass('com.newgrounds.components.Preloader', com.newgrounds.components.Preloader);
#endinitclip
}
movieClip 24 Flash Ad Class {
#initclip
Object.registerClass('Flash Ad Class', com.newgrounds.shims.FlashAdShim);
#endinitclip
}
movieClip 46 {
}
movieClip 49 {
}
movieClip 54 {
}
movieClip 58 {
}
movieClip 59 {
}
movieClip 60 {
}
movieClip 61 com.newgrounds.components.FlashAd {
#initclip
Object.registerClass('com.newgrounds.components.FlashAd', com.newgrounds.components.FlashAd);
#endinitclip
}
movieClip 62 com.newgrounds.components.APIConnector {
#initclip
Object.registerClass('com.newgrounds.components.APIConnector', com.newgrounds.components.APIConnector);
#endinitclip
instance ad of movieClip 61 com.newgrounds.components.FlashAd {
onClipEvent (construct) {
apiId = '';
showBorder = true;
}
}
instance loader of movieClip 22 com.newgrounds.components.Preloader {
onClipEvent (construct) {
autoPlay = false;
mainClass = '';
}
}
}
movieClip 65 {
}
movieClip 68 {
}
movieClip 77 {
}
movieClip 84 {
}
movieClip 86 {
}
button 89 {
on (release) {
getURL('http://www.twitter.com/egoraptor', '_blank');
}
}
movieClip 93 {
}
movieClip 95 {
}
button 97 {
on (release) {
getURL('http://www.facebook.com/pages/Egoraptor/177305482292691', '_blank');
}
}
movieClip 101 {
}
movieClip 103 {
}
movieClip 105 {
}
button 107 {
on (release) {
getURL('http://sharkrobot.com/egoraptor', '_blank');
}
}
instance of movieClip 62 com.newgrounds.components.APIConnector {
onClipEvent (construct) {
apiId = '18904:xhsR6NuV';
encryptionKey = '2xOfAzRBkNPhgtdkSwdBRth8RSAPP2UA';
debugMode = 'Simulate Logged-in User';
movieVersion = '';
connectorType = 'Flash Ad + Preloader';
}
}
movieClip 25 __Packages.com.newgrounds.components.FlashAd {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.components) {
_global.com.newgrounds.components = new Object();
}
if (!_global.com.newgrounds.components.FlashAd) {
var v1 = function () {
super();
System.security.allowDomain('server.cpmstar.com');
this._x = int(this._x);
this._y = int(this._y);
if (this.newgroundsButton) {
this.newgroundsButton.onRelease = this.onNGClick;
}
this.onUnload = this.removeAd;
var v3 = this;
this._adListener = {'onLoadError': function (target, error, httpStatus) {
target._parent.onAdError(target, error, httpStatus);
}};
this.onEnterFrame = this.init;
};
com.newgrounds.components.FlashAd = v1;
com.newgrounds.components.FlashAd extends MovieClip;
var v2 = v1.prototype;
v2.init = function () {
this.onEnterFrame = null;
var v2;
v2 = !(this._parent instanceof com.newgrounds.components.APIConnector);
if (v2 && (!this._apiId || this._apiId == '')) {
trace('[Newgrounds API] :: You must enter the API ID for your movie into the ad component.\nFor more info, please see http://www.newgrounds.com/wiki.');
}
};
v2.__get__apiId = function () {
return this._apiId;
};
v2.__set__apiId = function (value) {
this._apiId = value;
if (this._apiId && this._apiId != '') {
this.loadAdFeed(com.newgrounds.components.FlashAd._adFeedURL);
}
return this.__get__apiId();
};
v2.__get__showBorder = function () {
return this._showBorder;
};
v2.__set__showBorder = function (value) {
this._showBorder = value;
return this.__get__showBorder();
!this._showBorder ? this.gotoAndStop('noBorder') : (!this._ad ? this.gotoAndStop('idle') : (v2.bytesLoaded < v2.bytesTotal ? this.gotoAndStop('loading') : this.gotoAndStop('loaded')));
};
v2.loadAdFeed = function (adFeedURL) {
this._adFeedLoader = new LoadVars();
var target = this;
this._adFeedLoader.onData = function (data) {
target.onAdFeedLoaded(data);
};
if (com.newgrounds.components.FlashAd.debugMode) {
adFeedURL = com.newgrounds.components.FlashAd.TEST_AD_FEED_URL;
} else {
var v2 = this._apiId;
var v3 = v2.indexOf(':');
if (v3 != -1) {
v2 = v2.substring(0, v3);
}
adFeedURL += v2;
}
this._adFeedLoader.load(adFeedURL, this._adFeedLoader);
};
v2.onAdFeedLoaded = function (data) {
if (data && data != '') {
this.loadAd(data);
} else {
this.onAdError();
}
};
v2.loadAd = function (adURL) {
this._ad = new MovieClipLoader();
this._ad.addListener(this._adListener);
this.adContainer._lockroot = true;
this._ad.loadClip(adURL, this.adContainer);
};
v2.removeAd = function () {
this._adFeedLoader.onData = null;
this._adFeedLoader = null;
this._ad.removeListener(this._adListener);
if (this.adContainer) {
this._ad.unloadClip(this.adContainer);
}
this._ad = null;
};
v2.onAdError = function (target, error, httpStatus) {
trace('[Newgrounds API] :: Unable to load ad.' + error);
this.removeAd();
};
v2.onNGClick = function () {
_root.getURL('http://www.newgrounds.com', '_blank');
};
v1._adFeedURL = 'http://www.ngads.com/getad.php?url=http%3A%2F%2Fserver.cpmstar.com%2Fadviewas2.swf%3Fpoolid=731%26subpoolid=';
v1.TEST_AD_FEED_URL = 'http://www.ngads.com/adtest.php';
v2.addProperty('apiId', v2.__get__apiId, v2.__set__apiId);
v2.addProperty('showBorder', v2.__get__showBorder, v2.__set__showBorder);
ASSetPropFlags(com.newgrounds.components.FlashAd.prototype, null, 1);
}
#endinitclip
}
movieClip 30 __Packages.com.newgrounds.components.APIConnector {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.components) {
_global.com.newgrounds.components = new Object();
}
if (!_global.com.newgrounds.components.APIConnector) {
var v1 = function () {
super();
this._x = int(this._x);
this._y = int(this._y);
this.gotoFrame();
_root.stop();
this.connect();
this.onEnterFrame = this.init;
};
com.newgrounds.components.APIConnector = v1;
com.newgrounds.components.APIConnector extends MovieClip;
var v2 = v1.prototype;
label 1303:
v2.gotoFrame = function () {
switch (this.connectorType) {
case 'Flash Ad + Preloader':
default:
goto 1303;
case 'Flash Ad Only':
//Invalid switch }
goto 1303;
case 'Flash Ad + Preloader':
};
v2.init = function () {
this.onEnterFrame = null;
if (this.ad) {
if (this.apiId && this.apiId != '') {
if (this.debugMode != 'Off') {
com.newgrounds.components.FlashAd.debugMode = _root._url == 'localhost' || _root._url.indexOf('file://') != -1;
}
this.ad.__set__apiId(this.apiId);
} else {
com.newgrounds.Logger.logError('You must enter the API ID for your movie into the API Connector.', 'For a tutorial, please go to http://www.newgrounds.com/account/flashapi2');
}
}
};
v2.connect = function () {
if (this.apiId && this.apiId != '') {
var v4;
v4 = _global.com.newgrounds.API;
if (v4 && !v4.connected) {
switch (this.debugMode) {
case 'Off':
default:
v4.debugMode = v4.RELEASE_MODE;
goto 1837;
case 'Simulate Logged-in User':
//Invalid switch }
v4.debugMode = v4.DEBUG_MODE_LOGGED_IN;
goto 1837;
case 'Simulate Logged-in User':
v4.debugMode = v4.DEBUG_MODE_LOGGED_OUT;
goto 1837;
case 'Simulate Logged-out User':
v4.debugMode = v4.DEBUG_MODE_NEW_VERSION;
goto 1837;
case 'Simulate New Version':
v4.debugMode = v4.DEBUG_MODE_HOST_BLOCKED;
label 1837:
v4.addEventListener('apiConnected', {'target': this, 'func': this.onConnected});
v4.connect(_root, this.apiId, this.encryptionKey, this.movieVersion);
}
}
};
v2.onConnected = function (event) {};
ASSetPropFlags(com.newgrounds.components.APIConnector.prototype, null, 1);
}
#endinitclip
}
movieClip 26 __Packages.com.newgrounds.components.Preloader {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.components) {
_global.com.newgrounds.components = new Object();
}
if (!_global.com.newgrounds.components.Preloader) {
var v1 = function () {
super();
_root.stop();
};
com.newgrounds.components.Preloader = v1;
com.newgrounds.components.Preloader extends MovieClip;
var v2 = v1.prototype;
v2.__get__autoPlay = function () {
return this._autoPlay;
};
v2.__set__autoPlay = function (v) {
this._autoPlay = v;
if (v && this.__get__percentLoaded() >= 1) {
this.playMovie();
}
return this.__get__autoPlay();
};
v2.__get__bytesLoaded = function () {
return _root.getBytesLoaded();
};
v2.__get__bytesTotal = function () {
return _root.getBytesTotal();
};
v2.__get__percentLoaded = function () {
return this.__get__bytesTotal() > 0 ? this.__get__bytesLoaded() / this.__get__bytesTotal() : 0;
};
v2.onEnterFrame = function (event) {
if (this.loadingBar) {
this.loadingBar.gotoAndStop(int(this.__get__percentLoaded() * (this.loadingBar._totalframes - 1) + 1));
}
if (this.__get__percentLoaded() >= 1) {
// An attempt to read a value from empty stack
!this.__get__autoPlay() ? undefined;
}
if (this.playButton && !this.playButton.onRelease) {
var thisObj = this;
this.playButton.onRelease = function () {
thisObj.onPlayClick();
};
}
};
v2.playMovie = function () {
_root.nextFrame();
_root.play();
if (typeof this.onLoadComplete == 'function') {
this.onLoadComplete.call();
} else {
this.onLoadComplete.func.call(this.onLoadComplete.target);
}
};
v2.onPlayClick = function (event) {
this.onEnterFrame = null;
this.playMovie();
};
v2.addProperty('autoPlay', v2.__get__autoPlay, v2.__set__autoPlay);
v2.addProperty('bytesLoaded', v2.__get__bytesLoaded, function () {});
v2.addProperty('bytesTotal', v2.__get__bytesTotal, function () {});
v2.addProperty('percentLoaded', v2.__get__percentLoaded, function () {});
ASSetPropFlags(com.newgrounds.components.Preloader.prototype, null, 1);
}
#endinitclip
}
movieClip 23 __Packages.com.newgrounds.shims.FlashAdShim {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.shims) {
_global.com.newgrounds.shims = new Object();
}
if (!_global.com.newgrounds.shims.FlashAdShim) {
var v1 = function () {
super();
};
com.newgrounds.shims.FlashAdShim = v1;
com.newgrounds.shims.FlashAdShim extends MovieClip;
var v2 = v1.prototype;
ASSetPropFlags(com.newgrounds.shims.FlashAdShim.prototype, null, 1);
}
#endinitclip
}
movieClip 27 __Packages.com.newgrounds.Event {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.Event) {
var v1 = function (type) {
this._type = type;
};
com.newgrounds.Event = v1;
var v2 = v1.prototype;
v2.__get__type = function () {
return this._type;
};
v2.addProperty('type', v2.__get__type, function () {});
ASSetPropFlags(com.newgrounds.Event.prototype, null, 1);
}
#endinitclip
}
movieClip 28 __Packages.com.newgrounds.EventDispatcher {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.EventDispatcher) {
var v1 = function () {
this._listeners = {};
};
com.newgrounds.EventDispatcher = v1;
var v2 = v1.prototype;
v2.addEventListener = function (type, listener) {
if (!this._listeners[type]) {
this._listeners[type] = [];
}
if (typeof listener == 'function') {
this._listeners[type].push({'target': null, 'func': listener});
} else {
this._listeners[type].push(listener);
}
};
v2.removeEventListener = function (type, listener) {
var v3 = this._listeners[type];
if (v3) {
var v5 = v3.length;
var v2 = 0;
while (v2 < v5) {
if (v3[v2].func == listener || v3[v2] == listener) {
v3.splice(v2, 1);
return undefined;
}
++v2;
}
}
};
v2.dispatchEvent = function (event) {
var v4 = this._listeners[event.__get__type()];
if (v4) {
var v5 = v4.length;
var v2 = 0;
while (v2 < v5) {
var v3 = v4[v2];
v3.func.call(v3.target, event);
++v2;
}
}
return true;
};
ASSetPropFlags(com.newgrounds.EventDispatcher.prototype, null, 1);
}
#endinitclip
}
movieClip 29 __Packages.com.newgrounds.Logger {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.Logger) {
var v1 = function () {};
com.newgrounds.Logger = v1;
var v2 = v1.prototype;
v1.logInternal = function () {
var v2 = arguments;
com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_INTERNAL, v2);
};
v1.logMessage = function () {
var v2 = arguments;
com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_MESSAGE, v2);
};
v1.logWarning = function () {
var v2 = arguments;
com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_WARNING, v2);
};
v1.logError = function () {
var v2 = arguments;
com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_ERROR, v2);
};
v1.log = function (priority, messages) {
if (priority == undefined) {
priority = com.newgrounds.Logger.PRIORITY_MESSAGE;
}
if (messages == undefined) {
messages = null;
}
if (priority >= com.newgrounds.Logger._messageLevel) {
var v1 = 0;
while (v1 < messages.length) {
trace(com.newgrounds.Logger.HEADER + messages[v1]);
++v1;
}
}
if (priority >= com.newgrounds.Logger._throwLevel) {
throw new Error(messages.join('\n'));
}
};
v1.LOG = 'log';
v1.PRIORITY_INTERNAL = 0;
v1.PRIORITY_MESSAGE = 1;
v1.PRIORITY_WARNING = 2;
v1.PRIORITY_ERROR = 3;
v1.PRIORITY_MAX = 4;
v1.HEADER = '[Newgrounds API] :: ';
v1._eventDispatcher = new com.newgrounds.EventDispatcher();
v1._messageLevel = com.newgrounds.Logger.PRIORITY_MESSAGE;
v1._throwLevel = com.newgrounds.Logger.PRIORITY_MAX;
ASSetPropFlags(com.newgrounds.Logger.prototype, null, 1);
}
#endinitclip
}
movieClip 111 {
}
movieClip 114 {
}
movieClip 117 {
}
movieClip 147 {
}
movieClip 156 {
}
movieClip 218 {
}
movieClip 285 {
}
movieClip 292 {
}
movieClip 297 {
}
movieClip 315 {
}
movieClip 375 {
}
movieClip 402 {
}
movieClip 407 {
}
movieClip 410 {
}
movieClip 654 {
}
movieClip 697 {
}
movieClip 850 {
}
movieClip 858 {
}
movieClip 870 {
}