
1304 ActionScript classes
this.httpStatus = httpStatus;
if(httpStatus < 100) {
this.httpStatusType = "flashError";
}
else if(httpStatus < 200) {
this.httpStatusType = "informational";
}
else if(httpStatus < 300) {
this.httpStatusType = "successful";
}
else if(httpStatus < 400) {
this.httpStatusType = "redirection";
}
else if(httpStatus < 500) {
this.httpStatusType = "clientError";
}
else if(httpStatus < 600) {
this.httpStatusType = "serverError";
}
}
myXml.onData = function(src:String) {
trace(">> " + this.httpStat ": " + this.httpStatus);
if(src != undefined) {
this.parseXML(src);
this.loaded = true;
this.onLoad(true);
}
else {
this.onLoad(false);
}
}
myXml.onLoad = function(success:Boolean) {
}
myXml.load("http://weblogs.macromedia.com/mxna/xml/
rss.cfm?query=byMostRecent&languages=1");
See also
onHTTPStatus (LoadVars.onHTTPStatus handler)
,
load (XML.load method)
,
sendAndLoad (XML.sendAndLoad method)
Содержание FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Страница 1: ...ActionScript 2 0 Language Reference ...
Страница 1352: ...1352 ActionScript classes ...