tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/386-using-signalscontext-always-causes-a-injector-is-not-defined-errorRobotlegs: Discussion 2018-10-18T16:35:32Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/102176852011-09-26T15:58:28Z2011-09-26T15:58:28ZUsing SignalsContext always causes a injector is not defined error<div><p>Hi,</p>
<p>When I try to use the SignalsCommandMap swc I get a 'injector is
not defined in contextBase' error. Not sure I have the latest
version, which could be causing the problem.</p>
<p>Does anyone know where I can get the latest version of the swc
or what could be causing this problem?</p>
<p>Thanks</p>
<p>Stephen</p></div>stephenadams1tag:robotlegs.tenderapp.com,2009-10-18:Comment/102176852011-09-27T00:09:38Z2011-09-27T00:09:39ZUsing SignalsContext always causes a injector is not defined error<div><p>Full stack trace for the Error? I'm using the latest (as of a
couple of weeks ago, anyway) with no issues.</p></div>Maciektag:robotlegs.tenderapp.com,2009-10-18:Comment/102176852011-09-27T13:20:08Z2011-09-27T13:20:53ZUsing SignalsContext always causes a injector is not defined error<div><p>Hi,</p>
<p>Here is the full error trace I get:</p>
<p>ReferenceError: Error <a href="/discussions/problems/1065"
title="Discussion #1065">#1065</a>: Variable
org.robotlegs.base:ContextBase::injector i<br>
s not defined.</p>
<pre>
<code>at org.robotlegs.mvcs::SignalContext/mapInjections()[/Users/joel/Code/robotlegs</code>
</pre>
<p>
/robotlegs-dev/signals-extension-CommandSignal/src/org/robotlegs/mvcs/SignalCont
ext.as:30]</p>
<pre>
<code>at org.robotlegs.mvcs::Context()[/Development/Projects/Robotlegs/robotlegs-fram</code>
</pre>
<p>ework/src/org/robotlegs/mvcs/Context.as:89]</p>
<pre>
<code>at org.robotlegs.mvcs::SignalContext()[/Users/joel/Code/robotlegs/robotlegs-dev</code>
</pre>
<p>
/signals-extension-CommandSignal/src/org/robotlegs/mvcs/SignalContext.as:14]</p>
<pre>
<code>at context::AssetLoadContext()[C:\development\projects\AssetLoadTest\src\contex</code>
</pre>
<p>t\AssetLoadContext.as:23]</p>
<pre>
<code>at AssetLoadTest()[C:\development\projects\AssetLoadTest\src\AssetLoadTest.as:1</code>
</pre>
<p>3]<br>
[SWF]
C:\development\projects\AssetLoadTest\bin-debug\AssetLoadTest.swf -
189,72 7 bytes after decompression</p>
<p>Where did you get the latest version from?</p></div>stephenadams1tag:robotlegs.tenderapp.com,2009-10-18:Comment/102176852011-09-27T13:56:53Z2011-09-27T13:57:11ZUsing SignalsContext always causes a injector is not defined error<div><p>Well I've got the latest build, and ran that using the build
scripts, which created a new signalscommandmap.swc for me. This
works, but now I have another error saying this:</p>
<p>ArgumentError: Listener has 0 arguments but it needs at least 1
to match the giv<br>
en value classes.</p>
<pre>
<code>at org.osflash.signals::Signal/registerListener()[D:\OSFlash\AS3Signals\as3-sig</code>
</pre>
<p>nals\src\org\osflash\signals\Signal.as:176]</p>
<pre>
<code>at org.osflash.signals::Signal/add()[D:\OSFlash\AS3Signals\as3-signals\src\org\</code>
</pre>
<p>osflash\signals\Signal.as:76]</p>
<pre>
<code>at org.robotlegs.base::SignalCommandMap/mapSignal()[C:\development\projects\joe</code>
</pre>
<p>
lhooks-signals-extensions-CommandSignal-6241aab\joelhooks-signals-extensions-Com<br>
mandSignal-6241aab\src\org\robotlegs\base\SignalCommandMap.as:39]</p>
<pre>
<code>at controller::StartupCommand/execute()[C:\development\projects\AssetLoadTest\s</code>
</pre>
<p>rc\controller\StartupCommand.as:18]</p>
<pre>
<code>at org.robotlegs.base::CommandMap/execute()[/Development/Projects/Robotlegs/rob</code>
</pre>
<p>otlegs-framework/src/org/robotlegs/base/CommandMap.as:173]</p>
<pre>
<code>at org.robotlegs.base::CommandMap/routeEventToCommand()[/Development/Projects/R</code>
</pre>
<p>
obotlegs/robotlegs-framework/src/org/robotlegs/base/CommandMap.as:223]</p>
<pre>
<code>at Function/<anonymous>()[/Development/Projects/Robotlegs/robotlegs-framework/s</code>
</pre>
<p>rc/org/robotlegs/base/CommandMap.as:98]</p>
<pre>
<code>at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at org.robotlegs.base::ContextBase/dispatchEvent()[/Development/Projects/Robotl</code>
</pre>
<p>
egs/robotlegs-framework/src/org/robotlegs/base/ContextBase.as:70]</p>
<pre>
<code>at context::AssetLoadContext/startup()[C:\development\projects\AssetLoadTest\sr</code>
</pre>
<p>c\context\AssetLoadContext.as:36]</p>
<pre>
<code>at org.robotlegs.mvcs::Context/checkAutoStartup()[/Development/Projects/Robotle</code>
</pre>
<p>
gs/robotlegs-framework/src/org/robotlegs/mvcs/Context.as:261]</p>
<pre>
<code>at org.robotlegs.mvcs::Context()[/Development/Projects/Robotlegs/robotlegs-fram</code>
</pre>
<p>ework/src/org/robotlegs/mvcs/Context.as:90]</p>
<pre>
<code>at org.robotlegs.mvcs::SignalContext()[C:\development\projects\joelhooks-signal</code>
</pre>
<p>
s-extensions-CommandSignal-6241aab\joelhooks-signals-extensions-CommandSignal-62<br>
41aab\src\org\robotlegs\mvcs\SignalContext.as:14]</p>
<pre>
<code>at context::AssetLoadContext()[C:\development\projects\AssetLoadTest\src\contex</code>
</pre>
<p>t\AssetLoadContext.as:23]</p>
<pre>
<code>at AssetLoadTest()[C:\development\projects\AssetLoadTest\src\AssetLoadTest.as:1</code>
</pre>
<p>3]<br>
[SWF]
C:\development\projects\AssetLoadTest\bin-debug\AssetLoadTest.swf -
190,50 2 bytes after decompression</p>
<p>Think there is a problem with version of AS signals I'm
using</p></div>stephenadams1tag:robotlegs.tenderapp.com,2009-10-18:Comment/102176852011-09-27T14:05:07Z2011-09-27T14:05:07ZUsing SignalsContext always causes a injector is not defined error<div><p>Ok, found out that the problem was caused by the comination of
swc files I was using, seems fine now when using:</p>
<p>as3-signals-v0.9-BETA.swc<br>
signals-extension-SignalsCommandMap.swc<br>
AssetLoader-v2.4.1.swc<br>
RobotLegs-framework-v1.4.0.swc</p>
<p>Odd error?</p>
<p>Stephen</p></div>stephenadams1