Alt+0160 works as 'the' extended character code to insert non-breaking spaces in Flex application on Windows.
One catch here though, sometimes, even though we add this special character into our properties file, or actionscript/mxml code. Its still not rendered(the space vanishes!). This is because the font that you might have embedded into your application, and with is used as the font family for the rendered text, might not be supporting this extended character.
For me, I had to do the following to make it work:
1) Open font.fla into Flash Professional.
2) Select the font symbol, at the bottom you'll find 'Embed' button. Click on it, dialog opens, press Alt+0160 to add this character into the list.
3) Export swf and use it in my app.

One catch here though, sometimes, even though we add this special character into our properties file, or actionscript/mxml code. Its still not rendered(the space vanishes!). This is because the font that you might have embedded into your application, and with is used as the font family for the rendered text, might not be supporting this extended character.
For me, I had to do the following to make it work:
1) Open font.fla into Flash Professional.
2) Select the font symbol, at the bottom you'll find 'Embed' button. Click on it, dialog opens, press Alt+0160 to add this character into the list.
3) Export swf and use it in my app.
No comments:
Post a Comment