I am building a simple AIR app that allows a user to query a backend server (that I didnt make) in the form http://site.com/test?query=xxx and the user adds the xxx part and presses go. The result is some small HTML code with a result. The resulting webpage if I punched in http://site.com/test?query=google.com would look like this:
google.com : search
What I have figured out is how to simply load the URL into a webview but I would much rather take the non-HTML content (in above example: google.com: search) and put it into a textfield where I can control the formatting.
Updated - I was able to get it working with the below
var url:String = "http://site.com/test?query=xxx";
var loadit:URLLoader = new URLLoader();
loadit.addEventListener(Event.COMPLETE, completeHandler);
loadit.load(new URLRequest(url));
function completeHandler(event:Event):void {
myText_txt.htmlText = event.target.data as String;
}