The Flash Mobile Show


Using the AS2 PrintJob class … using attachmovie? or using stage mc’s?

June 19th, 2005 by Scott Janousek
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 2.5 out of 5)
Loading ... Loading ...

Yes, 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 Print This Post

Current Visitors


3 Responses to “Using the AS2 PrintJob class … using attachmovie? or using stage mc’s?”

  1. ABCD Says:

    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.

  2. Brent Says:

    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?

  3. disappointed Says:

    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.

Leave a Reply



Readers who viewed this page, also viewed:

  • N/A
Entries (RSS) and Comments (RSS).

© Copyright 1995-2006 scottjanousek.com. All Rights Reserved.
Graphics & Design by Scott Janousek. (Some) icons by Kevin Potts.