Hoping I could get a little advice/info on this conundrum that I am having...
I have a singleton bean defined with two methods, run() which does some work and takes anywhere up to 30 seconds to run, and progress() which reads an int (value 0-100) on the same object as a value to use in a Flex ProgressBar. My remote object is defined like this:
A timer is started when a button is clicked and calls progress() twice every second. Immediately after that, run() is called:
<mx:RemoteObject id="ro" destination="testService" concurrency="multiple">
<mx:method name="run" fault="Alert.show(event.fault.message)"/>
<mx:method name="progress" result="resultHandler(event)" fault="Alert.show(event.fault.message)"/>
ro.run(startDate.selectedDate, endDate.selectedDate, c, startingEquity.text);
What is happening is that the progress calls are being queued up until after the run() call returns. It's like the RemoteObject is 'synchronized'.
Anyone know why I'm getting this behaviour?
Many thanks in advance.