Frame 1
MochiAd.showPreGameAd({id:"1d8a32d3e6d700be", res:"650x360"});
Frame 2
mc = mc;
musicbutt.onRelease = function () {
stopAllSounds();
_root.mc = 5;
_root.musicbutt.gotoAndStop(5);
};
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (Key.isDown(77)) {
stopAllSounds();
_root.mc = 5;
_root.musicbutt.gotoAndStop(4);
}
if (Key.isDown(97)) {
stopAllSounds();
_root.mc = 1;
_root.musicbutt.gotoAndStop(1);
}
if (Key.isDown(98)) {
stopAllSounds();
_root.mc = 2;
_root.musicbutt.gotoAndStop(2);
}
if (Key.isDown(99)) {
stopAllSounds();
_root.mc = 3;
_root.musicbutt.gotoAndStop(3);
}
};
Key.addListener(keyListener);
function Resize() {
var _local3 = Stage.width / mystage.width;
var _local2 = Stage.height / mystage.height;
_root._xscale = 100;
_root._yscale = 100;
mystage.curwidth = mystage.width;
mystage.curheight = mystage.height;
if ((mystage.width * _local2) < Stage.width) {
_root._xscale = _root._xscale * _local2;
mystage.curwidth = mystage.curwidth * _local2;
_root._yscale = _root._yscale * _local2;
mystage.curheight = mystage.curheight * _local2;
mystage.zoomlevel = mystage.curheight / mystage.height;
} else {
_root._xscale = _root._xscale * _local3;
mystage.curwidth = mystage.curwidth * _local3;
_root._yscale = _root._yscale * _local3;
mystage.curheight = mystage.curheight * _local3;
mystage.zoomlevel = mystage.curwidth / mystage.width;
}
_root._x = ((-(Stage.width - mystage.width)) / 2) + ((Stage.width - mystage.curwidth) / 2);
_root._y = ((-(Stage.height - mystage.height)) / 2) + ((Stage.height - mystage.curheight) / 2);
}
stop();
control = 1;
stage = 1;
mouse.onRelease = function () {
control = 2;
};
keys.onRelease = function () {
control = 1;
};
play.onRelease = function () {
if (_root.control == 2) {
_root.gotoAndStop("start");
_root.startb.gotoAndStop(2);
} else {
_root.gotoAndPlay("game");
}
};
instrucbutt.onRelease = function () {
getURL ("http://www.kingdomarcade.com/in.php?id=79", "_blank");
};
Stage.scaleMode = "noScale";
fscommand ("fullscreen", false);
var mystage = new Object();
mystage.width = 650;
mystage.height = 360;
mystage.curwidth = 650;
mystage.curheight = 360;
mystage.zoomlevel = 1;
Resize();
var StageListener = new Object();
StageListener.onResize = function () {
var _local3 = Stage.width / mystage.width;
var _local2 = Stage.height / mystage.height;
_root._xscale = 100;
_root._yscale = 100;
mystage.curwidth = mystage.width;
mystage.curheight = mystage.height;
if ((mystage.width * _local2) < Stage.width) {
_root._xscale = _root._xscale * _local2;
mystage.curwidth = mystage.curwidth * _local2;
_root._yscale = _root._yscale * _local2;
mystage.curheight = mystage.curheight * _local2;
mystage.zoomlevel = mystage.curheight / mystage.height;
} else {
_root._xscale = _root._xscale * _local3;
mystage.curwidth = mystage.curwidth * _local3;
_root._yscale = _root._yscale * _local3;
mystage.curheight = mystage.curheight * _local3;
mystage.zoomlevel = mystage.curwidth / mystage.width;
}
_root._x = ((-(Stage.width - mystage.width)) / 2) + ((Stage.width - mystage.curwidth) / 2);
_root._y = ((-(Stage.height - mystage.height)) / 2) + ((Stage.height - mystage.curheight) / 2);
};
Stage.addListener(StageListener);
Frame 3
function checkCollision() {
var _local7 = CollisionDetectionLP.checkForCollisionLP(objects.exit1, player, 120);
var _local6 = CollisionDetectionLP.checkForCollisionLP(objects.exit2, player, 120);
var _local5 = CollisionDetectionLP.checkForCollisionLP(objects.exit3, player, 120);
var _local3 = CollisionDetectionLP.checkForCollisionLP(objects.exit4, player, 120);
var _local2 = CollisionDetectionLP.checkForCollisionLP(lvl.exit5, player, 120);
var _local8 = CollisionDetectionLP.checkForCollisionLP(lvl, player, 120);
var _local4 = CollisionDetectionLP.checkForCollisionLP(_root.sw, player, 120);
var _local9 = CollisionDetectionLP.checkForCollisionLP(objects, player, 120);
if (_local8) {
_root.player.gotoAndStop("hit");
_root.player.collide = 1;
_root.player._x = _root.player.herex;
_root.player._y = _root.player.herey;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
if (_root.player.health == 0) {
_root.lvl_up.gotoAndStop("dead");
_root.gotoAndStop("victory");
stopAllSounds();
} else {
_root.player.health = _root.player.health - 1;
_root.player.bar._height = _root.player.bar._height - 12;
}
_root.player.stopDrag();
}
if (_local9) {
_root.player.gotoAndStop("hit");
_root.player.collide = 1;
_root.player._x = _root.player.herex;
_root.player._y = _root.player.herey;
if (_root.player.health == 0) {
_root.lvl_up.gotoAndStop("dead");
_root.gotoAndStop("victory");
stopAllSounds();
} else {
_root.player.health = _root.player.health - 1;
_root.player.bar._height = _root.player.bar._height - 12;
}
}
if (_local7) {
_root.gotoAndStop("victory");
_root.lvl_up.gotoAndStop("one");
_root.objects.crap.gotoAndStop(1);
_root.objects.pil1.gotoAndStop(1);
_root.objects.lvl1trap.gotoAndStop(1);
stopAllSounds();
}
if (_local6) {
_root.gotoAndStop("victory");
_root.lvl_up.gotoAndStop("two");
stopAllSounds();
}
if (_local5) {
_root.gotoAndStop("victory");
_root.lvl_up.gotoAndStop("three");
stopAllSounds();
}
if (_local3) {
_root.gotoAndStop("victory");
_root.lvl_up.gotoAndPlay("four");
stopAllSounds();
}
if (_local2) {
_root.stage = 4;
_root.lvl._x = 0;
_root.lvl._y = 0;
_root.back._x = 0;
_root.back._y = 0;
_root.gotoAndStop("victory");
_root.lvl_up.gotoAndPlay("win");
stopAllSounds();
}
if (_local4) {
_root.objects.crap.gotoAndPlay("drop");
_root.objects.switch1.gotoAndPlay(2);
_root.objects.lvl1trap.gotoAndPlay("open");
_root.objects.pil1.gotoAndPlay(2);
_root.sw.gotoAndPlay(2);
}
}
stop();
stop();
stopAllSounds();
here = _root.mc;
_root.musicbutt.gotoAndStop(here);
Instance of Symbol 252 MovieClip "player" in Frame 3
onClipEvent (load) {
function refreshmouse() {
_root.player.startDrag(true, 10, 10, 650, 650);
}
xspeed = 2;
yspeed = 2;
momentum = 7;
friction = 0;
upconstant = 0;
gravity = 0;
sunken = 0;
vent = 0;
ventup = 0;
waterpush = 0;
movement = 0;
health = 3;
Mouse.hide();
}
onClipEvent (enterFrame) {
collide = 0;
_root.checkCollision();
if (Key.isDown(39)) {
xspeed = xspeed + momentum;
}
if (Key.isDown(37)) {
xspeed = xspeed - momentum;
}
if (Key.isDown(38)) {
yspeed = yspeed - momentum;
}
if (Key.isDown(40)) {
yspeed = yspeed + momentum;
}
if (Key.isDown(68)) {
xspeed = xspeed + momentum;
}
if (Key.isDown(65)) {
xspeed = xspeed - momentum;
}
if (Key.isDown(87)) {
yspeed = yspeed - momentum;
}
if (Key.isDown(83)) {
yspeed = yspeed + momentum;
}
if ((movement > 0) && (collide == 0)) {
_root.player.gotoAndStop("move");
} else if ((movement < 0) && (collide == 0)) {
_root.player.gotoAndStop("move");
}
if ((movement == 0) && (collide == 0)) {
_root.player.gotoAndStop("stat");
}
if (_root.control == 1) {
herex = getProperty("_root.player", _x);
herey = getProperty("_root.player", _y);
}
movement = yspeed + xspeed;
if (_root.control == 1) {
_y = (_y + yspeed);
_x = (_x + xspeed);
}
if (_root.stage > 4) {
_root.lvl._y = (_root.lvl._y = _root.lvl._y - 4.4);
_root.back._y = (_root.back._y = _root.back._y - 4.4);
gravity = 0.1;
upconstant = 0.2;
friction = 0.99;
momentum = 1;
}
xspeed = xspeed * friction;
yspeed = (yspeed + upconstant) * friction;
}
onClipEvent (mouseMove) {
if (_root.control == 2) {
herex = getProperty("_root.player", _x);
herey = getProperty("_root.player", _y);
refreshmouse();
_root.checkCollision();
}
}
Frame 4
stop();
Frame 5
stop();
Symbol 265 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(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 showInterLevelAd(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.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 - 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 showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
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 _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
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 _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
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_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
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 _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
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 _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_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 266 MovieClip [__Packages.CollisionDetectionLP] Frame 0
class CollisionDetectionLP
{
function CollisionDetectionLP () {
}
static function checkForCollisionLP(p_clip1, p_clip2, p_alphaTolerance) {
if (!p_clip1.hitTest(p_clip2)) {
return(false);
}
if (p_alphaTolerance == undefined) {
p_alphaTolerance = 255;
}
var _local4 = 1 / _root.mystage.zoomlevel;
var _local5 = p_clip1.getBounds(_root);
var _local6 = p_clip2.getBounds(_root);
var _local2 = new Object();
_local2.xcol = (Math.min(_local5.xMax, _local6.xMax) - Math.max(_local5.xMin, _local6.xMin)) + 1;
_local2.ycol = (Math.min(_local5.yMax, _local6.yMax) - Math.max(_local5.yMin, _local6.yMin)) + 1;
_local2.xtranslation = Math.max(_local5.xMin, _local6.xMin);
_local2.ytranslation = Math.max(_local5.yMin, _local6.yMin);
var _local7 = new flash.display.BitmapData(_local2.xcol, _local2.ycol, false);
var _local3 = p_clip1.transform.concatenatedMatrix;
_local3.scale(_local4, _local4);
_local3.tx = _local3.tx - ((((Stage.width - _root.mystage.curwidth) / 2) * _local4) + _local2.xtranslation);
_local3.ty = _local3.ty - ((((Stage.height - _root.mystage.curheight) / 2) * _local4) + _local2.ytranslation);
_local7.draw(p_clip1, _local3, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, p_alphaTolerance), "normal");
_local3 = p_clip2.transform.concatenatedMatrix;
_local3.scale(_local4, _local4);
_local3.tx = _local3.tx - ((((Stage.width - _root.mystage.curwidth) / 2) * _local4) + _local2.xtranslation);
_local3.ty = _local3.ty - ((((Stage.height - _root.mystage.curheight) / 2) * _local4) + _local2.ytranslation);
_local7.draw(p_clip2, _local3, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, p_alphaTolerance), "difference");
var _local11 = _local7.getColorBoundsRect(4294967295, 4278255615);
_local7.dispose();
if (_local11.width == 0) {
return(false);
}
return(true);
}
}
Symbol 13 Button
on (release) {
gotoAndStop (1);
}
Symbol 14 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 2
stop();
Symbol 14 MovieClip Frame 3
stop();
Symbol 14 MovieClip Frame 4
stop();
stopAllSounds();
Symbol 31 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 5
stop();
Symbol 31 MovieClip Frame 10
stop();
Symbol 35 MovieClip Frame 1
credits.onRollOver = function () {
_root.credits.roll.gotoAndPlay(2);
Mouse.hide();
};
credits.onRollOut = function () {
_root.credits.roll.gotoAndPlay(6);
Mouse.show();
};
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 2
stop();
b1.onPress = function () {
_root.gotoAndStop("game");
_root.startb.gotoAndStop(1);
_root.sw.gotoAndStop(1);
_root.player._x = 582.5;
_root.player._y = 43;
};
Symbol 56 MovieClip Frame 3
stop();
b1.onPress = function () {
_root.gotoAndStop("game");
_root.startb.gotoAndStop(1);
_root.sw.gotoAndStop(12);
_root.player._x = 572;
_root.player._y = 148.7;
};
Symbol 56 MovieClip Frame 4
stop();
b1.onRelease = function () {
_root.gotoAndStop("game");
_root.startb.gotoAndStop(1);
_root.sw.gotoAndStop(12);
_root.player._x = 599;
_root.player._y = 238.7;
};
Symbol 56 MovieClip Frame 5
stop();
b1.onRelease = function () {
_root.gotoAndStop("game");
_root.startb.gotoAndStop(1);
_root.sw.gotoAndStop(12);
_root.player._x = 620;
_root.player._y = 40;
};
Symbol 56 MovieClip Frame 6
stop();
b1.onRelease = function () {
_root.gotoAndStop("game");
_root.startb.gotoAndStop(1);
_root.sw.gotoAndStop(12);
_root.player._x = 384.6;
_root.player._y = -3;
};
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();
b1.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndStop(2);
} else {
_root.gotoAndPlay("game");
}
_root.back.gotoAndStop("bd1");
_root.objects.gotoAndStop("lvl1");
_root.lvl.gotoAndStop("lvl1");
_root.player._x = 582.5;
_root.player._y = 43;
_root.sw.gotoAndStop(1);
_root.objects.crap.gotoAndStop(1);
_root.objects.pil1.gotoAndStop(1);
_root.objects.lvl1trap.gotoAndStop(1);
_root.lvl_up.gotoAndStop("base");
};
Symbol 85 MovieClip Frame 3
stop();
b1.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndStop(2);
} else {
_root.gotoAndStop("game");
}
_root.back.gotoAndStop("bd1");
_root.objects.gotoAndStop("lvl1");
_root.lvl.gotoAndStop("lvl1");
_root.player._x = 582.5;
_root.player._y = 43;
_root.objects.crap.gotoAndStop(1);
_root.objects.pil1.gotoAndStop(1);
_root.objects.lvl1trap.gotoAndStop(1);
_root.sw.gotoAndStop(1);
_root.lvl_up.gotoAndStop("base");
};
b2.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndStop(3);
} else {
_root.gotoAndStop("game");
}
_root.objects.gotoAndStop("lvl2");
_root.lvl.gotoAndStop("lvl2");
_root.back.gotoAndStop("bd2");
_root.player._x = 572;
_root.player._y = 148.7;
_root.sw.gotoAndStop(2);
_root.lvl_up.gotoAndStop("base");
};
Symbol 85 MovieClip Frame 4
stop();
b1.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndStop(2);
} else {
_root.gotoAndStop("game");
}
_root.objects.gotoAndStop("lvl1");
_root.lvl.gotoAndStop("lvl1");
_root.back.gotoAndStop("bd1");
_root.player._x = 582.5;
_root.player._y = 43;
_root.objects.crap.gotoAndStop(1);
_root.objects.pil1.gotoAndStop(1);
_root.objects.lvl1trap.gotoAndStop(1);
_root.sw.gotoAndStop(1);
_root.lvl_up.gotoAndStop("base");
};
b2.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndStop(3);
} else {
_root.gotoAndStop("game");
}
_root.objects.gotoAndStop("lvl2");
_root.lvl.gotoAndStop("lvl2");
_root.back.gotoAndStop("bd2");
_root.player._x = 572;
_root.player._y = 148.7;
_root.sw.gotoAndStop(2);
_root.lvl_up.gotoAndStop("base");
};
b3.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndStop(4);
} else {
_root.gotoAndStop("game");
}
_root.objects.gotoAndStop("lvl3");
_root.lvl.gotoAndStop("lvl3");
_root.back.gotoAndStop("bd3");
_root.player._x = 599;
_root.player._y = 238.7;
_root.sw.gotoAndStop(2);
_root.lvl_up.gotoAndStop("base");
};
Symbol 85 MovieClip Frame 5
stop();
b1.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndStop(2);
} else {
_root.gotoAndStop("game");
}
_root.objects.gotoAndStop("lvl1");
_root.lvl.gotoAndStop("lvl1");
_root.back.gotoAndStop("bd1");
_root.player._x = 582.5;
_root.player._y = 43;
_root.objects.crap.gotoAndStop(1);
_root.objects.pil1.gotoAndStop(1);
_root.objects.lvl1trap.gotoAndStop(1);
_root.sw.gotoAndStop(1);
_root.lvl_up.gotoAndStop("base");
};
b2.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndStop(3);
} else {
_root.gotoAndStop("game");
}
_root.objects.gotoAndStop("lvl2");
_root.lvl.gotoAndStop("lvl2");
_root.back.gotoAndStop("bd2");
_root.player._x = 572;
_root.player._y = 148.7;
_root.sw.gotoAndStop(2);
_root.lvl_up.gotoAndStop("base");
};
b3.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndStop(4);
} else {
_root.gotoAndStop("game");
}
_root.objects.gotoAndStop("lvl3");
_root.lvl.gotoAndStop("lvl3");
_root.back.gotoAndStop("bd3");
_root.player._x = 599;
_root.player._y = 238.7;
_root.sw.gotoAndStop(2);
_root.lvl_up.gotoAndStop("base");
};
b4.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndStop(5);
} else {
_root.gotoAndStop("game");
}
_root.objects.gotoAndStop("lvl4");
_root.lvl.gotoAndStop("lvl4");
_root.back.gotoAndStop("bd4");
_root.player._x = 620;
_root.player._y = 40;
_root.sw.gotoAndStop(2);
_root.lvl_up.gotoAndStop("base");
};
Symbol 85 MovieClip Frame 6
stop();
b1.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndStop(2);
} else {
_root.gotoAndStop("game");
}
_root.objects.gotoAndStop("lvl1");
_root.lvl.gotoAndStop("lvl1");
_root.back.gotoAndStop("bd1");
_root.player._x = 582.5;
_root.player._y = 43;
_root.objects.crap.gotoAndStop(1);
_root.objects.pil1.gotoAndStop(1);
_root.objects.lvl1trap.gotoAndStop(1);
_root.sw.gotoAndStop(1);
_root.lvl_up.gotoAndStop("base");
};
b2.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndStop(3);
} else {
_root.gotoAndStop("game");
}
_root.objects.gotoAndStop("lvl2");
_root.lvl.gotoAndStop("lvl2");
_root.back.gotoAndStop("bd2");
_root.player._x = 572;
_root.player._y = 148.7;
_root.sw.gotoAndStop(2);
_root.lvl_up.gotoAndStop("base");
};
b3.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndStop(4);
} else {
_root.gotoAndStop("game");
}
_root.objects.gotoAndStop("lvl3");
_root.lvl.gotoAndStop("lvl3");
_root.back.gotoAndStop("bd3");
_root.player._x = 599;
_root.player._y = 238.7;
_root.sw.gotoAndStop(2);
_root.lvl_up.gotoAndStop("base");
};
b4.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndStop(5);
} else {
_root.gotoAndStop("game");
}
_root.objects.gotoAndStop("lvl4");
_root.lvl.gotoAndStop("lvl4");
_root.back.gotoAndStop("bd4");
_root.player._x = 596;
_root.player._y = 23.6;
_root.sw.gotoAndStop(2);
_root.lvl_up.gotoAndStop("base");
};
b5.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndStop(6);
} else {
_root.gotoAndStop("game");
}
_root.objects.gotoAndStop("lvl5");
_root.lvl.gotoAndStop("lvl5");
_root.back.gotoAndStop("bd5");
_root.player._x = 384.6;
_root.player._y = -3;
_root.lvl._y = 0;
_root.lvl._x = 0;
_root.back._y = 0;
_root.back._x = 0;
_root.sw.gotoAndStop(2);
_root.lvl_up.gotoAndStop("base");
};
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
stop();
Mouse.show();
_root.sw.gotoAndStop(12);
next_level.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndPlay(3);
} else {
_root.gotoAndPlay("game");
}
_root.objects.gotoAndStop("lvl2");
_root.lvl.gotoAndStop("lvl2");
_root.lvl_up.gotoAndStop("base");
_root.back.gotoAndStop("bd2");
_root.sw.gotoAndStop(12);
_root.player._x = 572;
_root.player._y = 148.7;
_root.stage = 2;
};
reload.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndPlay(2);
} else {
_root.gotoAndPlay("game");
}
_root.objects.gotoAndStop("lvl1");
_root.sw.gotoAndStop(1);
_root.lvl.gotoAndStop("lvl1");
_root.lvl_up.gotoAndStop("base");
_root.back.gotoAndStop("bd1");
_root.player._x = 582.5;
_root.player._y = 43;
_root.stage = 1;
};
mouse.onRelease = function () {
_root.control = 2;
};
keys.onRelease = function () {
_root.control = 1;
};
kingdom.onRelease = function () {
getURL ("http://www.kingdomarcade.com/in.php?id=79", "_blank");
};
Symbol 93 MovieClip Frame 3
stop();
Mouse.show();
next_level.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndPlay(4);
} else {
_root.gotoAndPlay("game");
_root.sw.gotoAndStop(12);
}
_root.objects.gotoAndStop("lvl3");
_root.lvl.gotoAndStop("lvl3");
_root.lvl_up.gotoAndStop("base");
_root.back.gotoAndStop("bd3");
_root.player._x = 599;
_root.player._y = 238.7;
_root.stage = 3;
};
reload.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndPlay(3);
} else {
_root.gotoAndPlay("game");
}
_root.objects.gotoAndStop("lvl2");
_root.lvl.gotoAndStop("lvl2");
_root.lvl_up.gotoAndStop("base");
_root.back.gotoAndStop("bd2");
_root.sw.gotoAndStop(12);
_root.player._x = 572;
_root.player._y = 148.7;
_root.stage = 2;
};
kingdom.onRelease = function () {
getURL ("http://www.kingdomarcade.com/in.php?id=79", "_blank");
};
Symbol 93 MovieClip Frame 4
stop();
Mouse.show();
next_level.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndPlay(5);
} else {
_root.gotoAndPlay("game");
}
_root.objects.gotoAndStop("lvl4");
_root.lvl.gotoAndStop("lvl4");
_root.lvl_up.gotoAndStop("base");
_root.back.gotoAndStop("bd4");
_root.sw.gotoAndStop(12);
_root.player._x = 620;
_root.player._y = 40;
_root.stage = 4;
};
reload.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndPlay(4);
} else {
_root.gotoAndPlay("game");
}
_root.objects.gotoAndStop("lvl3");
_root.lvl.gotoAndStop("lvl3");
_root.lvl_up.gotoAndStop("base");
_root.back.gotoAndStop("bd3");
_root.sw.gotoAndStop(12);
_root.player._x = 599;
_root.player._y = 238.7;
_root.stage = 3;
};
kingdom.onRelease = function () {
getURL ("http://www.kingdomarcade.com/in.php?id=79", "_blank");
};
Symbol 93 MovieClip Frame 5
stop();
Mouse.show();
next_level.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndPlay(6);
} else {
_root.gotoAndPlay("game");
}
_root.objects.gotoAndStop("lvl5");
_root.lvl.gotoAndStop("lvl5");
_root.lvl_up.gotoAndStop("base");
_root.back.gotoAndStop("bd5");
_root.sw.gotoAndStop(12);
_root.player._x = 384.6;
_root.player._y = -3;
_root.stage = 5;
};
reload.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndPlay(5);
} else {
_root.gotoAndPlay("game");
}
_root.objects.gotoAndStop("lvl4");
_root.lvl.gotoAndStop("lvl4");
_root.lvl_up.gotoAndStop("base");
_root.back.gotoAndStop("bd4");
_root.sw.gotoAndStop(12);
_root.player._x = 620;
_root.player._y = 40;
_root.stage = 4;
};
kingdom.onRelease = function () {
getURL ("http://www.kingdomarcade.com/in.php?id=79", "_blank");
};
Symbol 93 MovieClip Frame 6
stop();
Mouse.show();
next_level.onRelease = function () {
this.gotoAndPlay("win");
_root.lvl_up.gotoAndStop("base");
_root.player._x = 305;
_root.player._y = 106;
};
reload.onRelease = function () {
if (_root.control == 2) {
_root.startb.gotoAndPlay(6);
} else {
_root.gotoAndPlay("game");
}
_root.objects.gotoAndStop("lvl5");
_root.lvl.gotoAndStop("lvl5");
_root.lvl_up.gotoAndStop("base");
_root.back.gotoAndStop("bd5");
_root.sw.gotoAndStop(12);
_root.player._x = 360.6;
_root.player._y = -30;
_root.stage = 5;
};
kingdom.onRelease = function () {
getURL ("http://www.kingdomarcade.com/in.php?id=79", "_blank");
};
Symbol 93 MovieClip Frame 7
stop();
Mouse.show();
trace("level=" + _root.stage);
if (_root.stage == 1) {
_root.lvl_up.lvl.gotoAndStop("l1");
}
if (_root.stage == 2) {
_root.lvl_up.lvl.gotoAndStop("l2");
}
if (_root.stage == 3) {
_root.lvl_up.lvl.gotoAndStop("l3");
}
if (_root.stage == 4) {
_root.lvl_up.lvl.gotoAndStop("l4");
}
if (_root.stage == 5) {
_root.lvl_up.lvl.gotoAndStop("l5");
}
mouse.onRelease = function () {
_root.control = 2;
};
keys.onRelease = function () {
_root.control = 1;
};
kingdom.onRelease = function () {
getURL ("http://www.kingdomarcade.com/in.php?id=79", "_blank");
};
Symbol 93 MovieClip Frame 8
stop();
Mouse.show();
trace("level=" + _root.stage);
if (_root.stage == 1) {
_root.lvl_up.lvl.gotoAndStop("l1");
}
if (_root.stage == 2) {
_root.lvl_up.lvl.gotoAndStop("l2");
}
if (_root.stage == 3) {
_root.lvl_up.lvl.gotoAndStop("l3");
}
if (_root.stage == 4) {
_root.lvl_up.lvl.gotoAndStop("l4");
}
if (_root.stage == 5) {
_root.lvl_up.lvl.gotoAndStop("l5");
}
mouse.onRelease = function () {
_root.control = 2;
};
keys.onRelease = function () {
_root.control = 1;
};
kingdom.onRelease = function () {
getURL ("http://www.kingdomarcade.com/in.php?id=79/", "_blank");
};
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
stop();
Symbol 107 MovieClip Frame 3
stop();
Symbol 107 MovieClip Frame 4
stop();
Symbol 107 MovieClip Frame 5
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 11
stop();
Symbol 111 MovieClip Frame 12
stop();
Symbol 121 MovieClip Frame 9
_root.objects.crap.poo1.gotoAndPlay("poo3");
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
stop();
Symbol 125 MovieClip Frame 3
stop();
Symbol 127 MovieClip Frame 9
_root.objects.crap.drop3.gotoAndPlay("poo3");
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
stop();
Symbol 128 MovieClip Frame 3
stop();
Symbol 129 MovieClip Frame 1
stop();
Instance of Symbol 125 MovieClip "poo1" in Symbol 129 MovieClip Frame 2
/* no clip actions */
Instance of Symbol 128 MovieClip "drop3" in Symbol 129 MovieClip Frame 7
/* no clip actions */
Symbol 129 MovieClip Frame 25
stop();
_root.objects.crap.drop3.gotoAndPlay("poo2");
_root.objects.crap.poo1.gotoAndPlay("poo2");
Instance of Symbol 128 MovieClip "drop3" in Symbol 129 MovieClip Frame 25
onClipEvent (enterFrame) {
cur_x = getProperty(this, _x);
cur_y = getProperty(this, _y);
}
Instance of Symbol 125 MovieClip "poo1" in Symbol 129 MovieClip Frame 25
onClipEvent (enterFrame) {
cur_x = getProperty(this, _x);
cur_y = getProperty(this, _y);
}
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 39
this.gotoAndPlay(2);
Symbol 146 MovieClip Frame 2
stop();
Symbol 146 MovieClip Frame 39
this.gotoAndPlay("open");
Symbol 154 MovieClip Frame 50
gotoAndPlay (1);
Symbol 241 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 2
stop();
Symbol 241 MovieClip Frame 3
stop();
Symbol 241 MovieClip Frame 4
stop();
Symbol 241 MovieClip Frame 5
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 2
stop();
Symbol 252 MovieClip Frame 3
stop();
Symbol 252 MovieClip Frame 4
stop();
Symbol 252 MovieClip Frame 5
stop();
Symbol 264 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 2
stop();
Symbol 264 MovieClip Frame 3
stop();
Symbol 264 MovieClip Frame 4
stop();
Symbol 264 MovieClip Frame 5
stop();