| Trace: Multi media files |
Multi media files
From PETT-Wiki
Contents |
[edit]
Flash Files
To add a flash file to the system so that it is played within a page, I have added an extension to the system, the process has two steps.
- First you will need to upload the .swf file using the special uploads page
- You will then need to add markup text to run the media file embedded
[edit]
Base Syntax
<flash>file=mediaswf|width=200|height=300|bgcolor=#FDE742|scale=exactfit</flash>
[edit]
Attribute Reference
- width=px or % (Modify the width of the object)
- height=px or a% (Modify the height of the object)
- play=true/false (Start playing the file or wait at first frame, default:true)
- loop=true/false (Loop the animation, default:true)
- 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)
[edit]
Examples
Note: this example is put into a table to give us a boarder round the file as the file background was white:-
{|border="1"
|<flash>file=Test.swf|width=800|height=600|bgcolor=#FDE742|scale=exactfit</flash>
|}
