A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: input vars from off site

  1. #1
    FK M.D. pheck's Avatar
    Join Date
    Jul 2001
    Location
    MN
    Posts
    807
    we read in the actionscript dictionary that flash doesn't allow one to reference an offsite file for input of variables into a movie (apparently to protect against people gathering info from user's machines). So is it impossible to reference a txt file from off site that would serve up input vars into the movie? Just thought I'd try a shot in the dark.

    Reason I'm asking is b/c we have our site protected now, where it checks to see if it's being played on the right server (else it won't run.....great idea from a new tut on flashkit), and we'd like to have a txt file that is referenced each time the swf is run; the txt file would be a list of 'approved' servers from which the swf's can be played. if thief d/l's the files and plays them locally or from another site, they won't run. does anyone have any ideas on how to get this done? or if it's possible? Thanks.

  2. #2
    ActionScript.org
    Join Date
    Aug 2000
    Posts
    1,030
    I've not seen a work around for getting flash to do it directly but you may be able to make a PHP script (or the like) which reads the document and spits it out to Flash as though from your own server. that's theory, I've not tried it...

  3. #3
    Registered User
    Join Date
    Feb 2001
    Posts
    13,039
    Hi,

    check this thread http://board.flashkit.com/board/show...hreadid=232712 for a possible solution.
    I am not sure whether this is really necessary - you could also give a specific script to the allowed sites and have the movie call this script. This should be some kind of challenge-resonse system, i.e. the movie sends current system time and expects some value back that is calculated from it. If some code thieves can find out how it works, they can probably break the protection anyway

    Musicman

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