House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Search adobe-integrated-runtime

July 04, 2009

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Home /  Groups /  Adobe Integrated Runtime (AIR)

How do you make a Flex app using mx:RemoteObject to a CFC work in AIR?

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Andrew Jones
07/20/2007 09:39 PM

I have a very simple app and I am trying to convert it over to an AIR runtime.   It works perfectly in Flex Builder (2 and 3), but when I paste my code into AIR, when it makes the call to the CFC nothing happens (no error or anything).  I'm guessing since it will be running on the desktop I need to specify a path that includes http:// to make the call to the cfc, but I can't figure it out.  One other poster mentioned he had to hard code the endpoint in the mx:RemoteObject tag - but I have no idea what to set it to. Thanks!

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Sean Corfield
07/21/2007 01:02 AM

> I have a very simple app and I am trying to convert it over to an AIR runtime.  It works perfectly in Flex Builder (2 and 3), but when I paste my code into AIR, when it makes the call to the CFC nothing happens (no error or anything).  I'm guessing since it will be running on the desktop I need to specify a path that includes http:// to make the call to the cfc, but I can't figure it out.  One other poster mentioned he had to hard code the endpoint in the mx:RemoteObject tag - but I have no idea what to set it to. The flex2gateway URL, like this:   <mx:RemoteObject endpoint="http://{server.selectedItem.data}/flex2gateway/"       id="admin"       destination="ColdFusion"       source="www.service.admin"       showBusyCursor="true">     <mx:method name="getProviders" result="onProvidersResult(event)" fault="Alert.show(event.fault.message)"/>   </mx:RemoteObject> -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rick Root
07/25/2007 09:55 AM

----- Excess quoted text cut - see Original Post for more ----- Sean... Does hard coding the endpoint and destination allow you to compile flex apps without specifying the flex services-config.xml? Rick

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rick Root
07/25/2007 09:56 AM

> Does hard coding the endpoint and destination allow you to compile > flex apps without specifying the flex services-config.xml? I'm asking this with regards to regular flex apps, rather than AIR apps... Rick

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Joe Rinehart
07/25/2007 10:52 AM

It can.  You can also bypass using <mx:RemoteObject /> altogether and   set up your channels / destinations by hand. Nimer has an example at http://www.mikenimer.com/index.cfm/2007/1/10/ Bye-bye-services -Joe On Jul 25, 2007, at 9:54 AM, Rick Root wrote: ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists