Assign HTML + Flash course - not showing

Topics: Developer Forum, User Forum
Mar 2, 2007 at 8:10 PM
Hi,

I have a library with some non SCORM courses. These courses are basically a HTML file with a object tag pointing to a .swf file (see example below). I assign the HTML file, and when I click Begin Assignment it opens the file on another browser window, but the Flash movie doesn't show.

HTML SAMPLE FILE:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Test2</title>
</head>

<body>
<center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="800" height="600" ID="Captivate1">
<param name="movie" value="Test2.swf">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="loop" value="0">
<embed src="Test2.swf" width="800" height="600" loop="0" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false"></embed>
</object>
</center>
</body>
</html>

If I go on the library and click on the HTML file it opens the page and shows the Flash file. Have anyone experienced the same ?

Thanks,

Andy.
Mar 3, 2007 at 5:54 PM
Yes, I am seeing these same behaviors on my system as well.

http://www.codeplex.com/SLK/Thread/View.aspx?ThreadId=7613

Haven't tracked down what this could be related to though.

Mar 5, 2007 at 3:23 PM

In the case of the sample html, the flash resource is specified using a relative URL, 'Test2.swf'. The browser, therefore, tries to load this resource from the same directory that the HTML page is present in. If one assigns only the HTML file, the flash object will not be found. To resolve this, either package the html and the flash files in one .zip and use this to create an assignment or specify the full path to the flash file in the html. Hope this helps.
Mar 5, 2007 at 4:42 PM
I've tried to zip both the HTML and Flash together and assign the .zip file as a course. The problem is that when the user clicks on the begin assignment it prompts him to "open" or "save as" the .zip file (instead of opening it like the SCORM course does opening automatically). Do I have to zip anything else with the HTML + Flash ?
Mar 5, 2007 at 5:31 PM
It is my understanding that you must have an imsmanifest.xml file in order for SLK to unpackage a zip and play it through the player, otherwise it is going to treat it like non e-learning content.

As for the Flash stuff...

I tried placing a full path to the Flash movie in the HTML host file, ran that HTML file via E-Learning Actions and that seemed to work. Although I did not get any tracking on the content. I suspect this is because the page was not packaged in a zip file with a manifest file.
Mar 7, 2007 at 3:48 PM
Actually you're right. If you create a generic imsmanifest.xml and zip it with the HTML and Flash files, when you open it in SLK it will open as if it is a "SCORM type" course. The nice thing about it is the save & close and submit assigment integration, so it's more interactive with the SLK. Much better than opening the HTML page directly.

Mar 7, 2007 at 7:17 PM
Anoguei, can you provide the generic imsmanifest file you used?

Thanks!
Mar 8, 2007 at 2:34 PM
I've just edit the solitaire imsmanifest.xml removing content specific to it and adding some related to the HTML + Flash.
Mar 8, 2007 at 7:22 PM
Edited Mar 8, 2007 at 7:23 PM
/Slaps forehead

Duh! Good idea...

I will look at doing the same so I can test this.