Manual:Embed Shockwave and Flash Files

From Directorforum Collaboration Wiki

Jump to: navigation, search

Our Collab Wiki allows to embed Shockwave (*.DCR) and Flash (*.SWF) files.

Contents

Usage

The EmbedShockwave or EmbedFlash parser function expects to be called in the following ways:

Shockwave 10

<shockwave10>file=filename.dcr|attribute=value|...</shockwave10>

Shockwave 11

<shockwave11>file=filename.dcr|attribute=value|...</shockwave11>

Flash

<flash>file=filename.swf|attribute=value|...</flash>

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: 0-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=?var1=value1&var2=value2 (communicate two variables var1 and var2 to the movie)
  • name (object-specific)
  • id (embed-specific)
  • movie (object-specific)
  • src (embed-specific)

Examples

SHOCKWAVE

  • <shockwave11>file=LbxLocalConnections.dcr|width=320|height=240</shockwave11>

FLASH

  • <flash>file=LbxLocalConnections.swf|width=320|height=240|quality=best</flash>
Shows the movie with the best quality with a width of 320 pixels and a height of 240 pixels.

more examples

  • <flash>file=cool.swf|width=200|height=300|bgcolor=#FDE742|scale=exactfit</flash>
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.
  • <flash>file=cool.swf|width=200|height=300|scale=exactfit|flashvars=?var1=value1&var2=value2</flash>
Shows the movie with a width of 200 and a height of 300. Two flashvars var1 and var2 are passed to the movie via url with respectively value1 and value2 (don't forget the question mark!). The content of the movie is stretched to the size of 200x300.

Weblinks

Download

Personal tools