546 Printing from SWF Files
3. Create a shape on the Stage the size of the desired print area.
You can also select a frame with any object of the appropriate print area size to use that
frame’s bounding box.
4. Select the frame in the Timeline that contains the shape you want to use for the
bounding box.
5. If the Property inspector does not appear, select Window > Properties.
6. In the Property inspector, enter #b for Label to specify the selected shape as the bounding
box for the print area.
You can enter only one #b label per Timeline. This option is the same as selecting the
Movie bounding box option with the Print action.
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 shown 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 function in
the ActionScript 2.0 Language Reference.