Flash
The flash extension allows the display of flash movies within a wiki.
Syntax
Minimum Syntax:
<flash>file=filename.swf</flash>
Attribute Reference:
- width=px/% (Modify the width of the object)
- height=px/% (Modify the height of the object)
- play=true/false (Start playing the file or wait at first frame)
- loop=true/false (Loop the animation)
- quality=low/autolow/medium/high/autohigh/best (Predefine the quality)
- devicefont=true/false (Change the look of the text used in flash file)
- bgcolor=#?????? (? -> Hexadecimal integer: 1-9, A-F)
- scale=showall/noborder/exactfit (Automatically adjust content to width and height)
- menu=true/false (Show or hide the menu on right-click)
Code
This is my first php code, so please be lenient with my beginner's mistakes. This code is not yet ready to be used in practice. I have only tested it really quickly and it worked. I have no clue what kind of security holes it has and what consequences it might bring. I suppose that with this code, scripts and java should be disabled but I'm not sure for I am not a Flash expert. Please use with caution.
Known Bugs
There are too many problems to list them in the bug system, so please list them here:
- Possible security issues with Javascript
- Commands that are not tested
- align
- salign
- base
- wmode
- SeamlessTabbing
- flashvars
- name (object-specific)
- id (embed-specific)
- movie (object-specific)
- src (embed-specific)
Working Commands
- width
- height