MediatorMap not hearing my stage?
Hey Shaun,
I am having another stumbling block getting updated. I have a
view mapped to a mediator and the mediator's constructor or
initialize method never gets called. This is a flex project. I am
using the mxml context tag builder.
I tried to set the context view but no luck. Mapping:
mediatorMap.map( IAppView ).toMediator( AppViewMediator );
Extensions:
context.extend( ContextViewExtension )
context.extend( StageSyncExtension );
context.extend( CommandMapExtension );
context.extend( ViewManagerExtension );
context.extend( MediatorMapExtension );
context.extend( SignalCommandMapExtension );
Main.mxml is attached so you can see how I am trying to wait for
the context to be initialized.
Thanks in advance...going slow today
- Main.mxml 967 Bytes
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by krflash on 10 May, 2012 09:58 PM
My view to mediate
2 Posted by krflash on 10 May, 2012 09:59 PM
My mediator
Support Staff 3 Posted by Shaun Smith on 10 May, 2012 10:06 PM
Heh, check out the MVCSBundle again. You need something like this in your bundle:
Which adds the contextView to the ViewManager. Remember, everything is opt-in in RL2 :)
https://github.com/robotlegs/robotlegs-framework/blob/version2/src/...
4 Posted by krflash on 10 May, 2012 10:08 PM
oh geeez...my brain feels like swiss cheese today, thanks
Support Staff 5 Posted by Shaun Smith on 10 May, 2012 10:34 PM
haha, no probs! let me know if you run into anything else.
krflash closed this discussion on 11 May, 2012 12:44 AM.