Skip to content

Instantly share code, notes, and snippets.

@joshtynjala
Last active October 12, 2015 06:18
Show Gist options
  • Save joshtynjala/3984102 to your computer and use it in GitHub Desktop.
Save joshtynjala/3984102 to your computer and use it in GitHub Desktop.
Share Robotlegs Commands between Flex and Feathers. You can use the regular Robotlegs Command class instead of the StarlingCommand class with a Starling context as long as you map a couple of things in your injector.
this.injector.mapSingletonOf(IMediatorMap, MediatorMap);
this.injector.mapSingletonOf(flash.display.DisplayObjectContainer, flash.display.Sprite);
@joshtynjala
Copy link
Author

This assumes, of course, that you don't access the mediatorMap and contextView properties in your commands. In my experience, it is very rare.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment