XMLLoader
Kind of class: | public class |
---|---|
Package: | |
Inherits from: |
|
Classpath: | org.asaplibrary.data.xml.XMLLoader |
File last modified: | Wednesday, 11 May 2011, 18:34:44 |
Loads XML data.
Example
-
var xmlLoader:XMLLoader = new XMLLoader(); xmlLoader.addEventListener(XMLLoaderEvent._EVENT, handleXMLLoaded); xmlLoader.loadXML("data.xml");
Listen for loader events:private function handleXMLLoaded (e:XMLLoaderEvent) : void { switch (e.subtype) { case XMLLoaderEvent.COMPLETE: handleXmlComplete(); break; case XMLLoaderEvent.ERROR: handleXmlError(); break; } }
Summary
Constructor
- XMLLoader (inLoaderCount:int = 1)
Instance methods
- setLoaderCount (inLoaderCount:Number) : void
-
loadXML
(inURL:String, inName:String = "", inVariables:URLVariables = null, inRequestMethod:String = URLRequestMethod.GET) : void
- Load XML
- toString () : String
Constructor
XMLLoader
function XMLLoader(inLoaderCount:int = 1)
Parameters
inLoaderCount:number of parallel loaders
Instance methods
loadXML
function loadXML(inURL:String,
inName:String = "",
inVariables:URLVariables = null,
inRequestMethod:String = URLRequestMethod.GET) : void
Load XML
Parameters
inURL :source url of the XML
inName :(optional) unique identifying name
inVariables :(optional)
URLVariables
object to be sent to the server
inRequestMethod:(optional)
URLRequestMethod
POST or GET; default: GET setLoaderCount
function setLoaderCount(inLoaderCount:Number) : void
toString
override function toString() : String
Overrides
- EventDispatcher.toString