在mxml文件里,在<fx:Declarations>这个标签下写入:

 
 <fx:XML />
这样就用xml取到了data.xml的值;(注意source后面写data.xml的路径)
可以用XMLListCollection取XML里面部分的值,例如:
同样在<fx:Declarations>里,取到xml值之后写入:
<s:XMLListCollection />       //(意思是xmlList取了xml里一级标签里所有image名字的标签)

相关文章:

  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2021-10-27
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
  • 2021-05-27
  • 2021-10-09
相关资源
相似解决方案