Flex Mobile에서 드롭 다운 목록을 사용하려고합니다. 이제 기술적으로 Flex Mobile 프로젝트에 사용하지 않아도된다는 것을 알고 있습니다. Adobe는 사용을 권장하지 만 응용 프로그램에 필요합니다. 다음은 내가 시도한 것입니다.플렉스 모바일 용 드롭 다운 목록. 사용자가 selectedItem을 누르고 설정하는 위치를 프로그래밍 방식으로 감지합니다.
<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;
}
드롭 다운 메뉴에서 클릭을 등록 할 수 없었습니다. 그리고 그것을 설정하는 메뉴에서 터치 (또는 클릭) 이벤트를 감지하는 방법을 모르겠습니다. 읽고 모든 도움을 주셔서 감사합니다.
도움을 주셔서 감사합니다. 제가 조사 할 것입니다. – apaul