ive got this great project going thats teaching me alot but i need ur help
im doing a urlrequest of a table and trying to get it to display in flash
later im going to separate the data from the table into an array, but right now im just trying to get the data to display something readable so i know i have a string variable that i can work with
ive got something displaying but its gibberish, im sure the problem lies in the line
table_txt.text=event.target.data;
im just displaying the data which is full of percent signs and stuff, when i want a readable string with text and new lines and such
the function clickHandler makes a button i press make the urlRequest, and the function completeHandler runs when the urlLoader completes
private function completeHandler(event:Event):void
{
table_txt.text=event.target.data;
}
private function clickHandler(event:MouseEvent):void
{
var variables:URLVariables=new URLVariables();
var varSend:URLRequest = new URLRequest("http://yankeescreen.000a.biz/mysqltoflash.php");
varSend.method = URLRequestMethod.POST;
varSend.data = variables;
var varLoader:URLLoader = new URLLoader;
varLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
varLoader.addEventListener(Event.COMPLETE,completeHandler);
variables.uname="uname_wtf";
variables.sendRequest = 'parse';
varLoader.load(varSend)
}
help me out here guys i just need a hint