thank you for your response.

question: how do you/did you include the non-breaking space with the embedded characters via the properties panel, i.e. did you write " " in the "include these characters" field?

and yes, in the end my problem was a little different. i was adding only one non-breaking space and was expecting the first word in the next line to be moved one space, when in fact there were probably 6 or 7 spaces remaining in the above line. my solution was to first create a new line via "\n\ and then add a space via unicode "\u00a0".

and that solved my problem.

thank you. -- matt.
----- Original Message ----- From: "Jason Lutes" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
Sent: Thursday, February 08, 2007 11:54 AM
Subject: RE: [Flashcoders] adding &nbsp; in html enabled text field


I checked, and "this.foo = 'Jason Lutes';", "this.foo = 'Jason&#160;Lutes';", and "this.foo = 'Jason&#x00A0;Lutes';" all display the non-breaking space just fine (foo is my TextField variable).

Note: I included the non-breaking space with the embedded characters via the Properties panel, as well as enabled HTML for the field, etc.

Either I misunderstood the trouble you're having, or your issue is apparently not whether the text field can display these via the outdated/legacy variable mechanism. It can, and very easily/straightforward.

When you trace the value of the htmlText property of the field to the Output window, is the nbsp character, or it's entity (encoded equivalent), still in the text?

Related: Aside from the five (required) XML-specific character entities, don't use the mnemonic entities, use a numeric entity (either decimal or hexadecimal). For example, the copyright symbol should be inserted as &#169; or &#x00A9; (when using an entity at all), not as &copy;.


-
Jason
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to