Flash to a Moodle Lesson
Borrowed from https://tracker.moodle.org/.

I had a PDF that I wanted to embed into a Moodle Lesson but could not. I could upload the file and I could add a link, but that defeats the purpose of the lesson.  As I looked at the embed tag, I recognized that I was not going to get PDF to be embedded.  Once site suggested that I load a Flash (.swf) file and that I could then embed that natively in Moodle. That sounded quite reasonable.

Adding Flash to a Moodle Lesson

I loaded my PDF file in LibreOffice and then exported it Flash (you have got to love open source software). Alternatively, in Linux, one can get the Swifttools software package that converts PDF to SWF.

From there, I uploaded the file to my personal server space at LC.

So, how did I get this to work? I stumbled upon the site https://docs.moodle.org/27/en/Flash.

< object type="application/x-shockwave-flash" name="movie" width="600" height="400" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" code="" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">< /object >

Conclusion

I altered the code to match the resolution of the SWF file to 1024×768, but otherwise, it works as is. Now, the embedded flash file plays in the Moodle site and it autorepeats.  That’s the one thing I will work to stop.

Adding Flash to a Moodle Lesson
Tagged on:             
%d bloggers like this: