5
Contributors
5
Replies
6
Views
9 Years
Discussion Span
Last Post by Tropp
0

If you want to protect it, don't put it on the Internet.

I predict the end of the concept of "intellectual property" within a few years.

0

If you mean that you dont want others to download and watch your swf files, then yes, you could save it, indirectly though. Basically they will download it, but wont be able to watch it. Firstly you could check whether the domain in which the swf movie is running is allowed using LocalConnection object. This is probably used extensively by Flash game sites. Here's how you could implement it.

var loc:LocalConnection = new LocalConnection();
var domain:String = loc.domain();

if (domain == "www.yoursite.com") {
    gotoAndPlay("start");
} else {
    gotoAndPlay("access_denied");
}

And you could check in which player are you running this swf file using System.capabilities.playerType
For Example:

var player:String = System.capabilities.playerType;
if( player == "ActiveX" )  
    gotoAndPlay("start");
else
    gotoAndPlay("access_denied");

And to prevent your swf from being decompiled, use any SWF Encrypters. However, as far as I know it would only encrypt your ActionScript, your sound and movies will still be readable.

Edited by Dani: Formatting fixed

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.