Package | sekati.load |
Class | public class XMLLoader |
Inheritance | XMLLoader AbstractLoader flash.events.EventDispatcher |
Implements | ILoader |
XML
content.
var loader : XMLLoader = new XMLLoader( "http://localhost/path/to/my.xml" ); loader.addEventListener( Event.INIT, addContent ); loader.load( ); private function addContent(e : Event) : void { loader.removeEventListener( Event.INIT, addContent ); trace( loader.content ); }
Property | Defined by | ||
---|---|---|---|
bytesLoaded : uint
The loader bytes loaded.
| AbstractLoader | ||
bytesTotal : uint
The loader bytes total.
| AbstractLoader | ||
content : XML [read-only]
The strictly-typed
XML loader content. | XMLLoader | ||
context : LoaderContext
Returns
LoaderContext (for Loader types only). | AbstractLoader | ||
dataFormat : String
Returns
URLLoaderDataFormat (for URLLoader types only). | AbstractLoader | ||
loading : Boolean
The loading status of the loader; if
true the loader is loading, if false the loader has not started yet. | AbstractLoader | ||
percent : Number
The loader percentile.
| AbstractLoader | ||
rawContent : *
The loosely-typed
AbstractLoader content. | AbstractLoader | ||
ready : Boolean
The ready status of the loader content; if
true the content is loaded, if false the content is not loaded. | AbstractLoader | ||
request : URLRequest
The loader
URLRequest . | AbstractLoader | ||
soundContext : SoundLoaderContext
Returns
SoundLoaderContext (for Sound types only). | AbstractLoader | ||
url : String
The loader url.
| AbstractLoader |
Method | Defined by | ||
---|---|---|---|
XMLLoader(url:String)
XMLLoader Constructor
| XMLLoader | ||
close():void
Stop the loading process.
| AbstractLoader | ||
destroy():void
Cleanup the
AbstractLoader . | AbstractLoader | ||
dispatchEvent(e:Event):Boolean
Optimized
dispatchEvent only dispatches when there are listeners. | AbstractLoader | ||
load():void
Start the loading process.
| AbstractLoader |
content | property |
content:XML
[read-only]
The strictly-typed XML
loader content.
public function get content():XML
XMLLoader | () | constructor |
public function XMLLoader(url:String)
XMLLoader Constructor
Parametersurl:String — of the XML file.
|