Just adding the context: TypeError 1034 IReflector
Hi there,
just started working with Robotlegs 1.5.2 in Flash Builder 4.7(SDK
3.4) but just adding a context throws an error.
TypeError: Error #1034: Type Coercion failed: cannot convert to
org.robotlegs.core.IReflector.
at org.robotlegs.mvcs::Context/get
reflector()[C:\Users\xx\git\robotlegs-framework\src\org\robotlegs\mvcs\Context.as:213]
thrown from this piece of code:
public class MyContext extends Context
{ 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.
Any ideas?
Greetings
Chris
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
Support Staff 1 Posted by Shaun Smith on 06 Mar, 2013 08:46 PM
Hello,
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 (
x ||= 5).If you look at the source of that error you'll see: https://github.com/robotlegs/robotlegs-framework/blob/version1/src/...
There's an issue here:
https://github.com/robotlegs/robotlegs-framework/issues/97
2 Posted by Chris on 07 Mar, 2013 11:19 AM
Ahhh thank you!
Switched back to an older SDK...
tried to google the problem, but looks like Google doesnt get the github pages.
Can you recommend another workaround besides switching the SDK?(looks like IntelliJ doesn't like newer SDKs without using ASC2)
v2? A v1 branch on github? Writing Adobe for strange products? :-)
Thank you for your work, I've fallen in love with robotlegs.
Support Staff 3 Posted by Shaun Smith on 07 Mar, 2013 08:52 PM
No problemo! Have you tried using the SWC instead of the source? Does it still fail?
Support Staff 4 Posted by Ondina D.F. on 25 Mar, 2013 11:22 AM
Hey Chris, I'm closing this discussion, but you can reopen it , if need be.
Ondina D.F. closed this discussion on 25 Mar, 2013 11:22 AM.