tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/600-robotlegs-and-as3-signalsRobotlegs: Discussion 2018-10-18T16:35:29Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/84023722011-07-11T18:45:40Z2011-07-11T18:45:41ZRobotlegs and AS3 Signals<div><p>Have you looked at:<br>
<a href=
"http://joelhooks.com/2010/02/14/robotlegs-as3-signals-and-the-signalcommandmap-example/">
http://joelhooks.com/2010/02/14/robotlegs-as3-signals-and-the-signa...</a></p>
<p>Anyways, here is the "answer" to your question.</p>
<p>Signals are "different" than Events. Signals are "objects".<br>
When using events, you subscribe a listener to the object that will
either dispatch or transvers the event.<br>
Signals, on the other hand, are not part of the display list. You
subscribe a listener to the signal itself.</p>
<p>So you can have signals as part of any object or you can have
signals as Objects that are managed by the framework, so they are
not part of anything in particular.</p>
<p>When you attach a signal to a SignalCommand, the framework
itself creates a singleton of the signal automatically. You must
inject that singleton in Mediators to have access to the singleton
created by the framework.</p>
<p>You can create signal singletons that are not attached to any
command, if you wish to have mediators talk to each other, for
example.</p>
<p>Hope this helped.</p></div>Arturotag:robotlegs.tenderapp.com,2009-10-18:Comment/84023722011-07-21T05:15:01Z2011-07-21T05:15:01ZRobotlegs and AS3 Signals<div><p>I downloaded the latest versions of swcs of RL, Signals, and
signals-extension-SignalsCommandMap (v0.3 and v0.4) and if I update
the libs of Joel's SignalCafe example project, it starts throwing
an error.</p>
<p>Has anyone a) used Joel's SignalCafe example with the latest
swcs? and b) is the possible cause of this error in the SignalCafe
project or one of the swcs?</p>
<p>Tim</p></div>Timurtag:robotlegs.tenderapp.com,2009-10-18:Comment/84023722011-07-21T08:06:41Z2011-07-21T08:06:41ZRobotlegs and AS3 Signals<div><p>Hi Tim - do you know what the error is?</p>
<p>Signals isn't yet at 1.0 so the api and the way the interfaces
are composited is in flux and has changed quite a lot between 0.7
and 0.8 - so generally things built with earlier versions of
signals can't be updated just by dropping in a new swc/lib.</p>
<p>Stray</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/84023722011-07-21T09:13:47Z2011-07-21T09:15:18ZRobotlegs and AS3 Signals<div><p>Hi Stray,</p>
<pre>
<code>Error: Injector is missing a rule to handle injection into target [object FoodItemSelectedCommand]. Target dependency: org.robotlegs.examples.signalcommands.model.vo::FoodItem
at org.swiftsuspenders.injectionpoints::PropertyInjectionPoint/applyInjection()[/Users/tschneidereit/dev/swiftsuspenders/swiftsuspenders/src/org/swiftsuspenders/injectionpoints/PropertyInjectionPoint.as:42] at org.swiftsuspenders::Injector/injectInto()</code>
</pre>
<p>So, to use RL and Signals together, should I use
robotlegs-framework-v1.0.3, signals v0.5.swc, and
signals-extension-SignalsCommandMap.swc (option 1) or forgo
signals-extension-SignalsCommandMap.swc and use the latest RL &
Signals and use your SignalMediator (option 2)? I know it's an
apples to oranges comparison, but I'd like to pick a few tools and
begin carving out something that won't throw errors, if
possible.</p>
<p>Thanks again,</p>
<p>Tim</p></div>Timurtag:robotlegs.tenderapp.com,2009-10-18:Comment/84023722011-07-21T09:31:13Z2011-07-21T09:31:13ZRobotlegs and AS3 Signals<div><p>Hi Tim,</p>
<p>Using the latest versions of all 4 should be fine. I expect it's
a problem in the example code.</p>
<p>We have tested Signals-0.8, Robotlegs 1.4, Swift-suspenders 1.6
and the latest version of SignalCommandMap together and there were
no problems.</p>
<p><a href=
"https://github.com/stray/signals-extensions-CommandSignal">https://github.com/stray/signals-extensions-CommandSignal</a></p>
<p>The Signal - cafe example is most likely out of step with the
way the interfaces have changed since then. It would still be worth
dropping the latest builds of Robotlegs, Swift-suspenders,
SignalCommandMap and Signals into that demo just to see if it runs
ok, but it may not like that as the newer release of Signals has
removed a couple of the old interfaces.</p>
<p>I'd say use the latest versions - and shop around (there is a
thread in Examples) for a more recent demo. I realise it's
frustrating that the demos wind up out-of-date - limitations of
time and resources.</p>
<p>Stray</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/84023722011-07-21T09:39:20Z2011-07-21T09:39:20ZRobotlegs and AS3 Signals<div><p>Thanks Stray,</p>
<p>OK, that's good to know. For the record, Joel's Signals Cafe
demo worked fine with the swcs it came bundled with, it is only
when I updated them with the most recent builds that it stopped
working.</p>
<p>Just to clarify, I could use both SignalCommandMap and the
SignalMediator together in the same project, as they do different
things, yes?</p>
<p>I am armed to the teeth with the latest swcs now ;-)</p>
<p>Tim</p></div>Timurtag:robotlegs.tenderapp.com,2009-10-18:Comment/84023722011-07-21T09:53:11Z2011-07-21T09:53:11ZRobotlegs and AS3 Signals<div><p>Hi Tim, yes, signalMediator and signalCommandMap play nicely
together - they both just pull in whatever version of Signals
you're using.</p>
<p>Good luck!</p>
<p>Stray</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/84023722011-09-28T12:40:41Z2011-09-28T12:40:41ZRobotlegs and AS3 Signals<div><p>Just a follow up, I had to use the source for robotlegs and
signals (using the latest version of all) to get my signals to work
properly. Not sure why, but working for me.</p></div>samac1068