Flash Tutorial - Controlling a Character/movieclip with Arro

Tags:
Actionscript, Arrows, Code, Controoling, CS3, Design, Flash, Games, Keys, Moving, Pro, Proffesional, Tutorials

Add video views to your Facebook Timeline:

Here is the actionscript/code for the movieclip to control it, just copy and paste it:

var speed = 5;

this.onEnterFrame = function() {
if (Key.isDown(Key.UP)) {
square._y -= speed;
}
if (Key.isDown(Key.DOWN)) {
square._y += speed;
}
if (Key.isDown(Key.LEFT)) {
square._x -= speed;
}
if (Key.isDown(Key.RIGHT)) {
square._x += speed;
}
};

  • Affiliate Submitter:
Powered by YouTube
  1. By: Koolio1230
  2. Categories How To
  3. Views 202
  4. Added :30-Mar-08
More from the web
Comments on Flash Tutorial - Controlling a Character/movieclip with Arro
Other comments on this video
  • as long as it has ...

    as long as it has the same actionscripts.

    By Arrroza [Affiliate User] 1218196485
  • does this work on ...

    does this work on fLASH MX?

    By 99BottlesOfcoke [Affiliate User] 1217006508
  • What did u choose ...

    What did u choose in thet menu ? :(
    i dont know how to change speed from my movie ! how do i do thet ?

    pleas help !

    By T3RM1NH4CK3R [Affiliate User] 1216364378
  • canon rock by jerry ...

    canon rock by jerry c

    By Koolio1230 [Affiliate User] 1213021815
  • Nice tutorial. ...

    Nice tutorial. What is the name if the instrumental song in the background?

    By kimo9909 [Affiliate User] 1212224484
  • Thanks man I was ...

    Thanks man I was trying to get this to work and I realized were I missed up on my scripting.

    By 3rdchild [Affiliate User] 1210273497
  • your welcome

    your welcome

    By Koolio1230 [Affiliate User] 1209825432
  • Thank you this ...

    Thank you this tutorial help me a lot.

    By elboru13 [Affiliate User] 1208530392
8 Comments
 

Up Next: Valentine's Day - Celebrities Kissing!

<
>