NBSP in Flash

Using NBSP (non-breakable space) in flash is non-obvious.
Some method using htmlText exist (use  , which was not supported but now is), but if for some reason you don't want to use HTML, here is a workaround:
  1. use the special character "\u00A0" (UTF-8 code  00A0)  in your actionscript code to put nbsp anywhere you want;
  2. voilà! Test your SWF and check.
  3. if some weird square appears in lieu of the expected nbsp, that probably because you font doesn't implement this UTF-8 code. Use a font editor (ex: Type Light) to create a new font including this glyph.
  4. In Type Light, look for Latin I set, then look for character #160.
  5. Double-click on it: now you can edit an empty character (space-like).
  6. Just move the green line (on the right of the red line) halfway to the left. It creates a smaller space character.
  7. Save the font. Right-click on the file, select "Install". When prompted "overwrite?", select "yes".
  8. Restart Flash and re-publish your SWF.
Normally you now have pretty nbsp characters.

1 comment:

  1. With fashionable slots being layered with so much gameplay, like bonus rounds and a number of} wilds, bonus, and scatter symbols, it may be} really exhausting to work out what’s happening. Then, before you know it, you are 바카라사이트 taking a misstep and lose out. If you take a look at|have a look at} the superior choice of slot video games available at TwinSpires Casino, you may assume it’s a disgrace that want to|you must} spend money to expertise them. The reels could spin no sooner than 80 rpm, and the reels should cease inside one hundred ninety ms of pressing the button. This means they can slip up to as} three symbols to cheat you out of your skill-stopped win. Not that there are three symbols visible at once for each reel.