Building Content Management Systems
& e-Business Solutions

Code Snippets: Replaceable Flash Media

This module creates a place holder on the page where a flash file can be displayed.

Features

  • Developers may set a default flash file the way that they would normally insert flash into an HTML page during the design phase.
  • Website owners can replace the current flash file any number of times - and on any page.  (i.e.: each page of the site can have a different flash file on display)
  • The website owner may declare a piece of flash media as sitewide, thus forcing it to appear on every page where this module is present.

User Documentation

Website owners are advised to order flash media from their developer via the "request support" button at the bottom of the page.  Information about the "request support" button is available here.

Code

  • The default flash file must be set in the "default" attribute of the clearsite tag in order for it to appear when a new page is created on the website.
  • The flash object code must appear between the clearsite tags in order for new page previews to work.
<clearsite module="flasharea" name="flashpiece1" default="flash_place_holder.swf">

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
       codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
       width="200" height="200">
      <param name="movie" value="flash_place_holder.swf">
      <param name="quality" value="high">
      <embed src="flash_place_holder.swf" quality="high"
       pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"
       width="200" height="200"></embed>
    </object>

</clearsite>

    Copyright Clear Site Web Solutions Corporation  |  Victoria, B.C. Canada