I see flash has a save
call to do this job, but it requires user interactive.
How to save it automatically?
I see flash has a save
call to do this job, but it requires user interactive.
How to save it automatically?
Unfortunately you can't, otherwise Flash would be the #1 virus uploader of all time.
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.