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
targetshould 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( )
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access