XML Line break in Flash

I was a lot worried with this issue last week. I was loading an XML file into a flash to build a multilingual site but some long texts didn’t render line breaking as I wanted. \n or \r or <br/> did not work too and i was getting really mad at it !

Thanks to google i’ve found the solutions to mine and your problems hopefully. The way out of this turmoil was using a character entity reference: &#xD; to render a line break.

It worked perfectly ! Awesome, LOL.

35 Responses so far »

  1. 1

    Matt said,

    Lifesaver!!!

  2. 2

    Jav said,

    You are a legand. No one out there knows how to do this, they are all using CDATA.

  3. 3

    ran said,

    G-O-D… you are the king… no words… real Saver!!

  4. 4

    Sun said,

    THE QUEST FOR THE LEGENDARY COMMAND IS COMPLETED !

    &#xD;

    Thank you!

  5. 5

    Sky said,

    how to add a line break in xml — finally!! thank you so much!!

  6. 6

    NIck said,

    its so brilliant it doesn’t even make sense. its an emoticon, not a #.

  7. 7

    Athesia said,

    Thanks SO MUCH! why is it so hard to find that simple solution !!!???

  8. 8

    Scott said,

    Wow, the most helpful thing I’ve come across all week!

  9. 9

    thankS!! said,

    THANKKS SSSSS BRILITANT!

  10. 10

    Bold said,

    okay how if i want to do bold text?

  11. 11

    viviangper said,

    I would turn on “render as html” in flash text field and use a bold tag in XML

  12. 12

    Bold said,

    thanks viviang for your answer, but may i knw how to render as html in flash text field>? im still n00b sorry :)

  13. 13

    Bold said,

    and i try just now render to HTML , but when i put it in my xml editor the script not working :(

  14. 14

    Bold said,

    is there any MAgic Trick like the script up there :D !!??

  15. 15

    Suwahadi said,

    Wow… Iam using &#xD; and work succesfully.
    Thanks a lots… ;)

  16. 16

    Uffe Steffensen said,

    Thank U… thank U… and big thanks to Google!!!

  17. 17

    Ted Bundy said,

    OMG… I think I love you. Do you have ANY idea how long I’ve serached for this!?

  18. 18

    kris said,

    man ! how did you find that !
    just great

    thx !

  19. 19

    Thanks so much, at least someone make it!

  20. 20

    sok said,

    Doesn’t work for me

  21. 21

    Mel said,

    Thanks soooo much. Lifesaver.. this info should be everywhere :-)

  22. 22

    frankie said,

    great, it works perfect… do you know a trick to add a link? without using cdata or ???
    thanks a lot

  23. 23

    Div said,

    U R simply awesome! Thanks so much :)

  24. 24

    Chris said,

    You have no idea how much time you just saved me! I was looking at having to go back and change a ton of attributes into nodes.

  25. 25

    Thanks so much for this great flash XML trick! Works great!!

  26. 26

    Do you know if this works in a .ini file?

  27. 28

    cindy said,

    yes! thank you. Neither /n nor nor escaping the tags worked.

  28. 29

    franchesco said,

    Work! you are my idol! jaja

  29. 30

    Bob said,

    Very interestingly. I wish more such articles on this portal. Thanks for the article.

  30. 31

    Kimi said,

    i am facing same kind of problem but not that. my and tag are not working . I am using these tags in xml and load into flash.
    please help me

  31. 32

    Kimi said,

    i am facing same kind of problem but not that. my bold and italic tag are not working . I am using these tags in xml and load into flash.
    please help me

  32. 33

    Suman Raju said,

    You are rocks, cool :)

  33. 34

    Erich said,

    I owe you my life. Thanks a lot!

  34. 35

    andre said,

    Brilliant! Thank you very much for posting this solution. It worked perfectly!! Highly appreciated! Best regards. Andre


Comment RSS · TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.