Frame 1
function getArgumentPath(s) {
var _local2 = ((s.indexOf("?") == -1) ? "?nonoba$username=" : "&nonoba$username=");
s = s + (_local2 + escape(username));
s = s + ("&nonoba$timestamp=" + escape(timestamp));
s = s + ("&nonoba$referer=" + escape(referer));
s = s + ("&nonoba$auth=" + escape(auth));
s = s + ("&nonoba$api=" + escape(api));
s = s + ("&nonoba$apicodeas2=" + escape(apicodeas2));
s = s + ("&nonoba$apicodeas3=" + escape(apicodeas3));
s = s + ("&nonoba$apicodeas3mp=" + escape(apicodeas3mp));
s = s + ("&nonoba$isEmbedded=" + escape(isEmbedded));
s = s + ("&nonoba$originalWidth=" + escape(originalWidth));
s = s + ("&nonoba$privategame=" + escape(privategame));
s = s + ("&nonoba$aaid=" + escape(aaid));
s = s + ("&nonoba$shoppath=" + escape(shoppath));
s = s + ("&nonoba$loginpath=" + escape(loginpath));
s = s + ("&nonoba$userid=" + escape(userid));
s = s + ("&nonoba$paymentgame=" + escape(paymentgame));
s = s + ("&nonoba$chat=" + escape(chatpath));
s = s + ("&nonoba$id=" + escape(id));
s = s + ("&nonoba$c=" + escape(c));
s = s + ("&nonoba$site=" + escape(site));
s = s + ("&nonoba$gamePath=" + escape(gamePath));
return(s);
}
function handleResize() {
var _local1 = Stage.width;
var _local2 = Stage.height - 60;
playBtn._x = _local1 / 2;
playBtn._y = (_local2 / 2) + 60;
infoBox._x = _local1;
missPress._width = Stage.width;
missPress._height = Stage.height;
topbg._width = _local1;
if (backgroundImage._width) {
var _local3 = null;
if ((_local1 / backgroundImage._width) < (_local2 / backgroundImage._height)) {
_local3 = backgroundImage._width / backgroundImage._height;
backgroundImage._width = _local2 * _local3;
backgroundImage._height = _local2;
} else {
_local3 = backgroundImage._height / backgroundImage._width;
backgroundImage._width = _local1;
backgroundImage._height = _local1 * _local3;
}
backgroundImage._x = (_local1 - backgroundImage._width) / 2;
backgroundImage._y = ((_local2 - backgroundImage._height) / 2) + 60;
}
if (avatarImage._width) {
var _local3 = null;
_local3 = null;
if ((56 / avatarImage._width) > (56 / avatarImage._height)) {
_local3 = avatarImage._width / avatarImage._height;
avatarImage._width = 56 * _local3;
avatarImage._height = 56;
} else {
_local3 = avatarImage._height / avatarImage._width;
avatarImage._width = 56;
avatarImage._height = 56 * _local3;
}
avatarImage._x = _local1 - 58;
avatarImage._y = (58 - avatarImage._height) / 2;
}
}
function loadGame() {
if ((((gameName == "Monoliths Mario World 3") || (gameName == "HAMNSTER")) || (gameName == "Minesweeper")) || (gameName == "Magic Marbles 2")) {
var _local2 = _root.attachMovie("loader", "loader", 20);
_local2._x = Stage.width / 2;
_local2._y = Stage.height / 2;
_local2.onPress = function () {
getURL ("http://nonoba.com/?ref=marioIntro", "_blank");
};
if ((Stage.width / 600) < (Stage.height / 450)) {
var _local3 = Stage.width / 600;
_local2._xscale = 100 * _local3;
_local2._yscale = 100 * _local3;
} else {
var _local3 = Stage.height / 450;
_local2._xscale = 100 * _local3;
_local2._yscale = 100 * _local3;
}
} else {
getGame();
}
}
function getGame() {
Stage.align = "";
Stage.scaleMode = "showAll";
loadMovieNum (realPath, 0);
}
Stage.scaleMode = "noScale";
Stage.align = "TL";
System.security.allowDomain("*");
playBtn.dyntext.embedFonts = true;
var screenshotPath = (_root.nonoba$screenshotPath || "");
var flashPath = (_root.nonoba$flashPath || "");
var owner = (_root.nonoba$owner || "");
var ownerPath = (_root.nonoba$ownerPath || "");
var ownerAvatarPath = (_root.nonoba$ownerAvatarPath || "");
var gameName = (_root.nonoba$gameName || "");
var gamePath = (_root.nonoba$gamePath || "");
var chatpath = (_root.nonoba$chat || "");
var id = (_root.nonoba$id || "");
var shoppath = (_root.nonoba$shoppath || "");
var loginpath = (_root.nonoba$loginpath || "");
var userid = (_root.nonoba$userid || "");
var paymentgame = (_root.nonoba$paymentgame || "false");
var aaid = (_root.nonoba$aaid || "false");
var site = (_root.nonoba$site || "false");
var c = (_root.nonoba$c || "false");
var privategame = (_root.nonoba$privategame || "0");
var redir = (_root.nonoba$redir || "");
var username = (_root.nonoba$username || "");
var timestamp = (_root.nonoba$timestamp || "");
var referer = (_root.nonoba$referer || "");
var auth = (_root.nonoba$auth || "");
var api = (_root.nonoba$api || "");
var apicodeas2 = (_root.nonoba$apicodeas2 || "");
var apicodeas3 = (_root.nonoba$apicodeas3 || "");
var apicodeas3mp = (_root.nonoba$apicodeas3mp || "");
var isEmbedded = (_root.nonoba$isEmbedded || "");
var originalWidth = (_root.nonoba$originalWidth || "");
var realPath = getArgumentPath(redir);
var backgroundImage = contentContainer.createEmptyMovieClip("background", 1);
var backgroundLoader = new MovieClipLoader();
backgroundLoader.addListener({onLoadComplete:function () {
backgroundImage.onEnterFrame = function () {
handleResize();
delete backgroundImage.onEnterFrame;
};
}});
backgroundLoader.loadClip(screenshotPath, backgroundImage);
var avatarImage = _root.createEmptyMovieClip("avatar", 2);
var avatarLoader = new MovieClipLoader();
avatarLoader.addListener({onLoadComplete:function () {
avatarImage.onEnterFrame = function () {
handleResize();
delete avatarImage.onEnterFrame;
};
}});
avatarLoader.loadClip(ownerAvatarPath, avatarImage);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
missPress.useHandCursor = false;
Stage.addListener({onResize:handleResize});
if (paymentgame == "true") {
loadGame();
} else {
handleResize();
}
Symbol 84 MovieClip [loader] Frame 301
stop();
_root.getGame();
Symbol 87 Button
on (press) {
getURL (gamePath, "_blank");
}
Symbol 93 MovieClip Frame 1
nameText.embedFonts = true;
Symbol 94 MovieClip Frame 1
this.nameText.autoSize = true;
this.nameText._width = this.nameText.textWidth;
this._x = (-this.nameText.textWidth) - 74;
Instance of Symbol 94 MovieClip in Symbol 95 MovieClip Frame 1
on (press) {
getURL (_root.ownerPath, "_blank");
}
Symbol 99 Button
on (press) {
getURL ("http://nonoba.com/?ref=emebedLogo", "_blank");
}
Symbol 103 Button
on (release) {
_root.loadGame();
}