Jump to content

Editing Flash

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
The flash extension allows the display of flash movies within a wiki.
{{MovedToMediaWiki|Extension:Flash}}

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)''
''More (but untested) attributes [[Flash#Untested Attributes|here]].

=== 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 (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


== Untested Attributes ==
*align
*salign
*base
*wmode
*SeamlessTabbing
*flashvars
*name (object-specific)
*id (embed-specific)
*movie (object-specific)
*src (embed-specific)

[[Category:MediaWiki extensions]]
By saving changes, you agree to the Terms of Use, and you irrevocably agree to release your contribution under the CC BY-SA 4.0 License and the GFDL. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel Editing help (opens in new window)