Hi All
I’m currently having a problem with loadVariables.
Is it possible to load a variable in a text file into flash player via the IP address to the text file?
i.e.: loadVariables ("\172.17.62.5\animation$\FSCOMMAND\key.txt", this);
The above code does not work
================================================================
What I’m trying to do:
I have developed Flash projects for a client Company that are run via flash exe’s.
These projects sit on a network server. This company is now concerned about the security of these projects.
If someone should copy the files off the server they should not play.
I thought of a solution that has a text file on the server with a variable that is loaded into the player at runtime. The link to this txt should be absolute, so if the folder is copied off the server and taken off site the flash player will no longer be able to find the network folder with the text file.
Does this required php, asp etc?
Or is there another way to load a variable into flash player from a IP addressed folder?
================================================================
PATH on server:
\172.17.62.5\animation$\FSCOMMAND\
Txt file text is:
&Keylock=786
The code in my flash file:
loadVariables (“key.txt”, this); //load the Keylock variable into flash
trace(Keylock);//trace “786”
KeyDisplay=Keylock//Dynamic textbox to show 786 on screen
LockVar = parseInt(Keylock);//Set LockVar variable to Keylock value and convert 786 string to int
trace("Lock = "+LockVar);
//
if (LockVar == 786) {//if statement checks value and sends the playhead accordingly
gotoAndStop(“Menu”, 1);
} else if (LockVar != 786) {
gotoAndStop(20);
}
Thanks for your time and assistance it is appreciated
-Aslam