Recently there have been trends with many latest AS3 frameworks, particularly MVC design patterns, built upon Dependency Injection concept.
From Wikipedia:
“Dependency injection (DI) in object-oriented computer programming is a technique for supplying an external dependency (i.e. a reference) to a software component – that is, indicating to a part of a program which other parts it can use. It is a specific form of inversion of control where the concern being inverted is the process of obtaining the needed dependency.”
Apart from nearly outdated Cairngorm and famous PureMVC, frameworks like Mate, Swiz, Parsley and Robotlegs are all using DI to manage dependency.
Some of those frameworks are using Flex meta-data tag injection which some people might argue it is not standard ways but it is a trend…, and I particularly like Robotlegs as it is lightweight framework/toolkit, only contains few classes.
I have been using manual constructor DI with my own MVC framework for some times and might move to meta-data tag injection too:)
Some related posts:
http://tomkordys.net/blog/2009/11/09/dependency-injection-frameworks-and-other-latest-as3-trends-robotlegs-dawn-parsley/
http://www.insideria.com/2009/09/as3-dependency-injection-demys.html
http://www.richardlord.net/blog/frameworks-presentation-slides

