Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

SWF

From MoodleDocs
Revision as of 02:51, 23 January 2009 by Matt Bury (talk | contribs)

SWF Activity Module

This page relates to the SWF Activity Module which is currently under development.

What is the SWF Activity Module?

The SWF Activity Module provides a comprehensive and flexible method for deploying SWF (Flash and Flex) files as learning interactions in a Moodle course.

How does is work?

Once installed, select SWF from an "Add an activity" list on a Moodle course page. The standard "Adding a new SWF to topic... " moodleform will appear. In this form you can set the following parameters:

Required Parameters

The required parameters are:

  • As with all Moodle activities, name and intro.
  • SWF file
  • Height
  • Width
  • Version

Optional Parameters

  • AMF Interaction (Not yet implemented)
  • XML file URL
  • FlashVars #1
  • FlashVars #2
  • FlashVars #3


Advanced Parameters

  • API Key
  • Align
  • Auto Play
  • Loop Playback
  • Menu
  • Quality
  • Scale Mode
  • Stage Align
  • Window Mode
  • Background
  • Use Device Font
  • Seamless Tabbing
  • Allow Full Screen
  • Allow Script Access
  • Allow Networking


What features does it support?

The SWF Activity Module supports a number of features, specific to Flash and Flex applications. They are:

Flash Remoting (AMF)

Flash Remoting is a method for Flash or Flex applications to communicate directly with server-side applications written in .NET, Java, PHP, Cold Fusion and Ruby on Rails. There are a number of open-source libraries for handling communication via Flash Remoting:

See [Development:AMF3] for details on how to set up AMFPHP in Moodle.


XML Data Loading

FlashVars