People do this all the time... exportPNG is a JSFL command,
not ActionScript. JSFL allows you to write useful scripts to
execute IN the authoring environment. It is similar to using File
> Export Image (.png). But clearly this isn't there during
However, if you do want to export the image, you can use the
BitmapData class in conjunction with some server side like PHP to
save a file to the server. And then, you can use the FileReference
class to create a download in which the user can select where to
save the file. Check out:
for more info.
Hi there. Came across this thread whilst looking for a
solution to my problem (exporting to an image/pdf at runtime).
I notice you mentioned the sepiroth article, which I've read
and is useful. However, to export each pixel of a large,
complicated image using BitmapData can be incredibly slow... anyone
know of a faster solution?