您的位置:首页 > 其它

flash中读取XML问题[FLASH AS 部分]

2006-01-22 21:36 561 查看
var ts:XML = new XML();
ts.load("xml.xml");
ts.ignoreWhite = true;
ts.onLoad = function(good:Boolean) {
if (good) {
//_root.txt.text = ts.firstChild.childNodes[0].firstChild.firstChild.nodeValue
trace(ts.firstChild.childNodes[1].firstChild.nodeValue )
_root.txt.text = ts.childNodes[1].firstChild.firstChild.nodeValue
}
};
//这是FLASH里AS部分,为了读取XML的MATOKU字段名
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: