Flash Player and a browser with Javascript support are needed..'; /** * the classname for the div element * * @var string */ var $classname = 'swfobject'; /** * array of flashvars * * @var array */ var $flashvars; /** * array of nested object element params * * @var array */ var $params; /** * array of object's attributest * * @var array */ var $attributes; /** * swfobject::swfobject() * * @param string $swfUrl (required) specifies the URL of your SWF * @param string $id (required) specifies the id of the HTML element (containing your alternative content) you would like to have replaced by your Flash content * @param string $width (required) specifies the width of your SWF * @param string $height (required) specifies the height of your SWF * @param string $version (required) specifies the Flash player version your SWF is published for (format is: "major.minor.release") * @param string $expressInstallSwfurl (optional) specifies the URL of your express install SWF and activates Adobe express install * @param array $flashvars (optional) specifies your flashvars with name:value pairs * @param array $params (optional) specifies your nested object element params with name:value pair * @param array $attributes (optional) specifies your object's attributes with name:value pairs * @return string the content */ function swfobject( $swfUrl, $id, $width, $height, $version, $expressInstallSwfurl = false, $flashvars = false, $params = false, $attributes = false ) { global $swfCounter; // look for a other swfobject instance if ( !isset($swfCounter) ) $swfCounter = 1; $this->id = $id . '_' . $swfCounter; $this->width = $width; $this->height = $height; $this->flashvars = ( is_array($flashvars) ) ? $flashvars : array(); $this->params = ( is_array($params) ) ? $params : array(); $this->attributes = ( is_array($attributes) ) ? $attributes : array(); $this->embedSWF = 'swfobject.embedSWF("'. $swfUrl .'", "'. $this->id .'", "'. $width .'", "'. $height .'", "'. $version .'", '. $expressInstallSwfurl .', this.flashvars, this.params , this.attr );' . "\n"; } function output () { global $swfCounter; // count up if we have more than one swfobject $swfCounter++; $out = "\n" . '