Combined Code
frame 1 {
stopAllSounds();
}
// unknown tag 88 length 150
button 7 {
on (press) {
gotoAndPlay(14);
}
}
movieClip 12 {
}
movieClip 16 {
}
movieClip 18 {
}
button 22 {
on (press) {
gotoAndPlay(1);
}
}
movieClip 28 {
}
movieClip 39 {
frame 52 {
gotoAndPlay(20);
}
}
frame 13 {
stop();
}
movieClip 49 {
}
movieClip 56 {
}
movieClip 61 {
}
movieClip 64 {
}
movieClip 68 {
}
movieClip 73 {
}
movieClip 85 {
}
movieClip 101 {
}
movieClip 119 {
}
movieClip 132 {
}
button 135 {
on (press) {
gotoAndPlay(93);
}
}
frame 92 {
gotoAndPlay(51);
}
movieClip 156 {
}
movieClip 165 {
}
button 167 {
on (press) {
gotoAndPlay(182);
}
}
frame 181 {
gotoAndPlay(132);
}
movieClip 171 {
frame 1 {
function camControl() {
rp.x = _x;
rp.y = _y;
var v5 = camH * (_yscale * 0.01);
var v6 = camW * (_xscale * 0.01);
var v3 = sH / v5;
var v4 = sW / v6;
_x2 = (v6 / 2) * v4;
_y2 = (v5 / 2) * v3;
_xscale2 = v4 * 100;
_yscale2 = v3 * 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 v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x += value - v2.x;
}
function get_x2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.x;
}
function set_y2(value) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._y += value - v2.y;
}
function get_y2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.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 v3 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v3);
_parent[prop] = n;
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x -= v2.x - v3.x;
_parent._y -= v2.y - v3.y;
}
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;
}
}
instance of movieClip 171 {
onClipEvent (enterFrame) {
_y = _y + (_root.jugador._y - _y) / 4;
_x = _x + (_root.jugador._x - _x) / 4;
}
}
movieClip 174 {
}
button 176 {
on (press) {
gotoAndPlay(200);
}
}
button 177 {
on (press) {
gotoAndPlay(421);
}
}
button 179 {
on (press) {
gotoAndPlay(329);
}
}
button 181 {
on (press) {
gotoAndPlay(267);
}
}
movieClip 183 {
}
movieClip 184 {
}
movieClip 185 {
}
movieClip 186 {
}
instance jugador of movieClip 186 {
onClipEvent (load) {
var grav = 2;
var speed = 16;
var setspeed = speed;
var scale = _xscale;
var ex = 5;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
action = true;
++grav;
_y = _y + grav;
while (_root.nivel.hitTest(_x, _y, true)) {
_y = _y - 1;
grav = 0;
}
if (Key.isDown(68)) {
_x = _x + speed;
_xscale = scale;
if (_root.nivel.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else {
if (Key.isDown(65)) {
_x = _x - speed;
_xscale = -scale;
if (_root.nivel.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else {
if (_root.nivel.hitTest(_x, _y + 3, true) && !Key.isDown(79) && !Key.isDown(73)) {
this.gotoAndStop(3);
}
}
}
if (Key.isDown(79) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(73)) {
this.gotoAndStop(5);
}
if (Key.isDown(73) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) {
this.gotoAndStop(4);
}
if (Key.isDown(87) && _root.nivel.hitTest(_x, _y + 3, true)) {
grav = -jumpHeight;
_y = _y - 4;
this.gotoAndStop(2);
}
if (_root.nivel.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.nivel.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.nivel.hitTest(_x + _width / 2 + ex, _y - _height, true)) {
_x = _x - speed;
}
if (_root.nivel.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.nivel.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.nivel.hitTest(_x - _width / 2 - ex, _y - _height, true)) {
_x = _x + speed;
}
if (_root.nivel.hitTest(_x, _y - _height - 15, true)) {
grav = 1;
}
}
}
frame 199 {
stop();
}
button 207 {
on (press) {
gotoAndPlay(191);
}
}
frame 266 {
gotoAndPlay(205);
}
button 219 {
on (press) {
gotoAndPlay(191);
}
}
frame 326 {
gotoAndPlay(272);
}
button 237 {
on (press) {
gotoAndPlay(191);
}
}
frame 378 {
}
frame 420 {
gotoAndPlay(333);
}
movieClip 248 {
}
button 249 {
on (press) {
gotoAndPlay(590);
}
}
frame 589 {
gotoAndPlay(425);
}
movieClip 264 {
}
movieClip 272 {
}
movieClip 318 {
}
movieClip 357 {
}
button 361 {
on (press) {
gotoAndPlay(1);
}
}
frame 835 {
gotoAndPlay(103);
}