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.
indignant
source
share