Archive

Archive for the ‘Other’ Category

Actionscript 3 Imports

September 7th, 2009 Rslegion No comments

Just a short post today, alot of you have been asking me why you need to use import statements when you’re code seems to work with or without them anyway.

Here’s the answer:

Most of the time developers / Tut writers get you to put in the import as good practice for when you start using classes. Everything used in a class has to be imported. This is usually to increase loading times and decrease file size.

Just for all you that wondered how to do an import, heres an example:

  1. import flash.display.*;

This will import everything in the /flash/display folder of you’re classpath

Categories: Other Tags: