달력

5

« 2025/5 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

'한글짤림'에 해당되는 글 1

  1. 2011.11.11 [Flex] TextInput 한글 일본어 짤림현상.
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;
    }
 }

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;
     }
 }
:
Posted by 알 수 없는 사용자