开发者

Taking a screenshot of flash game/animation, server-side? (or client-side?)

开发者 https://www.devze.com 2023-04-07 02:21 出处:网络
I\'m just wondering, is it possible for a server-side script to take screenshot of a flash animation (no matter the time in the animation, resolution etc) located on the server?

I'm just wondering, is it possible for a server-side script to take screenshot of a flash animation (no matter the time in the animation, resolution etc) located on the server?

Also acceptable would be a solution that could make use of client-side scripting, like JavaScript, but which could then upload the screenshot to the server (actually, now that I'm thinking about it, this one makes more sense... but I'll just leave the title like that, so it sounds more interesting).

So does anyone have any idea?

For you to understand better, here is an example:

Say I'm starting a flash games website, or flash animations website. Now I already have 22,403 fla开发者_JAVA技巧sh animations on my server (duh...) and want my users to be able to take a sneak peak in the game before they play it, offering them a screenshot or image from inside the game before starting (just like most of the flash game websites do...).

And yeah, I don't really want to make all the 22k-something snapshots myself (load the game, press printscreen, paste in Microsoft Paint, cut the game, save and upload... I mean, seriously?

I hope you understood me a little.

If you have any ideas, please don't hesitate to shout it to me!


You can use webkit and virtual X server. Here is a simple tool:

http://cutycapt.sourceforge.net/

For example, while plugin support can be enabled, and the plugins execute properly, their rendering cannot be captured on some platforms. Use of with caution.

Hope it helps you.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号