rpc-javarpc-$4.lzx
<canvas debug="true" height="300" width="100%">
<debug x="100" y="10" height="275"/>
<security>
<allow>
<pattern>^examples\.ConstructExample</pattern>
</allow>
</security>
<javarpc name="ce" scope="session" remoteclassname="examples.ConstructExample" createargs="[1, 'a string', 1.45]">
<handler name="onerror" args="err">
Debug.debug("onerror: %w", err)
</handler>
<handler name="onload">
Debug.debug("loaded proxy: %w", this.proxy);
</handler>
<handler name="onunload">
Debug.debug("unloaded proxy: %w", this.proxy);
</handler>
</javarpc>
<simplelayout spacing="10"/>
<button text="load" onclick="canvas.ce.load()"/>
<button text="unload" onclick="canvas.ce.unload()"/>
<button text="proxy" onclick="Debug.debug('proxy is %w', canvas.ce.proxy)"/>
</canvas>
Cross References
Named Instances