This content has been marked as final. Show 3 replies
I'm a bit of a novice at Flex but it seems like you don't need to add the event listeners.
I'm just guessing but I assume you have <mx:HTTPService> tag that identifies the result handler and the fault handler. The creationcomplete identifies the function it needs to execute(loadData) and the click event on your button identifies the function it needs to execute(reload). From there you should be able to just add the url if it hasn't been already and fire test.send().
Then test.send() will either hit the resultHandler or the faultHandler.
I hope this helps.
I dont know how to pass a XML generated by a Java method to Flex, already Flex is compilating it like a String when I use the remote object.
Does anyone know what to do?
check the resultFormat property of the HTTPService instance and you might have to set to e4x to have it treat the response as XML.