Moodle 2.2 Including flash in Lesson

Moodle 2.2 Including flash in Lesson

Manuel Tanger發表於
Number of replies: 4

Hi,

I have a few lectures packaged in flash that I want to include as part of a lesson in Moodle. I've uploaded the .swf file but it does not open and play when you access the lesson page.

Is there a player to be installed? Can it be done at all?

Thanks,

Manuel

評比平均分數: -
In reply to Manuel Tanger

Re: Moodle 2.2 Including flash in Lesson

Lynn Scarlet Clark發表於

Hello

You need an <iFrame> tage inserting around your .swf file (in html mode). Here's an earlier post where I helped someone else with the iFrame code for a shockwave flash object:

http://moodle.org/mod/forum/discuss.php?d=194959&parent=849432

評比平均分數:Useful (1)
In reply to Lynn Scarlet Clark

Re: Moodle 2.2 Including flash in Lesson

Manuel Tanger發表於

Hi Lynn,

Thanks for the really quick reply!

I see the idea is to include:

<iframe width="#" align="middle" scrolling="0" height="#" frameborder="0" src="http://yourdomain/Yourswf.swf"></iframe>

my question (forgive my ignorance) is where?

Thanks again!

Manuel

In reply to Manuel Tanger

Re: Moodle 2.2 Including flash in Lesson

Lynn Scarlet Clark發表於

Hi,

Ok... as you want this in a lesson, it needs to go within a lesson page. You must put this into the page in HTML mode (click the <> sign to switch from the wysiwyg view).

You can dump this code into a blank page, then the swf will be the only thing on that page. (For instance, in theory your lesson could be one page in length with just this swf on it - although I'd recommened doing something else in that case, like just putting the swf into a single web page instead, but you get the idea).

Equally, you can put it into a page with other things already in it - there could be an intro paragraph that you want peope to read before they view the swf. In this case, put in all your other inclusions (text, images, whatever) then switch to HTML view and paste in the code (with your file name changes) into wherever you need it within the page.

The iFrame and the swf object itself will not conflict with any other text, images or other object (eg a youTube clip) so it will fit in easily.

I'm not on my own computer so I can't do a screen grab for you at the moment to show what the outcome is. If you still can't get this working, post back and I'll help further.

Hope this helps? 

評比平均分數:Useful (1)