!!! a Flash Plugin
!! Overview
Easily add tutorials and presentations in your wiki.\\
This plugin is easy to deploy with almost no configuration.\\
It's also easy to build with the provided ant script.
!! How to
! Install
*v0.2\\Copy [aFlashPlugin-bin.zip] to {{webapps/JSPWiki}} and simply unzip there. It will only install 2 files, a javascript file for the player controls and the jar file.
*v0.1\\Simply copy [aFlashPlugin.jar] to {{JSPWiki/WEB-INF/lib}}
! Configure
Edit {{webapps/JSPWiki/WEB-INF/jspwiki.properties}} and add {{arnaud}} to {{jspwiki.plugin.searchPath}}
! Syntax
{{[[{arnaud.Flash src='yourAttachedFlash.swf' width='800' height='600' controls='true|false' play='true|false' loop='true|false' parameters='param1=value1&param2=value2'}]}}
{{[[{arnaud.Flash src='yourAttachedFlash.swf' width='800' height='600'}]}}
#src\\mandatory. Can be a local attachment or URL.
#height\\optional. defaults to 325, like YouTube.
#width\\optional. defaults to 450, like YouTube.
#controls\\optional. defaults to true.
#play\\optional. defaults to true. Will not take effect if controls is true.
#loop\\optional. defaults to false. Will not take effect if controls is true.
! Build Your Own Version
#get the sources\\
*v0.2: get the [aFlashPlugin-src.zip] file
*v0.1: get the [aFlashPlugin.zip] file
#unzip to a workspace
#copy {{JSPWiki/WEB-INF/lib/JSPWiki.jar}} to that workspace
#use ant to build (just call ant)
!! New Features
*v0.2\\- Added ability to pass parameters to flash file(parameters='yourParams')\\- Added javascript controls(controls='true|false')\- Added play/pause option (play='true|false')\\-Added loop option (loop='true|false')
*v0.1\\Basic support for flash attachments and external URLs
!! To Do
*support alignment options, css, etc
!! Bugs and Limitations
The play and loop parameters will only be taken into account if controls is false. When controls is true, those values are overridden by the javascript.


Works for me. Thanks, Arnaud.

--Mark Craig, 12-May-2007


Cool! Is there a way to pass arguments for the .swf that require them?

--NascifAbousalhNeto, 14-May-2007

Of course, what would you need? Like arguments to a flash application to reuse in your action script?
I'll spin another version of the plugin today with added features so I can certainly add that at the same time.

--[arnaud], 14-May-2007


For those newbies like me: I found I had to change the embedded tag a little from what is shown above, to this:\\
{{{ [{arnaud.Flash src='yourAttachedFlash.swf' width='800' height='600' controls='true|false' play='true|false' loop='true|false' parameters='param1=value1&param2=value2'}] }}}

Thanks for the pointer Janne!

--V. Schmidt, 18-Jan-2008

wonderful it worked! for youtube, however can someone help how to add this video

<embed src="http://services.brightcove.com/services/viewer/federated_f8/271530267" bgcolor="#FFFFFF" \\
base="http://admin.brightcove.com" name="flashObj" width="486" height="412" seamlesstabbing="false" type="application/x-shockwave-flash" swLiveConnect="true" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>

From this URL:

--mindmatrix, 26-May-2008


This still works great in 2.8.1,  however, I found a minor bug.  If you reference an attachment to the page and use the parameters, it will not find the attachment.  You can either not use any parms or change the code to do the parms string append after the attachment calls.\\

--Lou, 10-Jun-2011


!Playing YouTube video with a Flash plugin for JSPWiki
Works like charm (on JSPWiki 2.6.1)
check it out on my site how to embed a YouTube video:
The wikimarkup to insert if you followed the installation instructions:
[{Flash src='http://www.youtube.com/v/k7C0cJeNsFg&hl=en&fs=1' controls= 'false' play='true'}]


The trick is that you have to extract the url from the embed code the YouTube provides. 
The plugin does everything else for you!

The original html code given (Where I have extracted the URL)was:

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/f-8EN4JUqT8&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/f-8EN4JUqT8&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>

--Baráti,Zoltán, 11-okt.-2008 23:37

I'd like to be able to change the background colors of flash movies. Is this possible?

-- JK 27-mar 2009