Every now and then, a bug fix comes along and you just want to jump for joy and say “hallelujah!”. Well, last week, one of those came in. The team has been pretty tight in selecting bugs to get fixed lately, but, I thought, it wouldn’t hurt to ask to have SDK-12901 fixed. This bug is one of many that complains that you cannot use a fade effect on any text unless the font for the text is embedded. This is one of the first things that Flex developers run into when they begin to use effects, like Fade. For a long time, we couldn’t fix this since there was a Flash Player limitation. However, a workaround has been provided to us by the player team in recent months. So, coming in Moxie … (drumroll, please) … you will be able to Fade text without embedding your fonts. This hasn’t been fully tested yet, so, some bugs may still be lingering, but, it has been checked in and I verified that it did work with a < mx:Label > and a Fade. Here was the checkin notice:
Change 188500 by jszeto@JSZETO-XP on 2007/11/20 20:20:51
Flex SDK Beta3 Bug Fix
SDK-12901 – Add support for system text in the Fade Effect
Applying a filter to a DisplayObject forces the Player to create a bitmap of that object. System font text can not be alpha’ed. But bitmaps can. So, in FadeInstance, I apply a BlurFilter (with values set to 0) to the target if the target doesn’t have any current filters. When the effect ends, we remove the temporary filter.