ActionScript 3 Tutorials

A basic introduction to ActionScript 3 for complete beginners. This series will help you script in the timeline of a Flash file to make a point and click adventure game.

Watch the entire playlist here

  1. The basics
  2. Object properties
  3. Functions and Events: Part 1 & Part 2
  4. Linking and removing event listeners
  5. If statements and relative settings
  6. Variables
  7. Text fields

Monthly tutorials covering a range of topics and skill levels. Every 2nd project will link to a mini competition tied to the tutorial content – show me your class!

Each project is in stages and the source material can be downloaded for the start of each section meaning you can jump right in whenever you please!

A slightly lengthy (and sometimes messy!) tutorial taking you through the development of an entire Flash game using a combination of keyframe and external coding. You should complete the intro series before progressing to this one. Please note, the main point of these tutorials isn’t to make the depicted game but to be able to apply the skills to any product; maybe you could try to build something totally different as you watch!

Watch the entire playlist here or Play the game!

  1. Series introduction
  2. Setting up an ActionScript file
  3. The document class and instance spawning
  4. Adding a mouse-controlled turret
  5. Shooting bullets
  6. Arrays
  7. For loops
  8. Hit tests
  9. Custom functions
  10. Packages and static classes
  11. Content bonus #1
  12. Font Management and a Menu
  13. Drawing lines with the graphics object
  14. Tweens and Explosions
  15. Code refactoring
  16. Dying and Scoring
  17. Dispatching Events and making your own Event types
  18. Frame labels and Try-Catch statements
  19. Tweening menu transitions
  20. Timers and an infinite loop
  21. Timing without Timers
  22. Key press events
  23. Adding power-ups
  24. Adding health and timer bars
  25. Switch case statements and key combinations
  26. Intro to sound
  27. Garbage collection
  28. Extending your classes
  29. Circular collisions
  30. Content bonus #2
  31. Adding a loading/downloading display
  32. Editing the right-click / context menu
  33. Uploading a game to Kongregate
  34. Series summary

A series of tutorials made randomly when I had time. There’s no voice over and the difficulty level and content of each differs greatly. Hopefully you’ll find something useful though!

15 Responses to ActionScript 3 Tutorials

  1. avatar XavZz says:

    Hello there,

    and to start with.. THANK YOU SO MUCH
    this is exactly what I need to get started

    I just learned how to use basic go to certain frame AS2,
    but I aspire to make games ad eventually also get some on Kong

    although I’m eventually aiming towards website design in Flash
    I have no doubt all this will come in handy

    thanks again for putting so much effort in documenting and filming
    all the steps, no matter how small.

    Maybe I’ll let you know something .. one day, thanking you once more for being the base I started building on. Haha ;D

    -Xz

  2. avatar Hugo Jesus says:

    Hi Anthony!

    Found your tutorials on youtube, and been watching them learning about AS3.

    I had Computer Eng. classes so the code stuff its not strange, and you have a nice way of arranging your code.

    I aim to be a game developer, unfortunely the course that you teach doesn’t exist in Portugal, so I guess I’ll stick to you for learning ;)

    Continue your great job, and enlight us with your knowledge eh eh eh :)

    Regards

    Hugo

  3. Hi!

    I’ve created a game by the help from your tutorials, and I’m wondering if you know how to make your own highscore table to put up on your own website?

    I’ve tried many things, but alot of the tutorials out there are either as2.0 or totally useless…

    Your tutorials are easy to understand and you explain what you do very well!

    So far I’ve used swf>php>mysql but when I upload the swf to a server it doesn’t put any data into the database.

    It does when I test the swf by ctrl + enter…

    It’s really getting me frustrated and if you could help me it would be awesome!

    -Gustav

    • avatar Ant says:

      You could use mochi media; the score system there lets you have high score tables outside of the swf file. It also does adverts, generates a bit of money and adds some obfuscation to your code to help against code thieves. There’s a post on the site with a mental maths scoreboard to give you an idea of the results. I only have my phone available to me for a couple of days so I can’t help much more right now and it’s a LONG time since I did any php I’m afraid!

  4. avatar konrad says:

    Hi Ant, just a quick thank you for your brilliant tutorials and calm, thoughtful teaching approach. I’ve learnt a lot and will watch this space with eager anticipation. Thanks again.

  5. avatar daniel says:

    http://www.subtleimaging.com.au/flashsite/Home2.html…. and
    thanks to you (” this is just the begining”) thanks mate:) instant hero:)
    http://www.subtleimaging.com.au/boloxous/gamefile.html
    I own cs3 and have trouble withya gabage collection and circular hit testing???
    it just dont work do i need to import some thing??
    thanks mate, have a good day.

    • avatar Ant says:

      Hey Daniel,

      The circular hit tests should definitely work in CS3, as it’s just a bunch of sums rather than use of any specific library.

      Good to see you making something with the tutorials, keep at it! :)

      Ant

  6. avatar Naki says:

    Hi Mr. Ant I’m having a problem with my keybaord event because whenever I press letters there is no response/trace on the Output panel. It only works on the numpad and arrow keys and other buttons except on the letters. I don’t know if the problem is in my keyboard and here is the code in my timeline.

    stage.addEventListener(KeyboardEvent.KEY_DOWN,KeyIsDown);
    function KeyIsDown(e:KeyboardEvent):void{
    trace(e.keyCode);
    trace(e.charCode);
    }

    I compiled it and no errors have been returned but still not working. Need some advice. Thanks.. :)

    • avatar Ant says:

      Hmm, that’s an odd one! I put your code into a Flash file and it works perfectly…

      First off, just check that you have disabled keyboard shortcuts when you test your SWF (Control -> Disable Keyboard Shortcuts). Other than that, I’m really not sure – it could be a specific keyboard problem I suppose.

  7. avatar Naki says:

    I just disabled the keyboard shortcuts and it works perfectly now.

    Thank you for the help Mr. Ant. :)

Leave a Reply

Your email address will not be published. Required fields are marked *

*


seven + 9 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>