1 Reply Latest reply on Aug 8, 2007 2:32 PM by jvroom

    Error: Type was not found or was not a compile-time constant: Translator.

    softlab
      Hi all,
      I am trying the new Flex 3 SDK (with the latest Nightly Build), but I have some problem using it with LiveCycle DS.
      This is my index.mxml file:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" xmlns:wt="*" layout="absolute" horizontalScrollPolicy="off" verticalScrollPolicy="off" creationComplete="{init()}">
      <mx:Script>
      <![CDATA[
      import mx.data.*;
      import mx.collections.*;

      private var data_service_anagrafica:DataService;
      [Bindable]
      private var lista_anagrafica:ArrayCollection;

      private function init():void {
      /*data_service_anagrafica=new DataService("anagrafica_assembler");
      data_service_anagrafica.autoCommit=false;
      lista_anagrafica=new ArrayCollection();
      data_service_anagrafica.fill(lista_anagrafica, "SoftLab");*/
      }
      ]]>
      </mx:Script>
      <mx:DataGrid dataProvider="{lista_anagrafica}" width="100%" height="100%">
      <mx:columns>
      <mx:DataGridColumn headerText="COL_1" dataField="nome"/>
      <mx:DataGridColumn headerText="COL_2" dataField="cognome"/>
      </mx:columns>
      </mx:DataGrid>
      </mx:Application>

      When try to compile this from command-line:


      $ mxmlc -services=/Path/to/Flex/services-config.xml -locale=en_US index.mxml

      this is the result error:

      Loading configuration file /Applications/Adobe/AIR-Flex/frameworks/flex-config.xml
      This beta will expire on Wed Oct 31 00:00:00 CET 2007.
      /Applications/Adobe/AIR-Flex/frameworks/libs/fds.swc(mx/messaging/AbstractConsumer)

      Error: Type was not found or was not a compile-time constant: Translator.

      I have already copied the fds.swc and the other component libraries in the SDK/frameworks/libs and SDK/frameworks/locale directory.

      Any ideas? Thanks in advance!