User Guide
474 Chapter 12: Methods
Example
t = transform()
t.transform.identity()
t.transform.rotate(0, 90, 0)
t.transform.preTranslate(100, 0, 0)
gbModel = member("scene").model("mars")
gbModel.transform = t
put gbModel.transform.position
-- vector(0.0000, 0.0000, -100.0000)
print()
Usage
-- Lingo syntax
spriteObjRef.print({targetName, #printingBounds})
// JavaScript syntax
spriteObjRef.print({targetName, #printingBounds});
Description
Command; calls the corresponding print ActionScript command, which was introduced in
Flash 5. All frames in the Flash movie that have been labeled
#p are printed. If no individual
frames have been labeled, the whole movie prints.
Because printing of Flash movies is rather complicated, you may benefit from reviewing the
section about printing in the Flash 5 documentation before using this sprite function.
Parameters
targetName
Optional. Specifies the name of the target movie or movie clip to be printed. If
omitted (if the target is 0), then the main Flash movie is printed.
printingBounds Optional. Specifies the options for the printing bounds. If omitted, the bounds
of the target movie are used. If specified,
printingBounds must be one of the following values:
• #bframe. If specified, then the printing bounds for each page are changed to match each frame
that is being printed.
• #bmax. If specified, then the printing bounds become a large enough virtual rectangle to fit all
frames to be printed.
printAsBitmap()
Usage
-- Lingo syntax
spriteObjRef.printAsBitmap({targetName, #printingBounds})
// JavaScript syntax
spriteObjRef.printAsBitmap({targetName, #printingBounds});
Description
Flash sprite command; functions much like the print command, but works only with
Flash sprites. However,
printAsBitmap can be used to print objects containing alpha
channel information.