Let's say you have a class AdminGlobal in a file named adminglobal.as and a class Company in a file company.as. To access the constructor of one class inside the other, you only have to make that class public and then import that class, if they are placed in different packages. If they are in the same package then you don't need to implicitly import the class.
In order to use the variables and methods from one class in another you only need to make sure that those variables and methods are marked as public as well. I suggest you take a look at this tutorial from Kirupa about Classes in ActionScript3.
For example, if you have adminglobal.as inside a folder named admins, the route would be: your_project_folder/src/admins/adminglobal.as
And example contents of class AdminGlobal:
package admins
{
public class AdminGlobal
{
//accesible variable
public var name:String;
//constructor
public function AdminGlobal()
{
//do init stuff here
name= "anon";
}
}
}
And if you have your class Company in the file company.as in the src folder of your project (default package), the route would be: your_project_folder/src/company.as
And example contents of class Company, accessing class AdminGlobal:
package
{
//import public class from another package
import admins.AdminGlobal;
public class Company
{
//constructor
public function Company()
{
//call constructor of public class
var ag:AdminGlobal = new AdminGlobal();
//access public variables
trace(ag.name);
}
}
}