SWF Tools is a comprehensive API for common Flash-related tasks like:

  • Inserting SWF files on a page
  • Embedding flash in the page using common JavaScript scripts.
  • Playing a movie (FLV, MP4) or audio (MP3)
  • Playing a media playlist, using an XML file or generating dynamically.
  • Quickly generating playlists in common situations (eg. convert file attachments to a playlist).

The module supports a wide range of embedding methods and media players which are added by supporting modules included in the package, and it can produce standards-compliant code so that your website continues to validate.

The SWF Tools input filter lets Flash and media content be added easily to pages without exposing the PHP or full HTML input formats, but at the same time it allows the players to be customised and configured.

The API is designed to be accessible from PHP and from other modules so that they can take advantage of the embedding capabilities of SWF Tools without having to write your own code.

SWF Tools was originally written by Simon Hobbs (with some code ported from Flash Gallery and Flash Filter) and it was sponsored by emspace.

Note that SWF Tools does not include JavaScript or media players in the package. These must be downloaded separately from third party websites, and the instructions for this are included in the documentation below.