Singleton class for ActionScript projects