# Urlrequest event.target.data

**URL:** <https://forum.kirupa.com/t/urlrequest-event-target-data/324480>\
**Category:** Uncategorized\
**Created:** [August 23, 2011, 8:27am UTC](https://forum.kirupa.com/t/urlrequest-event-target-data/324480 "2011-08-23T08:27:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chopficaro](https://avatars.discourse-cdn.com/v4/letter/c/5f9b8f/32.png) [@chopficaro](https://forum.kirupa.com/u/chopficaro)\
**Post date:** [August 23, 2011, 8:27am UTC](https://forum.kirupa.com/t/urlrequest-event-target-data/324480/1 "2011-08-23T08:27:45Z")

</div>

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

```auto

        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
