03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

}<br />

else if(httpStatus < 200) {<br />

this.httpStatusType = "informational";<br />

}<br />

else if(httpStatus < 300) {<br />

this.httpStatusType = "successful";<br />

}<br />

else if(httpStatus < 400) {<br />

this.httpStatusType = "redirection";<br />

}<br />

else if(httpStatus < 500) {<br />

this.httpStatusType = "clientError";<br />

}<br />

else if(httpStatus < 600) {<br />

this.httpStatusType = "serverError";<br />

}<br />

myXml.onData = function(src:String) {<br />

trace(">> " + this.httpStatusType + ": " + this.httpStatus);<br />

if(src != undefined) {<br />

this.parseXML(src);<br />

this.loaded = true;<br />

this.onLoad(true);<br />

}<br />

else {<br />

this.onLoad(false);<br />

}<br />

}<br />

myXml.onLoad = function(success:Boolean) {<br />

}<br />

myXml.load("http://blogs.adobe.com/mxna/xml/<br />

rss.cfm?query=byMostRecent&languages=1");<br />

See also<br />

onHTTPStatus (LoadVars.onHTTPStatus h<strong>and</strong>ler), load (XML.load method),<br />

sendAndLoad (XML.sendAndLoad method)<br />

XML 1325

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!