Vectorials
Flash Perfection
3D Lessons
Tutorialkit
Markup Tutorials
Learn PHP
network
adv banner
Flash & Swish  Home Flash & Swish Flash Tutorials Global Class Path
rss

Global Class Path

Author: Guy Watson More by this author


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 MXConfigurationIncludemyfunctions.as

I can then include that file in any of my flash movies by using the following short file path: #include "myfunctions.as"

image 1

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

image 2



Rate this Material: Bad 1 2 3 4 5 Excellent
print this page tell a friend subscribe to newsletter subscribe to rss

Add comments to "Global Class Path"