Packageorg.spicefactory.parsley.xml
Classpublic class XmlContextBuilder
InheritanceXmlContextBuilder Inheritance Object

Static entry point methods for building a Context from XML configuration files.

For details see 3.3 XML Configuration in the Parsley Manual.



Public Methods
 MethodDefined By
  
build(filename:String, viewRoot:DisplayObject = null):Context
[static] Builds a Context from the specified XML configuration file.
XmlContextBuilder
Method Detail
build()method
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