views:

60

answers:

1

How do i print the entire scene contents to photographic paper?

+2  A: 

i found the solution hours lately, behold a function that let's you print your scene contents in AS3, just by calling it:

private function printScreen():void

    {
        var printJob:PrintJob = new PrintJob();

        if ( !printJob.start() )
            return;

        printJob.addPage(Sprite(root));
        printJob.send()

        printJob = null;    

}

Just call it from a mouse/keyboard event and you're good to go.

Carlos Barbosa