So I have some code that needs a bunch of configuration
settings to be set first before it executes.
Since I want the settings to be enviroment-specific and
easily customizable I put them all in an XML file. The problem is
that I need to ensure that the settings have completed loading into
my class variables BEFORE any functions are invoked on the object
(because otherwise it will break since the settings aren't done
How can I accomplish this? Its like I need a preloader or
initializer for my class?
not quite that simple...the class in question is a standalone
AS class so as soon as you instantiate it you can call any of its
functions, I need to ensure that the settings are set before I
allow this, maybe I need to rethink my design I dunno.