Location: PHPKode > scripts > SWF Insert > swfInsert.php
<?php
/**
 * Swf Insert
 * Class that allows to insert swf file or movie flash into web page
 *
 * @author Marcos Donoso
 * @link http://www.marcosdonoso.cl
 */

class swfInsert {

var $salt = "Imagen en reemplazo de flash";
var $simg = "flash.png";


	/**
	 * To insert swf file into web page
	 * 
	 *
	 * @param $pathSwf Path of the swf file
	 * @param $widht widht of the movie
	 * @param $heigt height of the movie
	 */
    function setSwf($pathSwf, $width, $height){
        $codigo = "<object type='application/x-shockwave-flash' data='$pathSwf' width='$width' height='$height'> \n";
	$codigo .= "<param name='movie' value='$pathSwf' /> \n";
	$codigo .= "<param name='quality' value='high' /> \n" ;
	$codigo .= "<img src='$simg' width='$width' height='$height' alt='$salt' /> \n";
        $codigo .= "</object>";
        echo $codigo;
    }

}
?>
Return current item: SWF Insert