
printNum() Global Function
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
742
|
ActionScript Language Reference
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 document levels only, not movie
clips. It normally is used to dynamically assign the level of a movie to print, as in:
var x = 3;
printAsBitmapNum(x, "bmax");
which can 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()
printNum() Global Function
print the frames of a document level using vectors
Flash 5
printNum(level, boundingBox)
Arguments
level A nonnegative integer or an expression that yields a nonnegative integer, indi-
cating the document level to print.
boundingBox
A string—either
"bframe", "bmax",or"bmovie"—indicating how the printed
frames of
target should be cropped or scaled when printed, as described
earlier under print().
Description
The printNum() function is nearly identical to print(), except that it requires the target
level of the print operation to be specified as a number rather than as a string. This means