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

The basic syntax for the 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.

You can add a print() function to a button or other element in your document to let users print Flash content. You assign the print() function to a button, frame, or movie clip. 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 within 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. For more information about the print() function, see print().