【发布时间】:2010-01-28 17:22:29
【问题描述】:
应该很容易的事情一直是我这一天的追求。
如何设置xml元素的变量属性?
这是我期望的工作:
xmlElement.attribute(variableAttr) = "the variable attribute is set to this string";
但是,我收到一些错误,该值只能作为参考检索而不能设置。
当然,以下内容也不起作用,因为它将查找名为“variableAttr”的属性,而不是查找以变量 variableAttr 的值命名的属性:
xmlElement.@variableAttr = "example";
【问题讨论】:
标签: xml actionscript-3 variables dynamic