Why wouldn't a flex remoteobject work within a custom component?
- by Gary
Please enlighten this flex noob. I have a remoteobject within my main.mxml. I can call a function on the service from an init() function on my main.mxml, and my java debugger triggers a breakpoint. When I move the remoteobject declaration and function call into a custom component (that is declared within main.mxml), the remote function on java-side no longer gets called, no breakpoints triggered, no errors, silence.
How could this be? No spelling errors, or anything like that.
mxml code:
<mx:RemoteObject id="myService"
destination="remoteService"
endpoint="$(Application.application.home}/messagebroker/amf" >
</mx:RemoteObject%gt
function call is just 'myService.getlist();'
when I move it to a custom component, I import mx.core.Application; so the compiler doesn't yell