특별한딸기이야기

check box 사용예 본문

딸기 공부방/flex

check box 사용예

특별한녀석 2008. 12. 26. 11:53
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
 <mx:Script>
  <![CDATA[
   import mx.controls.Alert;
   
   private function checkAlert() : void
   {
    if(check.selected == true)
    {
     Alert.show("체크 박스를 선택하셨습니다.");
    }
   }
  ]]>
 </mx:Script>
 <mx:CheckBox x="183" y="73" label="선택해주세요" fontSize="16" id="check" selected="true" />
 <mx:Button x="183" y="133" label="눌러주세요" fontSize="16" height="36" id="button1" click="checkAlert()" />
</mx:Application>

'딸기 공부방 > flex' 카테고리의 다른 글

text와 label  (1) 2008.12.26
image  (1) 2008.12.26
textarea 사용예  (1) 2008.12.26
radio 버튼 사용예  (0) 2008.12.26
로컬 스타일 정의하기  (0) 2008.12.08