A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: breaking multiline to single line

  1. #1

    breaking multiline to single line

    hi there

    i have a dynamic text field which is multiline.
    i want to know were the line break and to assign each line to a new var

    i working with flash mx

    thank

    kuller

  2. #2
    Senior Member
    Join Date
    May 2001
    Posts
    1,838
    Make a copy of that textbox, make its hieght small such as 10 pix.

    Break text into words and space. Add one word sequentially and monitor the maxscroll. Then we get the first word of each line.

    I dont know what will you do about those lines.

    Becareful, for dynamic textfield without embed fonts, the lines are rendered differently if you scale the movie. And,also, using the device font, the lines may be different in different Operation system.

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