Flex 应用程序数据处理全解析
1. 脚本绑定示例操作
在之前的示例基础上,我们将使用 ActionScript 来创建从加载文档中的数据到其他用户界面控件的绑定,具体操作步骤如下:
1. 添加文件 :确保 countryDetails.xml 文件已添加到 assets 文件夹中。
2. 创建新的 Flex 应用程序 :使用以下代码创建界面:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:VBox x="10" y="10">
<mx:HBox>
<mx:Label text="Country" fontWeight="bold" width="100"/>
<mx:ComboBox id="cboCountry"/>
</mx:HBox>
<mx:HBox>
<mx:Label text="Hemisphere" fontWeight="bold" width="100"/>
<mx:Text id="txtHemisphere"/>
</mx:HBox>
<mx:HBox>
<mx:Label text="Population" fontWei
超级会员免费看
订阅专栏 解锁全文
1022

被折叠的 条评论
为什么被折叠?



