Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: File Protection and ActionScript
From: Jim Duber
Date: Fri, 17 Dec 1999 18:00:41 GMT

Hello again Flashers,

I'm writing to report that I've more or less solved my problem of building
a file security routine in Flash 4. Several times in the past, shady
individuals have "stolen" some of my Shockwave work and other web
creations and put them on their own website in such a way as to suggest
that it was their own work. This is something I am very much against and
am pleased that Flash 4 seems to offer a pretty easy method of protection.

Here's how I do it:

1. Make a movie clip with two frames. Park the clip towards the start of
the main timeline. The clip's first frame should be empty so as to be
invisible. In the second frame include whatever warning message you want
to display to those viewing your movie from "unauthorized sources." I
include, for example, a complete copyright statement on mine with an email
link to alert the author to the problem.

2. On stage, I name the movie clip instance "alert_mc" and give it a
frame label of "alert".

3. A bit later in the timeline, I include a frame or button action with
this code (note: "www.duber.com" is my server address and "randomizer.swf"
is the name of my movie file--substitute as needed):

SetVariable "source" = _url
If (source ne "http://www.duber.com/randomizer.swf" )
If (source ne "randomizer.swf" )
Begin Tell Target ("/alert_mc")
Go to and Stop ("2")
End Tell Target
Go to and Stop ("alert")
End If
End If

That's it. The file is now "protected" in that it will only run from my
server. The one exception, as I mentioned in my prior posts on the topic,
is with PCs running IE--for that browser/OS combo, the "_url" property
doesn't include any server and path information. It just reports the file
name. So, it is possible to "steal" the file and play it *outside of HTML*
on a local drive or across a network. However, it certainly would
encourage the thief to keep it for personal use unless he/she wants to
risk others seeing the warning message. After all, there are still a few
folks use some other combo than IE and PCs!

To demonstrate, here are the test files using the code above (it kicks in
about 5 seconds into the (100K) movie):

http://www.duber.com/the_page.html
This link should play for all browser/OS combos that support Flash 4 (once
you get to the login form, you've passed the protection sequence).

http://www.duber.com/rogue/index.html
This one should send all browsers to the warning page, however because the
.swf is hosted in an HTML page, *only* the IE/PC combo will pass the
protection sequence.

http://www.duber.com/rogue/randomizer.swf
By loading the .swf directly in the browser, it seems the file is
completely secure and not even the IE/PC combo can pass the protection
sequence.

Sorry for another lengthy post. Given the recent discussions on site
ripoffs and copyright protection, I'm a bit surprised that this thread of
mine hasn't gotten more notice--though I won't take it personally. ;^)

Any comments and feedback are most appreciated. I'd especially like to
know if anyone finds any further flaws in the scheme or ways to improve
upon it.

Thanks and best wishes,

Jim
______________________________________________________
Jim Duber jimatduber [dot] com dubatsocrates [dot] berkeley [dot] edu
______________________________________________________
interactive media developer/consultant duber dot com
http://www.duber.com
______________________________________________________



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: abbreviations clarification, Paul Ahern
  Re: FLASH: File Protection and ActionScr, John Croteau
  Re: FLASH: File Protection and ActionScr, RedStar

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]