This content has been marked as final. Show 5 replies
Are you completely sure that your php sends data after the upload??? Because if it doesn't, this event will never trigger although the upload were success. Maybe it would be a good idea to make a upload test with a simple php file for ensuring that your php file which receives the file sends data after the upload.
I made the test with DataEvent.UPLOAD_COMPLETE_DATA and received no errors. Did you import the flash.events.DataEvent class?
Hi thank you very much for your quick answer.
I checked what you sugested.
1) the php file prints out xml, i also tried with a simple echo "test"; that should flex give at least something of data.
2) i imported event:flash.events.DataEvent once on top of class, once directly as in following code:
This Line throws following error:
TypeError: Error #2007: Parameter type not allowed to be 'null'.
private function onUploadCompleteData(event:flash.events.DataEvent):void
trace("onUploadCompleteData: " + event);
Hmm... It's very strange.1 person found this helpful
Well, this functionality is available since 9.0.28 flash player version. Try checking your player version with a "flash.system.Capabilities.version" sentence.
Also, try setting the EventListener before you call the upload method and use just the "uploadCompleteData" string instead of DataEvent.UPLOAD_COMPLETE_DATA
Oh that was it. I had 9,0,15,0 installed.
Thought updating Flex Builder to 2.01 will update to 9,0,28,0 as well.
Ok, but with the new Player it works just fine!
Do you else know if it is possible to get the debug-player work again without reinstalling the Builder?
Thank you very much for your help!
Yeah, it is completely possible.1 person found this helpful
I give you these links. Here you'll find the flash player versions and you will find also the debug versions.
And the second link is for all the previous versions of the Flash Player.