`
shlei
  • 浏览: 282717 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

在flex中使用model标签读取配置文件的方法

阅读更多
1.使用 Model标签

<mx:Model id="config" source="assets/config.xml"/>


config:
<config>
    <username> Kevin </username>
    <psw> 4325d543d32ab34ddd43 </psw>
</config>


在applicationComplete事件里面直读取即可.
Alert.show(config.username + " : " + config.psw); 


From http://blog.sina.com.cn/s/blog_51e82bab0100fy5i.html
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics