• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1075
  • Last Modified:

actionscript strings carriage return

i would like to output strings on seperate lines from an xml file

_root.presentation.Retailers.waslide.waholder.text = this.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue+this.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue;

this outputs like this

storename address
but i would like a break between the lines

so it outputs

storename
address

may sound like a stupid question but how do i include a carriage return to bring the second string to the next line?
thanks
0
paulp75
Asked:
paulp75
2 Solutions
 
CyanBlueCommented:
You could try adding the '\n' like this...

_root.presentation.Retailers.waslide.waholder.text = this.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue + '\n' + this.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue;

CyanBlue
0
 
BishopNeoCommented:
If you are putting this into a dynamic text field within a Flash clip you can use 'newline'.  Like so:
_root.presentation.Retailers.waslide.waholder.text = this.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue + newline + this.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue;
0
 
paulp75Author Commented:
both of these methods worked great. thanks for the help
:)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now