Q:

as3 save swf stage to desktop - only works in IDE

I followed a tip here on saving the stage as a png (is there a way for flash AS3 to take a snapshot of a frame then save it as jpeg but using PNGEncoder instead). It works when run in Flash - I get a dialog box asking for where to save the file. But in a browser it just stalls out without showing the dialog box - and not running the code after that command. Are there security issues with using such code in a browser? Or is there something else going on here.

A:

There are security issues with saving images - it has to be in response to a user action (ie mouse or keyboard event)

