public static function build(filename:String, viewRoot:DisplayObject = null):Context
Builds a Context from the specified XML configuration file.
The returned Context instance may not be fully initialized if it requires asynchronous operations.
You can check its state with its configured
and initialized
properties.
Parameters
| filename:String — the name of the file that contains the XML configuration
|
|
| viewRoot:DisplayObject (default = null ) — the initial view root for dynamically wiring view objects
|
Returns | Context — a new Context instance, possibly not fully initialized yet
|