Hi all,
So I know BlazeDS's standard MXML syntax for creating remote objects. Ex:
<s:RemoteObject id="sim" destination="SimulationWebService" >
<s:method name="getAvailableTargetNames" result="setTargetNames(event)" />
<s:method name="getAvailableToolNames" result="setToolNames(event)" />
<s:method name="getAvailableActionNames" result="setActionNames(event)" />
<s:method name="simulate" result="resetFields(event)" />
</s:RemoteObject>
But this isn't quite what I want to do. This forces me to create an instantiation of the class behind SimulationWebService
as soon as the page loads, whereas I may want to do a variety of different things depending on user actions, including not create one at all. How do I create this same object from ActionScript?