A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: actionscript for protecting swf?

  1. #1
    Ryan Kallok: Kallok Studios kallok's Avatar
    Join Date
    Apr 2001
    Location
    Youngstown email: [email protected]
    Posts
    213

    actionscript for protecting swf?

    Hey... I know theres a actionscript to do this but i'm not 100% sure what it is. Basicly if the swf is downloaded or put somewhere else, it gets taken to a page that says something like STOLEN, etc and if it is hosten on the correct site, it continues the movie. I want to do this to my site and anyone know the actionscript for it?

    Thanks in advance
    PRINT | WEB | MULTIMEDIA DESIGN
    Ryan Kallok Kallok Studios: KS3 |Toxic Avenger

  2. #2
    half as fun, double the price senocular's Avatar
    Join Date
    Feb 2002
    Location
    San Francisco, CA (USA)
    Posts
    4,358
    lets say you load your movie to
    http://www.kallok.com/flash/movie.swf
    then the actionscript you can use in the first frame is

    if (_url != "http://www.kallok.com/flash/movie.swf"){
    stop();
    getURL("http://www.kallok.com/stolen.html");
    }

    Now if you move your movies around you might want to use substring on your _url just to check to see if its somewhere in http://www.kallok.com etc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center