Add Flash animations on pages in a quick and simple way

The Flash files to play on the website must be stored in the Media Archive, the path to which you should specify when adding them to pages. You can modify the sizes of the embedded Flash to best fit within the content of a page. You can also choose whether you want the Flash to replay automatically.

Technical description

Given a path to a Flash file, the Composite.Media.FlashViewer function will display it on a page. The Flash file's width and height are static and controlled as parameters to the function.

How to implement Composite.Media.FlashViewer

1. On the Content tab of a page, the Markup Code tab of a template or the Template tab of an XSLT function, insert the Composite.Media.FlashViewer function (Insert > Function), or add the following code:

 
<f:function name="Composite.Media.FlashViewer" xmlns:f="http://www.composite.net/ns/function/1.0"> 
  <f:param name="FlashFile" value="MediaArchive:184c5d7c-f269-4543-93ad-189d83bee471" /> 
  <f:param name="Width" value="100" /> 
  <f:param name="Height" value="100" /> 
  <f:param name="Repeat" value="false" /> 
  <f:param name="FlashVersion" value="9.0.0" /> 
</f:function>

2. Specify its required parameters:

  • Flash File: The Flash file in the Media Archive to be displayed on the page (*.swf).
  • Width: The width of the displayed Flash.
  • Height: The height of the displayed Flash.

Note: We recommend that you use either original sizes of the Flash movie, or the sizes proportional to the original ones.

3. If necessary, specify its optional parameters:

  • Repeat: If this option is selected, the flash movie will replay automatically once it ends ("False" by default).
  • Flash Version: The version of the flash player needed to play the current flash file ("9.0.0" by default).

Note: You can override the default values by changing the Value Type to specify a simple value.

Customization

You can customize the layout by editing the style sheet

~/Frontend/Composite/Media/Flashviewer/Styles.css

Requirements

Composite C1 version 2.0 or later

SHARE