Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

How to make a movieclip move using arrow keys on flash

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,269
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 15, 2009

hi, this is Doomshark/Kalzar coming at you with another tutorial. Today, you'll learn how to move a movieclip with the arrow keys on flash (If you didn't already read the title.)
As always, rate, subscribe, enjoy and comment!
If you're too lazy to copy it from the video, here's the actionscript:
onClipEvent(enterFrame) {
if(Key.isDown(Key.LEFT)) {
this._x -=5;
}
if(Key.isDown(Key.RIGHT)) {
this._x +=5;
}
if(Key.isDown(Key.UP)) {
this._y -=5;
}
if(Key.isDown(Key.DOWN)) {
this._y +=5;
}
}

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (doomshark)

  • kwl =)

    u have a xbox 360?

  • who doesn't?

  • xbox live? if u do what's ure gamertag? mines

    RankWinner ftw

  • Darkness1328 ftw Castle Crashers iz da skillinz

see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • is this in AS3 or AS2?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more