1 Reply Latest reply on Apr 23, 2010 5:02 AM by welcomecan

    Text widht and height




      I have a text into one form and I have a problem with the widht of the text. The text is very long and it doesn't enter in the form widht. I want a automatic \n and I got it but with one problem. The component reserve the correct widht and height but the text appear only in the first line and taking more than the widht of the form.


      Here the code:

      var myText:String = "a long textttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt ttttttttttttttttttttttttt"

      <mx:FormItem id="frm" label="Text" width="100%">
                      <mx:Text id="lbl" selectable="false" text="{myText}" width="100%"/>



      I only want a correct viwe of the text dividing in lines.


      I know that I haven't explain very good but my english level is not good and it's difficult explain that for me.