Hi, I just wanted to try out the robotlegs-starling port example, but ran into some issues. The Mediator for the context view was created, but all Mediators of the child views are not created.
Has anyone got the example to work already?
I just did some debugging and looked into the source code and found out that the StarlingMediatorMap is relying on the fact, that the Event.ADDED, Event.REMOVED, Event.ADDED_TO_STAGE, Event.REMOVED_FROM_STAGE is bubbling up to the context view. Is this working like that in Starling? At least in my case it's not behaving that way.
[EDIT]I just looked through the Starling code and found that in DisplayObjectContainer in the addChildAt method the Event.ADDED, and Event.ADDED_TO_STAGE are dispatched with bubble=false. Is there a specific reason why these events shouldn't bubble up in Starling?[/EDIT]
[EDIT AGAIN]Actually the only way to get the robotlegs framework running with the current Starling framework would be to extend all views that need Mediators with listeners for all required events(Event.ADDED, Event.REMOVED, Event.ADDED_TO_STAGE, Event.REMOVED_FROM_STAGE) and then re-dispatch them with bubbbles=true.
...
if (!event.bubbles) {
event.stopImmediatePropagation();
dispatchEvent(new Event(event.type, true));
}
...
I'd love not to implement such kind of workaround...
[/EDIT AGAIN]
Christoph