This TechNote describes how to use Flash Remoting with ColdFusion's built-in authentication mechanism and ColdFusion components. It shows how to use the ActionScriptsetCredentials method on the Flash side to pass credential information to the cflogin tag on the ColdFusion side. This TechNote assumes you are already familiar with using Flash Remoting to pass data between Flash applications and ColdFusion components. It also assumes you are familiar with application security in ColdFusion MX.
Step 1:
Create a function within your Flash application which will use thesetCredentials method to pass a username and password from Flash to a ColdFusion component (cfc). ThesetCredentials method is a method of the NetConnection object. The use of setCredentials in a Flash application is analogous to using an html form with j_username and j_password form fields to pass login information to ColdFusion in a non-Flash application.
For example, if you have an ActionScript function called CallSecureCFC, the following code would pass a userid and password from Flash textboxes to a ColdFusion cfc function called mySecureFunction:

