Frame 1
stop();
gameSpeed = "2";
gameTimer = 0;
gameFrame = 1;
Frame 2
onEnterFrame = function () {
if (Key.isDown(32)) {
stopAllSounds();
gotoAndPlay (3);
}
};
stop();
Frame 3
gameSpeed = 5;
gameTimer = 0;
gameFrame = 1;
var RBOUND = 152;
var INCR = 8;
onEnterFrame = function () {
if (Key.isDown(37)) {
if (square_mc._x > (LBOUND + INCR)) {
square_mc._x = square_mc._x - INCR;
mc_move.play();
} else {
square_mc._x = LBOUND;
if (square._mc._x != LBOUND) {
move.play();
}
}
}
if (Key.isDown(38)) {
square_mc.play();
}
if (Key.isDown(39)) {
if (square_mc._x < (RBOUND - INCR)) {
square_mc._x = square_mc._x + INCR;
mc_move.play();
} else {
square_mc._x = RBOUND;
if (square._mc_x != RBOUND) {
move.play();
}
}
}
if (Key.isDown(40)) {
gameSpeed = 1;
} else {
gameSpeed = 5;
}
};
stop();
Instance of Symbol 14 MovieClip "square_mc" in Frame 3
onClipEvent (enterFrame) {
if (_root.gameTimer >= _root.gameSpeed) {
if (this._y <= 200) {
this._y = this._y + 8;
_root.gameTimer = 0;
} else {
this._y = 0;
}
} else {
_root.gameTimer++;
}
if (this._currentframe >= 3) {
_root.LBOUND = 88;
} else {
if (this._x == 88) {
this._x = 96;
}
_root.LBOUND = 96;
}
}
Symbol 4 Button
on (release) {
gotoAndStop (2);
}
Symbol 14 MovieClip Frame 2
stop();
Symbol 14 MovieClip Frame 4
stop();
Symbol 15 MovieClip Frame 2
stop();
Symbol 20 Button
on (release) {
stopAllSounds();
gotoAndStop (1);
}