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'” + “)”);
<script language=“javascript”>
function showMessage(msg)


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

I use it on my site to invoke javascript and ajax