Skip to main content
Inspiring
January 29, 2009
Question

creating 'print this page' button using AS3

  • January 29, 2009
  • 3 replies
  • 590 views
Hi all,

I need to create a button, or at least a movie clip that functions like a button that will print a page when clicked. Ideally I would like to have the button as part of the flash application, which will be online embedded into a web page as a .swf. on click the print page dialog box will appear, and the user will be able to print out the web page. What is the best way to code this?
This topic has been closed for replies.

3 replies

kglad
Community Expert
Community Expert
January 30, 2009
sure. the swf's main timeline is a movieclip, so if you want to print everything that's on the swf stage, use the printjob() class to print the main timeline.
Inspiring
January 29, 2009
thanks, interesting. Well, I really only need to print information contained in the .swf. Can I do that, if the .swf is in a web page?
kglad
Community Expert
Community Expert
January 29, 2009
flash can't print a web page by itself. it can print objects in the swf.