I tried that, and now eclipse is giving me "editor does not contain a main
type" error on java codes(it acutally does have a main class in the class) and
when i try to run the flex side, it only shows me options to run as java
application or applet.
--- In [email protected], "valdhor" <valdhorli...@...> wrote:
>
> Have you tried checking out the examples from
> http://code.google.com/p/merapi-examples/source/checkout
>
> --- In [email protected], "heygapdol" <Hey_gapdol@> wrote:
> >
> > Hello, I'm new to the Flex scene and I'm trying out an open source
> > project called "Merapi" ( http://merapiproject.net/index.php ), which is
> > essentially a bridge between java and AIR.I've been building a Flex app
> > to use this package and I keep getting "type was not found or was not a
> > compile-time constant:BridgeInstance" error.
> > This code is pretty much taken straight from their hello world video
> > which can be found here
> > <http://merapiproject.net/index.php?option=com_content&view=article&id=5\
> > 1&Itemid=84> .
> >
> > Here's my code:
> > <?xml version="1.0" encoding="utf-8"?>
> > <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
> > xmlns:s="library://ns.adobe.com/flex/spark"
> > xmlns:mx="library://ns.adobe.com/flex/mx"
> > xmlns:merapi="merapi.*">
> >
> > <merapi:BridgeInstance id="bridge"
> > result="handleResult(event)"/>
> >
> > <mx:Script>
> > <![CDATA[
> > import merapi.messages.*;
> > import mx.rpc.events.ResultEvent;
> > private function handleResult( event : ResultEvent ) : void
> >
> > {
> > var message : IMessage = event.result as IMessage;
> > }
> > ]]>
> > </mx:Script>
> >
> > </s:WindowedApplication>
> >
> > My understanding is that this have something to do importing the swc
> > file - I tried putting the argument -include-libraries
> > "merapi/merapi-core.swc" in the flex compiler and
> > I've put the merapi-core.swc file in everywhere in desperate attempt:
> > now it's in src, libs and the main project folder.
> > Still I get "type was not found or was not a compile-time constant" on
> > the line <merapi:BridgeInstance id="bridge"
> > result="handleResult(event)"/>.
> > Any ideas on this?
> >
>