Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

StringPanel XML Text w/ Carriage Returns/LineFeeds

Contributor ,
Dec 28, 2012 Dec 28, 2012

Hi All,

I am trying to add a line break to XML String Panel text. I have CS5, AS2 and Player Ver. 8 set.

The text is Classic. The Font is MS Arial unicode.

The Text is in 15 languages including CJK.

I am trying to use \f, \n, and \r.  They are not working.

If I try to put a carriage return (Enter key) manually in the strings panel text, I get 2 lines. (not uncommon, but not expected there)

Do I use the \unnnn Unicode charter insertion or HTML codes or is it broken?

Thanks,

Jim Wiley

TOPICS
ActionScript
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 28, 2012 Dec 28, 2012

are you adding the returns in the strings panel or in an xml file?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 28, 2012 Dec 28, 2012

I have tried both.

Thanks for the response

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 28, 2012 Dec 28, 2012

make sure your textfield is multiline.

if that doesn't fix the problem, exactly what is the problem?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 28, 2012 Dec 28, 2012

I can't get it to give me a single line feed (\f) or a new line like many text editors that only give a single line from a Enter/Return key press in the Strings Panel. Same for the raw XML file. It is always 2 line feeds.

I am just trying to set line breaks.

Thanks again.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 28, 2012 Dec 28, 2012

i don't see a problem. 

do you see a different leading when using a carriage return in the strings panel vs when typing text with a carriage return directly into a dynamic textfield?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 28, 2012 Dec 28, 2012

OK - this is modal. I was linking the text directly using commands only. I was not forcing the link to the text field by Applying the String Panel cell data (XML).

You would think the CS5 would honor the \f etc. in the raw XML text data.

Thanks Kglad

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 28, 2012 Dec 28, 2012
LATEST

you're welcome.

p.s. please mark helpful/correct responses, if there are any.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines