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: