Bookmark and Share

SWFProtection Help Manual

Download User Guide (Adobe PDF)

Table of Contents

Overview

Main Window, Menu and Toolbar

Output Options

Flash Preloader Options

Domain Lock Options

Known Issues

Overview

SWFProtection is a strong and easy to use Flash SWF encryption tool which helps you protect SWF files from Flash decompilers. The program protects not only Actionscripts, but also all images, sounds, buttons and sprites resources in your SWF files.

SWFProtection can also stop your SWF files from opening on local computer and limit SWF files to host on specified domains, which enables you to prevent others from downloading your SWF files, then opening them from their local computers or uploading to their own websites.

With the built-in Preloader maker, SWFProtection can help you add professional and customizable Flash Preloader to your Flash movie in just a few clicks.

SWFProtection works with AS2 and AS3, Adobe Flash Version 6, 7, 8, 9 and 10. The program runs on all versions of Windows, including 98, ME, XP, 2000, 2003 Server, Vista and 7, 32bit and 64bit.

Main Window, Menu and Toolbar

 

Config Menu

A configuration .spt file is an XML file to save all protection options. You can create a new config, open a saved config file or save the current config with menu item New Config, Open Config and Save Config.

Output Options

The Output Tab enables you to configure how to save the protected SWF files.

Same Folder: The protected SWF files will be saved to the same folder as the original SWF files.

Specify a Folder: The protected SWF files will be saved to the specified folder.

Add Prefix to Filename: Add prefix to the filename of the protected SWF files.

Add Suffix to Filename: Add suffix to the filename of the protected SWF files.

Flash Preloader Options

The Preloader Tab enables you to add a Flash preloader to your Flash movie.

Add Preloader: Whether to add a preloader to the protected SWF file.

You can customize the size, color, display text and glow effect of the preloader.

The display text of preloader supports HTML tags, you can use the font tag to define the font face, color, size of the text.  The text also supports three regular expressions:
     #PL#:  precent loaded
     #BL#:  bytes loaded
     #BT#,  bytes total
When using regular expression, please make sure to include the “#” before and after the two characters.

For example, the following text will display the text of precent loaded, with black color, font size as 12 and font face as Arial, if Arial is not available, it will use font Times New Roman.

<font face='Arial,Times New Roman' color='#000000' size='12'>#PL#%</font>

The following text will display the text of bytes loaded and bytes total, with red color, font size as 12 and font face as Arial.

<font face='Arial' color='#FF0000' size='12'>#BL# of #BT#</font>

Domain Lock Options

The Domain Lock Tab enables you to configure whether to disable offline viewing, the domains that the SWF files are allowed to be hosted, the displayed error message when the domain information is incorrect.

Disable viewing SWF file from local hard disk: This option will disable offline viewing of SWF file. If someone tries to open the SWF file from local computer, it will not display the content and will show the error message that you defined in the "Display message" field.

Only allow SWF file hosted on domains: When you check this option, only the listed domains are allowed to host the SWF files. You must define at least one domain, otherwise, this option will be ignored.

Display message: The text supports HTML tags, you can use the font tag to define the font face, color, size of the text. You can also add hyperlinks in the message. The option Transparent and Background define the background color of the error message.

For example, the following text displays an error message with a hyperlink to our website http://www.swfprotection.com.

<p>You are not allowed to view this Flash movie.</p><p>Please visit <u><a href='http://www.swfprotection.com'>http://www.swfprotection.com</a></u> for more information.</p>

Known Issues

This section contains the known issues of SWFProtection. You may need to modify your Flash design to avoid  possible problems caused by the protection.

LoaderInfo.loaderURL

In Actionscript 3, we normally use LoaderInfo.loaderURL to get the URL address of current Flash SWF file, then we can use this address to calculate the address of external images or SWFs and load them.

But after protection, the URL value will be different. For example,

stage.root.LoaderInfo.loaderURL

The result in an unprotected SWF file will be:

http://www.swfprotection.com/test/test.swf

But in a protected SWF file, the result will be

http://www.swfprotection.com/test/test.swf/[[DYNAMIC]]/1/[[DYNAMIC]]/2

You may use following function to remove the redundant suffix:

function getSWFLocation()
{
    var pathURL:String = stage.root.LoaderInfo.loaderURL;
    var suffixPos:int = pathURL.indexOf("/[[DYNAMIC]]/");
    var resultURL:String = (suffixPos > 0)? pathURL.substr(0, suffixPos) : pathURL;     
    return resultURL;

 

Newsletter