Let's talk about Flex, AIR, ActionScript, ColdFusion and more    

AIR : How to use RemoteObject without compiler option

The code of the simple sample is below.

code of AIR app (MXML version)


code of AIR app (AS3 version)


The key of this sample is "endpoint". You have to set a full url of the servlet called MessageBrokerServlet that handles FlashRemoting.

This sample uses RemoteObject class of "mx.rpc.remoting.mxml" package. When you use RemoteObject class of "mx.rpc.remoting", there isn't "endpoint" property. But you can use it if you set ChannelSet.


BlazeDSCFCTest3.cfc

Comments
BlogCFC was created by Raymond Camden. This blog is running version 5.5.005.