AS3操作XML [二]: 通过构造函数初始化XML对象

      Flash 2007-6-14 8:26

// 例2: 通过构造函数初始化XML对象
var userInfo_str:String = "<xmlRoot><user>userName</user></xmlRoot>";
var userInfo_xml:XML = new XML(userInfo_str);
trace(userInfo_xml.user); // 输出 userName

 源文件 压缩包下载




标签集:TAGS:AS3
回复Comments() 点击Count()

回复Comments

{commenttime}{commentauthor}

{CommentUrl}
{commentcontent}