views:

662

answers:

1

I need to add a print button to my page that should print a certain page

the best way should be that i add an html and that it would print from out flash or is it possible to open a html page and automatically open the print dialog box?

it's in AS3

A: 

You can open simple html in a TextField (not every html tag is suported), plus it might be a bit tricky with css.

If you get it sortet out, AS3 supports printing straight from flash. You'll find more of that here:http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/printing/PrintJob.html

But I would think the easiest thing would be to call javascript from flash (using ExternalInterface), and have the javascript request the user to print it. GMail does somehting similar, thought without the flash.

Lillemanden