Lars
unread,Feb 3, 2012, 3:50:46 AM2/3/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Swiz Framework
It seems I can't get a finger on getting injection and event mediating
to work in my modules (which I desperatly need). The documentation is
to short to be any useful except for the scoping properties. I
downloaded the example files, but still I couldn't get my injection to
work.
To simplify the issue I started a new clean Flex project and set it up
nearly similar to the way like in the swiz-examples (from the swiz
homepage ofc).
My Apllication.mxml just contains the swiz config declaration.
The swiz config containts the bean provider and the event &
viewpackages
=> Bean: ApplicationManager
The ApplicationManager creates a custom component and adds the
component to the stage. It also has a bindable public variable
myData:String='Bla'
The custom component contains an CreationAwareModuleLoader which has
its url set to modules/TestModule.swf.
The TestModule also has the variable and the inject command to it
[Inject(source="appManager.myData", bind="true")]
public var myData:String;
it also has a trace of this variable after the addedToStage event is
fired.
Any suggestions or hints whats going wrong?
Ideally I need my modules in seperate projects, but I prefer to get a
solution step by step, so for now I want to keep the module inside my
project.