|
Project Information
Featured
Downloads
|
Update Please read my blog post that could serve as an introduction to Ctx flex framework http://ewa.sg/2009/07/thoughts-on-ideal-flex-framework/ I'm updating documentation constantly but it's always behind the source code, So please feel free to check out source code. It's easy to start with Ctx framwork so lack of detailed documentation shouldn't be a problem. Please contact me if you have any questions regarding the framework andriyo at google.com (Andrii Olefirenko) Ctx is a dependency injection Adobe Flex framework with additional functionality needed for almost every Enterprise Rich Application (ERIA) (e.g. the application that needs client-server interaction) Ctx framework features
BeansAny object could be a bean. The framework manages dependencies for beans. You just register a object with register() method of the Ctx class. Here is how you add beans var c:Ctx = new Ctx; c.register(MyBean, "myBean"); //or c.myBean = MyBean; //to access the bean trace(c.myBean) // these beans are bindable you could create instances of Ctx class wherever you need them. They will reference the same beans. You could have code in your MXML like this (and therefore no need for ugly 'getInstance()' calls in Script section) <framework:Ctx id="c"/> CommandsCommand patters could be implemented using beans with public methods c.myBean.doSomething(); Please read on the Getting started guide and check out the examples. The feedback is really appreciated |