2011. 11. 11. 11:32
[Flex] TextInput 한글 일본어 짤림현상. 공부/flex2011. 11. 11. 11:32
TextInput에서 "한글테스트입니다" 라고 입력했을때, 화면에서는 제대로 보이지만
textInput.text 해서 값을 가져왔을 경우는 "한글테스트입니" 라고 값이 짤려서 가져오는 데
아직 글을 작성중으로 인식해서 TextField에만 값이 있고 Text로넘어가지 않은 상태입니다.
mx:TextInput에서는 textfield에 직접 접해서 textField.text로해서 값을 가져옴..
public class CTextInput extends TextInput
{
public function CTextInput()
{
super();
}
override public function get stext():String{
return textField.text;
}
}
{
public function CTextInput()
{
super();
}
override public function get stext():String{
return textField.text;
}
}
s:TextInput에서는 RichEditableText 에 직접 접해서 값을 가져옴..
public class CTextInput extends TextInput
{
public function CTextInput()
{
super();
}
override public function set text(value:String):void{
super.text = value;
}
override public function get text():String{
var rich:RichEditableText = this.textDisplay as RichEditableText;
var tflow:SpanElement = rich.textFlow.mxmlChildren[0].mxmlChildren[0];
return tflow.text;
}
}
'공부 > flex' 카테고리의 다른 글
[Flex] spark datagrid itemeditor (0) | 2011.10.12 |
---|---|
[Flex] spark DropDownList MultiSelect (0) | 2011.10.11 |
[Flex] CursorManager && Graphic..path.. (0) | 2011.10.05 |
[Flex] Spark DataGrid Html ItemRenderer rowheight (0) | 2011.10.05 |
[Flex]Spark DataGrid HeaderRenderer CheckBox (0) | 2011.10.05 |