• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 11. Adding Generator Content > Specifying a Print Area

Specifying a Print Area

You can exercise a great deal of control of the appearance of printed content in Flash. One thing you can do is specify a print area to provide precise page layout. In the following exercise, you'll do just that.

1.
Double-click the Chart Clip movie clip in frame 1 of the Chart layer in about5.fla to open it in symbol-editing mode. Name the layer in the Chart Clip movie clip Chart. Add two more layers, named Actions/Labels and Print Area.

You're going to modify the movie clip just a bit to provide a better print area for the printed content.

2.
Select frame 1 of the Actions/Labels layer. In the Frame panel, type #p in the Label text box. Add the ActionScript stop();.

If you want to print only the contents of a specific frame in the targeted timeline, you have to label that frame #p. The bounding area will be in a new frame, which you'll add in the following step, but you don't ever want the movie clip to play that frame. That's why you need to add a stop action in this step.

3.
Insert a keyframe at frame 2 of the Actions/Labels layer. In the Frame panel, type #b in the Label text box.

If you want to specify the bounding area of a single frame as the print area for the printed content, you must label that frame #b.

4.
Insert a keyframe at frame 2 of the Print Area layer. Select this new keyframe, and add an instance of the Background Rectangle. In the Info panel, set W to 170, H to 130, X to –85, and Y to –65.

This instance of the Background Rectangle will act as the print area for the printed content.

5.
Choose Edit > Edit Movie. Select the instance of the Print Button symbol in the Print Button layer. In the Action panel, change the ActionScript so that the type is bmovie.

The ActionScript should look like this:

on (release) { 
 print ("chart", "bmovie");
}

To use the print area specified in the frame labeled #b, the type argument has to be set to bmovie.

6.
Choose Control > Test Movie. When the test movie opens, click the Print button.

The chart should now have a nice margin when it's printed.

7.
Close the test movie, and save the file as about6.fla in the MyWork folder.

You're done with this movie, so you can close it.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint