Interface IMXMLObject cannot be imported or found
I am developing one game with robotlegs 2 and i just faced with a strange problem, it says there is not IMXMLObject interface to be implemented inside ContextBuilderTag class of RobotLegs2.
I am using Intellij with air sdk 3.8 and pure action script with no flex component.
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 Ondina D.F. on 01 Jul, 2013 01:44 PM
Hi Rafael,
The ContextBuilderTag is meant to be used with Flex, inside the declaration tag:
If you’re not using Flex, create the context like this:Ondina
Support Staff 2 Posted by Ondina D.F. on 01 Jul, 2013 01:55 PM
In the previous post I mistakenly wrote:
private var _context:AppConfig;
I corrected it:
private var _context: IContext;
see: https://github.com/darscan/robotlegs-demos-HelloFlash/blob/master/s...
3 Posted by Rafael Felisbin... on 01 Jul, 2013 03:13 PM
That´s not my problem, i am already creating my context like this. The thing is that i just cloned it and i got an error telling that there is no interface IMXMLObject at the package 'mx.core.IMXMLObject;'
Here is the declaration of class "ContextBuilderTag":
'package robotlegs.bender.mxml{'
'public class ContextBuilderTag implements IMXMLObject{}}'
Support Staff 4 Posted by Ondina D.F. on 01 Jul, 2013 04:25 PM
Are you using the release build of rl2?
Is it possible to paste the code where you create the context?
Are other rl projects working as expected?
Are you compiling against the rl’s source?
https://github.com/robotlegs/robotlegs-framework/wiki/Common-Proble...
I don’t know if there are Intellij specific settings regarding metadata that you might take under consideration. I’m using FlashBuilder.
If that’s not it, then I have no idea what’s going on :)
Support Staff 5 Posted by Shaun Smith on 01 Jul, 2013 04:57 PM
The simplest solution is to use the official, released RL SWC from http://www.robotlegs.org
If you want to compile the source yourself you have to use the Flex compiler. Even though RL will work with plain AS3 projects, it has to be compiled with the Flex SDK.
6 Posted by Rafael Felisbin... on 02 Jul, 2013 05:35 AM
i am now using only the swc and i dont get the error anymore.
Maybe i was missing some libraries, i dont know, but now its ok and i am creating my context like this:
_context=new Context().install(MVCSBundle,
StarlingViewMapExtension,
SignalCommandMapExtension)
.configure(ClassConfig, new ContextView(this));
Support Staff 7 Posted by Ondina D.F. on 02 Jul, 2013 06:38 AM
Rafael, it’s good to hear it’s working.
I’m closing this for now. Feel free to reopen this discussion, if you're still having problems. Please open new threads for new issues.
Ondina D.F. closed this discussion on 02 Jul, 2013 06:38 AM.