How to manualy inject a instance of a signal into a model?
I can't find the inject variable. So there is any other way? thanks
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
1 Posted by Nikos on 09 Nov, 2010 09:34 AM
What is sending the signals?
2 Posted by webdesignporto on 09 Nov, 2010 01:53 PM
instead of doing like this:
[Inject] public var mySignal:Signal;
do in a method:
mySignal = injector.getInstance(...)
3 Posted by webdesignporto on 09 Nov, 2010 02:32 PM
my model has no injector variable...
4 Posted by Stray on 09 Nov, 2010 04:09 PM
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 Posted by webdesignporto on 12 Nov, 2010 06:10 PM
thanks, i think this is the fix (:
Stray closed this discussion on 11 Feb, 2011 05:18 PM.