[FONT=Verdana]Hi Everyone[/FONT]
[FONT=Verdana]We have a SCORM 2004 compliant learning course in Flash, which is published using the FSCommand option in Flash MX 2004. This is because the course has to pass some variables (like learner status, etc.) back to the Learning Management System. The interface used for passing these variables in a HTML file with JavaScript.[/FONT]
[FONT=Verdana]Our client came with a feedback saying that when the page loads, users should not have to click once on the training once in order to “activate the control”, which is a regular feature of all flash content that loads in a HTML page in IE 7.0. We got a fix for this from the Adobe site. When we implemented this fix ([/FONT][FONT=Verdana][COLOR=#800080]http://www.adobe.com/devnet/activecontent/articles/devletter.html[/COLOR].[/FONT][FONT=Verdana]), it works, which means that the user doesn’t have to click on the flash portion of the page, but the SCORM coding, which is supposed to pass values to the LMS stops working. [/FONT]
<HTML>
<HEAD>
<TITLE>FlashContent</TITLE>
<script language=javascript src="../util/APIWrapper.js"></script>
<script language=javascript src="../util/SCOFunctions.js"></script>
<script language=javascript src="../util/otherfunctions.js"></script>
<script src="../util/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="../util/AC_ActiveX.js" type="text/javascript"></script>
</HEAD>
<BODY bgcolor="#FFFFFF" topmargin = "0" leftmargin = "0">
<script type="text/javascript" language="javascript" name="fsScormSwitch">
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1
var showWarn = true ;
// Handle FSCommand messages from a Flash movie
function FlashContent_DoFSCommand(command, args) {
var myArgs = new String( args );
var FlashContentObj = InternetExplorer ? FlashContent : document.FlashContent;
var err = false;
var sep, arg1, arg2, value;
if( command.substring(3,13) == "Initialize" )
{
err=doInitialize();
}
else if ( command.substring(3,11) == "SetValue" )
{
sep = myArgs.indexOf(",");
arg1 = myArgs.substr(0, sep);
arg2 = myArgs.substr(sep+1);
err=doSetValue(arg1,arg2);
}
else if ( command.substring(3,9) == "Finish" )
{
err = doTerminate(args);
}
else if ( command.substring(3,9) == "Commit" )
{
err = doCommit(args);
}
else
{
// for GetValue,GetLastError,GetErrorString,GetDiagnostic, or ??
sep = myArgs.indexOf(",");
arg1 = myArgs.substr(0, sep);
arg2 = myArgs.substr(sep+1);
var comm=command.substring(3,15);
value = eval('do' + comm + '(\"' + arg1 + '\")');
if (sep != 0 && arg2 != "") FlashContentObj.SetVariable(arg2,value);
else err = "-2: No Flash variable specified";
}
}
// 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">
');
document.write('on error resume next
');
document.write('Sub FlashContent_FSCommand(ByVal command, ByVal args)
');
document.write('call FlashContent_DoFSCommand(command, args)
');
document.write('end sub
');
document.write('<'+'/SCRIPT>
');
}
</script>
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<!-- For IE 7 -->
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,19,0','width','800','height','600','src','FlashContent','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','FlashContent' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,19,0" width="800" height="600">
<param name="movie" value="FlashContent.swf" />
<param name="quality" value="high" />
<embed src="FlashContent.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="600"></embed>
</object></noscript>
</BODY></HTML>
[FONT=Verdana]Any suggestions? Thanks in advance.[/FONT]