Apache flex 如何在Flex Mobile应用程序中设置下拉列表的单击、更改和选择属性
我尝试过不同的方法,但没有找到解决办法。如果有人能帮我编码,请告诉我。我应该将从web服务获取的数据绑定到一个下拉列表中,我已经这样做了,但是我无法单击或从下拉列表中选择一个值,它会在我单击它时立即关闭。请帮助我,我是Flex新手 多谢各位 MXML组件代码:Apache flex 如何在Flex Mobile应用程序中设置下拉列表的单击、更改和选择属性,apache-flex,flash-builder,Apache Flex,Flash Builder,我尝试过不同的方法,但没有找到解决办法。如果有人能帮我编码,请告诉我。我应该将从web服务获取的数据绑定到一个下拉列表中,我已经这样做了,但是我无法单击或从下拉列表中选择一个值,它会在我单击它时立即关闭。请帮助我,我是Flex新手 多谢各位 MXML组件代码: <s:DropDownList id="ddlBranch" x="257" y="475" width
<s:DropDownList id="ddlBranch"
x="257" y="475"
width="63%" height="60"
fontFamily="Calibri" fontSize="24"
creationComplete="ddlBranch_creationCompleteHandler(event)"
prompt="{ddlBranch.selectedItem}"
requireSelection="true"
selectionColor="#7ab342">
<s:AsyncListView list="{getBranchResult.lastResult}" />
</s:DropDownList>
这是我的代码投标数据下拉列表。请您根据从上述下拉列表中获得的值,帮助我将数据绑定到另一个下拉列表。另一个DDL是
MXML代码:
<s:DropDownList id="ddlZone"
x="257" y="546"
width="63%" height="60"
fontFamily="Calibri" fontSize="24"
creationComplete="ddlZone_creationCompleteHandler(event)"
prompt="{ddlZone.selectedItem}"
requireSelection="true"
selectionColor="#7ab342">
<s:AsyncListView list="{getZoneResult.lastResult}" />
</s:DropDownList>
请粘贴一些代码。而且我无法将数据绑定到同一页面中的两个组件。当我尝试绑定时,我得到了[Object Branch]代替了Branch[Object Zone]代替了ZoneCan有人请帮忙。。。。。
<s:DropDownList id="ddlZone"
x="257" y="546"
width="63%" height="60"
fontFamily="Calibri" fontSize="24"
creationComplete="ddlZone_creationCompleteHandler(event)"
prompt="{ddlZone.selectedItem}"
requireSelection="true"
selectionColor="#7ab342">
<s:AsyncListView list="{getZoneResult.lastResult}" />
</s:DropDownList>
protected function ddlZone_creationCompleteHandler(event:FlexEvent):void
{
getZoneResult.token = Service.getZone();
}