Web Page:
<script language="javascript">
function myfunction()
{ alert("This function was successfully triggered via the flash movie.");}
</script>
Flash: Action Script
getURL("javascript:myfunction();");