Using the AS2 PrintJob class … using attachmovie? or using stage mc’s?
June 19th, 2005 by Scott JanousekYes, the printjob class has been around for quite a while, but I’m finally getting a chance to use it in a more sophisticated way (dynamic text in mc’s etc) …
This post is for AS2 folks who have dealt with the PrintJob class before on a sophisticated level (dynamic text, graphics, etc). I’d like some feedback on the best way to handle sophisticated “print layouts” … think reports … and avoid any potential pitfalls!
Right now, I have a proof of concept for 2 methods of printing. One that uses attachmovie and “offscreen” printing, and one that uses “onscreen” stage items printing … are there any ways other ways (excluding older methods of printing)? Which is better in your opinion? I’m leaning towards attachmovie clips and populating them before printing …
Below is my initial proof. If you have dealt with printjob in a lot of detail before, please post your thoughts on anything you’ve done that has improved on the PrintJob class, or beyond simple static print outs. You can also use this post to vent any fustrations you’ve had with dealing with any issues …
Just looking for feedback on the PrintJob class.
Here are some quick files:
printableitems.html
printableitems.fla
PrintableItems.as
or download all the files in printableitems.zip.
Thanks.
Print This Post





July 16th, 2006 at 2:49 pm
I like the attachMovie way better as it allows printable stuff to only exist for printing after which it can be removed.
What about margins?. My initial test showed that putting clips at -50 still kept them at 0,0 within the margins of the page.
November 8th, 2006 at 12:29 pm
I work for a development company and they want to be able to use the PrintJob.class to print movie clip that has both bitmap information and vector.
the movie clip gets instantiated from vector, which they then want to specify a bounding box that converts to bitmap (printAsBitmap) only that area.
So you would see a floor plan as bitmap and logo and text as vector….
any ideas?
September 25th, 2008 at 1:03 pm
If you kill the source files that go with this blog entry, then perhaps you should kill the blog entry as well.
Just a thought.