Flex Mobile でドロップダウン リストを使用しようとしています。さて、技術的には、Flex Mobile プロジェクトに使用することは想定されていないことを知っています。アドビはその使用を推奨していませんが、私のアプリケーションでは必要です。これが私が試したことです-
<s:DropDownList id="industry" width="160" height="35"
change="onDropDownChange(event)" click="onDropDownClick(event)"/>
protected function onDropDownIndexChange(event:IndexChangeEvent):void
{ //removeEventListener(event:IndexChangeEvent);
industry.selectedIndex =industry.selectedItem;
}
protected function onDropDownClick(event:Event):void {
industry.openDropDown();
//industry.selectedItem=industry.selectedIndex ;
industry.addEventListener(IndexChangeEvent.CHANGE, onDropDownIndexChange );
}
protected function onDropDownChange(event:IndexChangeEvent):void {
trace(industry.selectedIndex);
trace(industry.selectedItem);
event.target.listData = industry.selectedItem;
}
ドロップダウン メニューのクリックを登録できませんでした。そして、メニューのタッチ(またはクリック)イベントを検出して設定する方法がわかりません。読んでくれてありがとう。