Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: File Protection and ActionScript |
| From: | Jim Duber |
| Date: | Sun, 19 Dec 1999 20:48:20 GMT |
Hi John,
Thanks very much for taking a look at this and for your valuable input.
For now, I prefer not to use JavaScript so as to avoid the delay caused by
startup of the SWLIVECONNECT routine. I admit that I don't completely
understand your methodology in #1 below, and perhaps JS isn't required. As
for #2, well, my files are hosted on an ISP where I don't have easy access
to their server settings, so I don't think that will work for me.
I've given some more thought to the problem and think I've come up with an
alternative solution that will work for all cases. At the start of the
movie, I load an external variable using Load Movie and a relative link to
a text file with a value for that variable. Then, upon checking for the
URL of the movie, I also check the value of the variable loaded from the
text file (just remember to set the "BASE" value in the Object and Embed
tags of your HTML).
Preliminary testing shows that this will protect the file against someone
downloading it and playing it on their harddrive or on another server
because the movie will no longer be able to find the variable brought in
by the Load Movie action.
I'd very much appreciate it if as many listreaders as possible would take
a few seconds to help test this out. All you have to do is load the
following TWO pages in your "Flash 4"-enabled browsers:
a.) http://www.duber.com/flashURL/
AND
b.) http://www.duber.com/flashURL/nohtml/tester.swf
(a) leads to a Flash movie displayed via HTML, and (b) leads directly to a
.swf file outside of any HTML. Each Flash movie is only (5K) -- there's
simply not much there.
Please leave a few seconds for the pages to load completely--when they do,
a form action kicks in which sends me the values of the URL variable and
the User-Agent (platform and browser used).
Please *DON'T* try loading the .swf file directly from the first URL as it
will skew the results. Load the .swf directly in the second URL above
only.
BTW, if someone is running Flash 4 under Windows 3.1, I'd really be
interested to see the results that generates under MSIE and NN--so far,
I've not gotten any.
I'll report back to the list with the results of this test shortly in the
next couple of days.
Also, why hasn't Macromedia documented all of this already?!?!? Sorry for
the rant, but geez, there aren't all that many new properties to test and
I've now spent over a week trying to debug this. According to page 201 of
_Using Flash_ : "_url is the URL where the movie clip resides." This is
simply not true--at least not for MSIE 4 and 5 on a WinPC. The test pages
above prove it. (JD?) Oh, and can someone tell me the address to send bug
reports to at Macromedia. I've searched the website, but come up empty.
Thanks again John and listreaders for all your help,
Jim
______________________________________________________
Jim Duber jim
______________________________________________________
interactive media developer/consultant duber dot com
http://www.duber.com
______________________________________________________
editor call @ chorus
http://www-writing.berkeley.edu/chorus/call/index.html
______________________________________________________
co-manager teslca-l
John Croteau <croteau
>Hi Jim,
>
>An easy way to prevent offline use is to send a token variable with the
>original swf URL or use Load variables from a URL on your server.
>
>1) Token with URL
> score1.swf?needthis=717
>
>This could be expanded to include Jim's _url technique and write the URL
>with JavaScript or a server side page such as
> score1.swf?browser=WinIE
> score1.swf?browser=Other
>
>2) You can do a Load Variables action from Flash using the complete URL
>path assuming you block access to that page from sources outside of your
>server (this can be done with all server software).
> Load Variables("http://www.FlashBible.com/test.txt",0)
>
>In all the cases you use the variable brought in on the URL or by Load
>Variables to allow or deny access, you can further protect based on the
>_url if not WinIE with Jim's technique.
>
>My cod would look more like this:
>
>SetVariable "source" = _url
>SetVariable "URL" = "http://www.FlashBible.com/Score2.swf"
>SetVariable "File" = "Score2.swf"
>
>If((source eq URL) or (source eq File and browser eq "WinIE")
> Begin Tell Target ("/startup")
> Go to and Stop ("OK")
> End Tell Target
>Else
> Begin Tell Target ("/startup")
> Go to and Stop ("Reject")
> End Tell Target
>End If
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 help
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

