Fade dynamic text without embedding the font

I recently learned a technique that I appreciate a lot. A small and very easy solution, which documentation is very well hidden. My initial problem: Fading a textfield (using its Alpha values) without needing to embed the font. Having a Flash solution that should work with many languages, and in my case with Russian characters. Until I had to take the Russian characters in mind I embedded the fonts and everything was fading nicely. But when I chose the Russian language no text appeared at all…

After googling the web for a while, looking for workarounds I finally found a great solution. Setting the BlendMode on the textfield to BlendMode.LAYER will do the magic!

myTextField.blendMode = BlendMode.LAYER;

The image slideshow displayed on http://www.visitnorway.com now uses this solution and should be working good on all languages.

This entry was posted in Flash, Front-end, RIA. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>