Donation

Please donate for the continuing development of free and up to date Software on webconstruction.ch. Thank you!

Amount: 

SWFContent - Documentation

documentation_bigUsing the synthax of SWFContent version 1 (compatible with version 2)

First synthax

Use {swf;urltoswf} for displaying the SWF-Object with the settings set in the plugin configuration.

Example: {swf;http://www.mydomain.ch/images/flash/myswf.swf}

Second synthax

Use {swf;urltoswf;width;height} for only changing width and height using the settings in the plugin configuration except width and height.

Example: {swf;http://www.mydomain.ch/images/flash/myswf.swf;100%;600px}

Using the synthax of SWFContent version 2

The "changeparams" option - changing/adding params to the default settings

Use {swf;urltoswf;[changeparams]...[/changeparams]} to change or add params to the default settings set in the plugin configurations.

Example:

{swf;http://www.yourdomain.com/images/swf/myswf.swf;[changeparams]width=500px; height=300px; bgcolor=#FFF;name=SWFName;cabversion=9,0,0,0;align=right;id=myid;class=myclass[/changeparams]}

Params

Required Params

The required params are always taken from the plugin settings if not set - also when "newparams"-option is used.

name of param description SWFObject / Standard possible values example
width width of the embedded object. both number and %, px, em... width=100%
height height of the embedded object both number and %, px, em... height=500px
align HTML alignment of the object element. If this attribute is omitted, it by default centers the movie and crops edges if the browser window is smaller than the movie. both middle, left, right, top, bottom align=right
objectid uniquely identifies the Flash movie so that it can be referenced.
SWFObject letters and numbers (not beginning with numbers) objectid=FlashFilm
dfv detect Flash Version. SWFObject version Number dfv=10.0.0
uei use Express Installer. Uses the SWFObject SWF Express Installer. SWFObject true, false uei=false
name

name attribute

both letters and numbers (not beginning with numbers) name=mySWF
cabversion defines the default cab version for the swf embedding - represents the minimum required Flash Standard comma seperated verision number cabversion=9,0,12,0
id id of div wrapper both letters and numbers (not beginning with numbers) id=myFlashFilmDiv
class class of div wrapper both letters and numbers (not beginning with numbers) class=myFlashFileDivClass
Optional params

The optional params will be added when defined in the plugin configuration at default params. When using the [changeparams]...[/changeparams] or using the [newparams]...[/newparams] option, they will be added/changed.

name of param description possible values example
play Specifies whether the movie begins playing immediately on loading in the browser. The default value is true if this attribute is omitted. true, false play=false
loop Specifies whether the movie repeats indefinitely or stops when it reaches the last frame. The default value is true if this attribute is omitted. true, false loop=false
menu Shows a shortcut menu when users right-click (Windows) or control-click (Macintosh) the SWF file. To show only About Flash in the shortcut menu, deselect this option. By default, this option is set to true. true, false menu=false
quality Specifies the trade-off between processing time and appearance. The default value is 'high' if this attribute is omitted. best, high, medium, autohigh, autolow, low quality=best
scale Specifies scaling, aspect ratio, borders, distortion and cropping for if you have changed the document's original width and height. showall, noborder, exactfit, noscale scale=exactfit
salign Specifies where the content is placed within the application window and how it is cropped. tl, tr, bl, br, l, r, t, b salign=b
wmode Sets the Window Mode property of the Flash movie for transparency, layering, and positioning in the browser. The default value is 'window' if this attribute is omitted. window, opaque, transparent, direct, gpu wmode=transparent
bgcolor Hexadecimal RGB value in the format #RRGGBB, which specifies the background color of the movie, which will override the background color setting specified in the Flash file. Hexadecimal RGB value bgcolor=#FF2200
devicefont Specifies whether static text objects that the Device Font option has not been selected for will be drawn using device fonts anyway, if the necessary fonts are available from the operating system. true, false devicefont=true
seamlesstabbing Specifies whether users are allowed to use the Tab key to move keyboard focus out of a Flash movie and into the surrounding HTML (or the browser, if there is nothing focusable in the HTML following the Flash movie). The default value is true if this attribute is omitted. true, false seamlesstabbing=false
swliveconnect Specifies whether the browser should start Java when loading the Flash Player for the first time. The default value is false if this attribute is omitted. If you use JavaScript and Flash on the same page, Java must be running for the FSCommand to work. true, false swliveconnect=true
allowfullscreen Enables full-screen mode. The default value is false if this attribute is omitted. You must have version 9,0,28,0 or greater of Flash Player installed to use full-screen mode. true, false allowfullscreen=true
allowscriptaccess Controls the ability to perform outbound scripting from within a Flash SWF. The default value is 'always' if this attribute is omitted. always, sameDomain, never
allowscriptaccess=never
allownetworking Controls a SWF file's access to network functionality. The default value is 'all' if this attribute is omitted. all, internal, none allownetworking=none
base Specifies the base directory or URL used to resolve all relative path statements in the Flash Player movie. This attribute is helpful when your Flash Player movies are kept in a different directory from your other files. directory base=images/flash/
flashVars Method to pass variables to a Flash movie. varname=value&varname2=value2 flashVars=usexmlfile=test.xml&savexmlfile=test2.xml

The "newparams" option

When using the "newparams" option the default settings (exept the required params) won't be used.

Use {swf;urltoswf;[newparams]...[/newparams]}

Example

{swf;http://www.yourdomain.com/images/swf/myswf.swf;[newparams]quality=low; wmode=transparent; width=100%; height=500px;id=myid;class=myclass[/newparams]}

Support

Do you need support? Then search or submit questions to the support forum.

Download

Click here to get to the download page of SWFContent.

[ Back ] Up