【发布时间】:2015-05-19 09:44:11
【问题描述】:
有没有办法将其实际保存为 XML 文件本身,然后单独读取到 flash 文件中?
var book:XML = <book/>;
book.publisher = <publisher/>;
book.publisher.@name ="O'Reilly";
book.title = "Learning ActionScript 3.0";
book.appendChild(<subject/>);
book.subject.prependChild("Action Script");
book.insertChildAfter(book.subject, <authors/>);
book.authors.author.firstname = "Zevan";
book.authors.author.lastname = "Rosser";
var tempList:XMLList = book.authors.author.copy()
tempList[0].firstname = "Rich"
tempList[0].lastname = "Shupe"
book.authors.insertChildBefore(book.authors.author, tempList);
trace (book);
【问题讨论】:
-
平台是什么?空气?浏览器?
标签: xml actionscript-3 flash