importing variables from a txt file loacted in a system directory.
- Started
- Last post
- 5 Responses
- nosaj
Can I import a variable from a txt file located in a system directory?
ie:
loadVariablesNum("C:\WINDOWS\myt... 0);I can get it to load the variables from the text file when it is in the same directory, but it doesn't seem to work when I give it the full path to a Windows directory. Any suggestions?
- Anarchitect0
you can use relative paths (.../.../my.txt) but I don't think you can use a system directory path.
- nosaj0
Any work arounds to this? I need to be able to load a .txt file that is located in a consistant locaction but also outside of the directory the Flash movie appears in.
- Anarchitect0
u could try using a relative path like ../../../../../../windows/system
altough I thinkk that it's not very wise to have that file outside your project's/personal folder.
- nosaj0
Yeah - I'm looking for a method to protect the whole folder from being copied to another machine. It's a little Flash app that is going to be bundled with another piece of software. What I am hoping I can do is have the main software write a .txt file into a system folder saying the main software was installed. I just need flash to be able to load the contents of this file.
In the past I've used an exe that was created in C that can read from the registry then pass the info to Flash but I'm really hoping I don't need to go down that road again...
Any suggestion beyond a relative path?
- Anarchitect0
check root-relative
http://www.macromedia.com/suppor…