Combined Code
frame 1 {
stopAllSounds();
}
// unknown tag 88 length 73
button 7 {
on (press) {
gotoAndPlay(15);
}
}
movieClip 12 {
}
movieClip 16 {
}
movieClip 18 {
}
button 22 {
on (press) {
gotoAndPlay(1);
}
}
movieClip 28 {
}
movieClip 39 {
frame 52 {
gotoAndPlay(20);
}
}
frame 13 {
stop();
}
movieClip 71 {
}
movieClip 105 {
}
button 120 {
on (press) {
gotoAndPlay(98);
}
}
frame 97 {
gotoAndPlay(45);
}
button 140 {
on (press) {
gotoAndPlay(379);
}
}
frame 208 {
gotoAndPlay(154);
}
movieClip 147 {
}
frame 284 {
gotoAndPlay(213);
}
button 162 {
on (press) {
gotoAndPlay(341);
}
}
frame 340 {
gotoAndPlay(288);
}
button 172 {
on (press) {
gotoAndPlay(392);
}
}
frame 377 {
stop();
}
movieClip 176 {
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 176 {
onClipEvent (enterFrame) {
_y = _y + (_root.jugador._y - _y) / 4;
_x = _x + (_root.jugador._x - _x) / 4;
}
}
movieClip 179 {
}
button 181 {
on (press) {
gotoAndPlay(285);
}
}
button 183 {
on (press) {
gotoAndPlay(209);
}
}
button 185 {
on (press) {
gotoAndPlay(571);
}
}
button 187 {
on (press) {
gotoAndPlay(378);
}
}
movieClip 190 {
}
movieClip 194 {
}
movieClip 195 {
}
movieClip 196 {
}
instance jugador of movieClip 196 {
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 391 {
stop();
}
movieClip 235 {
}
button 244 {
on (press) {
gotoAndPlay(571);
}
}
button 246 {
on (press) {
gotoAndPlay(591);
}
}
button 248 {
on (press) {
gotoAndPlay(611);
}
}
button 250 {
on (press) {
gotoAndPlay(653);
}
}
button 252 {
on (press) {
gotoAndPlay(685);
}
}
button 254 {
on (press) {
gotoAndPlay(727);
}
}
button 256 {
on (press) {
gotoAndPlay(1);
}
}
frame 453 {
}
frame 514 {
gotoAndPlay(392);
}
frame 570 {
}
button 259 {
on (press) {
gotoAndPlay(1);
}
}
frame 586 {
}
frame 590 {
gotoAndPlay(392);
}
frame 606 {
}
frame 610 {
gotoAndPlay(392);
}
frame 652 {
gotoAndPlay(392);
}
frame 684 {
gotoAndPlay(392);
}
frame 726 {
gotoAndPlay(392);
}
frame 742 {
}
frame 759 {
gotoAndPlay(392);
}