Thread
:
ActionScript Tips Thread
View Single Post
Codemonkey
2006-11-05 #
12
010b - Making a utility class global
Last edited by Codemonkey : 2007-05-06 at
02:24
.
To actually make your util class visible across your projects, you need to add it to your flash' IDE. To do this, go to:
Edit->Preferences->ActionScript->ActionScript Settings button.
In there, click the button "Browse to Path" to select the folder your util class is in. For example, my global path is "D:\MyStuff\Flash\local".
screenshot global paths
To use the global util class in your project, you can now just use a simple import statement without having to worry about whether it finds it:
ActionScript Code:
// in this example ArrayUtils is in the directory/package "utils"
import
utils.
ArrayUtils
;
Codemonkey
View Public Profile
Visit Codemonkey's homepage!
Find all posts by Codemonkey