Прошу прощения, с этим разобрался, но возник другой вопрос. В флэшке есть кнопка закрывающая окно

Код:
on (release)
{
fscommand ("quit", "");
}
Флэш компилирую мувик даёт следующий код, а что в него нужно вставить чтобы кнопка закрыть работала. В самом swf работает а на интернет страничке - нет.

Код:
<script language="JavaScript">
<!--
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function otpusk_DoFSCommand(command, args) {
var otpuskObj = isInternetExplorer ? document.all.otpusk : document.otpusk;
//
// Place your code here.
//
}
// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<script language=\"VBScript\"\>\n');
document.write('On Error Resume Next\n');
document.write('Sub otpusk_FSCommand(ByVal command, ByVal args)\n');
document.write(' Call otpusk_DoFSCommand(command, args)\n');
document.write('End Sub\n');
document.write('</script\>\n');
}
//-->
</script>