i am not a flex developer. i downloded the adobe cirrus and found it to be very ineteresting. it has a file videophonelabs.mxml.
The file has a line:
private const WebServiceUrl:String = "http://192.168.0.209/cgi/reg.cgi?";
Now i want to set the value for WebServiceUrl:String by reading a xml or txt file
How can i do this?
You can use HttpService to load it.
basically something like...
var service:HTTPService = new HTTPService(); service.url = "http://192.168.0.209/cgi/reg.cgi?"; service.resultFormat = "xml"; // or e4x or text or object or array service.addEventListener(ResultEvent.RESULT,serviceResultHandler); service.send();
check out days 2 and 3 for more info