View Single Post
Codemonkey's Avatar Codemonkey Codemonkey is offline Super Moderator 2006-11-05 #12 Old  
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:
  1. // in this example ArrayUtils is in the directory/package "utils"
  2. import utils.ArrayUtils;