Combined Code
frame 1 {
snorlax.onEnterFrame = function () {
if (Key.isDown(38)) {
this._y -= 4;
this.gotoAndStop('up');
} else {
if (Key.isDown(40)) {
this._y += 4;
this.gotoAndStop('down');
} else {
if (Key.isDown(39)) {
this._x += 4;
this.gotoAndStop('right');
} else {
if (Key.isDown(37)) {
this._x -= 4;
this.gotoAndStop('left');
}
}
}
}
if (this._x > 303) {
this._x = -14;
} else {
if (this._x < -15) {
this._x = 299;
}
}
if (this._y > 303) {
this._y = -28;
} else {
if (this._y < -30) {
this._y = 299;
}
}
};
}
movieClip 9 {
}
movieClip 14 {
}
movieClip 18 {
}
movieClip 22 {
}
movieClip 23 {
frame 1 {
stop();
}
}