flash xml

Out of context: Reply #2

  • Started
  • Last post
  • 3 Responses
  • ********
    0

    Use a placeholder in your xml where you want your newline, for example use:

    %r being your placeholder

    Then in when you parse your xml put something like

    myVar = myXML.firstChild.attributes.myNo...
    myArray = myVar.split("%r");
    myTextField.text = myArray.join("\r");

    where \r is the actual unicode code for the carriage return

    Hope it helps

View thread