<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>distortion &#187; Flash</title>
	<atom:link href="http://www.giordanopiazza.com/blog/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.giordanopiazza.com/blog</link>
	<description>gyo goes blogging</description>
	<lastBuildDate>Sun, 20 Jun 2010 11:05:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Adding line breaks in Flash via XML</title>
		<link>http://www.giordanopiazza.com/blog/flash/adding-line-breaks-in-flash-via-xml/</link>
		<comments>http://www.giordanopiazza.com/blog/flash/adding-line-breaks-in-flash-via-xml/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 13:09:16 +0000</pubDate>
		<dc:creator>gyo</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[as2]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[line-breaks]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.giordanopiazza.com/blog/?p=126</guid>
		<description><![CDATA[How to add a line break to a text coming from XML in Flash (AS2/AS3)? I've been trying with \n and \r, and &#60;br&#62; using HTML text and it was breaking the XML; it could have been fixed with &#60;![CDATA[ but I didn't like the solution, and in the end... I didn't want to use [...]<p><a href="http://www.giordanopiazza.com/blog/flash/adding-line-breaks-in-flash-via-xml/">Adding line breaks in Flash via XML</a> - Copyright &copy; 2009 <a href="http://www.giordanopiazza.com/blog">Giordano Piazza</a></p>
]]></description>
			<content:encoded><![CDATA[<p>How to add a line break to a text coming from XML in Flash (AS2/AS3)?<br />
I've been trying with <strong>\n</strong> and <strong>\r</strong>, and <strong>&lt;br&gt;</strong> using HTML text and it was breaking the XML; it could have been fixed with <strong>&lt;![CDATA[ </strong>but I didn't like the solution, and in the end... I didn't want to use HTML text!</p>
<p>The answer was too easy, really:</p>
<hr />
<h2>&amp;#xD;</h2>
<hr />This simple characters combination made it. Just put this inside your XML's texts to have a line break. Cool.<br />
As many other times, I don't know why this is not advertised everywhere, it's the simplest and cleanest solution to add line breaks to a text field from XML.</p>
<p>Well, enjoy!<strong><span style="color: #ff0000;"> </span></strong></p>
<p><strong><span style="color: #ff0000;"> </span></strong>Now you can find a <a href="http://www.giordanopiazza.com/candybox/xml-line-breaks/example.swf" target="_blank">live example</a> and <a href="http://www.giordanopiazza.com/candybox/xml-line-breaks/xml_line_breaks.zip">download the sources</a>.</p>
<p><strong><span style="color: #ff0000;">UPDATE</span></strong></p>
<p>A guy left a review on Stumble saying: "<span>CDATA - Character Data. Use it. It's what it's there for".</span><span><br />
At the very beginning I wrote that I didn't like this solution, but now I'd like to give more information on why I <strong>DON'T</strong> like CDATA:</span></p>
<p>- It increases the file size<br />
- Your XML file becomes bloated and less readable<br />
- If you need a new line break (which is the point of this post) you have to actually make the new line in the XML, destroying the formatting</p>
<p>Here is an example:<br />
<code lang="xml"> &lt;items&gt;<br />
&lt;item&gt;&lt;![CDATA[This is the first line.<br />
And this goes on a new line.]]&gt;&lt;/item&gt;<br />
&lt;/items&gt;</code></p>
<p><a href="http://www.giordanopiazza.com/blog/flash/adding-line-breaks-in-flash-via-xml/">Adding line breaks in Flash via XML</a> - Copyright &copy; 2009 <a href="http://www.giordanopiazza.com/blog">Giordano Piazza</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.giordanopiazza.com/blog/flash/adding-line-breaks-in-flash-via-xml/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Allow smoothing for external images (as2)</title>
		<link>http://www.giordanopiazza.com/blog/flash/allow-smoothing-for-external-images-as2/</link>
		<comments>http://www.giordanopiazza.com/blog/flash/allow-smoothing-for-external-images-as2/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 14:09:10 +0000</pubDate>
		<dc:creator>gyo</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[as2]]></category>
		<category><![CDATA[external]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[smoothing]]></category>

		<guid isPermaLink="false">http://www.giordanopiazza.com/blog/?p=110</guid>
		<description><![CDATA[Here is a simple function to set the "Allow smoothing" images property at run-time in Flash. Let's say you have a blank MovieClip named target_mc and you load an external image, it will be rendered without anti-alias/smoothing; I needed it to be smooth for a full-browser background story and the support for transparent images was [...]<p><a href="http://www.giordanopiazza.com/blog/flash/allow-smoothing-for-external-images-as2/">Allow smoothing for external images (as2)</a> - Copyright &copy; 2009 <a href="http://www.giordanopiazza.com/blog">Giordano Piazza</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Here is a simple function to set the "Allow smoothing" images property at run-time in Flash.<br />
Let's say you have a blank MovieClip named <strong>target_mc</strong> and you load an external image, it will be rendered without anti-alias/smoothing; I needed it to be smooth for a full-browser background story and the support for transparent images was a must, so here we go:</p>
<p><code lang="actionscript"><br />
function smooth(mc:MovieClip)<br />
{<br />
var bitmap:BitmapData = new BitmapData(mc._width, mc._height, true, 0x000000);<br />
mc.attachBitmap(bitmap, 0, "auto", true);<br />
bitmap.draw(mc);<br />
}<br />
</code></p>
<p>To use it, just call the function pointing to the target mc:<br />
<code lang="actionscript"><br />
smooth(target_mc);<br />
</code></p>
<p>As you can see from the code, the function doesn't load anything, it just re-draws a MovieClip with the "Allow smoothing" property set; this is because I needed a quick and simple function to render any MovieClip, since I use another library to handle the loading process.</p>
<p>Note: The code is actionscript2. I didn't investigate the actionscript3 behavior about this issue, if you know something please drop a comment!</p>
<p><strong><span style="color: #ff0000;">IMPORTANT UPDATE</span></strong><br />
I tried what <strong>Non Cho</strong> suggested and it works for Flash Player 8! Thanks man!<br />
You no longer need the <strong>smooth()</strong> function, just keep it in case you need to export for Flash Player 7.<br />
All you have to do is to apply the <strong>forceSmoothing</strong> property to a MovieClip after the content (image or whatever) has finished loading:</p>
<p><code lang="actionscript"><br />
mc.forceSmoothing = true;<br />
</code></p>
<p><strong>Remember</strong> to set the <strong>forceSmoothing</strong> property to <strong>true</strong> only AFTER the content of the MovieClip has been completely loaded. This is very important, otherwise it will not work.</p>
<p>One more example could be:</p>
<p><code lang="actionscript">mc.loadMovie("my_picture.jpg");</code></p>
<p><code lang="actionscript">mc.onLoad = function()<br />
{<br />
this.forceSmoothing = true;<br />
}<br />
</code></p>
<p><a href="http://www.giordanopiazza.com/blog/flash/allow-smoothing-for-external-images-as2/">Allow smoothing for external images (as2)</a> - Copyright &copy; 2009 <a href="http://www.giordanopiazza.com/blog">Giordano Piazza</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.giordanopiazza.com/blog/flash/allow-smoothing-for-external-images-as2/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Alternative sIFR-lite</title>
		<link>http://www.giordanopiazza.com/blog/web-design/alternative-sifr-lite/</link>
		<comments>http://www.giordanopiazza.com/blog/web-design/alternative-sifr-lite/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 21:09:03 +0000</pubDate>
		<dc:creator>gyo</dc:creator>
				<category><![CDATA[Web-Design]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[sifr]]></category>
		<category><![CDATA[text-replacement]]></category>

		<guid isPermaLink="false">http://www.giordanopiazza.com/blog/?p=83</guid>
		<description><![CDATA[I've playing around with sIFR (v2, v3 and jquery plugins) because I really love the concept behind it. After some tests and fights I found sIFR-lite. Dave at allcrunchy.com did a stunning job, and the result is a light-weight sIFR library (about 4k) that works better than the original, at least for me. Faster, lighter, [...]<p><a href="http://www.giordanopiazza.com/blog/web-design/alternative-sifr-lite/">Alternative sIFR-lite</a> - Copyright &copy; 2009 <a href="http://www.giordanopiazza.com/blog">Giordano Piazza</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I've playing around with sIFR (v2, v3 and jquery plugins) because I really love the concept behind it.<br />
After some tests and fights I found <a href="http://www.allcrunchy.com/Web_Stuff/sIFR_lite/">sIFR-lite</a>.<br />
Dave at <a href="http://www.allcrunchy.com">allcrunchy.com</a> did a stunning job, and the result is a light-weight sIFR library (about 4k) that works better than the original, at least for me. Faster, lighter, better.</p>
<p>I decided to make some improvements to make it more flexible while keeping it super compact.</p>
<p><strong>This version includes:</strong><br />
- Fixed a bug with Flash Player 10+ (thanks to a <a href="http://www.wowebmaster.com/javascript/2008/sifr-lite-faster-smaller-sifr/">comment</a> from <a href="http://www.level-studios.com/">Patrick</a>)<br />
- CSS text alignment is now supported</p>
<ul>
<li><a title="Alternative sIFR-lite" href="http://www.giordanopiazza.com/candybox/sifr-lite/sIFR-lite.zip">Download the Alternative sIFR-lite</a></li>
<li><a title="Alternative sIFR-lite" href="http://www.giordanopiazza.com/candybox/sifr-lite/" target="_blank">See the DEMO</a></li>
</ul>
<p>Please refer to <a href="http://www.allcrunchy.com/Web_Stuff/sIFR_lite/">the homepage of sIFR-lite</a> for the documentation.</p>
<p>I do not take the full credits of sIFR or sIFR lite; the aim of this project is only to provide an alternative version with some bug-fixes, and some new features not included in the original.</p>
<p>Anyway... I'll be posting updates here, any input is welcome!</p>
<p><a href="http://www.giordanopiazza.com/blog/web-design/alternative-sifr-lite/">Alternative sIFR-lite</a> - Copyright &copy; 2009 <a href="http://www.giordanopiazza.com/blog">Giordano Piazza</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.giordanopiazza.com/blog/web-design/alternative-sifr-lite/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>6 Flash Essentials</title>
		<link>http://www.giordanopiazza.com/blog/flash/6-flash-essentials/</link>
		<comments>http://www.giordanopiazza.com/blog/flash/6-flash-essentials/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 00:14:52 +0000</pubDate>
		<dc:creator>gyo</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Web-Design]]></category>
		<category><![CDATA[deeplink]]></category>
		<category><![CDATA[essentials]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[upload]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.giordanopiazza.com/blog/?p=46</guid>
		<description><![CDATA[A selection of six Javascript/Flash libraries to solve common tasks in the tough world of web-design.
Here is a quick list of the essential tools to use with Flash<p><a href="http://www.giordanopiazza.com/blog/flash/6-flash-essentials/">6 Flash Essentials</a> - Copyright &copy; 2009 <a href="http://www.giordanopiazza.com/blog">Giordano Piazza</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-67" title="flash_essentials" src="http://www.giordanopiazza.com/blog/wp-content/uploads/2009/03/flash_essentials.gif" alt="flash_essentials" width="150" height="63" />A selection of six Javascript/Flash libraries to solve common tasks in the tough world of web-design.<br />
Here is a quick list of the essential tools to use with Flash:</p>
<h3><a href="http://flashden.net/videomaru/">VideoMaru</a></h3>
<p>Easy and powerful Flash video player, it let's you to create interfaces in minutes: just draw something, convert it to MovieClip and set an instance name (like play, stop, pause...).</p>
<p><a href="http://flashden.net/videomaru/"><img class="alignnone size-full wp-image-49" title="flash_essentials" src="http://www.giordanopiazza.com/blog/wp-content/uploads/2009/03/flash_essentials.jpg" alt="flash_essentials" width="391" height="199" /><br />
</a></p>
<hr />
<h3><a href="http://swfupload.org/"><br />
SWFUpload</a></h3>
<p>Cool if you need to show a progress bar during uploads.</p>
<p><a href="http://swfupload.org/"><img class="alignnone size-full wp-image-50" title="swfupload" src="http://www.giordanopiazza.com/blog/wp-content/uploads/2009/03/swfupload.jpg" alt="swfupload" width="391" height="125" /><br />
</a></p>
<hr />
<h3><a href="http://www.mikeindustries.com/blog/sifr/"><br />
sIFR</a></h3>
<p>Use any font in your website with this. It substitutes defined html tags with a Flash SWF file displaying the embedded font.</p>
<p><a href="http://www.mikeindustries.com/blog/sifr/"><img class="size-full wp-image-52 alignnone" title="logo_sifr2" src="http://www.giordanopiazza.com/blog/wp-content/uploads/2009/03/logo_sifr2.gif" alt="logo_sifr2" width="192" height="116" /><br />
</a></p>
<hr />
<h3><a href="http://www.asual.com/swfaddress/"><br />
SWFAddress</a></h3>
<p>Deeplink for Flash. With this library you'll be able to link internal pages of a Flash website.</p>
<p><a href="http://www.asual.com/swfaddress/"><img class="alignnone size-full wp-image-53" title="asual-swfaddress" src="http://www.giordanopiazza.com/blog/wp-content/uploads/2009/03/asual-swfaddress.jpg" alt="asual-swfaddress" width="382" height="33" /><br />
</a></p>
<hr />
<h3><a href="http://swffit.millermedeiros.com/"><br />
SWFFit</a></h3>
<p>Automatically resize your Flash movie keeping it accessible independent of screen resolution.</p>
<p><a href="http://swffit.millermedeiros.com/"><img class="alignnone size-full wp-image-54" title="swffit_logo" src="http://www.giordanopiazza.com/blog/wp-content/uploads/2009/03/swffit_logo.gif" alt="swffit_logo" width="123" height="92" /><br />
</a></p>
<hr />
<h3><a href="http://www.sephiroth.it/weblog/archives/2006/10/flash_switcher_for_firefox.php"><br />
Flash Switcher</a></h3>
<p>Smart Firefox extension to quickly switch between different Flash Player versions.</p>
<p><a href="http://www.giordanopiazza.com/blog/flash/6-flash-essentials/">6 Flash Essentials</a> - Copyright &copy; 2009 <a href="http://www.giordanopiazza.com/blog">Giordano Piazza</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.giordanopiazza.com/blog/flash/6-flash-essentials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lotus</title>
		<link>http://www.giordanopiazza.com/blog/experiments/lotus/</link>
		<comments>http://www.giordanopiazza.com/blog/experiments/lotus/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 14:27:23 +0000</pubDate>
		<dc:creator>gyo</dc:creator>
				<category><![CDATA[Experiments]]></category>
		<category><![CDATA[experiment]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[project]]></category>

		<guid isPermaLink="false">http://www.giordanopiazza.com/?p=11</guid>
		<description><![CDATA[<a href="http://www.giordanopiazza.com/lotus">View Lotus</a><p><a href="http://www.giordanopiazza.com/blog/experiments/lotus/">Lotus</a> - Copyright &copy; 2009 <a href="http://www.giordanopiazza.com/blog">Giordano Piazza</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-35 alignleft" title="lotus_logo" src="http://www.giordanopiazza.com/blog/wp-content/uploads/2009/01/lotus_logo.gif" alt="lotus_logo" width="129" height="107" />A Flash experiment using native CS4 3D engine + random colors of a defined scheme.<br />
This was done</p>
<p><a href="http://www.giordanopiazza.com/"><img class="alignnone size-full wp-image-41" title="lotus_screenshot" src="http://www.giordanopiazza.com/blog/wp-content/uploads/2009/01/lotus_screenshot.jpg" alt="lotus_screenshot" width="391" height="199" /></a></p>
<p><a href="http://www.giordanopiazza.com/blog/experiments/lotus/">Lotus</a> - Copyright &copy; 2009 <a href="http://www.giordanopiazza.com/blog">Giordano Piazza</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.giordanopiazza.com/blog/experiments/lotus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
