tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/748-just-adding-the-context-typeerror-1034-ireflectorRobotlegs: Discussion 2014-08-07T12:10:01Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/256325802013-03-06T09:30:53Z2013-03-06T09:30:54ZJust adding the context: TypeError 1034 IReflector <div><p>Hi there,<br>
just started working with Robotlegs 1.5.2 in Flash Builder 4.7(SDK
3.4) but just adding a context throws an error.<br>
TypeError: Error #1034: Type Coercion failed: cannot convert to
org.robotlegs.core.IReflector.<br>
at org.robotlegs.mvcs::Context/get
reflector()[C:\Users\xx\git\robotlegs-framework\src\org\robotlegs\mvcs\Context.as:213]<br>
thrown from this piece of code:<br>
public class MyContext extends Context<br>
{ public function
MyContext(contextView:DisplayObjectContainer=null,
autoStartup:Boolean=true) { super(contextView, autoStartup);
//<< this line } ... } Added the robotlegs src Folder and the
SwiftSuspenders1.6.0.swc to my source code.<br>
Any ideas?<br>
Greetings<br>
Chris</p></div>Christag:robotlegs.tenderapp.com,2009-10-18:Comment/256325802013-03-06T20:46:04Z2013-03-06T20:46:04ZJust adding the context: TypeError 1034 IReflector <div><p>Hello,</p>
<p>Sounds like an ASC 2 bug (the new ActionScript compiler). ASC 2
is incredibly fragile at the moment and it throws errors all over
the place for no good reason. One of the things it can't deal with
is lazy assignment (<code>x ||= 5</code>).</p>
<p>If you look at the source of that error you'll see: <a href=
"https://github.com/robotlegs/robotlegs-framework/blob/version1/src/org/robotlegs/mvcs/Context.as#L213">
https://github.com/robotlegs/robotlegs-framework/blob/version1/src/...</a></p>
<p>There's an issue here:</p>
<p><a href=
"https://github.com/robotlegs/robotlegs-framework/issues/97">https://github.com/robotlegs/robotlegs-framework/issues/97</a></p></div>Shaun Smithtag:robotlegs.tenderapp.com,2009-10-18:Comment/256325802013-03-07T11:19:51Z2013-03-07T11:19:53ZJust adding the context: TypeError 1034 IReflector <div><p>Ahhh thank you!<br>
Switched back to an older SDK...<br>
tried to google the problem, but looks like Google doesnt get the
github pages.</p>
<p>Can you recommend another workaround besides switching the
SDK?(looks like IntelliJ doesn't like newer SDKs without using
ASC2)<br>
v2? A v1 branch on github? Writing Adobe for strange products?
:-)</p>
<p>Thank you for your work, I've fallen in love with robotlegs.</p></div>Christag:robotlegs.tenderapp.com,2009-10-18:Comment/256325802013-03-07T20:52:37Z2013-03-07T20:52:37ZJust adding the context: TypeError 1034 IReflector <div><p>No problemo! Have you tried using the SWC instead of the source?
Does it still fail?</p></div>Shaun Smithtag:robotlegs.tenderapp.com,2009-10-18:Comment/256325802013-03-25T11:22:44Z2013-03-25T11:22:44ZJust adding the context: TypeError 1034 IReflector <div><p>Hey Chris, I'm closing this discussion, but you can reopen it ,
if need be.</p></div>Ondina D.F.