是否有可能从Flash中打开HTML弹出窗口, 并使其从Flash接收应打印的文本数据……而这一切仅在AS3和Javascript中可用(因为没有可用的服务器端脚本)?
Yes, you can write a Javascript function to open the popup, and link to it via ExternalInterface.
Learn more here:
I don't think ExternalInterface will help you doing this as You want to print something which is inside the flash (some textfield or may be graphics). You can use flash.priniting.PrintJob
and add frames / sprites as pages to the printjob, which will then be sent to printer. And yes, there be default print pop-up whenever you call printJob.start()
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.