1个回答
展开全部
var myXML:XML = new XML();
var XML_URL:String="xiaohe.xml";
var myXMLURL:URLRequest=new URLRequest(XML_URL);
var myLoader:URLLoader=new URLLoader(myXMLURL);
myLoader.addEventListener("complete", xmlLoaded);
function xmlLoaded(event:Event):void
{
myXML=XML(myLoader.data);
//treeTask.dataProvider=myXML;
//treeTask.showRoot=false;
trace(myXML.个人资料.姓名);
}
var XML_URL:String="xiaohe.xml";
var myXMLURL:URLRequest=new URLRequest(XML_URL);
var myLoader:URLLoader=new URLLoader(myXMLURL);
myLoader.addEventListener("complete", xmlLoaded);
function xmlLoaded(event:Event):void
{
myXML=XML(myLoader.data);
//treeTask.dataProvider=myXML;
//treeTask.showRoot=false;
trace(myXML.个人资料.姓名);
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询