Frame 1
var MochiAd = {getVersion:function () {
return("2.1");
}, showPreGameAd:function (options) {
var _local1 = this;
var DEFAULTS = {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 = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
_local2 = Math.max(_local1.last_pcnt, _local2);
_local1.last_pcnt = _local2;
_inside._xscale = _local2;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}, showInterLevelAd:function (options) {
var _local1 = this;
var DEFAULTS = {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 = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}, showTimedAd:function (options) {
MochiAd.showInterLevelAd(options);
}, showPreloaderAd:function (options) {
MochiAd.showPreGameAd(options);
}, _allowDomains:function (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);
}, _loadCommunicator:function (options) {
var _local2 = options;
var _local3 = arguments;
var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
_local2 = MochiAd._parseOptions(_local2, DEFAULTS);
_local2.swfv = _local2.clip.getSWFVersion() || 6;
_local2.mav = MochiAd.getVersion();
var clip = _local2.clip;
var clipname = ("_mochiad_com_" + _local2.id);
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip[clipname]) {
return(clip[clipname].lc);
}
var server = (_local2.com_server + _local2.id);
MochiAd._allowDomains(server);
delete _local2.id;
delete _local2.com_server;
var depth = _local2.depth;
delete _local2.depth;
var mc = clip.createEmptyMovieClip(clipname, depth);
var lv = mc.createEmptyMovieClip("_mochiad_com", 1);
for (var k in _local2) {
lv[k] = _local2[k];
}
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lc._id = 0;
lc._queue = [];
lc.rpcResult = function (cb_arg) {
var cb = parseInt(cb_arg);
var _local2 = this._callbacks[cb];
if (!_local2) {
} else {
delete this._callbacks[cb];
var _local3 = [];
var _local1 = 2;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
_local1 = 1;
while (_local1 < arguments.length) {
_local3.push(arguments[_local1]);
_local1++;
}
var method = _local2[1];
var obj = _local2[0];
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method) {
method.apply(obj, _local3);
}
}
};
lc._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local3 = this._queue;
delete this._queue;
var ds = this.doSend;
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3[_local1];
ds.apply(this, _local2);
_local1++;
}
};
lc.doSend = function (args, cbobj, cbfn) {
var _local2 = arguments;
if (this._endpoint == null) {
var _local3 = [];
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
this._queue.push(_local3);
} else {
this._id = this._id + 1;
var id = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[id] = [cbobj, cbfn];
var slc = new LocalConnection();
var ss = slc.send(this._endpoint, "rpc", id, args);
}
};
lc._callbacks = {};
lc._callbacks[0] = [lc, "_didConnect"];
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(lc);
}, fetchHighScores:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["fetchHighScores", _local2];
_local1.doSend(["fetchHighScores", _local2], callbackObj, callbackMethod);
return(true);
}, sendHighScore:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["sendHighScore", _local2];
_local1.doSend(["sendHighScore", _local2], callbackObj, callbackMethod);
return(true);
}, load:function (options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = MochiAd._parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = MochiAd.getVersion();
var clip = _local1.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
var server = _local2.server;
delete _local2.server;
var hostname = MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[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]);
}, _parseOptions:function (options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
return(_local3);
}, _:null};
Stage.scaleMode = "noScale";
Stage.showMenu = false;
_quality = "HIGH";
_focusrect = false;
MochiAd.showPreGameAd({id:"48b30902372e9ee8", res:"640x480"});
Frame 2
stop();
_root.onEnterFrame = null;
FRAMERATE = 25;
ANIMAL_SPEED = 2.45;
LAUNCH_WAIT = 18;
PLR_POS_LEFT = 1;
PLR_POS_RIGHT = 2;
PLR_POS_MIDDLE = 3;
PLR_LEFT_XPOS = 144;
PLR_MIDDLE_XPOS = 256;
PLR_RIGHT_XPOS = 361;
PLR_YPOS = 363;
PLR_COLLIDE_EXTEND = 318;
PLR_COLLIDE_COIL = 346;
PLR_STATE_EXTEND = 1;
PLR_STATE_COIL = 2;
PLR_STATE_TRANS = 3;
PLR_MISS_NULL = 0;
PLR_MISS_CHICKEN = 1;
PLR_MISS_PIG = 2;
PLR_FRAME_EXTEND = 1;
PLR_FRAME_COIL = 2;
PLR_KEYFLAG_LEFT = 1;
PLR_KEYFLAG_RIGHT = 2;
Player = function (instance) {
var _local1 = this;
_local1.pos = PLR_POS_MIDDLE;
_local1.instance = instance;
_local1.collisionHeight = PLR_COLLIDE_EXTEND;
_local1.state = PLR_STATE_EXTEND;
_local1.score = 0;
_local1.keyPressed = 0;
_local1.keyHeld = 0;
_local1.missCount = 0;
};
Player.prototype.update = function () {
var _local1 = this;
_local1.keyHeld = _local1.keyPressed;
_local1.keyPressed = 0;
if (_local1.missCount >= 3) {
return(false);
}
return(true);
};
Player.prototype.reset = function () {
var _local1 = this;
_local1.pos = PLR_POS_MIDDLE;
_local1.instance._x = PLR_MIDDLE_XPOS;
_local1.instance._y = PLR_YPOS;
_local1.state = PLR_STATE_EXTEND;
_local1.score = 0;
_local1.refreshScore();
_local1.keyPressed = 0;
_local1.keyHeld = 0;
_local1.clearMisses();
};
Player.prototype.moveLeft = function () {
var _local1 = this;
_local1.keyPressed = _local1.keyPressed | PLR_KEYFLAG_LEFT;
if (_local1.keyHeld & PLR_KEYFLAG_LEFT) {
} else {
switch (_local1.pos) {
case PLR_POS_LEFT :
return;
case PLR_POS_MIDDLE :
_local1.pos = PLR_POS_LEFT;
_local1.instance._x = PLR_LEFT_XPOS;
return;
case PLR_POS_RIGHT :
_local1.pos = PLR_POS_MIDDLE;
_local1.instance._x = PLR_MIDDLE_XPOS;
}
}
};
Player.prototype.moveRight = function () {
var _local1 = this;
_local1.keyPressed = _local1.keyPressed | PLR_KEYFLAG_RIGHT;
if (_local1.keyHeld & PLR_KEYFLAG_RIGHT) {
} else {
switch (_local1.pos) {
case PLR_POS_RIGHT :
return;
case PLR_POS_MIDDLE :
_local1.pos = PLR_POS_RIGHT;
_local1.instance._x = PLR_RIGHT_XPOS;
return;
case PLR_POS_LEFT :
_local1.pos = PLR_POS_MIDDLE;
_local1.instance._x = PLR_MIDDLE_XPOS;
}
}
};
Player.prototype.jumpToPos = function (plrPos) {
var _local1 = this;
switch (plrPos) {
case PLR_POS_LEFT :
_local1.pos = PLR_POS_LEFT;
_local1.instance._x = PLR_LEFT_XPOS;
return;
case PLR_POS_MIDDLE :
_local1.pos = PLR_POS_MIDDLE;
_local1.instance._x = PLR_MIDDLE_XPOS;
return;
case PLR_POS_RIGHT :
_local1.pos = PLR_POS_RIGHT;
_local1.instance._x = PLR_RIGHT_XPOS;
}
};
Player.prototype.extend = function () {
var _local1 = this;
if (_local1.state == PLR_STATE_COIL) {
_local1.state = PLR_STATE_TRANS;
} else if (_local1.state == PLR_STATE_TRANS) {
_local1.state = PLR_STATE_EXTEND;
}
_local1.collisionHeight = PLR_COLLIDE_EXTEND;
_local1.instance.gotoAndStop(PLR_FRAME_EXTEND);
};
Player.prototype.coil = function () {
var _local1 = this;
_local1.state = PLR_STATE_COIL;
_local1.collisionHeight = PLR_COLLIDE_COIL;
_local1.instance.gotoAndStop(PLR_FRAME_COIL);
};
Player.prototype.miss = function (animalType) {
var _local1 = this;
var _local2 = _root;
switch (animalType) {
case BNC_TYPE_CHICKEN :
_local2["DeadChicken" + (_local1.missCount + 1)]._visible = true;
_local2["Cross" + (_local1.missCount + 1)]._visible = true;
_local1.missCount++;
return;
case BNC_TYPE_PIG :
_local2["DeadPig" + (_local1.missCount + 1)]._visible = true;
_local2["Cross" + (_local1.missCount + 1)]._visible = true;
_local1.missCount++;
}
};
Player.prototype.clearMisses = function () {
var _local2 = _root;
var _local1 = 0;
_local1 = 0;
while (_local1 < 3) {
_local2["DeadChicken" + (_local1 + 1)]._visible = false;
_local2["Cross" + (_local1 + 1)]._visible = false;
_local2["DeadPig" + (_local1 + 1)]._visible = false;
_local1++;
}
this.missCount = 0;
};
Player.prototype.incrementScore = function () {
this.score++;
this.refreshScore();
};
Player.prototype.refreshScore = function () {
Score.text = this.score;
};
SHR_STATE_CLOSED = 1;
SHR_STATE_OPEN = 2;
SHR_STATE_CHICKEN = 1;
SHR_STATE_PIG = 2;
SHR_FRAME_CLOSED = 1;
SHR_FRAME_OPEN = 2;
SHR_FRAME_CHICKEN = 1;
SHR_FRAME_PIG = 2;
SHR_FACING_RIGHT = 1;
SHR_FACING_LEFT = 2;
ShutterOpenSnd = new Sound();
ShutterOpenSnd.attachSound("Shutter Open");
ShutterCloseSnd = new Sound();
ShutterCloseSnd.attachSound("ShutterClose");
SignChangeSnd = new Sound();
SignChangeSnd.attachSound("Sign Change");
Shutter = function (doorInstance, signInstance) {
var _local1 = this;
_local1.doorInstance = doorInstance;
_local1.signInstance = signInstance;
_local1.doorState = SHR_STATE_CLOSED;
_local1.signState = SHR_STATE_CHICKEN;
_local1.launchDir = SHR_FACING_RIGHT;
_local1.launchHeight = BNC_LOW_BOUNCE_HEIGHT;
_local1.doorInstance.gotoAndPlay(SHR_FRAME_CLOSED);
_local1.signInstance.gotoAndPlay(SHR_FRAME_CHICKEN);
};
Shutter.prototype.open = function () {
this.doorState = SHR_STATE_OPEN;
ShutterOpenSnd.start();
this.doorInstance.gotoAndStop("Open");
};
Shutter.prototype.close = function () {
this.doorState = SHR_STATE_CLOSED;
ShutterCloseSnd.start();
this.doorInstance.gotoAndStop("Closed");
};
Shutter.prototype.chicken = function () {
this.signState = SHR_STATE_CHICKEN;
SignChangeSnd.start();
this.signInstance.gotoAndStop(SHR_FRAME_CHICKEN);
};
Shutter.prototype.pig = function () {
this.signState = SHR_STATE_PIG;
SignChangeSnd.start();
this.signInstance.gotoAndStop(SHR_FRAME_PIG);
};
Shutter.prototype.launch = function (type) {
var _local1 = this;
if (_local1.doorState == SHR_STATE_OPEN) {
_root.bouncerManager.spawn(type, _local1.doorInstance._x, _local1.doorInstance._y, _local1.launchDir, _local1.launchHeight, 4 + (Math.random() * 8));
}
};
_global.bouncerTable = new Array();
_global.bouncerTableCreate = function () {
var _local1 = 0;
_local1 = 0;
while (_local1 <= 118) {
bouncerTable.push(Math.sin((_local1 / 100) * Math.PI));
_local1++;
}
};
_global.bouncerTableCreate();
BNC_TYPE_CHICKEN = 1;
BNC_TYPE_PIG = 2;
BNC_HORIZ_VEL = ANIMAL_SPEED;
BNC_LOW_BOUNCE_HEIGHT = 202;
BNC_HIGH_BOUNCE_HEIGHT = 342;
BNC_FIRST_APEX_XPOS = 92;
BNC_LAST_APEX_XPOS = 417;
BNC_KILL_HEIGHT = 335;
BNC_COLLIDE_HEIGHT = 286;
Bouncer = function (instance, type) {
var _local1 = this;
_local1.instance = instance;
_local1.instance._visible = false;
_local1.dead = true;
_local1.type = type;
_local1.rotateSpeed = 0;
_local1.xVect = 0;
_local1.arcStart = 0;
_local1.arcLength = 0;
_local1.rArcLength = 0;
_local1.arcHeight = 0;
_local1.bounceTo = 0;
_local1.collisionRange = _local1.instance._height / 2;
_local1.next = null;
};
Bouncer.prototype.spawn = function (x, y, dir, height, spin) {
var _local1 = this;
_local1.instance._x = x;
_local1.instance._y = y;
_local1.instance._visible = true;
_local1.dead = false;
_local1.instance.gotoAndPlay("Idle");
switch (dir) {
case SHR_FACING_RIGHT :
_local1.rotateSpeed = spin;
_local1.xVect = BNC_HORIZ_VEL;
_local1.arcStart = BNC_FIRST_APEX_XPOS - (PLR_LEFT_XPOS - BNC_FIRST_APEX_XPOS);
_local1.arcLength = PLR_LEFT_XPOS - _local1.arcStart;
_local1.arcHeight = height;
_local1.bounceTo = PLR_POS_LEFT;
break;
case SHR_FACING_LEFT :
_local1.rotateSpeed = -spin;
_local1.xVect = -BNC_HORIZ_VEL;
_local1.arcStart = PLR_RIGHT_XPOS;
_local1.arcLength = 2 * (BNC_LAST_APEX_XPOS - PLR_RIGHT_XPOS);
_local1.arcHeight = height;
_local1.bounceTo = PLR_POS_RIGHT;
}
_local1.rArcLength = 1 / _local1.arcLength;
};
Bouncer.prototype.update = function () {
var _local1 = this;
_local1.instance._x = _local1.instance._x + _local1.xVect;
var _local2 = ((_local1.instance._x - _local1.arcStart) * _local1.rArcLength) * 100;
_local2 = Math.min(118, Math.round(_local2));
if (_local1.xVect < 0) {
_local2 = (-_local2) + 100;
}
_local1.instance._y = 300 - (bouncerTable[_local2] * (_local1.arcHeight - 132));
if (_local1.instance._y > BNC_KILL_HEIGHT) {
_local1.kill();
} else if (_local1.bounceTo == 0) {
if (_local2 > 80) {
_local1.shutterCollision();
}
} else if (_local2 > 99) {
_local1.playerCollision();
}
};
Bouncer.prototype.playerCollision = function () {
var _local1 = this;
if (_local1.bounceTo == player.pos) {
var _local2 = player.collisionHeight - _local1.instance._y;
if ((_local2 > 0) && (_local2 < _local1.collisionRange)) {
_local1.bounce();
} else if (player.state == PLR_STATE_TRANS) {
if ((_local1.instance._y < PLR_COLLIDE_COIL) && (_local1.instance._y > PLR_COLLIDE_EXTEND)) {
_local1.bounce();
}
}
}
};
Bouncer.prototype.shutterCollision = function () {
var _local1 = this;
if (_local1.xVect > 0) {
if (_local1.arcHeight == BNC_HIGH_BOUNCE_HEIGHT) {
if ((_local1.instance._x + _local1.collisionRange) > trShutter.doorInstance._x) {
if (trShutter.doorState == SHR_STATE_OPEN) {
_local1.home(trShutter);
} else {
_local1.kill();
}
}
} else if ((_local1.instance._x + _local1.collisionRange) > brShutter.doorInstance._x) {
if (brShutter.doorState == SHR_STATE_OPEN) {
_local1.home(brShutter);
} else {
_local1.kill();
}
}
} else if (_local1.arcHeight == BNC_HIGH_BOUNCE_HEIGHT) {
if ((_local1.instance._x - _local1.collisionRange) < tlShutter.doorInstance._x) {
if (tlShutter.doorState == SHR_STATE_OPEN) {
_local1.home(tlShutter);
} else {
_local1.kill();
}
}
} else if ((_local1.instance._x - _local1.collisionRange) < blShutter.doorInstance._x) {
if (blShutter.doorState == SHR_STATE_OPEN) {
_local1.home(blShutter);
} else {
_local1.kill();
}
}
};
Bouncer.prototype.bounce = function () {
var _local1 = this;
_local1.instance.gotoAndPlay("Bounce");
if (_local1.xvect > 0) {
switch (player.pos) {
case PLR_POS_LEFT :
_local1.arcStart = PLR_LEFT_XPOS;
_local1.instance._x = _local1.arcStart;
_local1.arcLength = PLR_MIDDLE_XPOS - _local1.arcStart;
_local1.bounceTo = PLR_POS_MIDDLE;
break;
case PLR_POS_MIDDLE :
_local1.arcStart = PLR_MIDDLE_XPOS;
_local1.instance._x = _local1.arcStart;
_local1.arcLength = PLR_RIGHT_XPOS - _local1.arcStart;
_local1.bounceTo = PLR_POS_RIGHT;
break;
case PLR_POS_RIGHT :
_local1.arcStart = PLR_RIGHT_XPOS;
_local1.instance._x = _local1.arcStart;
_local1.arcLength = brShutter.doorInstance._x - _local1.arcStart;
_local1.bounceTo = 0;
}
} else {
switch (player.pos) {
case PLR_POS_LEFT :
_local1.arcStart = blShutter.doorInstance._x;
_local1.arcLength = PLR_LEFT_XPOS - _local1.arcStart;
_local1.instance._x = _local1.arcStart + _local1.arcLength;
_local1.bounceTo = 0;
break;
case PLR_POS_MIDDLE :
_local1.arcStart = PLR_LEFT_XPOS;
_local1.arcLength = PLR_MIDDLE_XPOS - _local1.arcStart;
_local1.instance._x = _local1.arcStart + _local1.arcLength;
_local1.bounceTo = PLR_POS_LEFT;
break;
case PLR_POS_RIGHT :
_local1.arcStart = PLR_MIDDLE_XPOS;
_local1.arcLength = PLR_RIGHT_XPOS - _local1.arcStart;
_local1.instance._x = _local1.arcStart + _local1.arcLength;
_local1.bounceTo = PLR_POS_MIDDLE;
}
}
if ((player.state == PLR_STATE_COIL) || (player.state == PLR_STATE_TRANS)) {
_local1.arcHeight = BNC_HIGH_BOUNCE_HEIGHT;
} else {
_local1.arcHeight = BNC_LOW_BOUNCE_HEIGHT;
}
_local1.rArcLength = 1 / _local1.arcLength;
};
Bouncer.prototype.reset = function () {
var _local1 = this;
_local1.instance._visible = false;
_local1.instance._x = 0;
_local1.instance._y = 0;
_local1.rotateSpeed = 0;
_local1.xVect = 0;
_local1.arcStart = 0;
_local1.arcLength = 0;
_local1.arcHeight = 0;
_local1.bounceTo = 0;
};
Bouncer.prototype.kill = function () {
var _local1 = this;
_local1.instance.gotoAndPlay("Die");
_local1.dead = true;
player.miss(_local1.type);
};
Bouncer.prototype.home = function (shutter) {
var _local1 = this;
_local1.instance._visible = false;
if ((_local1.type == BNC_TYPE_CHICKEN) && (shutter.signState == SHR_STATE_CHICKEN)) {
player.incrementScore();
} else if ((_local1.type == BNC_TYPE_PIG) && (shutter.signState == SHR_STATE_PIG)) {
player.incrementScore();
}
};
BMN_Z_START = 50;
BouncerMan = function () {
var _local1 = this;
_local1.count = 0;
_local1.currentZ = BMN_Z_START;
_local1.pigList = null;
_local1.chickenList = null;
_local1.activeList = null;
};
BouncerMan.prototype.addToList = function (template, type) {
var _local1 = this;
template.duplicateMovieClip("Bouncer" + (_local1.count + 1), _local1.currentZ);
var _local2 = new Bouncer(_root["Bouncer" + (_local1.count + 1)], type);
var _local3 = null;
if (type == BNC_TYPE_CHICKEN) {
if (_local1.chickenList == null) {
_local1.chickenList = _local2;
} else {
_local3 = _local1.chickenList;
while (_local1.chickenList.next != null) {
_local1.chickenList = _local1.chickenList.next;
}
_local1.chickenList.next = _local2;
_local1.chickenList = _local3;
}
} else if (type == BNC_TYPE_PIG) {
if (_local1.pigList == null) {
_local1.pigList = _local2;
} else {
_local3 = _local1.pigList;
while (_local1.pigList.next != null) {
_local1.pigList = _local1.pigList.next;
}
_local1.pigList.next = _local2;
_local1.pigList = _local3;
}
}
_local1.count++;
_local1.currentZ++;
};
BouncerMan.prototype.spawn = function (type, x, y, dir, height, spin) {
var _local2 = this;
var _local1 = null;
if (type == BNC_TYPE_CHICKEN) {
_local1 = _local2.popChicken();
_local2.pushActive(_local1);
_local1.spawn(x, y, dir, height, spin);
} else if (type == BNC_TYPE_PIG) {
_local1 = _local2.popPig();
_local2.pushActive(_local1);
_local1.spawn(x, y, dir, height, spin);
}
};
BouncerMan.prototype.updateAll = function () {
var _local2 = this;
var bouncersActive = false;
var _local1 = _local2.activeList;
while (_local1 != null) {
var _local3 = _local1.next;
if (_local1.instance._visible && (!_local1.dead)) {
_local1.update();
bouncersActive = true;
} else {
_local2.linkOutActive(_local1);
if (_local1.type == BNC_TYPE_CHICKEN) {
_local2.pushChicken(_local1);
} else if (_local1.type == BNC_TYPE_PIG) {
_local2.pushPig(_local1);
}
}
_local1 = _local3;
}
return(bouncersActive);
};
BouncerMan.prototype.reset = function () {
var _local2 = this;
var _local1 = _local2.activeList;
while (_local1 != null) {
var _local3 = _local1.next;
_local1.reset();
_local2.linkOutActive(_local1);
if (_local1.type == BNC_TYPE_CHICKEN) {
_local2.pushChicken(_local1);
} else if (_local1.type == BNC_TYPE_PIG) {
_local2.pushPig(_local1);
}
_local1 = _local3;
}
};
BouncerMan.prototype.pushChicken = function (bouncer) {
bouncer.next = this.chickenList;
this.chickenList = bouncer;
};
BouncerMan.prototype.popChicken = function () {
var _local2 = this;
var _local1 = _local2.chickenList;
_local2.chickenList = _local2.chickenList.next;
return(_local1);
};
BouncerMan.prototype.pushPig = function (bouncer) {
bouncer.next = this.pigList;
this.pigList = bouncer;
};
BouncerMan.prototype.popPig = function () {
var _local1 = this;
var _local2 = _local1.pigList;
_local1.pigList = _local1.pigList.next;
return(_local2);
};
BouncerMan.prototype.pushActive = function (bouncer) {
bouncer.next = this.activeList;
this.activeList = bouncer;
};
BouncerMan.prototype.linkOutActive = function (bouncer) {
var _local2 = bouncer;
var _local3 = this;
if (_local2 == _local3.activeList) {
_local3.activeList = _local3.activeList.next;
} else {
var _local1 = _local3.activeList;
while (_local1 != null) {
if (_local1.next == _local2) {
_local1.next = _local2.next;
return;
}
_local1 = _local1.next;
}
}
};
BouncerMan.prototype.traceLists = function () {
var _local1 = this.activeList;
var _local2 = this.chickenList;
var _local3 = this.pigList;
trace("Trace lists begin ------------------");
while (_local1 != null) {
trace("active bouncer");
_local1 = _local1.next;
}
while (_local2 != null) {
trace("in chicken list");
_local2 = _local2.next;
}
while (_local3 != null) {
trace("in pigs list");
_local3 = _local3.next;
}
trace("Trace lists end ------------------");
};
TS_SHUTTER_NULL = "0";
TS_SHUTTER_TL = "1";
TS_SHUTTER_TR = "2";
TS_SHUTTER_BR = "3";
TS_SHUTTER_BL = "4";
TS_ACTION_LAUNCH = "L";
TS_ACTION_OPEN = "O";
TS_ACTION_CLOSE = "C";
TS_ACTION_SIGN = "S";
TS_ACTION_PAUSE = "P";
TS_ANIMAL_PIG = "P";
TS_ANIMAL_CHICKEN = "C";
Level = function (desc, name, hint, password) {
var _local1 = this;
_local1.count = desc.length / 3;
_local1.desc = desc;
_local1.name = name;
_local1.hint = hint;
_local1.password = password.toLowerCase();
};
Level.prototype.action = function (segment) {
var shutter = this.desc.charAt(segment * 3);
var _local3 = this.desc.charAt((segment * 3) + 1);
var _local2 = this.desc.charAt((segment * 3) + 2);
if (shutter == TS_SHUTTER_NULL) {
if (_local3 == TS_ACTION_PAUSE) {
return(_local2 * LAUNCH_WAIT);
}
return(30);
}
var _local1;
switch (shutter) {
case TS_SHUTTER_TL :
_local1 = tlShutter;
break;
case TS_SHUTTER_TR :
_local1 = trShutter;
break;
case TS_SHUTTER_BR :
_local1 = brShutter;
break;
case TS_SHUTTER_BL :
_local1 = blShutter;
}
switch (_local3) {
case TS_ACTION_OPEN :
_local1.open();
break;
case TS_ACTION_CLOSE :
_local1.close();
break;
case TS_ACTION_LAUNCH :
if (_local2 == TS_ANIMAL_PIG) {
_local1.launch(BNC_TYPE_PIG);
} else if (_local2 == TS_ANIMAL_CHICKEN) {
_local1.launch(BNC_TYPE_CHICKEN);
}
return(LAUNCH_WAIT);
case TS_ACTION_SIGN :
if (_local2 == TS_ANIMAL_PIG) {
_local1.pig();
} else {
if (_local2 != TS_ANIMAL_CHICKEN) {
break;
}
_local1.chicken();
}
}
return(0);
};
LevelMan = function () {
var _local1 = this;
_local1.count = 0;
_local1.currentLevel = 0;
_local1.currentAction = 0;
_local1.list = new Array();
_local1.segmentTimer = 0;
_local1.levelRunning = false;
};
LevelMan.prototype.addToList = function (levelDesc, levelName, levelHint, levelPassword) {
this.list.push(new Level(levelDesc, levelName, levelHint, levelPassword));
this.count++;
};
LevelMan.prototype.go = function () {
this.levelRunning = true;
};
LevelMan.prototype.pause = function () {
this.levelRunning = false;
};
LevelMan.prototype.pauseToggle = function () {
this.levelRunning = !this.levelRunning;
};
LevelMan.prototype.clear = function () {
};
LevelMan.prototype.next = function () {
var _local1 = this;
_local1.currentLevel++;
if (_local1.currentLevel >= _local1.count) {
return(false);
}
_local1.currentAction = 0;
_local1.segmentTimer = 0;
return(true);
};
LevelMan.prototype.jumpToLevel = function (password) {
var _local2 = this;
var _local3 = password;
_local3 = _local3.toLowerCase();
var _local1 = 0;
while (_local1 < _local2.count) {
if (_local2.list[_local1].password == _local3) {
_local2.currentLevel = _local1;
_local2.currentAction = 0;
_local2.segmentTimer = 0;
return(true);
}
_local1++;
}
return(false);
};
LevelMan.prototype.reset = function () {
var _local1 = this;
_local1.currentLevel = 0;
_local1.currentAction = 0;
_local1.segmentTimer = 0;
};
LevelMan.prototype.update = function () {
var _local1 = this;
if (!_local1.levelRunning) {
} else {
if (!(_local1.segmentTimer--)) {
_local1.segmentTimer = _local1.list[_local1.currentLevel].action(_local1.currentAction);
_local1.currentAction++;
}
if (_local1.currentAction > _local1.list[_local1.currentLevel].count) {
return(false);
}
return(true);
}
return(undefined);
};
LevelMan.prototype.getName = function () {
return(this.list[this.currentLevel].name);
};
LevelMan.prototype.getHint = function () {
return(this.list[this.currentLevel].hint);
};
LevelMan.prototype.getPassword = function () {
return(this.list[this.currentLevel].password);
};
MAX_PIGS = 10;
MAX_CHICKENS = 10;
_root.ChickenTemplate._visible = false;
_root.PigTemplate._visible = false;
_root.Cross1._visible = false;
_root.Cross2._visible = false;
_root.Cross3._visible = false;
_root.DeadChicken1._visible = false;
_root.DeadChicken2._visible = false;
_root.DeadChicken3._visible = false;
_root.DeadPig1._visible = false;
_root.DeadPig2._visible = false;
_root.DeadPig3._visible = false;
player = new Player(_root.PlayerInstance);
player.reset();
tlShutter = new Shutter(TLShutter, TLSign);
tlShutter.launchHeight = BNC_HIGH_BOUNCE_HEIGHT;
blShutter = new Shutter(BLSHutter, BLSign);
trShutter = new Shutter(TRShutter, TRSign);
trShutter.launchDir = SHR_FACING_LEFT;
trShutter.launchHeight = BNC_HIGH_BOUNCE_HEIGHT;
brShutter = new Shutter(BRShutter, BRSign);
brShutter.launchDir = SHR_FACING_LEFT;
bouncerManager = new BouncerMan();
var i = 0;
while (i < MAX_PIGS) {
bouncerManager.addToList(PigTemplate, BNC_TYPE_PIG);
i++;
}
var i = 0;
while (i < MAX_CHICKENS) {
bouncerManager.addToList(ChickenTemplate, BNC_TYPE_CHICKEN);
i++;
}
levelManager = new LevelMan();
levelManager.addToList("1C 2C 3O 3SC4O 4SC0P24LC0P84LC0P84LC0P34LC0P84LC0P34LC", "Enter the Chicken", "Press left and right to move the trampoline. Bounce the Chickens home!", "golden");
levelManager.addToList("1C 2C 3O 3SC4O 4SC0P24LC4LC0P64LC4LC0P64LC4LC0P24LC0P64LC4LC0P24LC", "Spring chickens", "Trickier timing!", "sky");
levelManager.addToList("1O 1SP2O 2SP3C 4C 0P21LP0P61LP0P31LP0P61LP1LP0P61LP0P31LP0P31LP", "And pigs might fly", "Hold down the Space bar to bounce the pigs really high!", "daisy");
levelManager.addToList("1C 2O 2SP3C 4O 4SP0P24LP0P64LP4LP0P64LP4LP0P24LP0P64LP4LP4LP", "Pig pong", "Not as bad as it looks, just hold space", "sunshine");
levelManager.addToList("1O 2O 2SP3O 3SC4C 0P21LC0P61LP0P61LC0P61LP0P61LC1LC0P61LP1LP0P61LC1LC1LC0P61LP1LP1LP", "Two up, two down", "Pigs in the top hatch, chickens in the bottom hatch!", "green");
levelManager.addToList("1O 2O 2SC3O 3SP4C 0P21LP1LP0P61LC1LC0P61LP0P31LP0P61LC0P31LC0P61LP0P31LC0P61LP0P31LC0P61LP", "Rise of the chicken", "Now the chickens are upstairs", "free");
levelManager.addToList("1O 1SP2O 2SP3O 3SC4O 4SC0P24LC0P31LP0P34LC0P31LP0P31LP0P34LC0P34LC0P61LP4LC0P64LC1LP0P61LP4LC", "Rush hour", "Watch out! Pigs and chickens pop out of two hatches now!", "blue");
levelManager.addToList("1C 2C 3O 3SC4O 4SC0P23LC3LC0P63LC3LC0P63LC0P33LC0P33LC0P33LC0P33LC0P33LC0P63LC3LC3LC", "And back again!", "Chickens bounce from right-to-left, feels different doesn't it?", "breeze");
levelManager.addToList("1O 1SP2C 3O 4O 4SC0P23LC0P63LP0P63LC0P63LP0P63LC3LC0P63LP3LP0P63LC3LC3LC0P63LP3LP3LP", "Contrariwise", "This seems so familiar, curiouser and curiouser!", "crow");
levelManager.addToList("1C 2C 3O 3SP4O 4SC0P24LP0P63LC0P64LP0P63LC0P64LP4LP0P63LC3LC0P64LP3LC0P63LC4LP0P63LC4LP3LC0P64LP3LC4LP", "Two-way traffic", "Pigs right, chickens left. Got it?", "fields");
levelManager.addToList("1O 1SC2C 3O 3SC4O 4SP0P21LC0P61LC4LC0P63LP0P61LC0P23LP0P61LC4LC0P23LP0P61LC4LC0P23LP0P61LC4LC0P23LP", "Going against the flow", "Pigs throw a spanner in the works", "healthy");
levelManager.addToList("1C 2O 2SP3O 3SC4O 4SP0P24LP4LC0P62LP3LP0P63LP4LC0P64LP3LP0P62LP4LC0P13LP0P62LP4LP0P13LP0P62LP4LC", "The way the wind blows", "The right hatches are tricky, leave the bounce decisions to the last moment", "outdoors");
levelManager.addToList("1O 1SP2O 2SP3O 3SC4O 4SC0P21LP2LP0P73LC4LC0P72LP4LC0P71LP3LC0P72LC2LC0P24LP0P71LC1LC0P23LP0P73LC2LP0P11LC0P72LC4LP", "Every which way", "Just remember to bounce the pigs high and you will be Okay", "bright");
levelManager.addToList("1C 2O 2SP3O 3SC4O 4SC0P24LC0P34LP0P34LC0P34LP0P92SC3SP4LC0P34LP0P34LC0P34LP0P64LC0P34LP2SP3SC0P64LP0P34LC2SC3SP", "Sign 'O the times", "Watch the signs above the hatches... They can change!", "hedgerow");
levelManager.addToList("1C 2C 2SC3O 3SC4O 4SC0P24LC4LC0P82O 3C 4LC4LC0P82C 3O 4LC0P34LC0P32O 3C 0P44LC0P34LC0P32C 3O 0P4", "Watch those hatches now", "Keep an eye on the hatches, only one will be open at a time", "birdsong");
levelManager.addToList("1C 1SP2C 2SC3C 3SC4C 4SP0P21O 1LC0P43O 1C 0P33C 2O 2LP0P44O 2C 0P32C 4LC0P42O 4C 0P32C 3O 3LP0P41O 3C 0P31LC0P42O 1C 0P32C 3O 3LP0P44O 3C 0P34C 1O 2O 1LC2LP0P41C 2C 3O 4O 0P33LP4LC0P43C 4C 1O 2O 0P3", "Wait, wait, wait... ...now!", "Hatches open at the last minute, so pay attention", "sweet");
levelManager.addToList("1O 1SC2O 2SP3O 3SC4O 4SP0P21LC1LC0P63LP3LP0P61LP4LP0P42LC3LC0P61LC2LP1LC2LP0P61LC2LP1LC2LP0P6", "Double-Trouble", "Just stay calm and you will be fine", "barn");
levelManager.addToList("1O 1SC2O 2SP3C 4C 0P21LP0P42LC0P41LP1LP0P42LC2LC0P41LP0P22LC0P21LP0P22LC0P21LP0P22LC0P21LP0P22LC0P31LP0P32LC0P31LP", "It never rains, it pours...", "This is pretty intense - good luck farmer!", "rainyday");
levelManager.addToList("1O 1SC2O 2SP3O 3SC4O 4SP0P23LC0P64LP0P63LC4LP0P64LP4LP0P23LC0P53LC3LC0P24LP0P53LC0P14LP0P13LC0P33LC0P14LP0P13LC0P33LC0P14LP0P13LC0P63LC4LP3LC0P44LP3LC4LP", "Onward and upward", "There's a trick to this one, see if you can spot it", "haystack");
levelManager.addToList("1O 1SC2C 3O 3SC4O 4SP0P23LP0P33LP0P33LP0P33LP1LC0P23LP0P33LP1LC0P23LP0P33LP1LC0P23LP0P33LP1LC0P23LP1LC0P23LP1LC0P23LP1LC0P23LP1LC0P13LP1LC0P53LP0P31LC", "Why did the chicken cross the road?", "Don't get too distracted by the chickens as you need to rescue the pigs too", "leghorn");
levelManager.addToList("1C 2C 3O 3SC4O 4SC0P24LC0P54LC0P54LC0P34LC0P34LC0P34LC0P34LC0P34LC0P14LC0P14LC0P14LC0P14LC0P14LC0P14LC0P14LC0P14LC0P14LC0P34LC0P34LC0P34LC0P34LC0P54LC", "Ride the wave", "Just go with the flow, you'll get it eventually", "grazing");
levelManager.addToList("1O 1SC2O 2SP3C 3SP4C 4SC0P21LP2LC0P72LC1LP1C 2C 3O 4O 0P73LC4LP3C 4C 1O 2O 0P71LP2LC1LP1C 2C 3O 4O 0P73LC4LP3LC3C 4C 1O 2O 0P72LC1LP1C 2C 3O 4O 0P23LC4LP0P73LC4LP3C 4C 1O 2O ", "Upstairs, downstairs", "The top and bottom doors open in pairs, make sure you notice when they change", "dawn");
levelManager.addToList("1O 1SC2C 2SP3O 3SC4C 4SP0P23LC0P33LC0P33LC0P33LC0P81C 3C 2O 4O 0P14LP0P34LP0P34LP0P34LP0P82C 4C 0P11O 2O 3O 4O 3LC4LP0P43LC4LP0P43LC4LP0P43LC4LP0P81C 2C 3C 4C 0P11O 2O 3O 4O 1LC2LP0P41LC2LP0P41LC2LP0P41LC2LP", "A twist in the tail", "Be careful, there is a subtle change at the end of this sequence", "lovely");
levelManager.addToList("1C 2C 3O 3SC4O 4SP0P23LP3LP3LP0P63LP3LP3LP0P63LP3LP3LP0P14LC0P63LP3LP3LP0P14LC0P63LP3LP3LP0P14LC0P34LC0P33LP3LP3LP0P14LC0P34LC0P33LP3LP3LP0P14LC0P34LC", "Three little pigs", "There's no big, bad wolf but the chickens ain't helping", "dairy");
levelManager.addToList("1O 1SP2O 2SC3O 3SP4O 4SC0P21LC0P32LC0P33LP0P34LC0P41SC2SP3SC4SP0P12LP0P31LC0P34LC0P33LP0P41SP2SC3SP4SC0P11LC1LC0P32LP0P53LP3LP0P34LC0P41SC2SP3SC4SP0P13LC0P34LC0P33LP1SP2SC3SP4SC0P31LP0P32LP0P31LC0P32LC", "All change", "Watch for the signs changing, they all change at once", "straw");
levelManager.addToList("1O 1SP2O 2SC3O 3SP4O 4SC0P21LC0P34LP0P61LC4LP0P51LC4LP0P51LC4LP0P32SP3SC0P21LC4LP0P51LP4LC0P51LP4LC0P32SC3SP0P21LP4LC0P51LC4LP0P51LP4LC0P5", "Swing your partner", "Pigs and chickens come in pairs, keep them separate by bouncing one high", "eggs");
levelManager.addToList("1C 1SP2C 2SC3C 3SP4C 4SC0P33O 4O 4LP0P83C 4C 1O 2O 1LC0P81C 4O 2LC0P82C 4C 1O 3O 1LP0P81C 4O 3LC3LC0P24LP0P81C 3C 2O 4LC4LC0P22LC0P82C 4C 1O 2O 2LP2LP0P21LC0P82C 3O 1LP1LP0P23LP0P81C 3C 2O 4O 4LC4LC0P22LC0P82C 4C 1O 3O 3LP3LP0P21LP0P83C 2O 1LC1LC1LC0P81C 2C 3O 4O 3LC3LC3LC0P83C 4C ", "A to B", "Doors open in pairs, make sure you know where the animals are heading in advance", "dusk");
levelManager.addToList("1O 1SC2O 2SC3C 4C 0P21LC0P52LC0P51LC0P32LC0P31LC0P12LC0P11LC0P12LC0P41LC2LC1LC2LC1LC2LC1LC2LC1LC2LC1LC2LC1LC2LC1LC2LC1LC2LC1LC2LC", "Incoming!", "Don't panic, when the full assault hits just look for the pattern", "briar");
levelManager.addToList("1O 1SC2O 2SC3O 3SP4O 4SP0P23LP3LP0P21LC1LC0P23LP3LP0P21LC1LC0P23LP3LP0P21LC1LC0P23LP3LP0P21LC1LC0P51LC3LP0P21LC3LP0P21LC3LP0P21LC3LP0P21LC3LP0P2", "Crouching chicken hidden pig", "Concentrate on bouncing the chickens high at the last minute and everything will be fine", "ranch");
levelManager.addToList("1C 1SP2C 2SC3C 3SC4C 4SP0P32C 4C 1O 3O 1LC0P31C 3C 2O 4O 2LP0P32C 4C 1O 3O 3LP0P31C 3C 2O 4O 4LC0P32C 4C 1O 3O 1LC0P31C 3C 2O 4O 2LP0P32C 4C 1O 3O 0P31LC3LP0P31C 3C 2O 4O 2LP4LC0P32C 4C 1O 3O 1LC3LP0P31C 3C 2O 4O 2LP4LC0P32C 4C 1O 3O 1LC3LP0P31C 3C 2O 4O 2LP4LC", "Open and shut case?", "Watch the shutters, they open and close in diagonal pairs", "sty");
levelManager.addToList("1O 1SP2O 2SC3O 3SC4O 4SP0P21LC0P22LP0P23LP0P24LC0P20P31LC0P22LP0P23LP0P24LC0P20P31LC2LP3LP4LC0P31LC2LP3LP4LC0P31LC2LP3LP4LC0P30P22LP1LC4LC3LP0P32LP1LC4LC3LP0P32LP1LC4LC3LP0P32LP0P21LC0P24LC0P23LP", "Clockwork", "Animals jump out of the hatches in a clockwise sequence", "saddleback");
levelManager.addToList("1O 2O 2SC3O 3SP4C 0P21LC0P21LP0P21LC0P21LP0P21LC0P21LP0P20P11LC0P11LP0P11LC0P11LP0P11LC0P11LP0P11LC0P11LP0P11LP0P11LC0P11LP0P11LC0P11LC0P11LP0P11LC0P11LP0P11LC0P11LC0P11LC0P11LP0P11LP0P11LC0P11LP0P11LP0P11LP0P11LC0P11LP0P11LC0P10P21LC0P21LP0P21LC0P21LP0P2", "What goes 'PigChickenPigChicken'?", "Be ready for the chickens' last bounce - remember you can move while crouching", "natural");
levelManager.addToList("1O 1SC2O 2SP3O 3SC4O 4SP0P21LP0P32LC0P31LC0P32LP0P61LP0P22LC0P21LP0P22LC0P21LC0P21LC0P21LP0P22LC0P22LP0P22LP0P22LC0P21LP0P21LC0P22LP0P21LP0P22LC0P21LP0P21LC0P21LC0P22LP0P21LC0P22LP0P21LP0P22LC0P22LP0P21LC0P21LP0P22LP0P21LC0P22LC0P21LC0P2", "All sorts", "Match the animals to the signs on the last bounce", "fresh");
levelManager.addToList("1O 1SC2O 2SP3C 3SC4C 4SP0P21LP0P32LC0P31LP0P23O 3LP3C 2LC0P31LP4O 0P34C 2LC0P24O 4LC4C 1LP0P32LC3O 0P33C 1LP0P23O 3LPcC 2LC0P31LP4O 0P34C 2LC0P24O 4LC4C 1LP0P32LC3O 0P33C 1LP0P23O 3LP3C 2LC0P31LP4O 0P34C 2LC0P24O 4LC4C 1LP0P32LC3O 0P33C 1LP0P23O 3LP3C 2LC0P31LP4O 0P34C 2LC0P24O 4LC4C 1LP0P32LC3O 0P33C ", "Smuggler's run", "Watch for animals sneaking out of the downstairs hatches", "lush");
levelManager.addToList("1C 2C 3C 4C 0P21O 2O 2SP3O 3SC1LP0P31LC0P83C 1SC4O 4SP2LC0P32LP0P81C 3O 2SC3SP4LC4LP0P54LC4LP0P12SP3SC0P73C 1O 1SP4SC2LC2LP2LC0P82LP2LC2LP0P11SC4SP0P74C 3O 2SP3SC1LP1LP0P21LC0P61LC1LC0P21LP0P61LP1LC2SC3SP0P21LP0P61LC1LP0P21LC", "You take the high road...", "The flow of animals changes direction and watch out for sneaky sign changes too", "harvest");
levelManager.addToList("1C 1SP4O 4SP2C 2SC3C 3SC0P22O 3C 4LC0P22C 3O 0P32O 3C 4LC0P22C 3O 0P32O 3C 0P32C 3O 4LC0P22O 3C 0P32C 3O 4LC0P22O 3C 0P32C 3O 4LC0P22O 3C 4LC0P22C 3O 4LC0P22O 3C 4LC0P22C 3O 4LC0P22O 3C 4LC0P22C 3O 4LC0P22O 3C 4LC0P22C 3O 0P32O 3C 0P32C 3O 0P21O 4C 3LP0P21C 4O 0P31O 4C 3LP0P21C 4O 0P31O 4C 0P31C 4O 3LP0P21O 4C 0P31C 4O 3LP0P21O 4C 0P31C 4O 3LP0P21O 4C 3LP0P21C 4O 3LP0P21O 4C 3LP0P21C 4O 3LP0P21O 4C 3LP0P21C 4O 3LP0P21O 4C 3LP0P21C 4O 0P31O 4C ", "I got rhythm", "Use the rhythm of the swinging doors to judge the last bounce", "sunrise");
levelManager.addToList("1O 1SC2O 2SC3O 3SP4O 4SP0P23LP0P34LP0P33LC0P34LC0P33LP0P24LP0P23LP0P24LP0P23LC0P24LC0P23LP0P24LC0P23LC0P24LC0P33LP0P14LC0P13LC0P14LC0P13LP0P14LC0P13LP0P14LP0P13LC0P14LP0P13LP0P14LC0P13LC0P14LP0P1", "Same old, same old", "Careful, looks familiar but watch for timing changes", "rooster");
levelManager.addToList("1C 1SP2C 2SC3O 4O 0P24LC3LP0P13C 4C 1O 2O 0P71C 2C 3O 4O 0P14LC3LP0P13C 4C 1O 2O 0P71C 2C 3O 4O 0P14LC4LC0P23LP1O 2O 3C 4C 0P71C 2C 3O 4O 0P13LP3LP0P24LC1O 2O 3C 4C 0P71C 2C 3O 4O 0P14LC4LC0P23LP1O 2O 3C 4C 0P71C 2C 3O 4O 0P13LP3LP0P24LC1O 2O 3C 4C 0P71C 2C 3O 4O 0P13LP4LC0P23LP1O 2O 3C 4C 0P71C 2C 3O 4O 0P14LC3LP0P24LC1O 2O 3C 4C 0P71C 2C 3O 4O 0P13LP4LC0P23LP1O 2O 3C 4C 0P71C 2C 3O 4O 0P14LC3LP0P24LC1O 2O 3C 4C ", "Going up?", "After the animals have jumped out of the hatches the upstairs doors will open", "oinker");
levelManager.addToList("1O 1SC2O 2SP3O 3SC4O 4SP0P22LP0P21LC0P22LP0P21LC0P32LP2LP1LC1LC0P32LP2LP1LC1LC0P32LP2LP1LC1LC0P32LP2LP1LC1LC0P51LC2LP1LC2LP0P41LC2LP1LC2LP0P41LC2LP1LC2LP0P41LC2LP1LC2LP0P4", "Doubles anyone?", "No need to bounce anything high but watch for the sequence change", "bucket");
levelManager.addToList("1O 1SP2C 2SP3O 3SC4C 4SC0P21LP3LC0P31C 2O 3C 4O 0P22LP4LC0P31O 2C 3O 4C 0P21LP3LC0P31C 2O 3C 4O 0P22LP4LC0P31O 2C 3O 4C 0P21LP0P23LC3LC0P11C 2O 3C 4O 0P54LC0P22LP2LP0P11O 2C 3O 4C 0P71SC2SC3SP4SP1LC3LP0P31C 2O 3C 4O 0P22LC4LP0P31O 2C 3O 4C 0P21LC0P23LP3LP0P11C 2O 3C 4O 0P54LP0P22LC2LC0P11O 2C 3O 4C ", "Do-si-do!", "Animals come from opposite corners and then the hatches change", "hayloft");
levelManager.addToList("1O 1SP2O 2SC3O 3SP4O 4SC0P24LC0P31LP0P34LC0P34LC0P21LP0P31LP0P24LC4LC0P21LP0P31LP0P34LP0P31LC0P21LP4LC0P21LC0P21LP4LC0P21LP0P21LC0P24LP4LP0P21LC0P21LC0P21LP4LC0P51LP4LC1LP0P51LC4LP1LC", "Keep 'em coming", "No tricks here, just use your skills - no problem!", "barnyard");
levelManager.addToList("1O 1SC2O 2SP3O 3SC4O 4SP0P21LC0P32LP0P32LC0P33LP0P24LC0P51LP0P22LC0P24LP0P32LC0P22LC0P23LC0P34LC0P31LP0P24LP0P33LP0P22LC0P23LC0P34LC0P32LP0P31LC0P22LP0P24LP0P22LC0P21LP0P32LC2LC0P24LC0P33LC0P31LP1LP0P23LC0P24LC0P23LP3LC0P24LP0P31LC0P22LP3LC0P24LP", "Free for all", "Animals will come from every hatch and in both directions", "tractor");
levelManager.addToList("1O 1SC2O 2SC3O 3SP4O 4SP0P21LC2LC1SP2SP3SC4SC0P52LP1LP1SC2SC3SP4SP0P71LC2LC4LP1SP2SP3SC4SC0P42LP1LP3LC1SC2SC3SP4SP0P41LC2LC4LP1SP2SP3SC4SC0P42LP1LP3LC1SC2SC3SP4SP0P41LC2LC4LP1SP2SP3SC4SC0P54LC3LC1LP1SC2SC3SP4SP0P43LP4LP1LC1SP2SP3SC4SC0P44LC3LC1LP1SC2SC3SP4SP0P43LP4LP1LC1SP2SP3SC4SC0P51LC2LP1SP2SP3SC4SC", "Free ranger", "Save the animals first, worry about scoring points later", "rays");
levelManager.addToList("1O 1SP2O 2SC3O 3SC4C 4SP0P21LC0P43C 0P31LC3O 0P42C 0P31LC2O 1LC0P32C 0P31LC2O 0P21LC1LC3C 0P51LC3O 1LC0P21LC2C 0P51LC2O 1LC1LC0P23C 4O 0P82LP0P41C 0P32LP1O 0P44C 0P32LP4O 2LP0P34C 0P32LP4O 0P22LP2LP1C 0P52LP1O 2LP0P22LP4C 0P52LP4O 2LP2LP0P21C ", "One door closes...", "Just before the last bounce one of the doors will close", "corn");
levelManager.addToList("1O 1SC2O 2SC3O 3SP4O 4SP0P21LC0P64LP0P61LC0P34LP0P31LC0P34LP0P21LC0P24LP0P21LC0P24LP0P21LC1LC0P24LP0P21LC1LC0P24LP0P21LC1LC0P24LP0P21LC0P24LP4LP0P21LC0P24LP4LP0P21LC0P24LP4LP0P61LC4LP1LC0P51LC4LP1LC0P54LP1LC4LP0P54LP1LC4LP0P51LC4LP1LC0P51LC4LP1LC0P54LP4LP1LC", "Don't call me chicken", "Watch for the sequence getting faster and bounce the chickens high", "fertilizer");
levelManager.addToList("1C 2O 2SC3O 3SP4O 0P24LP4LP0P54LC4LC0P12SP3SC0P54LC4LP0P54LP4LC0P54LC4LP0P12SC3SP0P54LP4LC0P12SP3SC0P54LC4LP0P54LP0P24LC4LC0P54LC0P24LP4LP2SC3SP0P54LP4LP0P24LC2SC3SP0P54LC4LC0P24LP0P54LC0P24LP4LC2SP3SC0P54LP0P24LC4LP0P54LC4LP4LP0P54LP4LP4LC0P12SC3SP0P54LC4LC4LP0P54LC4LP4LC0P12SP3SC0P54LP4LC4LP0P12SC3SP", "The signs they are a-changin'", "Watch the signs, they change every now and then", "sow");
levelManager.addToList("1O 1SP2O 2SC3O 3SP4O 4SC0P21LC0P22LP0P24LP0P23LC0P41LP0P21LP0P22LC0P23LP0P23LC0P24LP0P71SC2SP3SC4SP1LC0P12LP0P14LC0P11LP0P23LC0P61LC2LC0P23LP0P14LC0P12LP0P14LP0P71SP2SC3SP4SC4LP0P12LC0P11LC0P13LP0P61LC1LC0P22LP0P53LC0P24LP4LP", "Animal magic", "Animals bounce in all directions and the signs can change", "oats");
levelManager.addToList("1C 1SC2C 2SC3O 3SP4O 4SP0P24LP0P23LP3LP0P53LP0P24LP4LP0P54LP0P23LP4LP0P53LP0P24LP3LP0P71O 2O 3C 4C 1LC0P12LC0P11LC0P12LC0P11LC0P11LC0P11LC0P12LC0P11LC0P12LC0P22LC0P11LC0P12LC0P12LC0P11LC0P72SP3O 3SC1LP0P21LC0P21LC0P21LP0P21LC0P21LP0P21LP0P21LC0P31LC0P11LP0P11LC0P11LP0P11LC0P11LC0P11LP0P72C 4O 4SC3LC3LC0P44C 0P23LC3LC3LC0P34O 1C 0P23LC3LC0P63LC3LC3LC0P31O 4C 0P71O 1SP2O 2SC3O 3SP4O 4SC1LP4LC0P22LC3LP0P71SC4SP1LP4LC0P22LC3LP0P72SP3SC1LP4LC0P22LC3LP0P81C 2C 4SP3SC4LC4LC4LC0P53LP3LP3LP0P81O 2O ", "A farmer's life for me, Yee Haw!", "If you can sort this lot out then maybe you should try farming for real", "barley");
_quality = "MEDIUM";
fscommand ("showmenu", "false");
fscommand ("trapallkeys", "true");
masterSound = new Sound();
masterSound.setVolume(100);
levelManager.go();
gotoAndStop ("Introduction");
_root.GameLoop = function () {
var _local1 = _root;
if (_local1.levelManager.levelRunning == false) {
} else {
if (Key.isDown(37)) {
_local1.player.moveLeft();
}
if (Key.isDown(39)) {
_local1.player.moveRight();
}
if (Key.isDown(32)) {
_local1.player.coil();
} else {
_local1.player.extend();
}
var _local3 = _local1.bouncerManager.updateAll();
var _local2 = _local1.levelManager.update();
if (!_local1.player.update()) {
bouncerManager.reset();
gotoAndPlay ("GameOver");
}
if ((!_local3) && (!_local2)) {
gotoAndPlay ("LevelComplete");
}
}
};
_root.AdvanceLevel = function () {
if (_root.levelManager.next()) {
gotoAndPlay ("GetReady");
} else {
gotoAndPlay ("GameComplete");
}
};
_root.StartNewGame = function (levelPassword) {
var _local1 = _root;
_local1.levelManager.reset();
_local1.bouncerManager.reset();
_local1.player.reset();
levelManager.jumpToLevel(levelPassword);
};
_root.ShowLevelHint = function () {
var _local1 = _root;
_local1.LevelName.text = levelManager.getName();
_local1.LevelHint.text = levelManager.getHint();
_local1.levelPassword.text = ("\"" + levelManager.getPassword()) + "\"";
};
_root.Pause = function () {
levelManager.pause();
};
_root.Go = function () {
levelManager.go();
};
_root.PauseToggle = function () {
levelManager.pauseToggle();
};
_root.Mute = function () {
masterSound.setVolume(0);
};
_root.UnMute = function () {
masterSound.setVolume(100);
};
_root.MuteToggle = function () {
if (masterSound.getVolume() == 0) {
masterSound.setVolume(100);
} else {
masterSound.setVolume(0);
}
};
Frame 7
play();
Frame 422
stop();
Frame 434
if (MenuState == 1) {
play();
} else {
gotoAndPlay ("password");
}
Frame 447
stop();
Frame 459
if (MenuState == 1) {
gotoAndPlay ("Main Fade In");
} else {
play();
}
Frame 512
stop();
PlayerInstance.onEnterFrame = function () {
if (Key.isDown(37)) {
play();
}
};
Frame 539
stop();
PlayerInstance.onEnterFrame = function () {
if (Key.isDown(39)) {
play();
}
};
Frame 564
stop();
PlayerInstance.onEnterFrame = function () {
if (Key.isDown(32)) {
play();
}
};
Frame 565
PlayerInstance.onEnterFrame = function () {
this.gotoAndStop(2);
};
Frame 591
stop();
Frame 604
gotoAndPlay ("Main Fade In");
Frame 617
stop();
Selection.setFocus("PasswordEntry");
Frame 630
gotoAndPlay ("Password Main Fade In");
Frame 643
gotoAndPlay ("Main");
Frame 657
gotoAndPlay ("Main Fade In");
Frame 671
gotoAndPlay ("Main Fade In");
Frame 685
gotoAndPlay ("Main Fade In");
Frame 696
gotoAndPlay ("GameStart");
Frame 707
gotoAndPlay ("GameStart");
Frame 720
gotoAndPlay ("Main");
Frame 721
_root.onEnterFrame = function () {
_root.ShowLevelHint();
};
Frame 733
_root.ShowLevelHint();
stop();
Frame 745
if (MenuState == 1) {
gotoAndPlay ("Game to Menu Fade");
} else {
play();
}
Frame 746
stop();
_root.onEnterFrame = function () {
_root.GameLoop();
};
Frame 757
_root.onEnterFrame = function () {
_root.GameLoop();
};
Frame 762
stop();
Frame 767
_root.PauseToggle();
_root.gotoAndPlay("GameRunning");
Frame 768
_root.onEnterFrame = function () {
_root.GameLoop();
};
Frame 773
stop();
Frame 778
if (MenuState == 1) {
_root.bouncerManager.reset();
_root.PauseToggle();
gotoAndPlay ("Game to Menu Fade");
} else {
gotoAndPlay ("Pause");
}
Frame 779
_root.onEnterFrame = null;
Frame 828
_root.AdvanceLevel();
Frame 829
_root.onEnterFrame = function () {
_root.LevelPassword.text = ("\"" + levelManager.getPassword()) + "\"";
};
Frame 841
stop();
_root.LevelPassword.text = ("\"" + levelManager.getPassword()) + "\"";
Frame 865
_root.onEnterFrame = null;
Frame 874
gotoAndPlay ("Main");
Frame 875
_root.onEnterFrame = null;
_root.ShowLevelHint();
Frame 885
gotoAndPlay ("MidGetReady");
Frame 886
_root.onEnterFrame = null;
Frame 1113
stop();
Frame 1123
gotoAndPlay ("Menu Fade Up");
Symbol 7 MovieClip Frame 1
stop();
Symbol 7 MovieClip Frame 2
stop();
Symbol 10 MovieClip Frame 1
stop();
Symbol 10 MovieClip Frame 2
stop();
Symbol 13 MovieClip Frame 1
stop();
Symbol 13 MovieClip Frame 2
stop();
Symbol 16 MovieClip Frame 1
stop();
Symbol 16 MovieClip Frame 2
stop();
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 2
stop();
Symbol 22 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 2
stop();
Symbol 25 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 2
stop();
Symbol 28 MovieClip Frame 1
stop();
Symbol 28 MovieClip Frame 2
stop();
Symbol 55 MovieClip Frame 1
Symbol 55 MovieClip Frame 20
gotoAndPlay ("Idle");
Symbol 55 MovieClip Frame 42
gotoAndPlay ("Idle");
Symbol 55 MovieClip Frame 43
Symbol 55 MovieClip Frame 58
_visible = false;
Symbol 92 MovieClip Frame 56
gotoAndPlay ("Idle");
Symbol 92 MovieClip Frame 80
gotoAndPlay ("Idle");
Symbol 92 MovieClip Frame 97
_visible = false;
Symbol 298 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 2
stop();
Symbol 407 MovieClip Frame 1
twinkle.onEnterFrame = function () {
with (twinkle) {
_rotation = _rotation + 5;
}
};
Symbol 409 Button
on (release) {
gotoAndPlay ("Intro to Main Fade");
}
Symbol 414 Button
on (release) {
_root._quality = "LOW";
gotoAndStop (2);
}
Symbol 415 Button
on (release) {
_root._quality = "MEDIUM";
gotoAndStop (1);
}
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 2
stop();
Symbol 417 Button
on (release, keyPress "m") {
_root.MuteToggle();
gotoAndStop (2);
}
Symbol 418 Button
on (release, keyPress "m") {
_root.MuteToggle();
gotoAndStop (1);
}
Symbol 419 MovieClip Frame 1
stop();
Symbol 419 MovieClip Frame 2
stop();
Symbol 432 Button
on (release) {
MenuState = 1;
play();
}
Symbol 433 Button
on (release) {
MenuState = 2;
play();
}
Symbol 434 Button
on (release) {
_root.StartNewGame("");
gotoAndPlay ("Play");
}
Symbol 439 Button
on (release) {
play();
MenuState = 1;
}
Symbol 440 Button
on (release) {
play();
MenuState = 2;
}
Symbol 445 Button
on (release) {
gotoAndPlay ("Instruction Fade 1");
}
Symbol 448 Button
on (release) {
gotoAndPlay ("Instruction Fade 2");
}
Symbol 451 Button
on (release) {
gotoAndPlay ("Instruction Fade 3");
}
Symbol 454 Button
on (release) {
play();
}
Symbol 459 Button
on (release) {
MenuState = 2;
gotoAndPlay (417);
}
Symbol 460 Button
on (release) {
_root.StartNewGame(PasswordEntry.text);
gotoAndPlay ("PlayPassword");
}
on (keyPress "<Enter>") {
_root.StartNewGame(PasswordEntry.text);
gotoAndPlay ("PlayPassword");
}
Symbol 470 Button
on (release) {
play();
MenuState = 1;
}
Symbol 472 Button
on (release, keyPress "q") {
gotoAndPlay ("Quit");
_root.PauseToggle();
}
Symbol 473 Button
on (release, keyPress "p") {
_root.PauseToggle();
_root.gotoAndPlay("Pause");
}
Symbol 474 MovieClip Frame 1
stop();
Symbol 483 Button
on (release) {
gotoAndPlay ("Quit");
}
Symbol 484 Button
on (release, keyPress "p") {
_root.play();
}
Symbol 485 MovieClip Frame 1
stop();
Symbol 488 Button
on (release, keyPress "y") {
play();
MenuState = 1;
}
Symbol 489 Button
on (release, keyPress "n") {
play();
MenuState = 2;
}