Location: PHPKode > scripts > image2swf > image2swf/example.php
<html>
<head>
<title>image2swf</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body bgcolor="#FFFFFF" text="#000000">
<?php

			/* ******************************
			*  Image2swf 
			*  Autor: Michael Plies
			*
			*  Ming can only convert non-progressiv jpg to swf 
			*  with this class you can generate (depending on your gd-version)
			*  swf from jpg,gif,png
			*
			*  I.____________________________________
			*  You will need the Ming libarie on php
			*  -> http://www.opaque.net/ming/
			*
			*  II.___________________________________
			*  You will need the gd libarie on php
			*  depending on this you can use this class
			*  with jpg/gif/png
			*
			*
			*  !!!!attention !!!!
			*  this is my very first class (ever), so i would
			*  be very glad for comments and sugesstions 
			*  maybe for better coding classes in php or something else ;-)
			*  -> hide@address.com , thanks!
			******************************** */
			
	include("image2swf.class.php");
	
	$swf = new Image2swf;
	
	// $swf->Main(<source_image>,<new swf_name>);
	$swf->Main("nw.jpg","test.swf");
	
?>
<object name="test" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="200" height="400">
	<param name=movie value="test.swf">
	<param name=quality value=high>
	<embed src="test.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="200" height="400" name="test">
	</embed> 
</object>


</body>
</html>
Return current item: image2swf