Combined Code
frame 1 {
this.onEnterFrame = function () {
this.gotoAndStop(1);
if (Key.isDown(13)) {
this.gotoAndStop(2);
}
};
}
frame 2 {
this.onEnterFrame = function () {
this.gotoAndStop(2);
if (Key.isDown(32)) {
this.gotoAndStop(3);
}
};
}
frame 3 {
function wait() {
play();
trace('Timeline was delayed ' + timelineDelay + ' seconds, now continuing');
}
stop();
var timelineDelay = 26;
setTimeout(wait, timelineDelay * 1000);
}
frame 3 {
this.onEnterFrame = function () {
if (Key.isDown(39)) {
mario._x += 1;
mario.gotoAndStop(2);
} else {
if (Key.isDown(37)) {
mario._x -= 1;
mario.gotoAndStop(2);
} else {
if (Key.isDown(38)) {
mario._y -= 1;
mario.gotoAndStop(2);
} else {
if (Key.isDown(40)) {
mario._y += 1;
mario.gotoAndStop(2);
} else {
mario.gotoAndStop(1);
}
}
}
}
if (coin._x < mario._x + 50 && coin._x > mario._x - 50 && coin._y > mario._y - 80 && coin._y < mario._y + 80) {
coin._y = Math.random() * 360;
coin._x = Math.random() * 500;
}
};
}
movieClip 9 {
}
movieClip 13 {
}
movieClip 15 {
}
// unknown tag 88 length 216
frame 288 {
stop();
}
frame 292 {
gotoAndStop(288);
}