简体   繁体   English

从SWF自动生成图像

[英]Automatically generate images from SWF

I'm looking for something that automatically generates images from the content in some SWF and stores the images on a server to be fetched if the user doesn't have Flash Player installed. 我正在寻找一种可以自动从某些SWF中的内容生成图像并将图像存储在要安装的服务器上(如果用户未安装Flash Player的情况)的工具。 The purpose is to at least show a static diagram instead of just a table with data, if Flash Player isn't installed. 目的是至少显示一个静态图,而不是仅显示一个带有数据的表(如果未安装Flash Player)。

It's quite easy to create an image from a DisplayObject using Actionscript, but that requires someone opens the SWF in the first place. 使用Actionscript从DisplayObject创建图像非常容易,但是首先需要有人打开SWF。 I would like this to execute on the server side. 我希望这在服务器端执行。 Is it possible? 可能吗? Is there a headless Flash Player that could be used with PHP for example? 例如,是否有无头Flash Player可以与PHP一起使用?

You could create a "shell" flash app that loaded in other swfs and took bitmapData "screenshots" at a predefined interval and dumped them to the server. 您可以创建一个“外壳” Flash应用程序,该应用程序加载到其他swfs中,并以预定的时间间隔获取bitmapData “屏幕快照”,然后将其转储到服务器中。 You would have to be able to install the flash player server-side and run it from a command. 您将必须能够在服务器端安装Flash Player并从命令中运行它。

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

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