Thanks for the tip Josh.
I did try adding a <smartypants:RequestInjection/> to
CustomComponent.mxml, but that throws the following run-time error:
Error: Could not find an injector for
DependencyInjectionTest0.CustomComponent4
at net.expantra.smartypants::SmartyPants$/getInjectorFor()[/Users/
josh/Desktop/Work/Builder Workspace/smartypants_ioc/src/net/expantra/
smartypants/SmartyPants.as:44]
at net.expantra.smartypants::RequestInjection/cc()[/Users/josh/
Desktop/Work/Builder Workspace/smartypants_ioc/src/net/expantra/
smartypants/RequestInjection.as:24]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks
\projects\framework\src\mx\core\UIComponent.as:9298]
at mx.core::UIComponent/set initialized()[C:\autobuild
\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169]
at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild
\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:
718]
at Function/
http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild
\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild
\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]
Any other tips? :)
> :: 0437 221 380 ::
j...@gfunk007.com
> ::
http://flex.joshmcdonald.info/
> ::
http://twitter.com/sophistifunk