PDA

Просмотр полной версии : Возможно ли CheckBox заменить на Button и как это сделать?


Pcheloed
12.10.2012, 12:35
Возможно ли CheckBox заменить на Button и как это сделать?


<mx:Fade id="fadeOut" duration="100" alphaFrom="1.0" alphaTo="0.0"/>
<mx:Fade id="fadeIn" duration="100" alphaFrom="0.0" alphaTo="1.0"/>
<mx:CheckBox id="cb2" selected="false"/>
<mx:Button visible="{cb2.selected}" hideEffect="{fadeOut}" showEffect="{fadeIn}"/>

mooncar
12.10.2012, 12:47
Pcheloed, код в сообщении нужно выделять тегами.

Astraport
12.10.2012, 12:51
ToggleButton (http://help.adobe.com/ru_RU/FlashPlatform/reference/actionscript/3/spark/components/ToggleButton.html)

Pcheloed
12.10.2012, 17:56
Спасибо. Сейчас испытаем)))