On most programming platforms, you have the event model (non-frame based events are raised and handled asynchronously), the synchronous model (blocking calls the halt execution within the thread/process until they return) and the inter-thread communication and thread management model.
I haven't started working with Flex yet (still porting my Java code to Python/Tiwsted/Mutex, which is progressing at normal speed) but I just realized I may have a harder time with Flex due to the potential lack of familiar thread management and method synchronization features.
For example, in Java, in addition to having events which may be raised and handled asynchronously, you can rely on main memory to synchronize data across threads (which have their own copy of the data), so you can communicate between threads by updating the variable's state to main memory. Data locking and 'volatile' thread designaion allow a given variable to be updated in main memory by one thread at a time without it getting out of sync with other threads. You can also pause and resume a thread (from another threads or from within the thread) using .wait and .notify from within the thread to be paused (based on the state of a data item.)
In addition, you can execute synchronous methods from the main process or any thread, which halt the respective execution path until the method returns. This means that a thread will wait for some call to finish before continuing. This 'synchronization' is an essential feature of the language, without which certain things would be unnecessarily difficult to implement.
If Flex doesn't support thread management and synchronization would be an interesting idea to build an AS library that implements a thread management and synchronization model on top of Flex.
Any thoughts, corrections or comments?
Thanks
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

