ActionScript 3 101: Getting Started (Part 2)

ActionScript 3 is a language predominantly used for flash projects, because of this you will need one of the flash authoring environments such as flash, flex, flash builder or catalyst. All of these environments can be quite expensive to buy and although there are few free and cheap alternatives, none that I know of outside of the adobe family are very good at all (someone, please prove me wrong).

ActionScript 3 is the latest version of the language and so you will need to target your project to the flash player 9 or above. Remember you cannot interchange scripting versions so you will need to remember all the 3rd party classes you use, if any – are ActionScript 3 Classes.

It is also considered best practice to create all of you scripts as external scripts, making it much easier when managing complex projects, but in the interest of accessibility we will use internal project scripting organised onto ONE frame within your project at this stage.

It is so important to make sure your script remains on one frame of your timeline. Actionscript 1 was a simple “timeline control” language for animation , for this reason, Flash allowed you to place script on different frames to tell it to ‘stop’, ‘start’ or ‘goto’ another frame. ActionScript 3 (and ActionScript 2) is not this type of language and developers coding in this old scripting style are going to run into major problems when their project get more complex.  Beginners learning in this way will learn bad habits and never quite understand naming conventions because of this. Finally, programs written in this way will always have an upper ceiling to complexity because this method is so limiting. Always keep your script on a separate layer, title it “actions” and place your script on the first frame of this layer.

In the next ActionScript 3 101, we will look at writing your first script.

About russell

Web Developer I’m a web developer with 3 years’ experience in the media industry. My Development skills includes flash, AS3, AS2, HTML, CSS, JavaScript, Jquery, XML, PHP, and MySQL. I have a great deal of experience developing interactive user interfaces in PHP Javascript AS3 AS2 I have two masters degrees in Computer Science and Multi Media and before my current role I completed a year of research at De Montfort University researching multi touch technology. during this time I developed several multi touch applications for entertainment spaces.

Leave a Reply

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

*

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>