tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/389-robotlegs-support-starling-frameworkRobotlegs: Discussion 2012-08-27T10:38:37Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/103122192011-10-12T10:35:15Z2011-10-12T10:35:15ZRobotlegs support Starling framework.<div><p>Have you tried to really mediate a Starling sprite? From a quick
look<br>
into their API docs, it looks like the addedToStage event is<br>
sufficiently different from what the normal display list uses to
make<br>
it unusable by the current MediatorMap in Robotlegs. If it works,
I'd<br>
be surprised - delightfully so, of course.</p>
<p>Other than that, you can simply listen to the events directly
instead<br>
of using the eventMap. That is just a convenience class to make<br>
automatic listener removal in mediator cleanup possible.</p>
<p>If the MediatorMap is it is currently turns out not to work
with<br>
Starling, some probably small changes to it will have to be made.
I<br>
won't immediately be able to look into it, though, so if you
(or<br>
somebody else) wants to look into it, we'd gladly accept (tested)
pull</p></div>Till Schneidereittag:robotlegs.tenderapp.com,2009-10-18:Comment/103122192011-10-12T10:41:50Z2011-10-12T10:41:50ZRobotlegs support Starling framework.<div><p>I think s9tpepper on Twitter announced yesterday that he's
working on / completed an adaptation of RL that works with Starling
- but I've no idea really what that means :)</p>
<p>hth,</p>
<p>Stray</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/103122192011-10-12T10:43:51Z2011-10-12T10:43:51ZRobotlegs support Starling framework.<div><p>Ah, cool. I think the required changes are pretty small, but
that's<br>
only from a very cursory glance at the API docs, really.</p></div>Till Schneidereittag:robotlegs.tenderapp.com,2009-10-18:Comment/103122192011-10-13T07:35:40Z2011-10-13T07:35:40ZRobotlegs support Starling framework.<div><p>Exactly, here's the link: <a href=
"https://github.com/s9tpepper/robotlegs-starling-plugin">https://github.com/s9tpepper/robotlegs-starling-plugin</a></p></div>Michal Wroblewskitag:robotlegs.tenderapp.com,2009-10-18:Comment/103122192011-10-13T18:10:09Z2011-10-13T18:10:12ZRobotlegs support Starling framework.<div><p>Great.<br>
I will fork and start test.<br>
Regards</p></div>rodrigopandinitag:robotlegs.tenderapp.com,2009-10-18:Comment/103122192011-10-17T06:47:17Z2011-10-17T06:47:17ZRobotlegs support Starling framework.<div><p>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?</p></div>nadnerbtag:robotlegs.tenderapp.com,2009-10-18:Comment/103122192011-10-17T07:13:23Z2011-10-17T07:13:24ZRobotlegs support Starling framework.<div><p>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.</p></div>nadnerbtag:robotlegs.tenderapp.com,2009-10-18:Comment/103122192011-10-17T20:16:22Z2011-10-17T20:16:24ZRobotlegs support Starling framework.<div><p>Hey nadnerb,</p>
<p>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</p></div>omartag:robotlegs.tenderapp.com,2009-10-18:Comment/103122192011-10-19T10:54:13Z2011-10-19T10:54:14ZRobotlegs support Starling framework.<div><p>i have the same problem with nadnerb .. the mediator onregister
event never get called..</p></div>dimastag:robotlegs.tenderapp.com,2009-10-18:Comment/103122192011-10-19T14:35:14Z2011-10-19T14:35:16ZRobotlegs support Starling framework.<div><p>I solved it, the class packages were getting confused.<br>
See the comments here</p>
<p><a href=
"http://omar.likesflex.com/?p=54#comments">http://omar.likesflex.com/?p=54#comments</a></p></div>Nadnerbtag:robotlegs.tenderapp.com,2009-10-18:Comment/103122192011-10-20T05:45:13Z2011-10-20T05:45:15ZRobotlegs support Starling framework.<div><p>thanks nadnerb.. okay i got it, the mediator works. but not all
of them.. in the example project only the mygamemediator that
works, but the second view doesn't.. is there anything wrong?</p></div>dimastag:robotlegs.tenderapp.com,2009-10-18:Comment/103122192011-10-20T14:05:45Z2011-10-20T14:05:48ZRobotlegs support Starling framework.<div><p>Hi guys,</p>
<p>I have the same problem with the Example. The second view
mediator is never created.<br>
Haven't figured out, what's going wrong. :-(</p></div>Christophtag:robotlegs.tenderapp.com,2009-10-18:Comment/103122192011-10-21T17:31:30Z2011-10-21T17:31:33ZRobotlegs support Starling framework.<div><p>I made an update to the robotlegs-starling-plugin last night to
add a command object that will work correctly with the Starling
plugin classes. Some default injections in the default Command had
to be updated. <a href=
"https://github.com/s9tpepper/robotlegs-starling-plugin">https://github.com/s9tpepper/robotlegs-starling-plugin</a></p></div>omartag:robotlegs.tenderapp.com,2009-10-18:Comment/103122192011-10-27T17:44:04Z2011-10-27T17:44:04ZRobotlegs support Starling framework.<div><p>Hi,</p>
<p>Thank you Omar for the plugins classes. After have the same
problems that the<br>
Nardneb said, the second view mediator is never created, I modified
the <code>Event</code> class in Starling framework to <code>bubbles
= true</code>; and every thing works fine now. The second view
mediator is created and <code>onRegister</code> and
<code>onRemove</code> funcions are call.<br>
I'm not sure if I will have some problem by this, but for now, work
very well.<br>
I notice that <code>Event</code> class in Starling don't have the
<code>clone</code> function. Maybe is because this that the second
view is not created?</p>
<p>Regards</p></div>rodrigopandinitag:robotlegs.tenderapp.com,2009-10-18:Comment/103122192012-08-09T07:40:08Z2012-08-09T07:40:09ZRobotlegs support Starling framework.<div><p>Hi,<br>
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.<br>
After that I have issue with line "super.dispatchEvent(event)" in
starling.display.DisplayObject class.</p>
<p>Any suggestions or ideas would be appreciated.</p>
<p>Sorry for rehashing an pretty old topic.</p>
<p>Regards</p></div>bitelztag:robotlegs.tenderapp.com,2009-10-18:Comment/103122192012-08-09T07:53:53Z2012-08-09T07:53:54ZRobotlegs support Starling framework.<div><p>I figured It out.<br>
For the sake of future lost people looking for solution:<br>
It's important to set autoStartup = true in constructor of context
class!</p></div>bitelz