tag:robotlegs.tenderapp.com,2009-10-18:/discussions/robotlegs-2/3694-interface-imxmlobject-cannot-be-imported-or-foundRobotlegs: Discussion 2013-07-02T06:38:41Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/275657412013-07-01T13:44:20Z2013-07-01T13:50:54ZInterface IMXMLObject cannot be imported or found<div><p>Hi Rafael,</p>
<p>The ContextBuilderTag is meant to be used with Flex, inside the
declaration tag:<br></p>
<pre>
<code><fx:Declarations>
<mxml:ContextBuilderTag>
<bundles:MVCSBundle/>
<config:AppConfig/>
</mxml:ContextBuilderTag>
</fx:Declarations></code>
</pre>
If you’re not using Flex, create the context like this:
<pre>
<code>private var _context:IContext;
private function createContext():void
{
_context = new Context()
.install(MVCSBundle)
.configure(AppConfig, new ContextView(this));
}</code>
</pre>
<p>Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/275657412013-07-01T13:55:00Z2013-07-01T13:55:00ZInterface IMXMLObject cannot be imported or found<div><p>In the previous post I mistakenly wrote:<br>
private var _context:AppConfig;</p>
<p>I corrected it:<br>
private var _context: <strong>IContext</strong>;</p>
<p>see: <a href=
"https://github.com/darscan/robotlegs-demos-HelloFlash/blob/master/src/robotlegs/bender/demos/hello/HelloFlashApp.as">
https://github.com/darscan/robotlegs-demos-HelloFlash/blob/master/s...</a></p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/275657412013-07-01T15:13:22Z2013-07-01T16:22:16ZInterface IMXMLObject cannot be imported or found<div><p>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;'</p>
<p>Here is the declaration of class "ContextBuilderTag":<br>
'package robotlegs.bender.mxml{' 'public class ContextBuilderTag
implements IMXMLObject{}}'</p></div>Rafael Felisbinotag:robotlegs.tenderapp.com,2009-10-18:Comment/275657412013-07-01T16:25:54Z2013-07-01T16:25:54ZInterface IMXMLObject cannot be imported or found<div><p>Are you using the release build of rl2?</p>
<p>Is it possible to paste the code where you create the
context?</p>
<p>Are other rl projects working as expected?</p>
<p>Are you compiling against the rl’s source?</p>
<p><a href=
"https://github.com/robotlegs/robotlegs-framework/wiki/Common-Problems#wiki-metadata-stripping">
https://github.com/robotlegs/robotlegs-framework/wiki/Common-Proble...</a></p>
<p>I don’t know if there are Intellij specific settings
regarding metadata that you might take under consideration.
I’m using FlashBuilder.</p>
<p>If that’s not it, then I have no idea what’s going
on :)</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/275657412013-07-01T16:57:11Z2013-07-01T16:57:11ZInterface IMXMLObject cannot be imported or found<div><p>The simplest solution is to use the official, released RL SWC
from <a href=
"http://www.robotlegs.org">http://www.robotlegs.org</a></p>
<p>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.</p></div>Shaun Smithtag:robotlegs.tenderapp.com,2009-10-18:Comment/275657412013-07-02T05:35:03Z2013-07-02T05:35:07ZInterface IMXMLObject cannot be imported or found<div><p>i am now using only the swc and i dont get the error
anymore.<br>
Maybe i was missing some libraries, i dont know, but now its ok and
i am creating my context like this:</p>
<pre>
<code>_context=new Context().install(MVCSBundle,
StarlingViewMapExtension,
SignalCommandMapExtension)
.configure(ClassConfig, new ContextView(this));</code>
</pre></div>Rafael Felisbinotag:robotlegs.tenderapp.com,2009-10-18:Comment/275657412013-07-02T06:38:25Z2013-07-02T06:38:25ZInterface IMXMLObject cannot be imported or found<div><p>Rafael, it’s good to hear it’s working.<br>
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.</p></div>Ondina D.F.