Know Your Flex Proxy

Flex framework includes a pretty useful object that deserves more attention: mx.util.ObjectProxy. You can wrap your object (i.e. Person)  into this proxy which will obediently report on all changes that are happening to this instance of a person.

If you subclass ObjectProxy, you can even add a new  behavior to the wrapped object without touching a single line of its code.

I’ve recorded a short video showing a couple of examples of using proxies in Flex.

This is one of many tricks and techniques that consultants from Farata Systems use while working on enterprise Flex projects, and we’ll continue to share them with you in the form of such mini demos as well as in one of our public seminars like the one on September 24-25 in London, UK (use ebd discount code to get the early bird price) or on October 30 in Atlanta, GA.

For up-to-date schedule of advanced Flex seminars see the section Training  at http://www.faratasystems.com.

Yakov Fain