printAsBitmap()
Top  Previous  Next


SWiSH Player Support
SWF5 or later - Not Supported (Use File | Test | Browser/Player)

Syntax
printAsBitmap({"Bounding box"})
printAsBitmapTarget(target {, "Bounding box"})
printAsBitmapNum(level {, "Bounding box"})
target.printAsBitmap({"Bounding box"})
_level.printAsBitmap({"Bounding box"})

Arguments
target; The sprite that contains the frames you want to print. By default, all frames inside the Sprite will print. In order to print only specific frames, add a #P label to each frame you want to print.

level;
The level of the SWF file that you want to print.

Bounding box;
A modifier that sets the print area of the movie. This argument is optional.
You can choose one of the following:
bmovie; uses the bounding box of a specific frame as the print area for all other printable frames. Use a #b frame label on a specific frame to use it as the print area.  
bmax; can be used when the printable frames may vary in size.  
bframe; uses the bounding box from each printable frame for the print area. The print area can change for each frame based on its size and will scale objects to fit within the print area. You can use bframe if each frame consists of different sized objects that you want to fill the printed area.  


Returns
Nothing.

Description
Action; prints the specified Sprite as a bitmap image. You can use printAsBitmap if you have frames with objects using transparency. The printAsBitmap also prints using the printer's highest available resolution.

If no boundaries are specified in the bounding box argument, the dimensions of the loaded movie are used as the print area.
All of the data you wish to print must be loaded before the print action will be executed.

Note: If you do not need to print using alpha transparency, it is advised to use the print action for better results.

See Also
print