Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print button parameters

Status
Not open for further replies.

apollo85

Technical User
Mar 29, 2007
5
GB
Hi all,

I have a print button on the main stage. When released, it targets a specific MC instance and prints it out... fine so far.

However, I want to specify another 3 parameters to the print button:

1) The object has to be printed out in LANDSCAPE format (default is portrait). Can this be coded into the button's actions?

2) The printed MC instance should have a short line of descriptive text at bottom of page. I tried to put the text in the MC itself, where it's not visible on the stage, but am wondering if there's a better way of doing this.

3) I want to control the output size (ie % scaling) of the printed-out MC.

Here's the code I'm using at present:

-------------------------------------
on (release) {
printAsBitmap("gallitem1", "bmovie");
}
-------------------------------------

I need to know what (if any) additional code achieves the above 3 results... any ideas?

Thanks for your time!

Benny
 
printAsBitmap" is a Flash 4 command, if you're targeting Flash 7+ you should use PrintJob Class instead. However even in the PrintJob Class I don't think you can set the print orientation - it's up to the user how to print. But you can obtain "PrintJob.orientation" property (read-only) so that if it's "portrait" then you can alert the user - in theory at least as I haven't tested this.

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top