<mx:RemoteObject id="cf"
destination="ColdFusion"
source="CFIDE.samples.LoginTest.logintest">
<mx:method name="getData" result="serverResult(event)"
fault="serverFault(event)" />
<mx:method name="logoutuser"
</mx:RemoteObject>
<mx:Form x="10" y="10">
<mx:FormItem label="username">
<mx:TextInput id="username" text="admin"/>
</mx:FormItem>
<mx:FormItem label="password">
<mx:TextInput id="password" text="adminpwd"/>
</mx:FormItem>
<mx:FormItem direction="horizontal">
<mx:Button label="Login" click="logIn();"/>
<mx:Button label="Logout" click="logOut()"/>
</mx:FormItem>
<mx:Button label="Get Secure Data" click="getData();"/>
</mx:Form>
</mx:Application>
The Application.cfm file authenticates the user and identifies the user with the flexadmin role.
<cfapplication name="loginTest6" sessionmanagement="true"
setclientcookies="true">
<cflogin>
<cfif isDefined("cflogin.name") or isDefined("cflogin.password")>
<cfloginuser name="#cflogin.name#" password="#cflogin.password#"
roles="flexadmin">
</cfif>
</cflogin>
10
Using Flash Remoting Update
/>
Need help?
Do you have a question about the COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 and is the answer not in the manual?