下面写了2种相同的效果:
<mx:Button id="toggleBtnByToggle" label="toggleControl" toggle="true"/> |
<mx:Button id="toggleBtnBySelected" label="selectedControl" click="changeSkin()"/> <mx:Script> <![CDATA[ private function changeSkin():void { toggleBtnBySelected.selected = toggleBtnBySelected.selected ? false : true; } ]]> </mx:Script> |
没有评论:
发表评论