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 directory called flashlets (case sensitive, i.e. lowercase 'f') in you wiki's extensions directory. Copy the Flashlets source code from OrganicDesign:Extension:Flashlets.php. Include the flashlets.php file you downloaded and saved using a statement 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 them in the newly created 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 the 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 like the following example: extensions/flashlets/ 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.2 (2007-07-25): Allow embedding of existing SWF's and make compiling ability optional