SWFEncrypt from Flash using JSFL

At the weekend I wrote a couple of JSFL scripts to automate SWFEncrypt and SWCEncrypt encryption from within Flash.

The first publishes the current flash movie and encrypts the resulting .swf using SWFEncrypt.

The second exports one or more components as SWC files and encrypts the results using SWCEncrypt.

I’ve only used them in Flash CS3 for Windows, but the scripts should work in Flash 8 too. They will not work on MacOS.

The scripts use a couple of undocumented features of the FLFile object. They’re published under the MIT licence, so you are free to use them. The first line of code (actually line 36 because of the comments above it) in each script is the path to your installation of SWFEncrypt or SWCEncrypt. You will need to edit these if you didn’t install SWFEncrypt/SWCEncrypt in the default location.

Download the JSFL scripts.

Double click the .mxp file to install them using Adobe Extension Manager.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>