3 Replies Latest reply on Oct 9, 2009 8:50 AM by WestSide

    AIR and CFCs

    WestSide Level 1

      Hi,

       

      I have a couple of questions regarding AIR and ColdFusion.

       

      1. I have created an AIR app that has Remote Object calls to ColdFusion CFCs.  These ColdFusion CFCs live on my local file system.  If I want to package this app up and send a user just the .air file how will the application find the CFCs?  I have a Services.mxml file which has the following code:  

       

      <mx:RemoteObject id="myService" destination="ColdFusion" source="SalesApp.cfc.Customer" endpoint="http://localhost/flex2gateway" />


      This is working locally, but I'm unclear on what changes I need to make, or how to ensure when I send just the .air file to a user  that it can find my CFCs.   SalesApp.cfc.Customer points to c:\inetpub\wwwroot\SalesApp\cfc\Customer.cfc, but this works because I have this structure on my local machine.   Another user won't so how will the CFCs be found?

       

      2. In my application descriptor file I have this <application xmlns="http://ns.adobe.com/air/application/1.5">,  so I'm using the 1.5 version of the AIR Runtime, but when I try to work with my application on a different machine, I'm always forced to change it to 1.0 <application xmlns="http://ns.adobe.com/air/application/1.0">


      Why is that?  I've updated my AIR installation on my local machine to 1.5, but for some reason my app will only run when I use 1.0. At home, I can use 1.5 fine, not clear on what drives this.

       

      Any help appreciated.

       

      -Westside

        • 1. Re: AIR and CFCs
          molocco

          About your 2nd question:

           

          Do you have installed the air 1.5 sdk on the other machine? download the air sdk from http://www.adobe.com/products/air/tools/sdk/ and install it on the sdks folder (read the instructions).

           

          Greetings,

          Matias.

          1 person found this helpful
          • 2. Re: AIR and CFCs
            Joe ... Ward Level 4

            I suspect, not being a Cold Fusion user, that you will need to change the endpoint in your remote service to point to the proper Cold Fusion server that is running the server-side part of your app. And, most likely, this will need to be configurable in the AIR app so that you can change the server URL. You currently have the endpoint set to use the local host, which means the AIR app will only look on the current machine for the Cold Fusion server.

            1 person found this helpful
            • 3. Re: AIR and CFCs
              WestSide Level 1

              @Joe - Thanks for the help with the ColdFusion CFC part, you're right, I just changed the endpoint, created a mapping in the CFAdmin that pointed to where my CFCs were on the remote server and all was good.

               

              In terms of the sdk, I needed to update my sdk to flex 3.4, it was using just flex 3.  I then configured my flex/air project properties to use the latest sdk, once done I could then change the version from 1.0, to 1.5.1 in my application descriptor file within air.

               

              Thanks for the help...

               

              -ws