특별한딸기이야기
textarea 사용예 본문
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
private function textareaChange() : void
{
textareaStatus.text = "입력중 : " + textarea.length;
}
]]>
</mx:Script>
<mx:TextArea x="123" y="90" width="212" height="148" id="textarea" text="입력하세요" fontSize="14" change="textareaChange()" wordWrap="true"
editable="true" enabled="true"/>
<mx:Text x="135" y="267" text="상태" id="textareaStatus" fontSize="14" />
</mx:Application>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
private function textareaChange() : void
{
textareaStatus.text = "입력중 : " + textarea.length;
}
]]>
</mx:Script>
<mx:TextArea x="123" y="90" width="212" height="148" id="textarea" text="입력하세요" fontSize="14" change="textareaChange()" wordWrap="true"
editable="true" enabled="true"/>
<mx:Text x="135" y="267" text="상태" id="textareaStatus" fontSize="14" />
</mx:Application>
'딸기 공부방 > flex' 카테고리의 다른 글
text와 label (1) | 2008.12.26 |
---|---|
image (1) | 2008.12.26 |
check box 사용예 (0) | 2008.12.26 |
radio 버튼 사용예 (0) | 2008.12.26 |
로컬 스타일 정의하기 (0) | 2008.12.08 |