简体   繁体   English

Flash(AS3)打印..数据? HTML?

[英]Flash (as3) printing .. data ? html?

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? 最好的方法应该是我添加一个html并从Flash中打印出来,还是可以打开html页面并自动打开打印对话框?

it's in AS3 在AS3中

You can open simple html in a TextField (not every html tag is suported), plus it might be a bit tricky with css. 您可以在TextField中打开简单的html(并非支持所有的html标记),而且使用CSS可能有点棘手。

If you get it sortet out, AS3 supports printing straight from flash. 如果将其分类,则AS3支持直接从Flash打印。 You'll find more of that here: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/printing/PrintJob.html 您可以在此处找到更多信息: 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. 但我认为最简单的方法是从Flash(使用ExternalInterface)调用javascript,并让javascript请求用户进行打印。 GMail does somehting similar, thought without the flash. GMail确实做了类似的事情,以为没有闪存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM