Virker stadig ikke: her er hele min kode:
<html>
<head>
<title>Velkomst</title>
<SCRIPT LANGUAGE=JavaScript>
<!--
var InternetExplorer = navigator.appName.indexOf(\"Microsoft\") != -1;
// Handle all the the FSCommand messages in a Flash movie
function fscommand_DoFSCommand(command, args) {
var fscommandObj = InternetExplorer ? fscommand : document.fscommand;
if(command == \"messagebox\") {
alert(args);
}
}
// 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 fscommand_FSCommand(ByVal command, ByVal args)\\n\');
document.write(\' call fscommand_DoFSCommand(command, args)\\n\');
document.write(\'end sub\\n\');
document.write(\'</SCRIPT\\> \\n\');
}
//-->
</SCRIPT>
</head>
<body bgcolor=\"3873BA\">
<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\"
ID=fscommand WIDTH=100% HEIGHT=100%>
<PARAM NAME=movie VALUE=\"Lisa2.swf\"> <PARAM NAME=loop VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#3873BA> <EMBED src=\"Lisa2.swf\" quality=false quality=high bgcolor=#0099FF WIDTH=100% HEIGHT=100% swLiveConnect=true NAME=fscommand TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></EMBED></OBJECT>
</body>
</html>
...og koden på knappens action:
on (release) {
if (tlf == \"\") {
fscommand (\"messagebox\", \"udfyld venligst tlf\");
} else {
getURL (\"sendmail.asp?navn=\"+navn+\"&tlf=\"+tlf+\"&email=\"+email+\"&kontakttype=\"+kontakttype, \"_self\", \"POST\");
}
}
Mvh farmor