Packageutil
Classpublic class XMLLoader

XMLLoader is a class for loading XML files



Public Properties
 PropertyDefined by
  filePath : String
The file to load.
XMLLoader
  onEndParams : Array
The additional params for the end load handler
XMLLoader
Public Methods
 MethodDefined by
  
XMLLoader(filePath:String)
Creates an instanse of XMLLoader
XMLLoader
  
loadXML(onEnd:Function, onEndParams:Array):void
Loads the XML file.
XMLLoader
Property detail
filePathproperty
public var filePath:String

The file to load.

The default value is null.

onEndParamsproperty 
public var onEndParams:Array

The additional params for the end load handler

The default value is null.

Constructor detail
XMLLoader()constructor
public function XMLLoader(filePath:String)

Creates an instanse of XMLLoader

Parameters
filePath:String — Path to file that will be loaded
Method detail
loadXML()method
public function loadXML(onEnd:Function, onEndParams:Array):void

Loads the XML file. After loading a function specified in onEnd is called with the file contents as the first param and onEndParams as next params, if specified.

Parameters
onEnd:Function — reference to function called when loading ends
 
onEndParams:Array — the additional params for the onEnd function