Name
printNum( ) Global Function — print the frames of a document level using vectors
Availability
Flash 5
Synopsis
printNum(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 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 that
printNum( )
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; printNum(x, "bmax");
which could also be achieved using string concatenation with the
regular print( )
function:
print("_level" + x, "bmax");
Usage
See Usage notes under the print( )
function.
See Also
print( )
, printAsBitmap( )
,
printAsBitmapNum( )
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.