tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/753-mediator-and-signal-which-comming-from-modelRobotlegs: Discussion 2018-10-18T16:35:35Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/121680322011-12-16T11:10:02Z2011-12-16T11:10:02ZMediator and Signal which comming from Model<div><p>Make sure you do the following:</p>
<p>In your context's startup method:<br>
<code>injector.mapSingleton(FlickrClearSignal);</code></p>
<p>In your model and mediator:<br>
<code>[Inject] public var
flickrClearSignal:FlickrClearSignal;</code></p>
<p>Then add your listeners in the mediator and dispatch it in the
model.</p>
<p>If you're still not receiving the signal, check the sequence in
which listeners are added and the signal is dispatched. If your
model dispatches the signal before listeners are added by the
mediator, the mediator won't catch the dispatch.</p>
<p>Hope this helps you.</p></div>Abel de Beertag:robotlegs.tenderapp.com,2009-10-18:Comment/121680322011-12-16T11:22:03Z2011-12-16T11:22:03ZMediator and Signal which comming from Model<div><p>Hi, and thank's a lot,</p>
<p>But when i try to inject my Signal i have an error to the
swifinjector directly :/</p></div>rei_itchidotag:robotlegs.tenderapp.com,2009-10-18:Comment/121680322011-12-16T11:24:35Z2011-12-16T11:24:35ZMediator and Signal which comming from Model<div><p>Have you mapped it to the injector before you try to inject
it?<br>
What is the error?<br>
Which IDE do you use to develop? Flash Pro? Flash Builder / FDT /
FlashDevelop / IntelliJ IDEA?</p></div>Abel de Beertag:robotlegs.tenderapp.com,2009-10-18:Comment/121680322011-12-16T11:32:23Z2011-12-16T11:32:23ZMediator and Signal which comming from Model<div><p>Bwarf,</p>
<p>forgot, i'm a jerk, i have unwillingly delete my model
injection...</p>
<p>thank's a lot for your answer it's working fine</p></div>rei_itchido