Reference Guide

facebook FBML Reference Guide Page 44 of 159
Fb:swf
Description
Renders a Shockwave Flash (SWF) object. On profile pages, an image appears first. When the user clicks the
image, it turns into the Flash object. On canvas pages, the image is ignored, and the Flash object is directly
included.
Attributes
Required Name Type Description
required swfsrc
string
The URL of the Flash object. The URL must be absolute.
optional imgsrc
string
The URL of the image (.gif and .jpg formats only). (default value is [1];
Note that this renders the Flash object unusable and invisible on profile
pages.)
height
int
The height of the image and the Flash object.
width
int
The width of the image and the Flash object.
imgstyle
string
The style attribute for the image.
imgclass
string
The class attribute for the image.
flashvars
string
The URL-encoded Flash variables. Also passes the fb_sig_ values as
described in the section on Forms.
swfbgcolor
string
The hex-encoded background color for the Flash object.
waitforclick
bool
Indicates whether to autoplay the Flash object (false) when allowed. false
does not work in profiles for security and aesthetic reasons, except after an
AJAX call. (default value is true)
salign
string
The salign attribute; this is an <embed> parameter.
loop
string
Indicates whether to play the Flash object continuously.
quality
string
Indicates the quality of the object. Specify high, medium or low.
scale
string
The scaling to apply to the object.
align
string
Indicates how the browser aligns the obect. Specify left, center or right
wmode
string
Indicates the opacity setting for the object. Specify transparent, opaque or
window. (default value is transparent)
Flash Variables
Facebook passes the following parameters to the SWF when it is loaded:
Required Name Type Description
allowScriptAccess
string
This string is always set to "never."
www.yapish.com