A problem occured while loading the plugin: krl_flickr_photoset -> : Assigning the return value of new by reference is deprecated on line 18
kelvinluck.com: Flash bug when printing fonts anti-aliased for readablitiy
Get Firefox! creative commons

Flash bug when printing fonts anti-aliased for readablitiy

I just came across an annoying bug in Flash running in a browser which appears when you use PrintJob to print a TextField with embedded fonts where “anti-alias for readability” is selected… The bug manifests itself by drawing a big green box behind these TextFields.
Since a google around didn’t seem to reveal anything I thought that I would make a note of the problem and my solution (such as it is) here.

The Problem
The problem is exhibited in the swf embedded below:

Sorry, you require Flash 8 to view this movie.

When this is playing in a browser (I tried IE/PC and Firefox on Mac and PC with the Flash 9 player) and you press the print button your printout will looks something like this:

Displays the green box Flash has added behind the text

Hmmmm! Where did that big green box come from?

If you want to recreate this problem yourself you can download the files from this example here. Bear in mind that the bug doesn’t manifest itself when you are testing from the Flash IDE. I’m not sure if this is because it is a bug in the Flash 9 player or in just in the player when it is running in a browser…

The solution
Not much of a solution but as you can see in the test above this bug only bites when you are printing an embeded font which is set to “anti-alias for readability”. So the way to avoid the problem is not to select this method of anti aliasing when you are embeding fonts and printing a movieclip.

Hopefully this page will show up in google and will save someone else the hour I wasted trying to figure out what was going on!

  1. Hey Kenin, not that this helps to much but they all print from here.

    tyler larson    Nov 18, 17:19    #
  2. Hi Tyler,

    I got an email from a contact at Adobe on the 15th November saying that Adobe quietly released an updated Flash Player on the 14th November which fixed the bug. So the bug will only effect people who have earlier versions of the Flash 9 player – hopefully not too many,


    Kelvin Luck    Nov 18, 21:10    #
  3. Tyler-
    Thanks for the info. I’m encountering the same problem, was looking to find a fix when I came across your page…so your post did make it’s way to the top of google results via “Flash Player 9 print green”

    thanks much-

    Tyler    Mar 7, 17:42    #
  4. yet this helped me, thanks mate

    — simon    Aug 9, 07:20    #
  5. +1 Thanks!

    — Asa    Mar 6, 10:31    #