I set Label component enabled property to "false", it still can interactive,
<mx:Label text="testEn开发者_运维问答able" click="handleEnable()" enabled="false"/>
when I click the label, the handleEnable() can always be invoked, I want Label behaves like Button component(if set Button enabled, user can't interactive with it), so how can I do?
After setting the enabled property to false, some components still respond to mouse interactions such as mouseOver. As a result, to fully disable UIComponents, you should also set the value of the mouseEnabled property to false.
精彩评论