To help with debugging, use the cftry
and cfcatch
tags to return error messages to the Flash Player, as in the following example:
<cftry>
<cfset Flash.Result = undefinedVar> <cfcatch> <cfset Flash.Result="Failed"> </cfcatch> </cftry>
In this example, the first cfset
tag fails to assign the value into Flash.Result
because of an undefined variable.
Note: When you create a ColdFusion page that communicates with Flash, ensure that the ColdFusion page works before using it with Flash.