public function SWFObject::flashVar in SWF Embed 7
Same name and namespace in other branches
- 6 swfembed.module \SWFObject::flashVar()
Specify a flash variable to pass along to the player.
Flash variables are specific to each SWF file. These are passed in using a single parameter. The flashvars are compacted and URL encoded. Example: <code> <param name="flashvars" value="name=value&name2=value2"/> </code>
Parameters
$name: The name of the flash variable.
$val: The value for this variable.
Return value
The called object.
File
- ./
swfembed.module, line 318 - The main file for swfembed.
Class
- SWFObject
- Generic data object for describing an SWF configuration.
Code
public function flashVar($name, $val) {
$this->flashVars[$name] = $val;
return $this;
}