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
filename:String — the name of the file that contains the XML configuration
viewRoot:DisplayObject (default =
— the initial view root for dynamically wiring view objects
Context — a new Context instance, possibly not fully initialized yet