<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments for aSymbio Developer</title>
	<atom:link href="http://developer.asymbio.net/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://developer.asymbio.net</link>
	<description>AJAX, Flash, Actionscript, PHP, MySQL.... the tools of the modern developer!</description>
	<pubDate>Fri, 21 Nov 2008 23:33:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>Comment on Flash Gallery 0.2 beta released by Justin</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-02.html#comment-365</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Mon, 08 Sep 2008 21:57:59 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-02.html#comment-365</guid>
		<description>Any chance we could get the .fla?  I am like Jay and wish to use it but don't want my site to look amateurish by having an ad for your site on there.  I do believe you should get credit, could you include your name in like a right click menu, or hide it slightly in the code of the page?</description>
		<content:encoded><![CDATA[<p>Any chance we could get the .fla?  I am like Jay and wish to use it but don&#8217;t want my site to look amateurish by having an ad for your site on there.  I do believe you should get credit, could you include your name in like a right click menu, or hide it slightly in the code of the page?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flash and XML Gallery BETA by Ty</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-364</link>
		<dc:creator>Ty</dc:creator>
		<pubDate>Mon, 08 Sep 2008 21:54:45 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-364</guid>
		<description>Can we resize the images? If the image too big it will cut off. if smaller than 800x600 images display on the left and not align. It would be great to have these features.</description>
		<content:encoded><![CDATA[<p>Can we resize the images? If the image too big it will cut off. if smaller than 800&#215;600 images display on the left and not align. It would be great to have these features.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flash and XML Gallery BETA by elt0n</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-362</link>
		<dc:creator>elt0n</dc:creator>
		<pubDate>Sun, 07 Sep 2008 15:48:11 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-362</guid>
		<description>Hey man,

Nice, very nice flash app. I downloaded it as a test. Putting ideas together for our new website. Unfortunately when I downloaded it the images in Portrait orientation don't "fit-to-screen" in the window, i just get a grey line up the right hand side???? It works fine on your site on my PC, but when I download an test it doesn't. any idea???
would love to play with the FLA.. Credits and stuff to you of course and a link from our NEW website page!!  
Cheers mate,

elt0n, UK.</description>
		<content:encoded><![CDATA[<p>Hey man,</p>
<p>Nice, very nice flash app. I downloaded it as a test. Putting ideas together for our new website. Unfortunately when I downloaded it the images in Portrait orientation don&#8217;t &#8220;fit-to-screen&#8221; in the window, i just get a grey line up the right hand side???? It works fine on your site on my PC, but when I download an test it doesn&#8217;t. any idea???<br />
would love to play with the FLA.. Credits and stuff to you of course and a link from our NEW website page!!<br />
Cheers mate,</p>
<p>elt0n, UK.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flash Gallery 0.2 beta released by Henry Nieves</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-02.html#comment-359</link>
		<dc:creator>Henry Nieves</dc:creator>
		<pubDate>Sat, 06 Sep 2008 19:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-02.html#comment-359</guid>
		<description>This is one of the sweetest Gallery I've seen, thanks so much..
Just one question, I use Dreamweaver and when I preview everything, it works fine, when I try to upload it, there is nothing there.  Do I need to remove everything from the folder when I upload it to the website, thanks.</description>
		<content:encoded><![CDATA[<p>This is one of the sweetest Gallery I&#8217;ve seen, thanks so much..<br />
Just one question, I use Dreamweaver and when I preview everything, it works fine, when I try to upload it, there is nothing there.  Do I need to remove everything from the folder when I upload it to the website, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flash and XML Gallery BETA by Mariani Diego</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-347</link>
		<dc:creator>Mariani Diego</dc:creator>
		<pubDate>Tue, 02 Sep 2008 20:15:44 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-347</guid>
		<description>Hallo, 

I have make a importing function in PHP. This file convert your image in 800x600 pixel and 70x70 pixel.

use:

1) create a "$root/import/" folder
2) copy your image in the "$root/import/" folder
3) create a $root/import.php file whit this code:

&#60;?php

	global $nome_file,$estensione_file;
	
	function estensione_file($nome_originale){
	$estensione_file=substr(strtolower(strrchr(trim($nome_originale),".")),0);
	return $estensione_file;
	}
	
	function scrivi_file($fp, $nome_file){
	
		fwrite($fp, '');
		fwrite($fp, "images/$nome_file" );
		fwrite($fp, "thumb/$nome_file" );
		fwrite($fp, "$nome_file" );
		fwrite($fp, '' . "\n");
		
	return true;
	}

	
	
	
	// open file
	copy ('./images.xml','./_images.xml');
	$fp = fopen("./images.xml", "w");
	if (!$fp)
	{
		print "Errore: Impossibile aprire il file!";
		exit;
	}
	
	fwrite($fp, '' . $capo);
	fwrite($fp, '' . $capo);
	
	
	$dir = opendir("./import/");
	while(false != ($file = readdir($dir)))
	{
		if ( $file != "." and $file != ".." and $file[0] != "_")
		{
				
				print ($file . "\n\r");
				
				  $percorsofile = "./import/" . $file;
			      $dimt=getimagesize($percorsofile);
				  $img = $percorsofile;
		          $w=$dimt[0];
		          $h=$dimt[1];
				  
				  $percentuale_w = 100 / ($dimt[0] / 800);
				  $percentuale_h = 100 / ($dimt[1] / 600);
				  if ($percentuale_w &#62; $percentuale_h) $percentuale1 = $percentuale_h; else $percentuale1 = $percentuale_w; 
				  
				  $v_perc=$percentuale1/100;
		          $nw1=$w*$v_perc;
		          $nh1=$h*$v_perc;
		          
				  $percentuale_w = 100 / ($dimt[0] / 70);
				  $percentuale_h = 100 / ($dimt[1] / 70);
				  if ($percentuale_w &#62; $percentuale_h) $percentuale2 = $percentuale_h; else $percentuale2 = $percentuale_w; 
				  
				  $v_perc=$percentuale2/100;
		          $nw2=$w*$v_perc;
		          $nh2=$h*$v_perc;

				  
		    if(estensione_file($img)==".jpg"){
			
				  print ("trovato jpeg");
		          
				  // full
				  $im=imagecreatefromjpeg($percorsofile);
		          $out=imagecreatetruecolor($nw1,$nh1);
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw1,$nh1,$w,$h);
		          imagejpeg($out,"./images/" . $file);
		          imagedestroy($out);
				  
				  //thumb
				  $out=imagecreatetruecolor($nw2,$nh2);
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw2,$nh2,$w,$h);
		          imagejpeg($out,"./thumb/" . $file);
		          imagedestroy($out);
				  
				  scrivi_file($fp, $file);
				  
				  
		    }else if(estensione_file($img)==".gif"){
			
				  print ("trovato gif");
				  
				  //full
		          $im=imagecreatefromgif($percorsofile);
		          $out=imagecreatetruecolor($nw1,$nh1);
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw1,$nh1,$w,$h);
		          imagegif($out,"./images/" . $file);
		          imagedestroy($out);
				  
				  //thumb
		          $im=imagecreatefromgif($percorsofile);
		          $out=imagecreatetruecolor($nw2,$nh2);
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw2,$nh2,$w,$h);
		          imagegif($out,"./thumb/" . $file);
		          imagedestroy($out);
				  
				  scrivi_file($fp, $file);
				  
		    }else if(estensione_file($img)==".png"){
			
				  print ("trovato png");
				  
				  //full
		          $im=imagecreatefrompng($percorsofile);
		          $out=imagecreatetruecolor($nw1,$nh1);
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw1,$nh1,$w,$h);
		          imagepng($out,"./images/" . $file);
		          imagedestroy($out);
				  
				  //thumb
		          $im=imagecreatefrompng($percorsofile);
		          $out=imagecreatetruecolor($nw2,$nh2);
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw2,$nh2,$w,$h);
		          imagepng($out,"./thumb/" . $file);
		          imagedestroy($out);
				  
				  scrivi_file($fp, $file);
				  
		    }  

		}
	
	}
	
	fwrite($fp, '' . $capo);
	
	fclose($fp);
?&#62;

4) open in your browser the $root/import.php file</description>
		<content:encoded><![CDATA[<p>Hallo, </p>
<p>I have make a importing function in PHP. This file convert your image in 800&#215;600 pixel and 70&#215;70 pixel.</p>
<p>use:</p>
<p>1) create a &#8220;$root/import/&#8221; folder<br />
2) copy your image in the &#8220;$root/import/&#8221; folder<br />
3) create a $root/import.php file whit this code:</p>
<p>&lt;?php</p>
<p>	global $nome_file,$estensione_file;</p>
<p>	function estensione_file($nome_originale){<br />
	$estensione_file=substr(strtolower(strrchr(trim($nome_originale),&#8221;.&#8221;)),0);<br />
	return $estensione_file;<br />
	}</p>
<p>	function scrivi_file($fp, $nome_file){</p>
<p>		fwrite($fp, &#8221;);<br />
		fwrite($fp, &#8220;images/$nome_file&#8221; );<br />
		fwrite($fp, &#8220;thumb/$nome_file&#8221; );<br />
		fwrite($fp, &#8220;$nome_file&#8221; );<br />
		fwrite($fp, &#8221; . &#8220;\n&#8221;);</p>
<p>	return true;<br />
	}</p>
<p>	// open file<br />
	copy (&#8217;./images.xml&#8217;,&#8217;./_images.xml&#8217;);<br />
	$fp = fopen(&#8221;./images.xml&#8221;, &#8220;w&#8221;);<br />
	if (!$fp)<br />
	{<br />
		print &#8220;Errore: Impossibile aprire il file!&#8221;;<br />
		exit;<br />
	}</p>
<p>	fwrite($fp, &#8221; . $capo);<br />
	fwrite($fp, &#8221; . $capo);</p>
<p>	$dir = opendir(&#8221;./import/&#8221;);<br />
	while(false != ($file = readdir($dir)))<br />
	{<br />
		if ( $file != &#8220;.&#8221; and $file != &#8220;..&#8221; and $file[0] != &#8220;_&#8221;)<br />
		{</p>
<p>				print ($file . &#8220;\n\r&#8221;);</p>
<p>				  $percorsofile = &#8220;./import/&#8221; . $file;<br />
			      $dimt=getimagesize($percorsofile);<br />
				  $img = $percorsofile;<br />
		          $w=$dimt[0];<br />
		          $h=$dimt[1];</p>
<p>				  $percentuale_w = 100 / ($dimt[0] / 800);<br />
				  $percentuale_h = 100 / ($dimt[1] / 600);<br />
				  if ($percentuale_w &gt; $percentuale_h) $percentuale1 = $percentuale_h; else $percentuale1 = $percentuale_w; </p>
<p>				  $v_perc=$percentuale1/100;<br />
		          $nw1=$w*$v_perc;<br />
		          $nh1=$h*$v_perc;</p>
<p>				  $percentuale_w = 100 / ($dimt[0] / 70);<br />
				  $percentuale_h = 100 / ($dimt[1] / 70);<br />
				  if ($percentuale_w &gt; $percentuale_h) $percentuale2 = $percentuale_h; else $percentuale2 = $percentuale_w; </p>
<p>				  $v_perc=$percentuale2/100;<br />
		          $nw2=$w*$v_perc;<br />
		          $nh2=$h*$v_perc;</p>
<p>		    if(estensione_file($img)==&#8221;.jpg&#8221;){</p>
<p>				  print (&#8221;trovato jpeg&#8221;);</p>
<p>				  // full<br />
				  $im=imagecreatefromjpeg($percorsofile);<br />
		          $out=imagecreatetruecolor($nw1,$nh1);<br />
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw1,$nh1,$w,$h);<br />
		          imagejpeg($out,&#8221;./images/&#8221; . $file);<br />
		          imagedestroy($out);</p>
<p>				  //thumb<br />
				  $out=imagecreatetruecolor($nw2,$nh2);<br />
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw2,$nh2,$w,$h);<br />
		          imagejpeg($out,&#8221;./thumb/&#8221; . $file);<br />
		          imagedestroy($out);</p>
<p>				  scrivi_file($fp, $file);</p>
<p>		    }else if(estensione_file($img)==&#8221;.gif&#8221;){</p>
<p>				  print (&#8221;trovato gif&#8221;);</p>
<p>				  //full<br />
		          $im=imagecreatefromgif($percorsofile);<br />
		          $out=imagecreatetruecolor($nw1,$nh1);<br />
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw1,$nh1,$w,$h);<br />
		          imagegif($out,&#8221;./images/&#8221; . $file);<br />
		          imagedestroy($out);</p>
<p>				  //thumb<br />
		          $im=imagecreatefromgif($percorsofile);<br />
		          $out=imagecreatetruecolor($nw2,$nh2);<br />
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw2,$nh2,$w,$h);<br />
		          imagegif($out,&#8221;./thumb/&#8221; . $file);<br />
		          imagedestroy($out);</p>
<p>				  scrivi_file($fp, $file);</p>
<p>		    }else if(estensione_file($img)==&#8221;.png&#8221;){</p>
<p>				  print (&#8221;trovato png&#8221;);</p>
<p>				  //full<br />
		          $im=imagecreatefrompng($percorsofile);<br />
		          $out=imagecreatetruecolor($nw1,$nh1);<br />
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw1,$nh1,$w,$h);<br />
		          imagepng($out,&#8221;./images/&#8221; . $file);<br />
		          imagedestroy($out);</p>
<p>				  //thumb<br />
		          $im=imagecreatefrompng($percorsofile);<br />
		          $out=imagecreatetruecolor($nw2,$nh2);<br />
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw2,$nh2,$w,$h);<br />
		          imagepng($out,&#8221;./thumb/&#8221; . $file);<br />
		          imagedestroy($out);</p>
<p>				  scrivi_file($fp, $file);</p>
<p>		    }  </p>
<p>		}</p>
<p>	}</p>
<p>	fwrite($fp, &#8221; . $capo);</p>
<p>	fclose($fp);<br />
?&gt;</p>
<p>4) open in your browser the $root/import.php file</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flash Gallery 0.2 beta released by Tony</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-02.html#comment-247</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Sun, 24 Aug 2008 00:51:45 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-02.html#comment-247</guid>
		<description>Is it possible to add more than one gallery to a site?  I have successfully setup one gallery but cannot manage to setup another one.  Maybe I'm stupid, but everything I've tried just goes back to the original file.  I have tried putting the files in another folder and linking to that to tell it that it's a different gallery but nothing works. Any help would be appreciated.  I want to setup a bunch of these on my site.</description>
		<content:encoded><![CDATA[<p>Is it possible to add more than one gallery to a site?  I have successfully setup one gallery but cannot manage to setup another one.  Maybe I&#8217;m stupid, but everything I&#8217;ve tried just goes back to the original file.  I have tried putting the files in another folder and linking to that to tell it that it&#8217;s a different gallery but nothing works. Any help would be appreciated.  I want to setup a bunch of these on my site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flash Gallery 0.2 beta released by Shara</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-02.html#comment-245</link>
		<dc:creator>Shara</dc:creator>
		<pubDate>Fri, 22 Aug 2008 18:37:12 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-02.html#comment-245</guid>
		<description>none of my images are loading.  In the captions area, it says "Loading Gallery XML!"  What am I missing?

Thanks for your help!</description>
		<content:encoded><![CDATA[<p>none of my images are loading.  In the captions area, it says &#8220;Loading Gallery XML!&#8221;  What am I missing?</p>
<p>Thanks for your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flash and XML Gallery BETA by Chris</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-243</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 20 Aug 2008 16:02:48 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-243</guid>
		<description>Is there anyway to resize the flash gallery? My photos are small (about 500x300) and I'd like to show them in the gallery. But right now, they appear left aligned with a lot of gray space. Resizing just removes the bar at the bottom.

Any ideas?</description>
		<content:encoded><![CDATA[<p>Is there anyway to resize the flash gallery? My photos are small (about 500&#215;300) and I&#8217;d like to show them in the gallery. But right now, they appear left aligned with a lot of gray space. Resizing just removes the bar at the bottom.</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flash and XML Gallery BETA by Ryan</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-239</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Mon, 11 Aug 2008 20:35:51 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-239</guid>
		<description>Hey,

Will you be making a version where images will be centered?  For instance, if the image is smaller then 800x600, it gets aligned to the left side, would be nice if those images were centered.</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>Will you be making a version where images will be centered?  For instance, if the image is smaller then 800&#215;600, it gets aligned to the left side, would be nice if those images were centered.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flash and XML Gallery BETA by delice</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-238</link>
		<dc:creator>delice</dc:creator>
		<pubDate>Sat, 09 Aug 2008 11:37:32 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-238</guid>
		<description>Everythink ok. just how do I put the thumbnails to gallaery folder.This is what I could not understand.Thank you...</description>
		<content:encoded><![CDATA[<p>Everythink ok. just how do I put the thumbnails to gallaery folder.This is what I could not understand.Thank you&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
