SWFTools is an open source tool suit that allows you to embed Flash content (.swf files) on your web Drupal page. The basic idea behind this tool is to allow developers to focus on displaying media on their website without having to do any coding work to achieve this functionality.
It had been a while that Drupal developers wanted such a tool was most of them regularly make use of Flash files to make their websites attractive to the visitors. This SWF tool can be used to place a simple .swf file on the page.
Another advantage is the fact that this module can be easily extended with other components to enhance its capabilities. There are different modules are available that assist play back of audio, video and image based content using a variety of Flash based media players.
Insert Image: Drupal SWF Upload.png
![]() |
| [Image Cresits: Royalty free Image] |
Installation of SWFTools
- In the next stage log on to Drupal backend using your admin username and password. Here you should choose ‘Site Building’ and then ‘Modules’ where you will all your modules including a few SWFTools will be grouped. Enable the core module and save the configuration.
- Now download Flash Media Player in sites>all>modules>swftools folder. Flash Media Player plays the Flash files in the Drupal webpage. If you don’t want to make use of the Flash player you can try out alternatives such as FlowPlayer 3.
- To configure the Media Player for audio and video files go to Drupal backend and go to ‘file handling’. Here you must choose Flash Media Player as the default player for .flv and other files. Also do the same for .mp3 files and save the configuration.
- Now you must choose integration where and select all types of media files under “Render Attachment”. Doing so will make Flash Media Player play all kinds of media files by default.
- If you are using the Flash Media Player to get started with it you need to click “Create Content” and then choose “story.” Here you need to enter a title for the story in the “Title” box. Once done click on ‘File Attachment’ to upload a *.flv file in the body part. Next click on ‘Content Management’ to view your created story. Click on the story to view or play your uploaded media file.
- To install the SWF Tools into your site you will need to download SWF Tools package from the Drupal website. Unzip the files and start installation of the module by following sites>all>modules>swftools.
- In the next step you will need to select the page where you want to embed the Flash content from the list of pages.
- Click on ‘Code View’ to open the webpage’s code in the text box. Scroll down till you come to the point where you want to embed the Flash file.
- In the next step you will need to paste the embed code where the dimensions of the Flash player will also need to be set.
- To start with log into the Drupal CMS using the user name and the password.
Here we have used ‘video.swf’ for the Flash file. You can replace that with your file name. Also you can change the height and width values to meet your needs.
- Save the code and you are done with the embedding.
Mark WilstonAbout the Author: