In AS2, the PrintJob class allows you to pick parts of the screen, or particular movieclips, or frames of a movie clip to send to the printer.
You can make changes to the appearance of a movie clip, send it to the printer, and then change it back.
var pj:PrintJob = new PrintJob();
pj.start(); //now you can find out the orientation of the page setup, or the width of the printable area etc.
pj.addPage(_root);
pj.send();
The addPage function has four parameters:
The first lets you say which movie clip you want to print.
The second lets you pick a particular area of the movie clip.
The third lets you render bitmap pictures more accurately.
The fourth lets you pick a frame of the movie clip to print, so you could print frame 2 of the root timeline while still on frame 1.
For more info, see http://docs.brajeshwar.com/as2/PrintJob.html
No comments:
Post a Comment
Please enter your message here...