Apache flex 如何验证a<;mx:列出组件>;?

Apache flex 如何验证a<;mx:列出组件>;?,apache-flex,Apache Flex,如何验证是否至少从列表中选择了一个项目,从而在应用程序的init()处将SelectedDices设置为NULL?以下代码对希望验证列表的人有帮助: <mx:NumberValidator id ="myListValidator" trigger ="{myButton}" triggerEvent ="click" minValue ="

如何验证是否至少从列表中选择了一个项目,从而在应用程序的init()处将SelectedDices设置为NULL?

以下代码对希望验证列表的人有帮助:

<mx:NumberValidator 
         id               ="myListValidator"
         trigger          ="{myButton}" 
         triggerEvent     ="click"  
         minValue         ="0"
         lowerThanMinError="Should I write an application to you for selecting atleast one of the option X-(" 
         source           ="{myList}" 
         property         ="selectedIndex"
 />