July 05, 2008
For ColdFusion hosting try HostMySite.com. |
Home /
Groups /
Adobe Integrated Runtime (AIR)
How do you make a Flex app using mx:RemoteObject to a CFC work in AIR?
> The flex2gateway URL, like this:Rick Root 07/25/07 09:55 A > Does hard coding the endpoint and destination allow you to compileRick Root 07/25/07 09:56 A It can. You can also bypass using <mx:RemoteObject /> altogether andJoe Rinehart 07/25/07 10:52 A 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! > 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 ----- 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 > 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 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 -----
|
Mailing Lists
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||