Title: Re: Distributing Flash Vars to Various Proxies Post by: puremvc on February 24, 2012, 07:33:25 Here is a link to another post on this forum where I describe setting up a ParamsProxy, which exposes the FlashVars to the rest of the application like any other data.
Setting up a ParamsProxy http://forums.puremvc.org/index.php?topic=622.msg2781#msg2781 Now if you want your other Proxies to have access to that data, the best thing to do is have them form a relationship with the ParamsProxy. While a Proxy can retrieve another Proxy, its not the best way to go, since it is always possible you may register a Proxy that needs the ParamsProxy before the ParamsProxy has been registered. So make the ParamsProxy a constructor argument for Proxys that need to know the ParamsProxy: public class SomeProxy extends Proxy -=Cliff> |