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 {
}
button 74 {
on (release) {
NewgroundsAPI.loadNewgrounds();
getURL('http://www.newgrounds.com', '_blank');
}
}
movieClip 76 {
}
instance of movieClip 76 {
onClipEvent (release) {
getURL('http://www.newgrounds.com', '_blank');
}
}
button 81 {
on (release) {
getURL('http://egoraptor.newgrounds.com', '_blank');
}
}
movieClip 85 {
}
movieClip 87 {
}
button 90 {
on (release) {
getURL('http://www.twitter.com/egoraptor', '_blank');
}
}
movieClip 94 {
}
movieClip 96 {
}
button 98 {
on (release) {
getURL('http://www.facebook.com/pages/Egoraptor/177305482292691', '_blank');
}
}
movieClip 100 {
}
instance of movieClip 62 com.newgrounds.components.APIConnector {
onClipEvent (construct) {
apiId = '21563:EdNLFN6g';
encryptionKey = '2haBgbdF8JgRCqudYOmvkAV57XVXZ3pC';
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 108 {
}
movieClip 111 {
}
movieClip 112 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_parent._x = cX - this._x * v4;
_parent._y = cY - this._y * v3;
_parent._xscale = 100 * v4;
_parent._yscale = 100 * v3;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
parentColor.setTransform(camColor.getTransform());
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}
movieClip 130 {
}
movieClip 148 {
}
movieClip 151 {
}
movieClip 154 {
}
movieClip 163 {
}
movieClip 171 {
}
movieClip 182 {
}
movieClip 186 {
}
movieClip 202 {
}
movieClip 209 {
}
movieClip 220 {
}
movieClip 225 {
}
movieClip 238 {
}
movieClip 245 {
}
movieClip 247 {
}
movieClip 250 {
}
movieClip 268 {
}
movieClip 271 {
}
movieClip 274 {
}
movieClip 276 {
}
movieClip 279 {
}
movieClip 281 {
}
movieClip 290 {
}
movieClip 304 {
}
movieClip 328 {
}
movieClip 346 {
}
movieClip 349 {
}
movieClip 351 {
}
movieClip 378 {
}
movieClip 385 {
}
movieClip 392 {
}
movieClip 399 {
}
movieClip 408 {
}
movieClip 415 {
}
movieClip 425 {
}
movieClip 436 {
}
movieClip 447 {
}
movieClip 450 {
}
movieClip 453 {
}
movieClip 460 {
}
movieClip 493 {
}
movieClip 500 {
}
movieClip 510 {
}
movieClip 518 {
}
movieClip 522 {
}
movieClip 531 {
}
movieClip 535 {
}
movieClip 545 {
}
movieClip 550 {
}
movieClip 553 {
}
movieClip 565 {
}
movieClip 568 {
}
movieClip 572 {
}
movieClip 581 {
}
movieClip 606 {
}
movieClip 613 {
}
movieClip 631 {
}
movieClip 640 {
}
movieClip 650 {
}
movieClip 660 {
}
movieClip 671 {
}
movieClip 699 {
}
movieClip 741 {
}
movieClip 744 {
}
movieClip 752 {
}
movieClip 761 {
}
movieClip 768 {
}
movieClip 784 {
}
movieClip 800 {
}
movieClip 814 {
}
movieClip 826 {
}
movieClip 837 {
}
movieClip 840 {
}
movieClip 864 {
}
movieClip 873 {
}
movieClip 889 {
}
movieClip 894 {
}
movieClip 902 {
}
movieClip 918 {
}
movieClip 921 {
}
movieClip 933 {
}
movieClip 938 {
}
movieClip 945 {
}
movieClip 958 {
}
movieClip 961 {
}
movieClip 967 {
}
movieClip 974 {
}
movieClip 988 {
}
movieClip 991 {
}
movieClip 1007 {
}
movieClip 1010 {
}
movieClip 1016 {
}
movieClip 1022 {
}
movieClip 1038 {
}
movieClip 1043 {
}
movieClip 1058 {
}
movieClip 1065 {
}
movieClip 1071 {
}
movieClip 1080 {
}
movieClip 1102 {
}
movieClip 1106 {
}
movieClip 1110 {
}
movieClip 1118 {
}
movieClip 1139 {
}
movieClip 1143 {
}
movieClip 1149 {
}
movieClip 1151 {
}
movieClip 1157 {
}
movieClip 1159 {
}
movieClip 1169 {
}
movieClip 1172 {
}
movieClip 1198 {
}
movieClip 1201 {
}
movieClip 1222 {
}
movieClip 1227 {
}
movieClip 1235 {
}
movieClip 1240 {
}
movieClip 1248 {
}
movieClip 1255 {
}
movieClip 1270 {
}
movieClip 1275 {
}
movieClip 1280 {
}
movieClip 1305 {
}
movieClip 1326 {
}
movieClip 1329 {
}
movieClip 1332 {
}
movieClip 1336 {
}
movieClip 1342 {
}
movieClip 1347 {
}
movieClip 1352 {
}
movieClip 1359 {
}
movieClip 1370 {
}
movieClip 1376 {
}
movieClip 1380 {
}
movieClip 1386 {
}
movieClip 1391 {
}
movieClip 1421 {
}
movieClip 1436 {
}
movieClip 1455 {
}
movieClip 1461 {
}
movieClip 1477 {
}
movieClip 1484 {
}
movieClip 1493 {
}
movieClip 1497 {
}
movieClip 1501 {
}
movieClip 1505 {
}
movieClip 1510 {
}
movieClip 1515 {
}
movieClip 1520 {
}
movieClip 1545 {
}
movieClip 1553 {
}
movieClip 1566 {
}
movieClip 1576 {
}
movieClip 1581 {
}
movieClip 1609 {
}
movieClip 1639 {
}
movieClip 1660 {
}
movieClip 1677 {
}
movieClip 1712 {
}
movieClip 1721 {
}
movieClip 1730 {
}
movieClip 1750 {
}
movieClip 1765 {
}
movieClip 1781 {
}
movieClip 1789 {
}
movieClip 1819 {
}
movieClip 1826 {
}
movieClip 1869 {
}
movieClip 1879 {
}
movieClip 1909 {
}
movieClip 1926 {
}
movieClip 1932 {
}
movieClip 1938 {
}
movieClip 1941 {
}
movieClip 1947 {
}
movieClip 1953 {
}