Freelance Flash Games News

a place for news about flash, the site, and more

Entries for the ‘Flash Actionscript’ Category

Code Bits: if statements

Ever had a bit of actionscript code that you didn’t understand, or wish you new more about. Well, I’m going to start explaining bits of AS2 code in my next few posts. The code posts will be spread out between my normal posts, so you’ll know if it is a a bit of code when [...]

Comments (2)

Basic Movement (arrow keys)

What you will learn: How to move a MovieClip around in flash using the arrow keys.
What you will need: a movieclip that you wish to move around.
1. There is really only one step to this tutorial. Just put this code onto your MovieClip. All code is explained.

onClipEvent(enterFrame){//every frame
if (Key.isDown(Key.UP)){//if the up key is down
_y-=8//move character [...]

Leave a Comment