Name
printAsBitmapNum( ) Global Function — print the frames of a document level as bitmaps
Availability
Flash 5
Synopsis
printAsBitmapNum(level, boundingBox)
Arguments
- level
A non-negative integer or an expression that yields a non-negative integer, indicating the document level to print.
- boundingBox
A string indicating how the printed frames of
target
should be cropped when printed, as described earlier underprint( )
.
Description
The printAsBitmapNum( )
function is nearly
identical to printAsBitmap( )
except that it
requires the target level
of the print
operation to be specified as a number rather than as a string. This
means that printAsBitmapNum( )
can print only
document levels, not movie clips. It is normally used when we wish to
dynamically assign the level of a movie to print, as in:
var x = 3; printAsBitmapNum(x, "bmax");
which could also be achieved using string concatenation with the
regular printAsBitmap( )
function:
printAsBitmap("_level" + x, "bmax");
Usage
See Usage notes under the print( )
function.
See Also
print( )
, printAsBitmap( )
,
printNum( )
Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.