A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: wordWrap with Label component is possible but....problems

  1. #1
    Member
    Join Date
    Apr 2002
    Posts
    65

    wordWrap with Label component is possible but....problems

    FLASH MX 2004
    Yes it is possible, but it involves me setting the properties of the labelField directly in the component, after the text has loaded into the component.

    xmlConn.trigger()
    myLabel.autoSize=true;
    myLabel.labelField.wordWrap=true;
    myLabel.labelField.multiLine=true;

    For some reason it wraps the text, but it wraps it every 33px (4 characters) unless I specifically set the width or the myLabel.labelField(in debugging mode) to 175px.

    I have attached the sample FLA and XML in a zip file Can anyone out there help me.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center