A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: how to ignore tabs and carriage returns?? please help

Hybrid View

  1. #1
    Registered User
    Join Date
    Aug 2003
    Location
    Northern CA
    Posts
    41

    how to ignore tabs and carriage returns?? please help

    Hi. When I import xml text into Flash MX, i noticed it preserves all text formatting including carriage returns and tabs so I have to have all the text on one line in the text editor for it to look right. Is it possible to treat the text as if it's regular html... meaning you have to foce line breaks via a BR tag or a P tag? I tried the enescape() function but that doesn't seem to work. Any help? Thanks.

  2. #2
    Member
    Join Date
    Jan 2003
    Location
    Australia, Adelaide (SA)
    Posts
    97
    Hi Lifeforce,

    If you set the condenseWhite property on your TextField to true, and the html property to true, then use the htmlText property to set the text it will do what you want.

    Hope this helps!
    Tim Walters
    Senior Developer
    XML Evangelist
    "XML isn't a language, it's a way of life!"

  3. #3
    Registered User
    Join Date
    Aug 2003
    Location
    Northern CA
    Posts
    41
    Hey thanks. I've never heard of condenseWhite. I'll give that a try.

  4. #4
    Ryan Thomson EvolveDesigns's Avatar
    Join Date
    Oct 2001
    Location
    British Columbia
    Posts
    3,338
    wow thanks! didn't know you could do that and i was about to do some crazy stuff to get rid of the white space lol
    Evolve Designs Interactive Media
    the natural selection

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