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字段名
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字段名
相关文章推荐
- flash中 读取XML的问题[xml部分]
- jsp中flash读取xml路径问题
- 解决flash跨域读取XML的问题
- 今天和朋友发现一个flash读取xml的权限问题
- 解决Myeclipse中导入epf文件之后xml及jsp等各种页面中的部分显示异常问题
- SpringMVC + mybatis 无法读取JAR包中的XML配置文件问题
- SpringMVC + mybatis 无法读取JAR包中的XML配置文件问题
- 解决 IDEA 中src下xml等资源文件无法读取的问题
- C#读取XML时自动过滤掉注释部分
- 每天学习flash一点(3) flash外部读取xml
- XML数据读取的问题困扰着我
- Chrome下读取XML的问题
- 一个通用XML字符串的读取小问题
- EasyPlayerPro Windows播放器读取xml配置文件中的特殊字符问题
- 用asp读取xml时清除缓存的问题与解决办法
- DELPHI TXMLDocument读取XML出现乱码的问题
- asp中读取xml以及Utf-8和Gb2312乱码问题
- 利用System类解决flash读取外部文本时乱码问题
- flash+ashx(aspx)读取xml中文乱码解决方法
- settings.xml的读取顺序问题