Old Articles - 6 years, 2 months ago - 0 Comments

Global Class Path

Are you sick and tired of writing huge file paths to locate your include files in the actionscript window? or are you the organised type that likes to keep everything grouped together in one place? Whatever the reason, the Flash MX Authoring tool has a neat little feature which you can use to organise your include files in one easy to access place…

Locate the directory where you installed Flash MX, inside of that directory you will find a directory named Configuration, go down another level, into that directory and you will find a directory entitled ‘Include’. If you place all your class files and regularly used include files inside of this directory, you can include them in your flash movies using once simple class path.

For example, i have a class file named “myfunctions.as”, i place that file in the Includes directory:

Flash MX\Configuration\Include\myfunctions.as

I can then include that file in any of my flash movies by using the following short file path:

#include "myfunctions.as"

It is recommended that you place all your classes in subdirectories of the Includes directory, just to keep things nice and tidy.



Note: This is an old article!

Please be aware that the content of this article may no longer be accurate and the links contained within could be broken.

Update Notifications

You can add our RSS feed to your favorite feed reader or recieve an email when a new article is posted by entering your email address below.

    Shu Player allows you to distribute your AIR Applications to users that dont have the AIR Runtime by converting them to standalone applications. Shu Player also adds more commands to do things like open external applications etc…


    If you hate the Adobe Updater like most of us, then just get rid of it.


    Want to quickly find out what version of the Flash Player a client has installed? Send them to www.playerversion.com


    Yet more pv3d goodness. Im loving this funky 3D Flash Lab, the work of Mathieu Badimon. [Update: Apparently this uses Five3D not PaperVision]


    There is an old interview with me on The FWA, its fairly long at 8 pages.


    If you do alot of travelling then it makes sense to get yourself a Priority Pass, which will get you access to over 500 airport lounges worldwide, regardless of whether your flying enconomy, business or first.


    Freelance Switch is a freelancer community with forums, jobs, daily tips and a complete 212 page e-book titled “How to be a rockstar freelancer” for sale.


    Lots of new media jobs at Creative Pool.


    BBC IPlayer is awesome, but its ashame that BBC News is still using Windows Media Player and Real video. Real player is officially badware.


More In Actionscript


More In Adobe Flash


More In Freelancing