Applying Alpha Transparency to the System Font in Flash 9

If you have tried applying an alpha transparency fade to the ‘_sans’ system font in Flash 9 you’ll know that it doesn’t work. The fix is to apply a filter to the textfield first:

myTextField.filters = [new BlurFilter(0,0,0)];
myTextField.alpha = 0.5;

7 Responses

  1. Gaspy says:

    Hmm, I think applying the filter accomplishes the same thing as specifying .cacheAsBitmap

  2. This technique can also be used in flex by doing

  3. woops, guess I can’t use flex code in a comment

  4. ronni says:

    eu queria saber como faço para poder fazer um slide de fotos para mim

  5. Ronnie says:

    Applying the filter causes bitmap caching but however if you just apply cacheAsBitmap instead of the filter, somehow the alpha transparency doesn’t work. Might be a bug of sorts.

  6. Troy Gardner says:

    This trick deosn’t seem to work with rotation, but You can also do something similar with creating a bitmapData and drawing the textfield, past that it can be rotated.

Leave a Reply

Your email address will not be published. Required fields are marked *