Returning values from an event listener within a class

Hi all,

I am developing in Flash Builder 4.5 using as3.

I have created a class to connect, write and read to a TCP Socket using ‘import flash.net.Socket;’

Within this class is an event listener which reads the incomming data:

socket.addEventListener(ProgressEvent.SOCKET_DATA, readSocketData);

private function readSocketData(progressEvent:ProgressEvent):void {[INDENT]var response:String = socket.readUTFBytes(socket.bytesAvailable);
trace response;
[/INDENT]}

My problem is how to output this data back to my main application. Ultimately I want to process the data and output it in a text box.

Anyone have any ideas?

Thanks,
Sam.