Category:

Usage Example of Weak References

Posted by - February 25, 2009

You might have heard about weak references which are used when listener functions for events in Action Script are being set. In 2006 gskinner was wondering why all the listeners were not set in weak reference mode. Some of guys on Habrahabr in comments to my article about functions contexts insisted on the fact that weak references are the bad practice and all the operations related to their removal you should do only manually.

I have known about them for a long time because I try to keep tabs on all Adobe’s news but I understood how it works recently just after using Flex Builder’s profiler. Instead of retelling background information I will give you an example where you might see how useful these weak references may be:

More…

The Best Code Pattern for RemoteObject

Posted by - February 20, 2009

Continuing the topic Advises for beginners I am going to talk about the most comfortable way to incapsulate server’s methods calls. Let’s call it ServiceBase pattern. It is a base class for all your possible services (bunch of methods which correspond to the server ones):

More…