开发者

How to save an image to disk without user interactive?

I see flash has a save call to do this job, but it requires user intera开发者_JAVA技巧ctive.

How to save it automatically?


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.


For security reasons, this is not possible.


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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜