Why don't you just rotate the entire movieclip instead of the textfield?
Works for me.
Here's the script for always printing landscape with PrintJob:
function printCertificate() {
var mc = MC_Certificate;
var realW = mc._width;
var realH = mc._height;
_pj = new PrintJob();
var pageCount = 0;
if (_pj.start()) {
var portrait, cXscale, cYscale;
var orient = _pj.orientation;
if (orient.toLowerCase() != "landscape") {
portrait = true;
mc._rotation = 90;
mc._x = mc._width;
cXscale = (_pj.pageWidth / realH) * 100;
cYscale = (_pj.pageHeight / realW) * 100;
} else {
cXscale = (_pj.pageWidth / realW) * 100;
cYscale = (_pj.pageHeight / realH) * 100;
}
mc._xscale = mc._yscale = Math.min(cXscale, cYscale);
if (_pj.addPage(mc, {xMin:0, xMax:realW, yMin:0,
yMax:realH})) {
pageCount++;
}
}
if (pageCount > 0) {
_pj.send();
}
mc._xscale = mc._yscale = 100;
if (portrait) {
mc._rotation = 0;
mc._x = 0;
mc._y = 0;
}
delete _pj;
}
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Burns, John D
> Sent: Friday, June 16, 2006 10:27 AM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Can't update text in rotated text field
>
> Yep. I just posted about that. I have a flash file that I started from
> scratch with the bare bones and I still can't get it to work.
> I can send
> it to anyone who may be interested in seeing if you can get
> it to work.
>
> Also, maybe this will make things easier. What I'm trying to
> do is print
> a certificate in landscape mode and I'm having no luck at using the
> printjob class to orient landscape. I've tried creating a printjob
> object and calling the start() method and immediately following I do a
> my_pj.orientation = "landscape" and it still prints in
> portrait. So, for
> kicks, I made a separate printobject after I blew the other
> one away and
> tried doing it in portrait to see if maybe something was just mixed up
> and both sheets came out the same. That's why I'm even trying
> to update
> text that is rotated is just to build the whole certificate sideways
> thinking that would be easier. Boy was I wrong.
>
>
> John Burns
> Certified Advanced ColdFusion MX Developer
> Wyle Laboratories, Inc. | Web Developer
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Steven
> Sacks
> Sent: Friday, June 16, 2006 1:07 PM
> To: 'Flashcoders mailing list'
> Subject: RE: [Flashcoders] Can't update text in rotated text field
>
> Did you try making a new Flash file and trying it in there?
>
> _______________________________________________
> [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
_______________________________________________
[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