I have php upload code that uploads the file. this works!
now what i need is to return data from the server side upload script to the client.
i do 'echo' with php to print out whatever i want but then inside the completeHandler i get this error.
ReferenceError: Error #1069: Property data not found on flash.net.FileReference and there is no default value.
at ---------------::--------/completeHandler()
PHP Code:
file.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, completeHandler);
file.upload(uploadURL);
function completeHandler(event:Event):void {
_output.text = "completeHandler: " + event.target.data;
}
i have also tried
file.addEventListener(Event.COMPLETE, completeHandler);