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?