Flash module add-on: Embedding Flash in Moodle

Flash module add-on: Embedding Flash in Moodle

Matt Bury發表於
Number of replies: 3
Particularly helpful Moodlers的相片 Plugin developers的相片
Hi,

I'm an experienced Flash Designer and ActionScript developer but completely new to Moodle.

I've read a few of the threads here and read through and tried the tutorials that I could find. Ok, so here's my problem:

I'm embedding my SWF with the suggested tags:
<object width="600" height="400" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase=
 "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">
 <param name="movie" value="http://yoursite.org/file.php/2/movie.swf" />
 <param name="quality" value="high" /> <embed width="600" height="400"
 src="http://yoursite.org/file.php/2/movie.swf" quality="high"
 type="application/x-shockwave-flash"
 pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>


When I preview or view from a student account, the page where I've embedded my SWF file, I get this text showing up where the SWF should be:

codebase=
"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">
src="http://www.watchtvlearnenglish.com/test_bed/fl_cube.swf" quality="high"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />

I've tried setting - Modules > Filters > Multimedia Plugins > Show > Settings > Enable .swf filter "Yes", to no avail.

Please help!

P.S. I'm using Flash CS3 Professional with ActionScript 3.0, although I doubt that this would have anything to do with what's going on here.
評比平均分數: -
In reply to Matt Bury

Re: Flash module add-on: Embedding Flash in Moodle

garima agrawal發表於

Try This code

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
WIDTH="900" HEIGHT="60" id="menu"><PARAM NAME=movie VALUE="menu.swf"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src="http://localhost/moodle2/theme/standardblue/menu.swf" quality=high bgcolor=#FFFFFF WIDTH="900" HEIGHT="65" margin-top="0px"
NAME="menu" ALIGN="" TYPE="application/x-shockwave-flash"
PLUGINSPAGE="

In reply to garima agrawal

Re: Flash module add-on: Embedding Flash in Moodle

Matt Bury發表於
Particularly helpful Moodlers的相片 Plugin developers的相片

I've realised I didn't do this:

Site Administration > Security > Site Policies > Check the 'Allow EMBED and OBJECT tags' box.

Moodle was filtering out my Flash HTML code. The other thing to note is that the example code on the Moodle docs doesn't work for IE browsers. You should use this:

<object height="40" id="yourSWFname" &#010;width="50" &#010;codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param value="http://yourSite.com/assets/yourSWFname.swf" name="movie" /> <param value="high" name="quality" /> <param value="#FFFFFF" name="bgcolor" /> <embed width="50" height="40" &#010;pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" &#010;name="yourSWFname" bgcolor="#FFFFFF" quality="high" src="http://yourSite.com/assets/yourSWFname.swf" />
</object>

Also, you should seriously consider using Geoff Searn's SWFObject to embed your SWFs (Flash files). You can find his site here:

http://blog.deconcept.com/swfobject/ 

It contains everything you need to make Flash work with the majority of browsers. The current version is 1.5, there's a version that comes with the Moodle Flash extension but that's version 1.4. I'd recommend changing to 1.5 because it includes some very necessary updates and also includes something called 'express install' which updates the user's Flash player if necessary with the minimum of fuss - i.e. taking the user to Adobe.com Flash player download page which can confuse a lot of people.

In reply to Matt Bury

Re: Flash module add-on: Embedding Flash in Moodle

Marcus Potter發表於
Hey All
Sorry to crash in on this subject, (Mat great work!!) I am new to Moodle and trying to get my head around all different flash usages with moodle. My personal interest is in building up a "moodle AMF" via AS3 & amfphp.
Click here to view "moodleAMF" post

I'm also trying to make sure all the right people are following this, to either help out or enlighten a newbie (being right or wrong) by atleast pointing me in the right direction for getting moodle AMF'd up! :P

Cheers
Marcus