I need help in debugging in sending and receiving data from sever to flash in flash lite 2.x, AS2. I am not able to render the html data received from server. Here is the code I used. But in the text field I got an garbage. Please suggest me. Thank you.


ad_txt.html = true; //text field to render html data
ad_txt.multiline = true;
ad_txt.wordWrap = true;
var getvar:LoadVars = new LoadVars();
var reqURl:String = "http://m2m1.inner-active.com/simpleM2M/clientRequestHtmlAd?aid=AdarshaSaraff_MonkeyMadnes s_Flash&po=551&v=Sm2m-1.5.3&w=240&h=320&test=true";
getvar.sendAndLoad(reqURL,getvar,"GET");
getvar.onLoad = function(success:Boolean){
if(success){
ad_txt.htmlText = getvar;
}
}

And this is the output in output window:

FTPS033: A Call to loadVariables(http://m2m1.inner-active.com/simpleM2M/clientRequestHtmlAd?aid=AdarshaSaraff_MonkeyMadnes s_Flash&po=551&v=Sm2m-1.5.3&w=240&h=320&test=true) found, limitations might apply.

Network Traffic: Header Out
GET /simpleM2M/clientRequestHtmlAd?aid=AdarshaSaraff_MonkeyMadnes s_Flash&po=551&v=Sm2m-1.5.3&w=240&h=320&test=true? HTTP/1.1
User-Agent: Flash
Host: m2m1.inner-active.com
Accept: */*

Network Traffic: Header In
HTTP/1.1 200 OK
Content-Type: text/html;charset=UTF-8
Date: Sun, 17 Apr 2011 15:36:07 GMT
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=E3CD3256F4DFA36C723591DD2DF09FE4; Path=/simpleM2M
Set-Cookie: IACID=2087063462; Domain=.inner-active.com; Expires=Wed, 16-Apr-2014 15:36:07 GMT
X-IA-Session: 1675470918
Content-Length: 24
Connection: keep-alive

Network Traffic: Data In
Binary Data...

Server will send an html data as a response like below:
<a href="http://m2m1.inner-active.com/simpleM2M/ClientUpdateStatus?cn=AdarshaSaraff_MonkeyMadness_ Flash&amp;oi=1&amp;v=18App&amp;ci=2086516766&amp;s =1696741015&amp;ed=2|5|4|1"><img src="http://inneractive-static-campaigns.s3.amazonaws.com/mnt/InnerActive/Resources/Generic/Weekly/Ovi/320x53_banner.png" alt="Rally Master Pro!"/><br/>Rally Master Pro!</a>