Adding states to as3 navigator stateviewmap in runtime
Im using AS3 Navigator, and i want to add additional
states/map new views in runtime using commands. But stateVieMap is
available only in Context. I cant inject it, cause it
s uses
some context properities in constructor. Is there any way to do
this?
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
Support Staff 1 Posted by Ondina D.F. on 24 Sep, 2012 01:55 PM
Hello,
In the context:
injector.mapValue(IStateViewMap, stateViewMap);
In the command:
[Inject] public var stateViewMap:IStateViewMap;
Not sure whether it works, but you could try it out and tell us how it went.
Ondina
2 Posted by Digitalforms on 24 Sep, 2012 05:51 PM
Of course it works. It`s not my day definitely ;-) Thanks!
Support Staff 3 Posted by Ondina D.F. on 25 Sep, 2012 10:37 AM
No problem :) Glad to hear it worked.
Ondina D.F. closed this discussion on 25 Sep, 2012 10:37 AM.