Quantcast
Viewing all articles
Browse latest Browse all 2010

AIR application request a xml file from a server (but only legal users)

Hello guys

 

I am conceptualizing a project at the moment and I am thinking of using Adobe AIR to develop the application related to that project.

But it depends on the ability of AIR to fulfill my project requirements.

 

I want your ideas, please...

 

Imagine, I finished developing my application and compiled the distributed version using Adobe AIR.

And I am going to distribute the installation files of the intended application by burning on to a CD.

Imagine, the user who got that CD, installed it it on his computer and launched the application.

 

When the application is running, it needs to load a XML file which is saved in our company server.

Since it is an important data file I don't want to dispatch it with the installation CD.

So I am thinking of using URLRequest and URLLoader classes to load this XML file from server dynamically.

 

Lets imagine I did codes like this....

var request:URLRequest = new URLRequest("http://www.mycompany.com/sereverfolder/blabla.xml");

request.method = URLRequestMethod.POST;

var loader:URLLoader = new URLLoader();

loader.load(request);


But my question is, how safe hardcoding the path for the xml file in the class file as shown above.

Can anyone get access to xml file path by looking into installation files dispatched via CD?

Or is there any other safer way to do this?

 

Thank you for taking time to read my question and please add your input if you would like to share your knowledge.

 

cheers


Viewing all articles
Browse latest Browse all 2010

Trending Articles