Skip to main content
BrianStapleton
Known Participant
May 19, 2009
Question

Printing in Flash

  • May 19, 2009
  • 1 reply
  • 418 views

Ahoy there Adobe forum!

I've a good understanding of flash but not so good when it comes to actionscript. At the moment I'm trying to build a flash site with a print button which will target specific areas of my site (including the contents of a scrollpane) and then fit them to the size of the page. I've spent a long time trying to get this to work, following different tutorials and Googling until my eyes went blurry, with very little success. The deadline approaches and I am getting desperate. Does anyone have any suggestions on how to achieve all of these requirements? Ideally I would love some magical component like videoMaru but that may be a tall order! If someone could please point me in the direction of a decent tutorial or even give me a few quick tips, I would be eternally grateful. I am publishing my swfs for Flash Player 8 with ActionScript 2.

Many thanks,

Brian

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
May 19, 2009

the only way i've found to achieve pixel perfect control of what's being printed is to create a printjob instance, apply the start() method and then use its pageHeight and pageWidth properties to create a movieclip with the precise layout you want attaching exactly the items you want printed.

BrianStapleton
Known Participant
May 26, 2009

Hey kglad, thanks for getting back to me. I'll give that a shot.

kglad
Community Expert
Community Expert
May 26, 2009

you're welcome.