How to create a screenshot of Flash SWF on a server?

I am writing a Flash application using open source tools. I would like to upload a data file to the application and capture a screenshot of the scene on the server. The only part that seems cryptic is the launch of the application on the server. In fact, I don’t care if this application works on the server and in the browser - if I can use the flash scene and drawing procedures to create the server side of the image, I’m happy. If I need to delve into flexibility, great. Right now I'm having trouble finding a starting point.

I believe that Adobe has some commercial products that may fit the bill, but I would like to stick with open source, apache and linux. I know this is possible, perhaps with haxe / neko, but I would like to use more basic tools if possible. Am I asking too much?

EDIT / CLARIFICATION: Thanks a lot for the answers so far, but I think I was a bit dirty in my description. I already wrote the actual material for capturing the scene using the same PNGEncoder class as suggested. The problem is that server-side swf is actually running. I don’t want to allow the client to take the screenshot themselves, because this opens up the possibility of the client maliciously sending a screenshot that does not correspond to what is on the stage, that is, I don’t want users to download porn, If I could run the code actioncript on the server, then I could generate a screenshot from my data files and make sure that the screenshot matches the data, but I don’t know how to run actioncript or swf on the server.

+3
source share
6 answers

Swfs runs on the client computer, not the server. The only way it will work on the server is to set up a special environment on its server so that it launches a web browser, opens a page and runs swf. But even then, it will have nothing to do with what the external user is doing.

. , , php- , -. , PHP , , , swf. swf ( SWF Shield), , , .

+1

, JPG SWF, , IECapt

+1

actionscript?

0

, , , script, applescript + ui, - OS X. github .

0

swfdec-thumbnailer swfdec-gnome? SWF , -s.

EDIT: swfdec-gnome is deprecated in Ubuntu 10.10 in favor of Gnash. Here's a guide for taking screenshots using Gnash (note that some features, such as gradients, are not yet supported properly).

0
source

Source: https://habr.com/ru/post/1706366/


All Articles