Mediator and Signal which comming from Model

rei_itchido's Avatar


16 Dec, 2011 10:51 AM

Hi all,

i have a problème with signal dispatched by my model, i don't arrive to catch it with my mediator :/

My model do that :
public var flickrClearSignal:FlickrClearSignal;
public function clearData():void {



And i don't know how to cath this signal by my mediator.
Somebody can help me?

  1. 1 Posted by Abel de Beer on 16 Dec, 2011 11:10 AM

    Abel de Beer's Avatar

    Make sure you do the following:

    In your context's startup method:

    In your model and mediator:
    [Inject] public var flickrClearSignal:FlickrClearSignal;

    Then add your listeners in the mediator and dispatch it in the model.

    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.

    Hope this helps you.

  2. 2 Posted by rei_itchido on 16 Dec, 2011 11:22 AM

    rei_itchido's Avatar

    Hi, and thank's a lot,

    But when i try to inject my Signal i have an error to the swifinjector directly :/

  3. 3 Posted by Abel de Beer on 16 Dec, 2011 11:24 AM

    Abel de Beer's Avatar

    Have you mapped it to the injector before you try to inject it?
    What is the error?
    Which IDE do you use to develop? Flash Pro? Flash Builder / FDT / FlashDevelop / IntelliJ IDEA?

  4. 4 Posted by rei_itchido on 16 Dec, 2011 11:32 AM

    rei_itchido's Avatar


    forgot, i'm a jerk, i have unwillingly delete my model injection...

    thank's a lot for your answer it's working fine

  5. rei_itchido closed this discussion on 16 Dec, 2011 11:32 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac