0

I know that Actionscript is not multi-threaded. But, I want to address this somehow. I need to make multiple requests to the server while the UI is being rendered (UI renders multiple graphs).

I found this article and I am exploring how to make best of use of this for my situation.

Is there any alternative friends?

Adi Lester
  • 24,731
  • 12
  • 95
  • 110
Ravi
  • 35
  • 1
  • 8
  • Flash Player 11.4 (recently released) introduces a feature called "Actionscript workers" where you can make worker threads and do stuff in the background. – Sunil D. Aug 31 '12 at 22:55

1 Answers1

0

1) in flash ALL remote calls (like RemoteObject, URLLoader, HTTPService etc) are asynchronous. So you do not need any multi-threading for server request - UI will not be frozen!

2) In FlashPlayer 11.4 and Air 3.4 multi-treading became possible, but not really used yet in known applications... See these: http://helpx.adobe.com/flash-player/release-note/fp_114_air_34_release_notes.html http://www.bytearray.org/?p=4423

3) also, it is possible to avoid UI freezing for long process operations in flash using delays and calling over timeouts, like in example of asynchronous JPEG encoder:

Fast or asynchronous AS3 JPEG encoding

http://www.switchonthecode.com/tutorials/flex-tutorial-an-asynchronous-jpeg-encoder

http://blog.inspirit.ru/?p=201

Community
  • 1
  • 1
radistao
  • 14,889
  • 11
  • 66
  • 92