Hi
I'm having problems correctly rotating a movieclip to accomodate
users printing in either portrait or landscape format.
There was a thread about this maybe 4 to 6 weeks ago and I'm unable
to locate it in the archives. If anyone recalls that, would they mind
pointing me to it?
The item to print is a landscape formatted movieClip and I'm wanting
to rotate and scale it so that users with print setup to portrait
will still print it OK.
Here's my code which works OK on some machines but not others.
MovieClip to print is postcardClip and it's normal size is much
smaller than page size...
var myPrintJob:PrintJob = new PrintJob();
var notCancelled:Boolean = myPrintJob.start();
if (notCancelled){
var startScaleX:Number = postcardClip._xscale;
var startScaleY:Number = postcardClip._yscale;
if (myPrintJob.orientation == "portrait"){ // NEED TO ROTATE
postcardClip._rotation = 270;
}
postcardClip._xscale = 180;
postcardClip._yscale = 180;
myPrintJob.addPage(postcardClip);
myPrintJob.send();
postcardClip._rotation = 0;
postcardClip._xscale = startScaleX;
postcardClip._yscale = startScaleY;
}
delete myPrintJob;
What's happening is that on some computer/printer combinations, a
triangular portion (half the image) is printing correctly with the
other triangular half printing as solid triangular block. I suspect
something wrong with the scaling part of my code.
Any help appreciated.
David
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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