I am new to Adobe Air. I was able to load a web browser as an Air app with the following line:
<mx:HTML id="myBrowser" width="100%" height="100%" location="http://www.google.com"/>
My question is this: is it possible to add a text file to the project (to be stored locally) that can be read by the application so that the location attribute (URL) can be dynamically populated?
I want the user to be able to change the starting URL by manually editing this text file.
Any help I can get is appreciated!
Note: I am aware that a URL bar can simply be added to the app, but that is really not the solution that I'm looking for. I don't want the user to be able to change the url using the GUI.
You can certainly achieve this. Just attach the text file to your project or a better way would be to maitain the text file in File.applicationStorageDirectory.
Hope this helps!
Great, thank you for your response!
Could you give me a sugestion on how to aproch the code. Specifically how to read the file itself. Would it require a specific format?