Using PrintJob class

Hi all

I’m new to AS3 and was never all that proficient at AS2. I’m working on a simple drag and drop piece and I want to be able to print the contents of the drag and drop.

I’m trying to use the PrintJob class that comes with CS4 but its not working.

Here’s what I have…

THE BUTTON HANDLER

print_btn.addEventListener(MouseEvent.CLICK,printContent); 

function printContent(evt:MouseEvent) {
    var printJob:PrintJob = new PrintJob();

    if (printJob.start()) {

        if (content_MC.width>printJob.pageWidth) {
            content_MC.width=printJob.pageWidth;
            content_MC.scaleY=content_MC.scaleX;
        }

        printJob.addPage(content_MC);
        printJob.send();
    }
}

THE PrintJob CLASS INCLUDED IN CS4

//****************************************************************************
// ActionScript Standard Library
// PrintJob object
//****************************************************************************

intrinsic class PrintJob
{
    var orientation:String;
    var pageHeight:Number;
    var pageWidth:Number;
    var paperHeight:Number;
    var paperWidth:Number;

    function PrintJob();

    function addPage(target:Object, printArea:Object, options:Object, frameNum:Number):Boolean;
    function send():Void;
    function start():Boolean;
}

I keep getting all sorts of errors prompting me to edit the PrintJob class. But as soon as I make an edit it comes up with one error after another an won’t work.

What am I missing here? Shouldn’t the CS4 PrintJob class just be right out of the box? Sorry if this is such a newbie question. But I am a newbie!

Any help would be greatly appreciated.

Thanks in advance!