html, flash and moodle – oh the humanity

My posts seem to be filled with stories of “I spent way too much time trying to solve the most ridiculously simple problem so now I’m sharing it with you so you don’t need to”.  Well this one is no different.  All I wanted to do was embed a small piece of flash into a moodle course (for my level 7 multimedia class) and float it right.

I would perhaps this think this should be straight forward and indeed it was but I must have gone about arse-about-face because I managed to send my moodle page down in a never-managing-to-load loop.  My problem was using Dreamweaver to write my embedding code to insert the flash file.  I should have used something older and less classy.  The float thing was no problem btw, just a matter of wrapping the whole thing in a div tag.

Here be some old but useful Flash embedding code for your moodle site:

<div style="float:right; margin-left:10px;">
<object width="300" height="400" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,15,0">
  <param name="movie" value="http://your.moodle.site.com/file.php?file=yourflashfile.swf" />
  <param name="quality" value="high" />
  <embed width="300" height="400" src="http://your.moodle.site.com/file.php?file=yourflashfile.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" />
</object>
</div>

Remember to update the swf file size to the size you require as well as replace my fictitious file name with yours.  Both of these things need to be done twice (see orange text)

Advertisement

About narissa71

leaving a cyber footprint for years to come
This entry was posted in dreamweaver, flash, html, multimedia. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s