public static function flash($src, $width = null, $height = null)
    {
        $code = self::element('object', [
            'width' => $width ?: 600,
            'height' => $height ?: 400,
            'classid' => 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000',
            'codebase' => 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0',
        ]);

        $code .= self::element('param', ['name' => 'movie', 'value' => $src]);
        $code .= self::element('param', ['name' => 'allowFullScreen', 'value' => 'true']);
        $code .= self::element('param', ['name' => 'allowScriptAccess', 'value' => 'always']);
        $code .= self::element('embed', [
            'src' => $src,
            'width' => $width ?: 600,
            'height' => $height ?: 400,
            'type' => 'application/x-shockwave-flash',
            'allowFullScreen' => 'true',
            'allowScriptAccess' => 'always',
            'pluginspage' => 'http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash',
        ]);

        return $code.'</embed></object>';
    }
public static function flash($src, $width = null, $height = null)
    {
        $code = self::element('object', [
            'width' => $width ?: 600,
            'height' => $height ?: 400,
            'classid' => 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000',
            'codebase' => 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0',
        ]);

        $code .= self::element('param', ['name' => 'movie', 'value' => $src]);
        $code .= self::element('param', ['name' => 'allowFullScreen', 'value' => 'true']);
        $code .= self::element('param', ['name' => 'allowScriptAccess', 'value' => 'always']);
        $code .= self::element('embed', [
            'src' => $src,
            'width' => $width ?: 600,
            'height' => $height ?: 400,
            'type' => 'application/x-shockwave-flash',
            'allowFullScreen' => 'true',
            'allowScriptAccess' => 'always',
            'pluginspage' => 'http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash',
        ]);

        return $code.'</embed></object>';
    }
public static function flash ( $ src , $ width = null , $ height = null ) { $ code = self :: element ( 'object' , [ 'width' => $ width ? : 600 , 'height' => $ height ? : 400 , 'classid' => 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' , 'codebase' => 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0' , ] ) ; $ code .= self :: element ( 'param' , [ 'name' => 'movie' , 'value' => $ src ] ) ; $ code .= self :: element ( 'param' , [ 'name' => 'allowFullScreen' , 'value' => 'true' ] ) ; $ code .= self :: element ( 'param' , [ 'name' => 'allowScriptAccess' , 'value' => 'always' ] ) ; $ code .= self :: element ( 'embed' , [ 'src' => $ src , 'width' => $ width ? : 600 , 'height' => $ height ? : 400 , 'type' => 'application/x-shockwave-flash' , 'allowFullScreen' => 'true' , 'allowScriptAccess' => 'always' , 'pluginspage' => 'http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' , ] ) ; return $ code . '</embed></object>' ; }
Creates a flash element.

@param string   $src    The swf file source
@param null|int $width  Width attribute
@param null|int $height Height attribute

@return string
Creates a flash element .