Well  if you must say I haven't read anything then do so... maybe I have
maybe I haven't, but I was looking for better suggestions? Who knows all
I know is when I print with the code below its in black and white. The
object is skewed and not even near the size I attended. How the freak do
I get things to print to scale, in color and correctly. That is my
problem and I was hoping to get answers without getting so technical....


[code]
on(release)
{
        var pj = new PrintJob();
        var success = pj.start();
        if(success)
        {
                pj.addPage(0, {xMin:0, xMax:675, yMin:0, yMax:425},
{printAsBitmap:true}, 20);
                pj.send();
        }
        delete pj;
}
[/code]

All I get is a overly huge image in black/white that for some unknown
reason is skewed also. How bout it anyone have some good ideas for this
first time PrintJob I am doing??? Thanks to you all!



cb


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks
Sent: Tuesday, February 21, 2006 2:47 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] HOW TO: Print a MC - first try.

> Right... Just wondered about any tutorials or peoples best practices.
> But if you feel like being a jerk to steam your own ego a bit 
> feel free.
> I didn't think this was a jerk off question.... one can be wrong.

Are you kidding me?  Open the Help panel in Flash and search for
"print".
It's not egotistical to point out that you're being lazy.  Did you even
GOOGLE it?

#2 listing on google for the search "printing in flash"
http://www.devx.com/webdev/Article/27318

It is a jerk off question to ask something this simple without first
searching in Flash and the web for your answer.  Hence, read the
freaking
manual.  But, since you're intent on not doing any footwork on your own,
here is the tutorial that is found inside Flash from the help panel.
Step
by step instructions.

Building a print job
To build a print job, you use functions that complete the tasks in the
order
outlined in this section. The sections that follow the procedure provide
explanations of the functions and properties associated with the
PrintJob
object.

Because you are spooling a print job to the user's operating system
between
your calls to PrintJob.start() and PrintJob.send(), and because the
PrintJob
functions might temporarily affect the Flash Player internal view of
onscreen Flash content, you should implement print-specific activities
only
between your calls to PrintJob.start() and PrintJob.send(). For example,
the
Flash content should not interact with the user between PrintJob.start()
and
PrintJob.send(). Instead, you should expeditiously complete formatting
of
your print job, add pages to the print job, and send the print job to
the
printer.

To build a print job:
Create an instance of the print job object: new PrintJob(). 
Start the print job and display the print dialog box for the operating
system: PrintJob.start(). For more information, see Starting a print
job. 
Add pages to the print job (call once per page to add to the print job):
PrintJob.addPage(). For more information, see Adding pages to a print
job. 
Send the print job to the printer: PrintJob.send(). For more
information,
see Sending the print job to the printer. 
Delete the print job: delete PrintJob. For more information, see
Deleting
the print job. 
The following example shows ActionScript that creates a print job for a
button:

myButton.onRelease = function()
{
  var my_pj = new PrintJob();
  var myResult = my_pj.start();
  if(myResult){
    myResult = my_pj.addPage (0, {xMin : 0, xMax: 400, yMin: 0, 
      yMax: 400});
    myResult = my_pj.addPage ("myMovieClip", {xMin : 0, xMax: 400, 
      yMin: 400, yMax: 800},{printAsBitmap:true}, 1);
    myResult = my_pj.addPage (1, null,{printAsBitmap:false}, 2);
    myResult = my_pj.addPage (0);

    my_pj.send();
  }
  delete my_pj;
}

Only one print job can run at any given time. A second print job cannot
be
created until one of the following events has happened with the previous
print job: 

The print job was entirely successful and PrintJob.send() method was
called.

The PrintJob.start() method returned a value of false. 
The PrintJob.addPage() method returned a value of false. 
The delete PrintJob method has been called. 
 

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to