0

This is making me a little crazy. I have the following in an mxml file:

  <mx:Image source="img/{XML(data).foo}{XML(data).bar}.png" height="21" width="21"/>

foo and bar are tags defined in my xml file.

What the heck is "XML(data)"? Is it a function or a notation or something else? I've been trying to google it but searching on: flex "XML(" gives me all kinds of stuff I don't want.

is there an alternate name for whatever this is?

Mark

4

1 回答 1

2

如果没有任何其他信息或上下文,我会说该片段的目的是将通用对象(数据)类型转换为完全限定的 XML 类。

更多关于类型转换的信息可以在这里找到:

http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7f87.html

于 2013-11-14T17:17:39.143 回答