Have you tried to really mediate a Starling sprite? From a quick look
into their API docs, it looks like the addedToStage event is
sufficiently different from what the normal display list uses to make
it unusable by the current MediatorMap in Robotlegs. If it works, I'd
be surprised - delightfully so, of course.
Other than that, you can simply listen to the events directly instead
of using the eventMap. That is just a convenience class to make
automatic listener removal in mediator cleanup possible.
If the MediatorMap is it is currently turns out not to work with
Starling, some probably small changes to it will have to be made. I
won't immediately be able to look into it, though, so if you (or
somebody else) wants to look into it, we'd gladly accept (tested) pull
I'm trying to implement these robotlegs starling classes, and
running into trouble. My mediators that extend StarlingMediator
aren't registering when their views are added to the stage. I have
the main game view mediated, and that one IS registering, when I
invoke new Starling(Game, stage).... but none of the others are. I
set it up almost exactly the way the example is on that github page
^. Anyone else run into this?
And actually, when I run the example on that github page,
"SecondViewMediator.onRegister()" never traces. Same problem. So
maybe it's a configuration thing on my end? Not sure what I could
be doing wrong.
Do you have an .fxp file you can send me with your test so I can
look at it? I did test mediating Sprites other than the main one,
so I believe it should be working properly. It would help if I can
see your code. You can email me here: omar [at] laflash.org
Thank you Omar for the plugins classes. After have the same
problems that the
Nardneb said, the second view mediator is never created, I modified
the Event class in Starling framework to bubbles
= true; and every thing works fine now. The second view
mediator is created and onRegister and
onRemove funcions are call.
I'm not sure if I will have some problem by this, but for now, work
I notice that Event class in Starling don't have the
clone function. Maybe is because this that the second
view is not created?
I've got the same problem (with running the onRegister function of
the secondView mediator), but solution with changing the bubbles to
true in starling.events.Event class isn't helping.
After that I have issue with line "super.dispatchEvent(event)" in