DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:swfobject

swfobject Plugin

Compatible with DokuWiki

2009-02-14

plugin Helps embedding flash using swfObject and an alternative for users without Flash

Last updated on
2009-10-06
Provides
Syntax

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Tagged with embed, flash, media

Download and Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Documentation

swfObject – Flash in your DokuWiki

Embedding Flash into a website can be pain – especially if you need an alternative image when Flash is being blocked or non-existing. The OpenSource project swfObject offers a clean way for almost every browser to insert Flash objects – with an alternative in case Flash is not installed.

The swfObject plugin offers a simple syntax for DokuWiki:

<swfobject %SWF%[?%OPTIONS%]>
%ALTERNATE_CONTENT%
</swfobject>
Variable Content
%SWF% your flash-media file, e.g. :wiki:my_flash.swf
%OPTIONS% see below
%ALTERNATE_CONTENT% any content renderable by DokuWiki

Options

The plugin can take a lot of options. On the one hand those are the ones from the original SWFObject, on the other there are your custom flash-specific options. The syntax is:

option=value&options2=value2
Option Values Default Description
width number 150 Important value which has to be set accordingly
height number 50 Important value which has to be set accordingly
play true/false true Autostart of the flash-movie
loop true/false false Re-play at the end of the movie
menu true/false false Show full or smaller context menu
quality low, high, autolow, autohigh, best autohigh Display Options
scale showall, noborder, exactfit showall What will happen when the movie does not fit into your defined areas
salign l, t, r, b, tl, tr, bl, br Alignment options
wmode window, opaque, transparent transparent Window modes
bgcolor Hexadecimal RGB Mode: #RRGGBB Background color for transparent areas
base URL Base directory for dynamic content of the movie
swliveconnect true/false false
devicefont true/false true
allowscriptaccess true/false false
seamlesstabbing true/false false
allowfullscreen true/false false
allownetworking true/false false

You can add your own options as well. They will then be added to the flashvars option and directly passed to your Flash movie.

If you activate compression for JavaScript and CSS in your DokuWiki Configuration, the SWF-Script Output inside the rendered Document will also be minified.

plugin/swfobject.txt · Last modified: 2018-06-06 00:06 by Klap-in