Frame 1
loadedBytes = getBytesLoaded();
totalBytes = getBytesTotal();
Frame 2
if (loadedBytes == totalBytes) {
play();
} else {
gotoAndPlay (1);
}
Frame 184
Frame 214
stop();
Instance of Symbol 36 MovieClip in Frame 214
onClipEvent (enterFrame) {
_x = (_x + ((_root.llama._x - _x) / 4));
_y = ((_root.llama._y - _y) / 4);
}
Instance of Symbol 64 MovieClip "llama" in Frame 214
onClipEvent (load) {
var sp = 10;
var ground = _root.ground;
var fag = 0;
var llamas = 4;
var maximumjumpingcapacityisthismuch = -40;
var onground = false;
var scale = _xscale;
var runspeed = 0;
}
onClipEvent (enterFrame) {
fag = fag + llamas;
_y = (_y + fag);
while (ground.hitTest(_x, _y, true)) {
_y = (_y - llamas);
fag = 0;
}
if (_root.spikes.hitTest(_root.llama)) {
_root.gotoAndStop(215);
}
if (_root.deathground.hitTest(_root.llama)) {
_root.gotoAndStop(215);
}
if (ground.hitTest(_x, _y + 5, true)) {
onground = true;
} else {
onground = false;
}
if (Key.isDown(39)) {
_x = (_x + sp);
this.gotoAndStop(2);
_xscale = scale;
} else if (Key.isDown(37)) {
_x = (_x - sp);
this.gotoAndStop(2);
_xscale = (-scale);
} else if (Key.isDown(38) && (onground)) {
fag = maximumjumpingcapacityisthismuch;
} else {
gotoAndStop (1);
}
if (this.hitTest(_root.d)) {
_root.gotoAndStop(215);
}
}
Frame 215
stopAllSounds();
Frame 216
gotoAndStop (215);
Frame 827
Symbol 36 MovieClip Frame 1
function camControl() {
rp.x = _x;
rp.y = _y;
var _local5 = camH * (_yscale * 0.01);
var _local6 = camW * (_xscale * 0.01);
var _local3 = sH / _local5;
var _local4 = sW / _local6;
_x2 = (_local6 / 2) * _local4;
_y2 = (_local5 / 2) * _local3;
_xscale2 = _local4 * 100;
_yscale2 = _local3 * 100;
_rotation2 = -_rotation;
_parent.filters = this.filters;
_parent.transform.colorTransform = this.transform.colorTransform;
}
function reset() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
_parent._rotation = 0;
_parent._visible = true;
}
function set_x2(value) {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._x = _parent._x + (value - _local2.x);
}
function get_x2() {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
return(_local2.x);
}
function set_y2(value) {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._y = _parent._y + (value - _local2.y);
}
function get_y2() {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
return(_local2.y);
}
function get_xscale2() {
return(_parent._xscale);
}
function set_xscale2(value) {
setProperty2("_xscale", value);
}
function get_yscale2() {
return(_parent._yscale);
}
function set_yscale2(value) {
setProperty2("_yscale", value);
}
function get_rotation2() {
return(parent.rotation);
}
function set_rotation2(value) {
setProperty2("_rotation", value);
}
function setProperty2(prop, n) {
var _local3 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local3);
_parent[prop] = n;
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._x = _parent._x - (_local2.x - _local3.x);
_parent._y = _parent._y - (_local2.y - _local3.y);
}
_visible = false;
addProperty("_x2", get_x2, set_x2);
addProperty("_y2", get_y2, set_y2);
addProperty("_xscale2", get_xscale2, set_xscale2);
addProperty("_yscale2", get_yscale2, set_yscale2);
addProperty("_rotation2", get_rotation2, set_rotation2);
var oldScaleMode = stage.scaleMode;
stage.scaleMode = "exactFit";
var sW = Stage.width;
var sH = Stage.height;
stage.scaleMode = oldScaleMode;
var bounds_obj = this.getBounds(this);
var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin);
var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin);
var rp = {x:this._x, y:this._y};
onEnterFrame = function () {
camControl();
};
this.onUnload = reset;
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 2
stop();
Symbol 72 Button
on (press) {
gotoAndStop (214);
}