Flash: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
No edit summary
m Reverted changes by Hooker (talk) to last version by HappyDog
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{MovedToMediaWiki|Extension:Flash}}
The flash extension allows the display of flash movies within a wiki.
Imported to mediawiki.org including page history. --[[User:Bdk|<span style="color:#116611">:Bdk:</span>]] 02:05, 28 November 2006 (UTC)

== Syntax ==

=== Base Syntax ===
<code><nowiki><flash></nowiki>file='''filename.swf'''|attribute='''value'''|...<nowiki></flash></nowiki></code>

=== 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)''
* '''align'''
* '''salign'''
* '''base'''
* '''wmode'''
* '''SeamlessTabbing'''
* '''flashvars'''
* '''name''' (object-specific)
* '''id''' (embed-specific)
* '''movie''' (object-specific)
* '''src''' (embed-specific)

=== Examples ===
<code><nowiki><flash></nowiki>file=happy.swf|width=10%|height=30|quality=best<nowiki></flash></nowiki></code>
<br/>Shows the movie with the best quality with a width of 10% and a height of 30 pixels.

<code><nowiki><flash></nowiki>file=cool.swf|width=200|height=300|bgcolor=#FDE742|scale=exactfit<nowiki></flash></nowiki></code>
<br/>Shows the movie with a width of 200 and a height of 300. The background color is light-yellow (#FDE742). The content of the movie is stretched to the size of 200x300.


== Code / Downloads ==
* [[/Flash v0.01|Flash v0.01]]
* [[/Flash v0.02|Flash v0.02]]
* '''[[/Flash v1.0|Flash v1.0 beta (latest)]]'''

== Installation ==
# Click on one of the versions above
# Copy the code into a file (e.g. Flash.php)
# Save the file in the ''extensions'' directory of your mediawiki folder
# Add the line <code>include('extensions/Flash.php');</code> to the '''end''' of your LocalSettings.php file ''(The name of your file is case sensitive!)''
Now you can use the extension with ''<flash>...</flash>'' in the wiki

== Frequently Asked Questions ==
=== I can't upload Flash (*.swf) files! ===
If you cannot upload anything, then first enable uploads.
Find the line <code>#$wgDisableUploads = false;</code> in ''LocalSettings.php'' and uncomment it.

By default, Mediawiki still blocks many files from being uploaded for security reasons. Add this line your ''LocalSettings.php'' file, which will allow the upload of Flash files:
$wgFileExtensions[] = 'swf';

See also [[Help:Images_and_other_uploaded_files#Supported_file_types.3B_miscellaneous|Help:Images and other uploads]]: ''You may also need to remove the desired extension from the [[Help:Images_and_other_uploaded_files#Uploading_non-image_files|filetype blacklist]] in <code>/includes/DefaultSettings.php</code>.''

:'' We founded an issue with the Mime Type Filter : Uploads were enabled, FileExtensions "swf" added, BlackList checked and still no upload. So when adding '''$wgVerifyMimeType= false;''' in LocalSettings.php we succeeded in uploading swf files. It certainly needs further investigations but for the time being it works''

== Known Bugs ==
*Possible security issues with Javascript that are not tested yet

[[Category:MediaWiki extensions]]

Latest revision as of 17:16, 4 December 2008

Imported to mediawiki.org including page history. --:Bdk: 02:05, 28 November 2006 (UTC)[reply]