Frame 1
function gotoURL() {
getURL ("http://www.amoebastudios.com");
}
function randomRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
this.menu = newMenu;
_root.playIntro = true;
_root.allSounds = new Sound();
_root.score = 0;
_root.timeScore = 0;
_root.levelScore = 0;
_root.isPause = false;
_root.levelArray = ["lblgame", "level2", "level3", "level4", "win"];
_root.level = 1;
_root.isEasy = false;
_root.playIntroSound = true;
_root.playerId = 1;
_root.isOver = false;
Frame 2
Frame 3
function ph1end() {
_root.play();
}
function checkstop() {
if (ph1) {
stop();
} else {
play();
}
}
function displayScores(mc) {
names = _root.topnickname.split(",");
scores = _root.topscore.split(",");
i = 0;
while (i <= 19) {
if (names[i] == undefined) {
names[i] = "";
}
if (scores[i] == undefined) {
scores[i] = "";
}
eval ((mc + ".n") + (i + 1)).text = names[i];
eval ((mc + ".p") + (i + 1)).text = scores[i];
i++;
}
}
function cancelSubmit(mc, useridframe) {
trace("cancelSubmit");
delete _root.send_lv.onLoad;
_root.skipsubmit = true;
mc.gotoAndStop(useridframe);
}
function _newUser() {
getURL (_root._registerurl, "_blank");
}
function _trackClickThru(mc) {
if (_root._allowclick) {
mc.hit_area.onRelease = function () {
getURL (_root._clickthru, "_blank");
};
} else {
mc.hit_area.useHandCursor = false;
}
}
function _resetUsername(txt) {
txt.onSetFocus = function () {
if ((this.text == _root._msgValid) || (this.text == "Connecting Error!")) {
this.text = "";
}
};
}
function _readSharedData() {
_root.so_uname = ((_root._sostatus.data.so_uname == undefined) ? "" : (_root._sostatus.data.so_uname));
_root.so_jumpframe = ((_root._sostatus.data.so_jumpframe == undefined) ? "" : (_root._sostatus.data.so_jumpframe));
_root.so_sound = ((_root._sostatus.data.so_sound == undefined) ? 1 : (_root._sostatus.data.so_sound));
_resetString = _root._sostatus.data.so_resetString;
trace("==========================");
trace((("_root.so_jumpframe : " + _root._sostatus.data.so_jumpframe) + " : ") + _root.so_uname);
if (_root.so_jumpframe != "") {
_assignValue(_resetString);
_root.createEmptyMovieClip("eye", _root.getNextHighestDepth());
_root.eye.onEnterFrame = function () {
if ((_root.getBytesTotal() == _root.getBytesLoaded()) && (_root.getBytesLoaded() > 50000)) {
_root.intro = 0;
_root._sostatus.data.so_jumpframe = "";
_root._sostatus.flush();
this.onEnterFrame = null;
_root.gotoAndStop(_root.so_jumpframe);
}
};
} else {
_root.intro = 1;
_root.play();
}
_root.uname = _root.so_uname;
_root.gamesound = _root.so_sound;
}
function _writeSharedData(jumpframe, jumpurl, _resetString) {
_root._sostatus.data.so_uname = ((_root.so_uname == undefined) ? "" : (_root.so_uname));
_root._sostatus.data.so_sound = _root.so_sound;
_root._sostatus.data.so_resetString = _resetString;
_root._sostatus.data.so_jumpframe = jumpframe;
_root._sostatus.flush();
if (jumpurl != "") {
getURL (jumpurl);
} else {
gotoAndPlay (1);
}
}
function _assignValue(_val) {
_arr = new Array();
_arr = _val.split("|");
i = 0;
while (i < (_arr.length / 2)) {
_var2 = ((i * 2) + 1) - 1;
_var3 = _var2 + 1;
_root[_arr[_var2]] = _arr[_var3];
i++;
}
}
function _playAgain(mc, jumpframe, _resetString) {
_root.so_uname = _root.uname;
if ((_root.gurl != undefined) && (_root.gurl != "")) {
_writeSharedData(jumpframe, _root.gurl, _resetString);
} else {
_root.intro = 0;
_assignValue(_resetString);
mc.gotoAndStop(jumpframe);
}
}
stop();
_root.endzedo_endtim = 15;
_root._google_txt.text = "Women On Top";
_root.res_game = (Stage.width + "x") + Stage.height;
trace(_root.res_game);
_root._gameid = "1050";
_root._clickthru = "http://www.games2win.com";
_root._customer_id = "games2win";
_root.uname = "";
_root.submiturl = "/gamesubmit.asp";
_root.topnickname = [];
_root.topscore = [];
dataSubmit = function (myname, myscore, mygameid, destmc, useridframe, connframe, top10frame, _ord) {
trace("dataSubmit");
_root.skipsubmit = false;
myname = myname.trim();
_loc = eval (destmc);
if (((myname.length == 0) || (myname == "Invalid Nickname!")) || (myname == "Connecting Error!")) {
_root.uname = "Invalid Nickname!";
} else {
_root.send_lv = new LoadVars();
_root.send_lv.onLoad = function (success) {
if (success && (!_root.skipsubmit)) {
if (_root.send_lv.isreg == 0) {
_root.uname = "Invalid Nickname!";
_loc.gotoAndStop(useridframe);
} else if (_root.send_lv.isreg == 1) {
_root.topnickname = send_lv.topnicknames;
_root.topscore = send_lv.topscores;
_loc.gotoAndPlay(top10frame);
}
}
};
_root.send_lv.nickname = myname;
_root.send_lv.points = myscore;
gscore = _root.send_lv.points;
gname = "WomanOnTopV2PC";
getURL ("index.php?act=Arcade&do=newscore", "_self", "POST");
_root.send_lv.gameid = mygameid;
_root.send_lv.order = _ord;
_root.send_lv.sendAndLoad(submiturl, _root.send_lv, "POST");
_loc.gotoAndPlay(connframe);
}
};
String.prototype.trim = function () {
var _local2 = 0;
var _local3 = this.length;
white = new Object();
white._32 = 1;
_local3--;
while (white["_" + ord(this.charAt(_local3))]) {
}
while (white["_" + ord(this.charAt(_local2++))]) {
}
return(this.slice(_local2 - 1, _local3 + 1));
};
_root._registerurl = "http://www.games2win.com/register.asp";
_root._allowclick = true;
var _sostatus = SharedObject.getLocal("gamestatus", "/");
_readSharedData();
_root.level = int(_root.level);
Frame 4
stop();
checkstop();
Frame 5
Frame 6
stop();
Frame 7
stop();
stopAllSounds();
Instance of Symbol 71 MovieClip in Frame 7
onClipEvent (load) {
}
onClipEvent (enterFrame) {
this._y = _root.vcam._y - 290;
}
Frame 8
stopAllSounds();
Frame 9
stop();
Instance of Symbol 265 MovieClip in Frame 9
on (release) {
this.gotoAndPlay(_currentframe + 1);
}
onClipEvent (load) {
}
onClipEvent (enterFrame) {
this._y = _root.vcam._y - 290;
}
Frame 10
stop();
Frame 11
stop();
Frame 12
Frame 13
stop();
stopAllSounds();
Instance of Symbol 373 MovieClip "vcam" in Frame 13
onClipEvent (enterFrame) {
swapDepths(_root.char.getNextHighestDepth());
}
Frame 14
stop();
Frame 15
stop();
stopAllSounds();
Frame 16
stop();
Frame 17
stop();
Frame 18
stop();
Symbol 503 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 9 MovieClip Frame 345
stop();
Symbol 12 MovieClip Frame 100
this._visible = false;
Symbol 15 MovieClip Frame 3
if (_root.ph1) {
if (_root.adv_zedo) {
gotoAndStop ("zedo");
} else if (_root.adv_mochi) {
gotoAndStop ("mochi");
}
} else {
stop();
}
Symbol 15 MovieClip Frame 4
tim = 0;
if (_root.ph1) {
loadMovie (_root._ph1url, zedo_movie);
}
txt.text = ("The game will load in " + _root.endzedo_endtim) + " seconds";
stop();
Instance of Symbol 3 MovieClip "zedo_movie" in Symbol 15 MovieClip Frame 4
/* no clip actions */
Instance of Symbol 9 MovieClip in Symbol 15 MovieClip Frame 4
onClipEvent (load) {
num = 1;
no1 = 1;
no = 0;
}
onClipEvent (enterFrame) {
num++;
no1++;
if (num == 24) {
num = 1;
no++;
rst = _root.endzedo_endtim - no;
if (rst == 0) {
trace((no1 + " ") + no);
_root.ph1end();
}
_parent.txt.text = ("The game will load in " + rst) + " seconds";
}
}
Instance of Symbol 12 MovieClip in Symbol 15 MovieClip Frame 4
onClipEvent (enterFrame) {
total = _parent.zedo_movie.getBytesTotal();
loaded = _parent.zedo_movie.getBytesLoaded();
percent = int((loaded / total) * 100);
text = ("Loaded " + percent) + "%";
trace((((percent + " Loaded") + loaded) + " ") + percent);
gotoAndStop(percent);
if (loaded == total) {
this._visible = false;
}
}
Symbol 15 MovieClip Frame 8
stop();
trace("MochiAd");
_root.__com_mochibot__(_root.mochitrack_id, this, _root.mochitrack_id2, true);
MochiAd.showPreloaderAd({id:_root.mochi_tag, res:_root.res_game, background:16777215, color:39219, outline:0, no_bg:true});
Symbol 18 MovieClip Frame 1
_root._trackClickThru(this);
Symbol 55 MovieClip Frame 120
stop();
_root.gotoAndStop("lblloader");
trace("--------------------------");
Symbol 59 MovieClip Frame 15
stop();
Symbol 69 MovieClip Frame 1
stop();
var loaded = 0;
onEnterFrame = function () {
loaded = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
mask_mc._yscale = loaded;
if (loaded >= 100) {
_root.gotoAndStop("lblgameintro");
}
};
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
stop();
Instance of Symbol 74 MovieClip "target_mc" in Symbol 82 MovieClip Frame 2
onClipEvent (load) {
var orgPos = (_parent._parent._y + 50);
var range = 100;
var speed = 1;
var dir = -1;
var ypos = (_parent._parent._y - range);
}
onClipEvent (enterFrame) {
_parent._parent._y = _parent._parent._y + (speed * dir);
if ((_parent._parent._y <= ypos) || (_parent._parent._y >= orgPos)) {
dir = dir * -1;
}
if (this.hitTest(_parent._parent._parent._parent.hero_mc)) {
if (dir == 1) {
_parent._parent._parent._parent.hero_mc._y = _parent._parent._parent._parent.hero_mc._y + (speed * dir);
}
}
}
Symbol 82 MovieClip Frame 3
stop();
Instance of Symbol 81 MovieClip "target_mc" in Symbol 82 MovieClip Frame 3
onClipEvent (load) {
var orgPos = _parent._parent._x;
var range = 200;
var speed = 3;
var dir = -1;
var xpos = (_parent._parent._x - range);
}
onClipEvent (enterFrame) {
_parent._parent._x = _parent._parent._x + (speed * dir);
if (_parent._parent._x < -100) {
_parent._parent._x = 900;
}
}
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
stop();
Instance of Symbol 85 MovieClip "target_mc" in Symbol 88 MovieClip Frame 2
onClipEvent (load) {
var orgPos = (_parent._parent._y + 50);
var range = 100;
var speed = 1;
var dir = -1;
var ypos = (_parent._parent._y - range);
}
onClipEvent (enterFrame) {
_parent._parent._y = _parent._parent._y + (speed * dir);
if ((_parent._parent._y <= ypos) || (_parent._parent._y >= orgPos)) {
dir = dir * -1;
}
if (this.hitTest(_parent._parent._parent._parent.hero_mc)) {
if (dir == 1) {
_parent._parent._parent._parent.hero_mc._y = _parent._parent._parent._parent.hero_mc._y + (speed * dir);
}
}
}
Symbol 88 MovieClip Frame 3
stop();
Instance of Symbol 87 MovieClip "target_mc" in Symbol 88 MovieClip Frame 3
onClipEvent (load) {
var orgPos = _parent._parent._x;
var range = 200;
var speed = 2;
var dir = -1;
var xpos = (_parent._parent._x - range);
}
onClipEvent (enterFrame) {
_parent._parent._x = _parent._parent._x + (speed * dir);
if (_parent._parent._x < -100) {
_parent._parent._x = 900;
}
}
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 2
stop();
Instance of Symbol 93 MovieClip "target_mc" in Symbol 94 MovieClip Frame 2
onClipEvent (load) {
var orgPos = (_parent._parent._y + 50);
var range = 100;
var speed = 1;
var dir = -1;
var ypos = (_parent._parent._y - range);
}
onClipEvent (enterFrame) {
_parent._parent._y = _parent._parent._y + (speed * dir);
if ((_parent._parent._y <= ypos) || (_parent._parent._y >= orgPos)) {
dir = dir * -1;
}
if (this.hitTest(_parent._parent._parent._parent.hero_mc)) {
if (dir == 1) {
_parent._parent._parent._parent.hero_mc._y = _parent._parent._parent._parent.hero_mc._y + (speed * dir);
}
}
}
Symbol 94 MovieClip Frame 3
stop();
Instance of Symbol 81 MovieClip "target_mc" in Symbol 94 MovieClip Frame 3
onClipEvent (load) {
var orgPos = _parent._parent._x;
var range = 200;
var speed = 3;
var dir = -1;
var xpos = (_parent._parent._x - range);
}
onClipEvent (enterFrame) {
_parent._parent._x = _parent._parent._x + (speed * dir);
if (_parent._parent._x < -100) {
_parent._parent._x = 900;
}
}
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
stop();
Instance of Symbol 97 MovieClip in Symbol 106 MovieClip Frame 2
onClipEvent (load) {
var orgPos = (_parent._parent._y + 50);
var range = 100;
var speed = 1;
var dir = -1;
var ypos = (_parent._parent._y - range);
}
onClipEvent (enterFrame) {
_parent._parent._y = _parent._parent._y + (speed * dir);
if ((_parent._parent._y <= ypos) || (_parent._parent._y >= orgPos)) {
dir = dir * -1;
}
if (this.hitTest(_parent._parent._parent._parent.hero_mc)) {
_parent._parent._parent._parent.hero_mc._y = _parent._parent._parent._parent.hero_mc._y + (speed * dir);
}
}
Symbol 106 MovieClip Frame 3
stop();
Instance of Symbol 105 MovieClip "target_mc" in Symbol 106 MovieClip Frame 3
onClipEvent (load) {
var orgPos = _parent._parent._x;
var range = 200;
var speed = 2;
var dir = -1;
var xpos = (_parent._parent._x - range);
}
onClipEvent (enterFrame) {
_parent._parent._x = _parent._parent._x + (speed * dir);
if (_parent._parent._x < -100) {
_parent._parent._x = 900;
}
}
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 2
stop();
Instance of Symbol 111 MovieClip "target_mc" in Symbol 124 MovieClip Frame 2
onClipEvent (load) {
var orgPos = (_parent._parent._y + 50);
var range = 100;
var speed = 1;
var dir = -1;
var ypos = (_parent._parent._y - range);
}
onClipEvent (enterFrame) {
_parent._parent._y = _parent._parent._y + (speed * dir);
if ((_parent._parent._y <= ypos) || (_parent._parent._y >= orgPos)) {
dir = dir * -1;
}
if (this.hitTest(_parent._parent._parent._parent.hero_mc)) {
if (dir == 1) {
_parent._parent._parent._parent.hero_mc._y = _parent._parent._parent._parent.hero_mc._y + (speed * dir);
}
}
}
Symbol 124 MovieClip Frame 3
stop();
Instance of Symbol 123 MovieClip "target_mc" in Symbol 124 MovieClip Frame 3
onClipEvent (load) {
var orgPos = _parent._parent._x;
var range = 200;
var speed = 3;
var dir = -1;
var xpos = (_parent._parent._x - range);
}
onClipEvent (enterFrame) {
_parent._parent._x = _parent._parent._x + (speed * dir);
if (_parent._parent._x < -100) {
_parent._parent._x = 900;
}
}
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 2
stop();
Symbol 141 MovieClip Frame 3
stop();
Instance of Symbol 140 MovieClip "target_mc" in Symbol 141 MovieClip Frame 3
onClipEvent (load) {
var orgPos = _parent._parent._y;
var range = 200;
var speed = 1;
var dir = -1;
var ypos = (_parent._parent._y - range);
}
onClipEvent (enterFrame) {
_parent._parent._y = _parent._parent._y + (speed * dir);
if ((_parent._parent._y <= ypos) || (_parent._parent._y >= orgPos)) {
dir = dir * -1;
}
if (this.hitTest(_parent._parent._parent._parent.hero_mc)) {
if (dir == 1) {
_parent._parent._parent._parent.hero_mc._y = _parent._parent._parent._parent.hero_mc._y + (speed * dir);
}
}
}
Symbol 142 MovieClip [platform] Frame 1
onEnterFrame = function () {
var _local3 = new Object();
_local3.x = this._x;
_local3.y = this._y;
localToGlobal(_local3);
if (_local3.y > (_root.vcam._y + 900)) {
_root.deadFall = Math.abs(this._y) - 500;
if (_root.deadFall < 0) {
_root.deadFall = 0;
}
this.removeMovieClip();
}
};
stop();
Symbol 142 MovieClip [platform] Frame 2
stop();
Symbol 142 MovieClip [platform] Frame 3
stop();
Symbol 142 MovieClip [platform] Frame 4
stop();
Symbol 142 MovieClip [platform] Frame 5
stop();
Symbol 142 MovieClip [platform] Frame 6
stop();
Symbol 167 MovieClip [gurl] Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
_root.levelScore = 10000 - ((int(_root.jumps) - 68) * 100);
if (_root.levelScore < 0) {
_root.levelScore = 0;
}
_root.score = _root.score + _root.levelScore;
_root.gotoAndStop("levelComplete");
}
};
Symbol 185 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 2
stop();
Symbol 232 MovieClip Frame 16
stop();
Symbol 255 MovieClip Frame 84
stop();
Symbol 261 MovieClip Frame 1
if (!_root.playIntro) {
gotoAndStop(_totalframes);
}
if (_root.playIntroSound) {
stopAllSounds();
sound_mc.gotoAndStop(2);
}
_root.playIntroSound = false;
_root.playIntro = false;
Symbol 261 MovieClip Frame 136
stop();
story_btn.onRelease = function () {
_root.gotoAndStop("story");
};
instructions_btn.onRelease = function () {
_root.gotoAndStop("instructions");
};
start_btn.onRelease = function () {
_root.gotoAndStop("lblgame");
};
Symbol 265 MovieClip Frame 1
stop();
_root.allSounds.setVolume(100);
Symbol 265 MovieClip Frame 2
stop();
_root.allSounds.setVolume(0);
Symbol 273 MovieClip Frame 35
stop();
start_btn.onRelease = function () {
_root.gotoAndStop("lblgame");
};
back_btn.onRelease = function () {
_root.gotoAndStop("lblgameintro");
};
Symbol 276 MovieClip Frame 35
stop();
start_btn.onRelease = function () {
_root.gotoAndStop("lblgame");
};
back_btn.onRelease = function () {
_root.gotoAndStop("lblgameintro");
};
Symbol 281 MovieClip Frame 1
gotoAndStop(_root.level);
onEnterFrame = function () {
this._y = _root.vcam._y;
};
Symbol 284 MovieClip Frame 1
gotoAndStop(_root.level);
Symbol 299 MovieClip Frame 1
gotoAndStop(_root.level);
stop();
Symbol 299 MovieClip Frame 2
stop();
Symbol 299 MovieClip Frame 3
stop();
Symbol 299 MovieClip Frame 4
stop();
Symbol 299 MovieClip Frame 5
stop();
Symbol 299 MovieClip Frame 6
stop();
Symbol 300 MovieClip Frame 1
function spawnCloud(k) {
var _local3 = this.attachMovie("cloud", "cloud" + this.getNextHighestDepth(), this.getNextHighestDepth());
_local3._x = _root.randomRange(0, 7) * 80;
_local3._y = _root.randomRange(-200, -300) * k;
_local3.cacheAsBitmap = true;
_local3._xscale = (_local3._yscale = _root.randomRange(100, 250));
}
Symbol 308 MovieClip Frame 1
var prevX = 8;
var signArray = [-1, 1];
var randomX = 0;
var prevNo = 1;
var levelArray = [40, 53, 68, 68, 68, 68, 68, 68];
i = 1;
while (i < levelArray[int(_root.level) - 1]) {
var myBlock = this.attachMovie("platform", "platform" + this.getNextHighestDepth(), this.getNextHighestDepth());
myBlock.gotoAndStop(_root.level);
var ranNo = _root.randomRange(1, Math.round(i / 23));
if (prevNo == 3) {
ranNo = 1;
}
var prevNo = ranNo;
myBlock.target_mc.gotoAndStop(ranNo);
if (i > 66) {
myBlock.target_mc.gotoAndStop(1);
}
var randomY = _root.randomRange(2, 2);
myBlock._y = -150 * i;
_parent.cloud_mc.spawnCloud(i);
if (_root.randomRange(1, 3) == 1) {
randomX = _root.randomRange(-2, -4);
if ((prevX + randomX) <= 0) {
randomX = _root.randomRange(2, 4);
}
} else {
randomX = _root.randomRange(2, 4);
if ((prevX + randomX) >= 14) {
randomX = _root.randomRange(-2, -4);
}
}
myBlock._x = (prevX + randomX) * 40;
prevX = prevX + randomX;
i++;
}
var myBlock = this.attachMovie("platform", "platform" + this.getNextHighestDepth(), this.getNextHighestDepth());
myBlock.gotoAndStop(_root.level);
myBlock._y = -150 * int(levelArray[int(_root.level) - 1]);
if (_root.randomRange(1, 3) == 1) {
randomX = _root.randomRange(-4, -4);
if ((prevX + randomX) <= 0) {
randomX = _root.randomRange(4, 4);
}
} else {
randomX = _root.randomRange(4, 4);
if ((prevX + randomX) >= 14) {
randomX = _root.randomRange(-4, -4);
}
}
myBlock._x = (prevX + randomX) * 40;
prevX = prevX + randomX;
var gurl = _parent.attachMovie("gurl", "gurl" + this.getNextHighestDepth(), this.getNextHighestDepth());
gurl._xscale = (gurl._yscale = 23);
gurl._y = myBlock._y + 600;
gurl._x = myBlock._x;
gotoAndStop(_root.level);
Symbol 316 MovieClip Frame 7
Symbol 317 MovieClip Frame 9
Symbol 318 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 2
stop();
Symbol 318 MovieClip Frame 3
stop();
Symbol 318 MovieClip Frame 4
stop();
Symbol 318 MovieClip Frame 5
stop();
Symbol 318 MovieClip Frame 6
stop();
Symbol 343 MovieClip Frame 1
var dir = -1;
var speed = 5;
onEnterFrame = function () {
this._x = this._x + (speed * dir);
if ((this._x < -100) || (this._x > 900)) {
if (this._x < -100) {
this._x = -100;
}
if (this._x > 900) {
this._x = 900;
}
dir = dir * -1;
this._xscale = this._xscale * -1;
this._y = _root.vcam._y + ((5 * speed) * _root.randomRange(-10, -6));
if (((_root.climb > 400) && (_currentframe != 2)) && (_root.level > 2)) {
gotoAndStop (2);
speed = 5;
}
if (((_root.climb > 600) && (_currentframe != 3)) && (_root.level > 1)) {
gotoAndStop (3);
speed = 5;
}
if (((_root.climb > 800) && (_currentframe != 4)) && (_root.level > 3)) {
gotoAndStop (4);
speed = 6;
}
if (((_root.climb > 900) && (_currentframe != 5)) && (_root.level > 4)) {
gotoAndStop (5);
speed = 8;
}
}
if (this.hitTest(_parent.hero_mc)) {
_parent.hero_mc._x = _parent.hero_mc._x + (10 * dir);
}
};
stop();
Symbol 343 MovieClip Frame 2
stop();
Symbol 343 MovieClip Frame 3
stop();
Symbol 343 MovieClip Frame 4
stop();
Symbol 343 MovieClip Frame 5
stop();
Instance of Symbol 318 MovieClip "hero_mc" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
var xpos = 0;
var highest = 0;
var ypos = 0;
var yposb = 0;
var dir = 1;
var speed = 8;
var onGround = false;
var isJumping = false;
var highest = 0;
_root.climb = 0;
_root.jumps = 0;
var maxY = 15;
var offset = 1;
var blspeed = 5;
var jump = 19.5;
_root.deadFall = -100;
}
onClipEvent (enterFrame) {
if (_root.climb > 100) {
_root.vcam._y = _y;
} else {
_root.vcam._y = (_y - 200) + (_root.climb * 2);
}
if (_x <= 0) {
_x = (0 + (_width / 2));
}
if (_x >= 800) {
_x = (800 - (_width / 2));
}
if ((0 < ((_x - (_width / 2)) + xpos)) && (((_x + (_width / 2)) + xpos) < 800)) {
_x = (_x + xpos);
}
_y = (_y + ypos);
_y = (_y + yposb);
xpos = xpos * 0.8;
xpos = int(xpos * 10) / 10;
yposb = yposb * 0.9;
yposb = int(yposb * 10) / 10;
if (!_parent.ground_mc.hitTest(_x, _y + (_height / 2), true)) {
ypos = ypos + 1.3;
onGround = false;
} else {
onGround = true;
}
if (xpos > speed) {
xpos = speed;
}
if (xpos < (-speed)) {
xpos = -speed;
}
if (ypos > maxY) {
ypos = maxY;
}
while (_parent.ground_mc.hitTest(_x, _y + (((_height / 2) - offset) - 1), true)) {
_y = (_y-1);
ypos = 0;
}
while (_parent.ground_mc.hitTest(_x, _y - ((_height / 2) - offset), true)) {
_y = (_y+1);
ypos = blspeed + 2;
}
_root.climb = int(((-_y) + 306.9) / 10) + 18;
if ((_root.climb * 10) <= _root.deadFall) {
_root.gotoAndStop("gameOver");
}
if (_root.climb > highest) {
highest = _root.climb;
}
if ((Key.isDown(38) && (!isJumping)) && (onGround)) {
_root.jumps++;
_y = (_y + 1.5);
isJumping = true;
ypos = -jump;
xpos = xpos * 0.5;
}
if (!Key.isDown(38)) {
isJumping = false;
}
if (!onGround) {
if (dir == 1) {
gotoAndStop (4);
} else {
gotoAndStop (3);
}
} else if (dir == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (Key.isDown(37)) {
xpos = xpos - 2.25;
dir = 1;
}
if (Key.isDown(39)) {
xpos = xpos + 2.25;
dir = -1;
}
if (_parent._xmouse <= this._x) {
}
}
Symbol 353 MovieClip Frame 1
gotoAndStop(_root.level);
onEnterFrame = function () {
this._y = _parent.vcam._y;
};
stop();
Symbol 353 MovieClip Frame 2
stop();
Symbol 353 MovieClip Frame 3
stop();
Symbol 353 MovieClip Frame 4
stop();
Symbol 353 MovieClip Frame 5
stop();
Symbol 353 MovieClip Frame 6
stop();
Symbol 359 MovieClip Frame 1
var levelArray = [40, 53, 68, 68, 68, 68, 68, 68];
onEnterFrame = function () {
this._y = 70 - ((_root.climb * 145) / (levelArray[int(_root.level) - 1] * 15));
height_txt.text = _root.climb + " ft";
};
Symbol 360 MovieClip Frame 1
var levelArray = [40, 53, 68, 68, 68, 68, 68, 68];
onEnterFrame = function () {
this._y = 70 - ((_root.climb * 145) / (levelArray[int(_root.level) - 1] * 15));
};
Symbol 371 MovieClip Frame 15
stop();
Symbol 372 MovieClip Frame 1
stop();
var levelArray = [300, 400, 500, 500, 500, 500];
var startPlay = true;
onEnterFrame = function () {
if (startPlay && (_root.climb > levelArray[int(_root.level) - 1])) {
gotoAndPlay (2);
startPlay = false;
}
};
Symbol 372 MovieClip Frame 126
stop();
Symbol 373 MovieClip Frame 1
function camControl() {
var _local4 = sX / 800;
var _local3 = sY / 600;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
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;
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
next_btn.onRelease = function () {
_root.gotoAndStop("levelComplete");
};
Symbol 375 MovieClip Frame 2
stop();
Symbol 385 Button
on (release) {
str1 = "level|" + _root.level;
str = "lblgame";
_root._playAgain(_root, str, str1);
}
Symbol 388 Button
on (release) {
trace((((_root.uname + " fdfgd ") + _root.score) + " ") + _root._gameid);
_root.dataSubmit(_root.uname, _root.score, _root._gameid, _root, _parent.lav, "connecting", "highScores");
}
Symbol 392 Button
on (release) {
_root._newUser();
}
Symbol 393 MovieClip Frame 1
username_txt.onSetFocus = function () {
if (username_txt.text == "Invalid Nickname!") {
username_txt.text = "";
}
};
Selection.setFocus("username_txt");
Symbol 394 MovieClip Frame 57
stop();
stop();
submit_btn.onRelease = function () {
_root.gotoAndStop("highScores");
};
lav = "win";
Symbol 395 MovieClip Frame 55
stop();
Symbol 397 MovieClip Frame 55
stop();
playAgain_btn.onRelease = function () {
_root.score = 0;
_root.gotoAndStop("lblgame");
};
submit_btn.onRelease = function () {
_root.gotoAndStop("highScores");
};
lav = "gameOver";
Symbol 398 MovieClip Frame 55
stop();
Symbol 399 MovieClip Frame 55
stop();
Symbol 400 MovieClip Frame 55
stop();
Symbol 401 MovieClip Frame 55
stop();
Symbol 402 MovieClip Frame 55
stop();
Symbol 403 MovieClip Frame 1
gotoAndStop(_root.level);
stop();
Symbol 403 MovieClip Frame 2
stop();
Symbol 403 MovieClip Frame 3
stop();
Symbol 403 MovieClip Frame 4
stop();
Symbol 403 MovieClip Frame 5
stop();
Symbol 403 MovieClip Frame 6
stop();
Symbol 405 MovieClip Frame 21
stop();
Symbol 409 MovieClip Frame 40
stop();
Symbol 429 Button
on (press) {
if (win) {
_root.cancelSubmit(_root, "GAME_COMPLETE");
} else {
_root.cancelSubmit(_root, "GAMEOVER");
}
}
Symbol 465 MovieClip Frame 1
_root.displayScores(this);
Symbol 470 MovieClip Frame 35
stop();
playAgain_btn.onRelease = function () {
_root.level = 1;
_root.score = 0;
_root.playIntro = true;
_root.playIntroSound = true;
str = "lblgameintro";
_root._playAgain(_root, str);
};
Symbol 484 MovieClip Frame 84
stop();
Symbol 485 MovieClip Frame 1
if (_root.level > 3) {
gotoAndStop (2);
}
stop();
Symbol 485 MovieClip Frame 2
stop();
Symbol 495 MovieClip Frame 55
stop();
next_btn.onRelease = function () {
_root.level++;
_root.gotoAndStop("lblgame");
};
Symbol 496 MovieClip Frame 55
stop();
next_btn.onRelease = function () {
_root.level++;
_root.gotoAndStop("lblgame");
};
Symbol 497 MovieClip Frame 55
stop();
next_btn.onRelease = function () {
_root.level++;
_root.gotoAndStop("lblgame");
};
Symbol 498 MovieClip Frame 55
stop();
next_btn.onRelease = function () {
_root.level++;
_root.gotoAndStop("lblgame");
};
Symbol 499 MovieClip Frame 55
stop();
next_btn.onRelease = function () {
_root.level++;
_root.gotoAndStop("lblgame");
};
Symbol 500 MovieClip Frame 55
stop();
next_btn.onRelease = function () {
_root.gotoAndStop("win");
};
Symbol 501 MovieClip Frame 1
gotoAndStop(_root.level);
stop();
Symbol 501 MovieClip Frame 2
stop();
Symbol 501 MovieClip Frame 3
stop();
Symbol 501 MovieClip Frame 4
stop();
Symbol 501 MovieClip Frame 5
stop();
Symbol 501 MovieClip Frame 6
stop();