Classes imported from Actionscript must be packaged with the path to the directory where they are saved. This is predefined in the class package declaration within your AS code.
Let’s say I have a class called Example that is part of the package examples, so the package code within the class would be:
package examples { //PACOTE DA CLASSE
public class Example {
public function Example() {
//Construtor
}
}
}
And the class path in the directory would be raizdoseuswf/examples/Example.as.
To use this class, you need to import it into your project/class using the path and its name at the beginning of the code. See below:
import examples.Example;
var novoExemplo:Example = new Example();
This video can help you a lot.
Didn’t get it right ,1°What are the auto import classes is localization? in case they are there are the files that are loaded for all projects? , 2° Besides the previous folders have my sub-folders, which I manage? and in them the files are used only by the project in which the subfolder was configured?
– user5020
I don’t understand your doubt. But the folders that are already automatically added to search are the project folder and the folder where the compiler is (and all subfolders of these two folders). Already to add more folders that will be checked, you should add their path in the project preferences.
– Felipe Avelar