Activities: SWF-Activity-Module

Maintained by Matt Bury Matt Bury
The SWF Activity Module is a Moodle plugin for deploying multimedia Flash learning applications, also known as Flash templates, videos, and playlists.
195 sites
9 fans


Uploading content for the SWF Activity Module requires FTP access to /moodledata/repository/ If you do not have FTP access, ask your IT support about setting up an account for you or giving you access to an existing account. A good free and open source FTP client is FileZilla.

What does it do?

The SWF Activity Module is a Moodle plugin for deploying multimedia Flash learning apps, also known as Flash templates. Teachers and course content developers can use the SWF Activity Module to deploy any Flash apps, including but not limited to those that use external data and media in order to function correctly. It also allows Flash apps to communicate with Moodle for purposes such as passing learners' grades into Moodle's grade book.

Why use this module?

This module is especially useful for deploying M3U (playlists), SMIL, XML, and MPEG-7 multimedia learning interactions where using Moodle's built in file management system would be impractical. Large numbers of files can be uploaded and managed via FTP clients and the module provides a system of URL linking that is predictable, so you can write them into SMIL, XML, and MPEG-7 files, and portable, so you can transfer/redistribute multimedia interactions from one Moodle to another with the minimum of time and effort. Doing any of these with Moodle's file management system, even with external repositories, requires exponentially more time and effort.

Video/Media Player

The SWF Activity Module can support a number of popular Flash based media players and comes with the JW Player 5 (not free) and the free and open source Strobe Media Player (SMP) pre-installed. The SMP is part of the Open Source Media Framework:

There are demos of the SMP in action on the SWF Activity Module demo course here: (Allows guest access).

If you would like another free and open source media player included in the SWF Activity Module standard distribution, please let me know in the comments section below.

Flash learning apps

It includes one example Flash learning app, the Concept Map app: A word search app is also provided separately for testing and demonstration purposes. You're free to use the word search in courses if you wish. Matt Bury has a selection of Multimedia Interactive Learning Apps (MILAs) designed to assist and augment Second Language Acquisition (SLA) especially in EFL, ESL, ELF, and EAP contexts:

Sufficient documentation, source code and examples are provided on this project site so that Flash developers can easily write or adapt applications to work fully with the SWF Activity Module. See the project wiki pages for further details.


See demos of the latest version on my R&D Moodle: (Allows guest access).

Useful links

Free and open source projects compatible with the SWF Activity Module:

Other useful projects:

  • Free and open source Flash, Actionscript, and Haxe IDE (for editing and compiling Flash apps, similar to Adobe Flex/Flash Builder): (It's excellent!)


Screenshot #0
Screenshot #1
Screenshot #2


Matt Bury
Matt Bury (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Jim Cook
    Thu, 1 May 2014, 9:49 PM
    Matt, disregard my last comment. In doing a little more research I find the green line at the bottom to be part of the original file. There is nothing you can do about it.

    Thanks again for your work!

  • Matt Bury
    Fri, 2 May 2014, 2:03 AM
    Hi Jim,

    You can transcode the video file and crop off the green part while you're doing it. A good free and open source transcoder that can do this is Transcodes to MP4 (and M4V which is the same) and MKV.

    Good luck!
  • Picture of Mathew Gancarz
    Fri, 4 Jul 2014, 4:26 AM
    Hello Matt, I've been struggling a bit with getting some flash activities exported from Articulate embedded in our courses using the File resource and happened upon your plugin here. I noticed some warnings that it is not suitable for production use. Is that still the case?
  • Matt Bury
    Sat, 5 Jul 2014, 12:21 AM
    Hi Matthew,

    I haven't "officially" made it for production use but there aren't any more bugs that I know of. So far the design seems to be more or less final so it should be ready soon-ish.

    Thank you for your patience smile
  • Germán and temudgin
    Sun, 7 Sep 2014, 6:20 AM
    Hi Matt,

    This very useful plugin does not have its English strings available for translations in AMOS for the 2.6 and 2.7 branches. Only the 2.5 branch is available.

    Maybe it has a similar problem as described for the certificate plugin in the tracker CONTRIB-4946, but I am not a programmer, merely a translator.

    Thanks for your help.
  • Picture of 景東 王
    Sun, 19 Apr 2015, 4:44 PM
    Hi Matt,
    I like the swf activty in moodle 1.9,the version of moodle 1.9 can choose the swf file from course file's directory,but the version of moodle 2 can't.
    I had found the module Repositories: Course File Area which replicates the Moodle 1.x course files functionality ,would you change the full url to file-selector ? I had tried the module for your mplayer module,and modified mplayer module,it run very well.
  • Picture of Paul Warde
    Wed, 8 Jul 2015, 10:59 PM
    Hi Matt

    We want to try and use this plugin in the same way as your excellent mplayer for Moodle 1.9 to provide the ability to use xml playlists in Moodle 2. However I'm unable to figure out where to put our media files and how to address them in the XML playlist. If I use absolute references e.g src="http://localhost/moodle2/file.php/99/flv/yourvideo_1.flv" as you suggest, I just receive a video not found or access denied error.

    Would love to get this working, there doesn't seems to be any viable alternative in Moodle 2 to your old mplayer module - it's still blocking our upgrade from 1.9!

    Many thanks for any input.
  • Matt Bury
    Wed, 8 Jul 2015, 11:34 PM
    Hi Paul,

    The correct URL to the playlist in your case would be src="http://localhost/moodle2/mod/swf/content.php/content/video/myidentifier/myplaylist.xml"

    The playlist file would be in /moodledata/repository/swf/content/video/youridentifier/myplaylist.xml

    URLs in the playlist that link to videos, audio, images, etc. should have the absolute URLs, e.g. http://localhost/moodle2/mod/swf/content.php/content/video/myidentifier/myvideo.mp4 or

    I hope this helps! smile
  • Matt Bury
    Wed, 8 Jul 2015, 11:35 PM
    Looks like the Moodle youtube filter is at work above.
  • Picture of Paul Warde
    Thu, 9 Jul 2015, 7:06 PM
    Hi Matt

    It does help, the playlist works fine now, many thanks for getting back to me. Is there anyway to display the playlist as an overlay on the screen as there was in mplayer? We used to use this to pick the relevant track we required.

  • Picture of Rodrigo Caravaca
    Wed, 3 Feb 2016, 1:35 AM
    Hello Matt,
    I'm using your plugin for a year already and i must say it´s a plus to have.
    Now, im trying to use it to play some videos and i have something that i dont know how to handle;
    When playing a video from firefox i always get a "download" button that i want to disable, and the same with the "right click > save this video"

    Can you please tell me how can i hide those options?

    Thanks in advance.
  • Matt Bury
    Sat, 6 Feb 2016, 11:02 AM
    Hi Rodrigo,

    It sounds like Flash is disabled and you're getting the alternative content displaying. The download link is hard-coded in mod/swf/viewlib.php, on lines 117 - 132, function swf_get_html5_embed().

    I hope this helps!
  • Picture of Jack Eapen
    Tue, 14 Jun 2016, 4:13 PM
    Hi Matt,

    I'm trying this with Moodle 3.1. it's working fine, except for the grade posting part. How to use the gradeupdate.php script? I tried manually calling the script with gradeupdate.php?id=XX&swfid=YY&rawscore=88 and it worked. but how to get the rawscore once a user submit?
  • Matt Bury
    Thu, 16 Jun 2016, 10:45 AM
    Hi Jack, have you read the documentation? Here's the relevant page: I hope this helps! smile
  • Picture of Daniel Cheow
    Thu, 8 Sep 2016, 5:04 PM
    Hi Matt, was wondering is there any instructions that shows how i should link my xml files when adding a link as a swf file? Does this work with multiple folders containing other swf files which is basically instructed by the xml codes?
1 2
Please login to post comments