Combined Code
frame 1 {
function itemHandlerNONE(obj, item) {}
function itemHandler0(obj, item) {
getURL('https://www.newgrounds.com/game/', 'blank');
}
function itemHandler1(obj, item) {
getURL('http://www.theswain.com', 'blank');
}
function itemHandlerNONE(obj, item) {}
function itemHandler3(obj, item) {
_quality = 'HIGH';
(SharedObject.getLocal('MWC')).data.player_quality = _quality;
}
function itemHandler4(obj, item) {
_quality = 'MEDIUM';
(SharedObject.getLocal('MWC')).data.player_quality = _quality;
}
function itemHandler5(obj, item) {
_quality = 'LOW';
(SharedObject.getLocal('MWC')).data.player_quality = _quality;
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
myMenu.customItems.push(new ContextMenuItem('More Games:', itemHandlerNONE));
myMenu.customItems.push(new ContextMenuItem('--> Newgrounds.com', itemHandler0));
myMenu.customItems.push(new ContextMenuItem('--> TheSwain.com', itemHandler1));
myMenu.customItems.push(new ContextMenuItem('Quality:', itemHandlerNONE));
myMenu.customItems.push(new ContextMenuItem('--> High', itemHandler3));
myMenu.customItems.push(new ContextMenuItem('--> Med', itemHandler4));
myMenu.customItems.push(new ContextMenuItem('--> Low', itemHandler5));
myMenu.customItems[3].separatorBefore = true;
_root.menu = myMenu;
NewgroundsAPI.connectMovie(1887);
NewgroundsAPI.addCustomLink(3, 'MastermindShirt');
NewgroundsAPI.addCustomEvent(1, 'Victory');
NewgroundsAPI.addCustomEvent(2, 'Defeat');
NewgroundsAPI.setMovieVersion('1');
}
movieClip 48 {
}
movieClip 52 {
}
movieClip 62 {
frame 40 {
stop();
}
}
movieClip 75 {
}
button 76 {
on (press) {
gotoAndStop('end');
_root.play();
}
}
movieClip 77 {
instance of movieClip 52 {
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop('lastframe');
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay('loaded');
}