Untitled


SUBMITTED BY: Guest

DATE: Aug. 4, 2013, 3:11 p.m.

FORMAT: Text only

SIZE: 366 Bytes

HITS: 1239

  1. onClipEvent (enterFrame) {
  2. if (Key.isDown(Key.RIGHT)) {
  3. _x += 5;
  4. }
  5. }
  6. onClipEvent (enterFrame) {
  7. if (Key.isDown(Key.LEFT)) {
  8. _x -= 5;
  9. }
  10. }
  11. onClipEvent (enterFrame) {
  12. if (Key.isDown(Key.UP)) {
  13. _y -= 5;
  14. }
  15. if (this._x>=550) {
  16. this._x = 545;
  17. }
  18. if (this._x<=10) {
  19. this._x = 15;
  20. }
  21. }

comments powered by Disqus