function FlashObjectData() { if (!class_exists("FlashObject")) { USER_ERROR("You have not installed the flash module, please see README for more information", E_USER_WARNING); } $file = self::get_youtube_embed_url() . $this->YouTubeVideoCode . "?"; $array = self::get_player_options(); foreach ($array as $key => $value) { $file .= "&" . urlencode($key) . "=" . urlencode($value); } FlashObject::set_use_dynamic_insert(false); $obj = new FlashObject(); return $obj->CreateFlashObject($Title = $this->Title, $FlashFileDivID = "YouTubeVideo" . $this->URLSegment, $FlashFilename = $file, $AlternativeContent = '', $Width = self::get_player_width(), $Height = self::get_player_height(), $FlashVersion = '9.0.0', $ParamArray = self::get_player_options()); }