Adding states to as3 navigator stateviewmap in runtime

Digitalforms's Avatar


24 Sep, 2012 11:47 AM

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 its uses some context properities in constructor. Is there any way to do this?

  1. Support Staff 1 Posted by Ondina D.F. on 24 Sep, 2012 01:55 PM

    Ondina D.F.'s Avatar

    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.


  2. 2 Posted by Digitalforms on 24 Sep, 2012 05:51 PM

    Digitalforms's Avatar

    Of course it works. It`s not my day definitely ;-) Thanks!

  3. Support Staff 3 Posted by Ondina D.F. on 25 Sep, 2012 10:37 AM

    Ondina D.F.'s Avatar

    No problem :) Glad to hear it worked.

  4. Ondina D.F. closed this discussion on 25 Sep, 2012 10:37 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? 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