Flash: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 3: | Line 3: | ||
== Syntax == |
== Syntax == |
||
Minimum Syntax: |
|||
<code><nowiki><flash></nowiki>file='''filename.swf |
<code><nowiki><flash></nowiki>file='''filename.swf'''<nowiki></flash></nowiki></code> |
||
Attribute Reference: |
|||
More detailed syntax will be here soon. |
|||
* '''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)'' |
|||
Line 21: | Line 31: | ||
*Possible security issues with Javascript |
*Possible security issues with Javascript |
||
*Commands that are not tested |
*Commands that are not tested |
||
**play |
|||
**loop |
|||
**quality |
|||
**devicefont |
|||
**bgcolor |
|||
**scale |
|||
**align |
**align |
||
**salign |
**salign |
||
**base |
**base |
||
**menu |
|||
**wmode |
**wmode |
||
**SeamlessTabbing |
**SeamlessTabbing |
Revision as of 09:54, 1 September 2005
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