CyanBlue
01-27-2009, 06:51 PM
Let's say I have ABC.air that calls http://www.testserver.com to get the config.php file that basically is an XML file with the dynamic data... So, I hardcode the http://www.testserver.com/config.php inside the ActionScript so that I can get the value of it... That works fine...
Like the server name says, that's a test server which I use as a staging server or sort... Now, time came for deployment where I only need to call real server to get the configuration file...
It won't be much of problem if I know the domain name/ip address of the real server right now, but I do not know of it yet, and I probably won't be able to know it, and I know they are in the closed environment where they cannot access the Internet... So, I am trying to create a config.txt on the local drive where the SWF file is located so that whoever deploys the app can simply edit the config.txt file and the app will work properly...
That story works if I am doing a web project, but that config.txt will be included inside the ABC.air file and the person who deploys the project will not be able to actually edit the file...
The only thing I can think of is to have the person who deploys the project physically call me and tell me the ip address of the server, I hard code that information and create a new ABC.air file and send it to him somehow... Not a good option nor clean option, but that's the only thing I can think of...
Any suggestion???
Thanks... :)
Like the server name says, that's a test server which I use as a staging server or sort... Now, time came for deployment where I only need to call real server to get the configuration file...
It won't be much of problem if I know the domain name/ip address of the real server right now, but I do not know of it yet, and I probably won't be able to know it, and I know they are in the closed environment where they cannot access the Internet... So, I am trying to create a config.txt on the local drive where the SWF file is located so that whoever deploys the app can simply edit the config.txt file and the app will work properly...
That story works if I am doing a web project, but that config.txt will be included inside the ABC.air file and the person who deploys the project will not be able to actually edit the file...
The only thing I can think of is to have the person who deploys the project physically call me and tell me the ip address of the server, I hard code that information and create a new ABC.air file and send it to him somehow... Not a good option nor clean option, but that's the only thing I can think of...
Any suggestion???
Thanks... :)