Have a look at the Printing class I added to my blog:

http://delfeld.wordpress.com/2010/03/19/as3-printing-mc-or-sprite/

I have not been able to view the objects unless I moved the objects
onto the stage.  Just centering the camera/view does not work in
printing.  This may be the problem you are having, as it caused me a
minor headache.



On Mar 18, 10:53 am, Konstantinos Anatolitis
<[email protected]> wrote:
> OK Joshua,
>
> I tried what you said, but with no luck.
>
> My View3D is called view and I try to print it with the following function.
>
> I don't really understand how to use BitmapData.draw with my view to make it
> work.
>
> I would really appreciate it if you could explain it more.
>
> Thanks a lot!
>
> function printAll(e:MouseEvent):void {
>             var myPrintJob:PrintJob = new PrintJob();
>             var mySprite:Sprite = new Sprite();
>
>             var result:Boolean = myPrintJob.start();
>
>             mySprite.addChild(room_mc);
>
>             if (result) {
>                 myPrintJob.addPage( mySprite );
>
>                 myPrintJob.send();
>                 myPrintJob = null;
>
>                 } else {
>                 //User does not have printer or user canceled print action
>             }
>         }
>
> On Wed, Mar 10, 2010 at 2:46 AM, Joshua Granick 
> <[email protected]>wrote:
>
> > Create a new BitmapData object, use the draw method to turn a Sprite (or
> > View3D object, what-have-you) into a Bitmap.
>
> > Once you have a Bitmap, you can send it to a printer or PDF
>
> > On Tue, 09 Mar 2010 11:07:40 -0800, Konstantinos Anatolitis <
> > [email protected]> wrote:
>
> >  I guess I didn't make myself clear.
>
> >> I want to use the PrintJob Class to print my 3D scene in my application to
> >> print whatever my camera is seeing.
>
> >> On Tue, Mar 9, 2010 at 5:58 PM, jens lofberg <[email protected]>
> >> wrote:
>
> >>  Hi
> >>> I don't know if this help you but a classical way of printing flash (with
> >>> vectors) is to print as pdf and then open in illustrator. But you have to
> >>> have a pdf printer installed (included in acrobat pro or alternative open
> >>> source)
>
> >>> jens
>
> >>> Konstantinos Anatolitis a écrit :
>
> >>>  Hi all!
>
> >>>> Is it possible to print my 3D Scene?
> >>>> If so, how do I do it?
>
> >>>> Thanks in advance.
>
> >>>> k.//

To unsubscribe from this group, send email to 
away3d-dev+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to