Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onClipEvent (load) {
- hiz = 5;
- }
- onClipEvent (enterFrame) {
- if (Key.isDown(Key.LEFT)) {
- this._x -= hiz;
- this.gotoAndStop(2);
- }
- if (Key.isDown(Key.RIGHT)) {
- this._x += hiz;
- this.gotoAndStop(3);
- }
- }
- onClipEvent (keyUp) {
- this.gotoAndStop(1);
- }
Advertisement
Add Comment
Please, Sign In to add comment