4 Replies Latest reply on Jan 16, 2009 6:15 PM by velscoe

    Flex Builder truncate/drop variables for AIR App

    velscoe
      I have built and compiled a Air Application with Local versions of Coldfusion 8.0.1, Flexbuilder 3.0.2... When I Access the SWF via browser as in http://127.0.0.1:8300/Census.swf everything is great and data is filled in my Datagrid.

      HOWEVER, when I compile/run the AIR App (from flex builder) on the desktop: I get this error…

      [RPC Fault faultString="Send failed"
      faultCode="Client.Error.MessageSend"
      faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed:
      url: ' http://ensus.swf/flex2gateway/cfamfpolling'"

      What is interesting is the real file is truncated (ensus.swf not Census.swf) and the IP/Port number are omitted
      Using a cf-polling-amf channel where the Server name and variables are correctly designated as:

      <channel-definition id="cf-polling-amf" class="mx.messaging.channels.AMFChannel">
      <endpoint uri=" http://{server.name}:{server.port}{context.root}/flex2gateway/cfamfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
      <properties>
      <polling-enabled>true</polling-enabled>
      <polling-interval-seconds>8</polling-interval-seconds>
      <serialization>
      <instantiate-types>false</instantiate-types>
      </serialization>
      </properties>
      </channel-definition>

      and the crossdomain.xml exists as well

      Also - If there were issues with the service-config.xml for the channel definitions - wouldn't the SWF have failed to access data as well?

      Any thoughts???