# PrintJob why does it clear the screen?

**URL:** <https://forum.kirupa.com/t/printjob-why-does-it-clear-the-screen/219386>\
**Category:** Uncategorized\
**Created:** [March 16, 2007, 3:08am UTC](https://forum.kirupa.com/t/printjob-why-does-it-clear-the-screen/219386 "2007-03-16T03:08:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![evynco](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/evynco/32/2159_2.png) [@evynco](https://forum.kirupa.com/u/evynco)\
**Post date:** [March 16, 2007, 3:08am UTC](https://forum.kirupa.com/t/printjob-why-does-it-clear-the-screen/219386/1 "2007-03-16T03:08:44Z")

</div>

I have written a colouring board/whiteboard app and it’s in use.

A small problem is just driving me bananas:

When a user has drawn a picture and printed it (PrintJob function)  
the drawing board is cleared. I don’t know why this is happening.

PrintJob code is: (the drawing is held in **\_root.canvas** )

> // PRINTING  
> this.print\_btn.onPress = function() {

var printit : printJob = **new PrintJob** ();  
if (printit.start()) {

var numPages:Number = 0;

if (printit. **addPage** (\_root.canvas,{xMin:0,xMax:750,yMin:0,yMax:575})) {  
numPages++;  
};

if (numPages \> 0) {  
printit.send(); // print page(s)  
}  
**delete** printit;

\_root.createEmptyMovieClip(“canvas”, 0);

} else {  
trace(“PrintJob.start() failed”);  
}  
}

Any A.S. gurus can help me out here ?:hangover:
