Extension:Flashlets

Example usage
The simplest usage is just to embed an existing SWF in the page, as in the following example: 

If you have the $wgFlashletsMTASC global set to the internal path of your MTASC compiler, then you can also directly include ActionScript code in the tags which will be compiled and embeded dynamically. Below is a syntax example, you can test it out in the Peerix Sandbox.

Installation
First create a Flashlets directory in your wiki's extensions directory. Copy the Flashlets source code from OrganicDesign:Extension:Flashlets.php. Include the Flashlets.php file you downloaded in your LocalSettings.php file as usual, for example:

To allow dynamic compiling of ActionScript into embeded SWF's, you need to download the Container.swf file and save in the your Flashlets directory. (you'll need to use right-click and "save as" to save Container.swf becasue it will open in your browser if you just click the link normally).

Also the free open-source MTASC ActionScript compiler from www.mtasc.org needs to be installed. They have pre-build packages for Linux, OS X and Windows, so download the appropriate version onto your system. The default settings for the Flashlets extensions assume that the mtasc files are unpacked into your Flashlets directory, but you can install it any way you like as long as you set the $wgFlashletsMTASC and $wgFlashletsCP globals to match your MTASC install. The directory structure should now look similar to the following example: extensions/Fflashlets/ extensions/Flashlets/Flashlets.php extensions/Flashlets/Container.swf extensions/Flashlets/mtasc/ extensions/Flashlets/mtasc/CHANGES.txt extensions/Flashlets/mtasc/Future.txt extensions/Flashlets/mtasc/mtasc extensions/Flashlets/mtasc/Readme.txt extensions/Flashlets/mtasc/std extensions/Flashlets/mtasc/std8

Global settings
Here are some global variables which affect the operation of the extension. These should be set in your LocalSettings file after the include of the Flashlets.php script.

Change log

 * 1.0.4 (2007-09-04): Fixed location-dependence bug
 * 1.0.2 (2007-07-25): Allow embedding of existing SWF's and make compiling ability optional