beautypg.com

Adobe Flash Professional CC 2014 v.13.0 User Manual

Page 657

background image

different sizes in each frame fill the printed page. To change the bounding box per frame, use the Frame parameter in the Print action
parameters, as shown in the following example:

print ("myMovie", "bframe")

The print() function lets you designate the bounding box of a specific frame in a document as the print area for all printable frames in the
document, as shown in the following example:

print ("myMovie", "bmovie")

You use the frame label #b to designate a frame to be used to designate the print area. The label #b must be on the same layer as a frame
labeled #p.

For more information about print() function parameters, see “print function” in the

ActionScript 2.0 Language Reference

.

Using the print() function when not using the PrintJob object

The basic syntax for the ActionScript 2.0 print() function, which you can associate with a button or other trigger in your document to activate
printing, is as follows:

print (target, "Bounding box");

The target parameter specifies the location of the frames that print, and the bounding box parameter specifies the print area.

Assign a print() function to a button, frame, or movie clip in your document to let users print Flash Professional content. If you assign a print()
function to a frame, the action executes when the playhead reaches the designated frame.

The print() function lets you print frames in other movie clips in addition to the main Timeline. Each print() function sets only one Timeline for
printing, but the action lets you specify any number of frames in the Timeline to print. If you attach more than one print() function to a single button
or frame, the Print dialog box appears for each action executed.

See also “print function” in the

ActionScript 2.0 Language Reference

.

Legal Notices

|

Online Privacy Policy

650