Here is a way that you can use javascript with flash forms,

we ran into a situation where the flash form got so big on the page, that we had to use javascript to scroll to the top of the page…

View The example

Download the files

<cfsavecontent variable=“doThis”>
getURL(“javascript:showMessage(“ + “‘test'” + “)”);
</cfsavecontent>
<script language=“javascript”>
function showMessage(msg)
{
alert(msg);
}

</script>

<cfform name=“myform” height=“200” width=“200” format=“Flash”>
<cfinput type=“button” name=“test” value=“test” onClick=“#doThis#”>
</cfform>


I use it on my site to invoke javascript and ajax