This content has been marked as final. Show 3 replies
what purpose does the lin <mx:method name="createTest"/> serve? I'd remove that first off and try it again.
Also add a System.out.println to your doTest function so you'll see when it actually gets called... that will help a bit.
Just my 2cents.
1) your method should be doTest not createTest for your remote object
2) you need to add an endpoint to your remote object
My understanding is that you really only need the <mx:method/> if the method being called requires arguments passed to it. Likewise, if you are not returning any values (i.e. private function doTest():void) you don't really need to supply a resultHandler - at least you don't need one to see if the code is calling your method correctly. If you want to see the string it's supposed to pass back then yes you will need to handle the result.
I use this format and it lets me call any function in my com.abc.Security java class.