Hello there, I am trying to enable printing of a page from a flash website i am working on. The only property I need to alter is the orientation property of the printJob object. I have tried setting this but it will not work. I have also tried another alternative suggested on the forums here of rotating the movieclip -90 but this just gives me a blank sheet! (I am not sure if this is because I am printing the root).
If anyone could let me know how to get this to work I would be really grateful
Have a good weekend
Here’s my code:
[AS]
_root.my_btn.onRelease = function() {
var pageCount:Number = 0;
var my_pj:PrintJob = new PrintJob();
if (my_pj.start()) {
this._parent.bgnd_mc._visible = false;
this._parent._xscale = 95;
this._parent._yscale = 95;
if (my_pj.addPage(0)) {
this._parent.bgnd_mc._visible = true;
this._parent._xscale = 100;
this._parent._yscale = 100;
pageCount++;
}
}
my_pj.orientation = “landscape”;
if (pageCount>0) {
my_pj.send();
}
delete my_pj;
};
[/AS]