Skip to main content
Inspiring
June 27, 2011
Answered

AS3 \n = newline, how about tab spacing?

  • June 27, 2011
  • 3 replies
  • 7031 views

Hi all,

In AS3, we can format textfield to a newline by using \n. And now I'm trying to find out how do I use tab spacing in AS3?

I want to format my textfield to look like this:

Name               : Jane

Age                  : 18

Gender             : F

Currently it looks like this (very ugly):

Name: Jane

Age: 18

Gender: F

Thanks,

-Zainuu

This topic has been closed for replies.
Correct answer markerline

Here's a list of additional escape characters including tab:

http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000948.html

3 replies

ZainuuAuthor
Inspiring
June 27, 2011

Thanks

relaxatraja
Inspiring
June 27, 2011

Even the above will solve the same, but a sample here to use:

txt.text="Name\t:\tRaja";

markerline
markerlineCorrect answer
Inspiring
June 27, 2011
Mr Seaniepie
Known Participant
July 10, 2014

The link now for CC2014 on is:

http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00000333.html

Thanks for the help though