How to manualy inject a instance of a signal into a model?

webdesignporto's Avatar

webdesignporto

08 Nov, 2010 09:51 PM

I can't find the inject variable. So there is any other way? thanks

  1. 2 Posted by Nikos on 09 Nov, 2010 09:34 AM

    Nikos 's Avatar

    What is sending the signals?

  2. 3 Posted by webdesignporto on 09 Nov, 2010 01:53 PM

    webdesignporto's Avatar

    instead of doing like this:
    [Inject] public var mySignal:Signal;

    do in a method:
    mySignal = injector.getInstance(...)

  3. 4 Posted by webdesignporto on 09 Nov, 2010 02:32 PM

    webdesignporto's Avatar

    my model has no injector variable...

  4. 5 Posted by Stray on 09 Nov, 2010 04:09 PM

    Stray's Avatar

    correct - the injector isn't included in the model by default.

    if you do

    [Inject]
    public var injector:IInjector;

    you'll find you have access to it.

  5. 6 Posted by webdesignporto on 12 Nov, 2010 06:10 PM

    webdesignporto's Avatar

    thanks, i think this is the fix (:

  6. Stray closed this discussion on 11 Feb, 2011 05:18 PM.

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

Keyboard shortcuts

Generic

? 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