returnpojo.lzx
<canvas width="700" height="500" debug="true">
<debug x="170" y="20" width="500" height="400"/>
<security>
<allow>
<pattern>^examples.ReturnPOJOExample</pattern>
</allow>
</security>
<javarpc name="returnpojo" scope="none" objectreturntype="pojo" remoteclassname="examples.ReturnPOJOExample">
<handler name="onload">
Debug.write('proxy:');
Debug.inspect(this.proxy);
</handler>
<remotecall funcname="getPOJO">
<handler name="ondata" args="pojo">
Debug.write('------------------------------');
Debug.write('got pojo:');
Debug.inspect(pojo);
</handler>
</remotecall>
</javarpc>
<button x="10" y="10" onclick="returnpojo.getPOJO.invoke()" text="get plain old java object"/>
</canvas>
Cross References
Named Instances