views:

33

answers:

3

I see flash has a save call to do this job, but it requires user interactive.

How to save it automatically?

A: 

For security reasons, this is not possible.

Sjoerd
A: 

Unfortunately you can't, otherwise Flash would be the #1 virus uploader of all time.

SeniorShizzle
If true most server sides languages should be virus.
wamp
Most server side languages are sandboxed by the browser, but since Flash runs as a system-wide plugin and not solely in the browser it has a more threatening potential.
SeniorShizzle
+2  A: 

It seems you are trying to save the file at the server side. If this image is from the hard disk of the user, then you cannot do it without user interaction. Basically, you can't just steal files from user.

If it is generated using your SWF itself, you can encode the image's bitmapData to PNG format and upload it to the server using a URLLoader and save it to file using your server script.

Amarghosh