flash xml
flash xml
- Started
- Last post
- 3 Responses
- johannes
if I have captions loading from xml, how do I do carriage returns to force new lines in the caption?
- Daro0
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
- Rand0
thanks