Attention
TYPO3 v6 has reached its end-of-life April 18th, 2017 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.
There is no further ELTS support. It is strongly recommended updating your project.
SWFOBJECT¶
This object will insert a Flash player driven by JavaScript.
Property
file
Data type
string /stdWrap
Description
Media file or URL.
Note: Files are treated as URLs. You need to set fully qualified URLs. Use config.baseURL and/or config.absRefPrefix to get fully qualified URLs automatically.
Property
width
Data type
integer /stdWrap
Description
Width of the swfObject.
If it is not set, it will be filled with defaultWidth of the player configuration.
Property
height
Data type
integer /stdWrap
Description
Height of the swfObject.
If it is not set, it will be filled with defaultHeight of the player configuration.
Property
type
Data type
string /stdWrap
Description
Sets default for different media types. E.g. "audio" or "video". If value is "audio", the player configuration audio.player will be used.
Property
[type].player.default
Data type
array
Description
Default parameter for flashvars / params / attributes.
Usage:
default {
flashvars.allowFullScreen = true
params.wmode = transparent
attributes.align = center
}
flashvars are used for swf file configuration. There is no standard across players, but for flvplayer see description below.
For detailed description of possible params/attributes visit this URL:
Property
[type].player.defaultWidth
Data type
integer
Description
Default media width.
Property
[type].player.defaultHeight
Data type
integer
Description
Default media height.
Property
[type].player.mapping
Data type
(array of keys)
Description
The audio player does not work with file, but instead expects the file with the flashvar soundFile. mapping does the rename of parameter for you by default.
Example:
mapping {
flashvars.file = soundFile
}
Property
installUrl
Data type
string /stdWrap
Description
Specifies the URL of your express install SWF.
Default
typo3/contrib/flashmedia/swfobject/expressInstall.swf
Property
forcePlayer
Data type
string /stdWrap
Description
If the file is a URL and forcePlayer is not set, the URL will be called directly instead of using a player.
Property
flashvars
Data type
array
Description
Flash vars.
Property
params
Data type
array
Description
Flash params.
Property
attributes
Data type
array
Description
Flash attributes.
Property
alternativeContent
Data type
Description
Alternative content.
Default
alternativeContent.field = bodytext
Property
layout
Data type
Description
HTML Template for the Object. ###SWFOBJECT### is replaced with the sfwobject, ###ID### is replaced with the unique Id of the div/object.
Default
###SWFOBJECT###
[tsref:(cObject).SWFOBJECT]