<?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>labs.hellokeita.com &#187; Flash CS4</title>
	<atom:link href="http://labs.hellokeita.com/category/flash-cs4/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.hellokeita.com</link>
	<description>Yet another labs blog</description>
	<lastBuildDate>Mon, 02 Aug 2010 11:20:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fast Metaball Effect in AS3</title>
		<link>http://labs.hellokeita.com/2010/08/02/fast-metaball-effect-in-as3/</link>
		<comments>http://labs.hellokeita.com/2010/08/02/fast-metaball-effect-in-as3/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 11:20:27 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Benchmark]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[fast]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[metaball]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=121</guid>
		<description><![CDATA[
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_metaball_722759045"
			class="flashmovie"
			width="400"
			height="300">
	<param name="movie" value="/files/metaball/metaball.swf" />
	<param name="bgcolor" value="#000000" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/files/metaball/metaball.swf"
			name="fm_metaball_722759045"
			width="400"
			height="300">
		<param name="bgcolor" value="#000000" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>

var container:Sprite = new Sprite();
var balls:Vector. = new Vector.();
var m:Matrix;
var s:Shape;
var r:Number;
var c:uint;
for(var i:int = 0; i < 10; i++){
	r = Math.random() * 100 + 100;
	m = new Matrix();
	m.createGradientBox(r, r, 0, -r * 0.5, -r * 0.5);
	s = container.addChild(new Shape()) as Shape;
	c = Math.random() * 0xFFFFFF;
	s.graphics.beginGradientFill(GradientType.RADIAL, [c, c], [...]]]></description>
			<content:encoded><![CDATA[
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_metaball_777648757"
			class="flashmovie"
			width="400"
			height="300">
	<param name="movie" value="/files/metaball/metaball.swf" />
	<param name="bgcolor" value="#000000" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/files/metaball/metaball.swf"
			name="fm_metaball_777648757"
			width="400"
			height="300">
		<param name="bgcolor" value="#000000" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p><code><br />
var container:Sprite = new Sprite();<br />
var balls:Vector.<Shape> = new Vector.<Shape>();<br />
var m:Matrix;<br />
var s:Shape;<br />
var r:Number;<br />
var c:uint;<br />
for(var i:int = 0; i < 10; i++){<br />
	r = Math.random() * 100 + 100;<br />
	m = new Matrix();<br />
	m.createGradientBox(r, r, 0, -r * 0.5, -r * 0.5);<br />
	s = container.addChild(new Shape()) as Shape;<br />
	c = Math.random() * 0xFFFFFF;<br />
	s.graphics.beginGradientFill(GradientType.RADIAL, [c, c], [1, 0], [0x00, 0xFF], m);<br />
	s.graphics.drawRect(-r * 0.5, -r * 0.5, r, r);<br />
	s.x = Math.random() * 400;<br />
	s.y = Math.random() * 300;<br />
	moveBall(s);<br />
	balls.push(s);<br />
}<br />
function moveBall(s:Shape):void<br />
{<br />
//whatever easing to move the spheres<br />
}<br />
var s2:Shape = container.addChild(new Shape()) as Shape;<br />
m = new Matrix();<br />
m.createGradientBox(200, 200, 0, -100, -100);<br />
c = Math.random() * 0xFFFFFF;<br />
s2.graphics.beginGradientFill(GradientType.RADIAL, [c, c], [1, 0], [0x00, 0xFF], m);<br />
s2.graphics.drawRect(-100, -100, 200, 200);<br />
var bmpData:BitmapData = new BitmapData(400, 300, true, 0x00000000);<br />
var bmp:Bitmap = addChild(new Bitmap(bmpData)) as Bitmap;<br />
addEventListener(Event.ENTER_FRAME, render);<br />
function render(e:Event):void<br />
{<br />
	s2.x = mouseX;<br />
	s2.y = mouseY;<br />
	bmpData.applyFilter(bmpData, bmpData.rect, new Point(0, 0), new BlurFilter(2, 2, 2));<br />
	bmpData.draw(container);<br />
	var i:int, l:int;<br />
	var aArr:Array = [];<br />
	var c:int;<br />
	for(i = 0; i <= 0xFF; i++)<br />
	{<br />
		c = (i - 0x80) << 1;<br />
		if(c < 0) c = 0;<br />
		aArr[i] = c << 24;<br />
	}<br />
	bmpData.paletteMap(bmpData, bmpData.rect, new Point(0, 0), null, null, null, aArr);<br />
}<br />
</code></p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2010/08/02/fast-metaball-effect-in-as3/&ztz=Fast Metaball Effect in AS3'><img src='http://labs.hellokeita.com/wp-content/plugins/hexosearch-button/logo16x16.png' width='16' height='16' border='0' style='padding:0px 5px 0px 0px;vertical-align:middle' alt='Vote in HexoSearch' title='Vote in HexoSearch' /></a> <span style='vertical-align:middle'><a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2010/08/02/fast-metaball-effect-in-as3/&ztz=Fast Metaball Effect in AS3'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2010/08/02/fast-metaball-effect-in-as3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Gesture Test</title>
		<link>http://labs.hellokeita.com/2009/09/24/gesture-test/</link>
		<comments>http://labs.hellokeita.com/2009/09/24/gesture-test/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 00:31:13 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[BitmapData]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[flash10]]></category>
		<category><![CDATA[gesture]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=93</guid>
		<description><![CDATA[Well, I went to the Flash On The Beach for the first time this year. Was really cool and inspiring.
The first night, I had some inspiration, nothing to deal to any of the presentations I saw, but just something that I wanted to test. I couldn&#8217;t upload it because I didn&#8217;t have internet at the [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I went to the Flash On The Beach for the first time this year. Was really cool and inspiring.</p>
<p>The first night, I had some inspiration, nothing to deal to any of the presentations I saw, but just something that I wanted to test. I couldn&#8217;t upload it because I didn&#8217;t have internet at the hotel, and at the venue the firewall was blocking me to connect to my FTP.</p>
<p>So, what was my experiment this time?<br />
Gesture!<br />
I think it&#8217;s working quite nice for a code I took less than an hour to write. It was much easier than I thought.</p>
<p>Just click and try to draw a Triangle, Circle or Square.<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_gesture1_2039578992"
			class="flashmovie"
			width="401"
			height="431">
	<param name="movie" value="/files/gesture/gesture1.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/files/gesture/gesture1.swf"
			name="fm_gesture1_2039578992"
			width="401"
			height="431">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>Enjoy!<br />
I&#8217;ll post the source code later&#8230; let me take a nap now.</p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/09/24/gesture-test/&ztz=Gesture Test'><img src='http://labs.hellokeita.com/wp-content/plugins/hexosearch-button/logo16x16.png' width='16' height='16' border='0' style='padding:0px 5px 0px 0px;vertical-align:middle' alt='Vote in HexoSearch' title='Vote in HexoSearch' /></a> <span style='vertical-align:middle'><a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/09/24/gesture-test/&ztz=Gesture Test'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2009/09/24/gesture-test/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>LFPUG Presentation and Sources</title>
		<link>http://labs.hellokeita.com/2009/09/07/lfpug-presentation-and-sources/</link>
		<comments>http://labs.hellokeita.com/2009/09/07/lfpug-presentation-and-sources/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 10:01:56 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Komposer]]></category>
		<category><![CDATA[LFPUG]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Presentation]]></category>
		<category><![CDATA[Sandy3d]]></category>
		<category><![CDATA[Sound]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[dynamic sound]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=85</guid>
		<description><![CDATA[As promissed, here is the presentation I made at LFPUG in PDF format.
http://www.hellokeita.in/presentations/LFPUG/20090827/MakingMusicFP10.pdf
And the source files zipped with the demos I showed.
http://www.hellokeita.in/presentations/LFPUG/20090827/examples.zip
The contents are:
Example01-SineWaveExample: Simple example generating a sine wave
Example02-KeyboardExample: Example of a piano keyboard
Example03-WaveformExample: Changing the waveform of a sound
Example04-TimePitchExample: Changing pitch and tempo of a mp3
Example05-HeliumBalloon: Real time pitch shifting using Java
Enjoy!
UPDATE
LFPUG website [...]]]></description>
			<content:encoded><![CDATA[<p>As promissed, here is the presentation I made at LFPUG in PDF format.</p>
<p><a href="http://www.hellokeita.in/presentations/LFPUG/20090827/MakingMusicFP10.pdf" target="_blank">http://www.hellokeita.in/presentations/LFPUG/20090827/MakingMusicFP10.pdf</a></p>
<p>And the source files zipped with the demos I showed.</p>
<p><a href="http://www.hellokeita.in/presentations/LFPUG/20090827/examples.zip" target="_blank">http://www.hellokeita.in/presentations/LFPUG/20090827/examples.zip</a><br />
The contents are:<br />
Example01-SineWaveExample: Simple example generating a sine wave<br />
Example02-KeyboardExample: Example of a piano keyboard<br />
Example03-WaveformExample: Changing the waveform of a sound<br />
Example04-TimePitchExample: Changing pitch and tempo of a mp3<br />
Example05-HeliumBalloon: Real time pitch shifting using Java</p>
<p>Enjoy!</p>
<p><font color="#FF0000">UPDATE</font><br />
LFPUG website uploaded the video of my presentation<br />
<a href="http://www.lfpug.com/flash-10-making-music/" target="_blank">http://www.lfpug.com/flash-10-making-music/</a></p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/09/07/lfpug-presentation-and-sources/&ztz=LFPUG Presentation and Sources'><img src='http://labs.hellokeita.com/wp-content/plugins/hexosearch-button/logo16x16.png' width='16' height='16' border='0' style='padding:0px 5px 0px 0px;vertical-align:middle' alt='Vote in HexoSearch' title='Vote in HexoSearch' /></a> <span style='vertical-align:middle'><a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/09/07/lfpug-presentation-and-sources/&ztz=LFPUG Presentation and Sources'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2009/09/07/lfpug-presentation-and-sources/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>LFPUG Presentation</title>
		<link>http://labs.hellokeita.com/2009/08/26/lfpug-presentation/</link>
		<comments>http://labs.hellokeita.com/2009/08/26/lfpug-presentation/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 13:22:27 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[Komposer]]></category>
		<category><![CDATA[LFPUG]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Presentation]]></category>
		<category><![CDATA[Sound]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[dynamic sound]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=79</guid>
		<description><![CDATA[Tomorrow Aug 27th, I&#8217;ll be presenting at LFPUG (London Flash Platform User Group) about dynamic sound in Flash 10.
Feel free to pop-up there, it&#8217;s for free.
Here is the link:
http://www.lfpug.com/27th-august-2009-27082009/
Signing up, you&#8217;ll have a chance to get a Flash On The Beach ticket!
Time: 19:00 &#8211; 23:00 (doors open at 18:30)
Venue: CosmoBar, 50-54 Clerkenwell Road, EC1M 5PS [...]]]></description>
			<content:encoded><![CDATA[<p>Tomorrow Aug 27th, I&#8217;ll be presenting at LFPUG (London Flash Platform User Group) about dynamic sound in Flash 10.</p>
<p>Feel free to pop-up there, it&#8217;s for free.</p>
<p>Here is the link:<br />
<a href="http://www.lfpug.com/27th-august-2009-27082009/" target="_blank">http://www.lfpug.com/27th-august-2009-27082009/</a></p>
<p>Signing up, you&#8217;ll have a chance to get a Flash On The Beach ticket!</p>
<p>Time: 19:00 &#8211; 23:00 (doors open at 18:30)<br />
Venue: CosmoBar, 50-54 Clerkenwell Road, EC1M 5PS (click for map)<br />
Tube: Barbican/Farringdon</p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/08/26/lfpug-presentation/&ztz=LFPUG Presentation'><img src='http://labs.hellokeita.com/wp-content/plugins/hexosearch-button/logo16x16.png' width='16' height='16' border='0' style='padding:0px 5px 0px 0px;vertical-align:middle' alt='Vote in HexoSearch' title='Vote in HexoSearch' /></a> <span style='vertical-align:middle'><a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/08/26/lfpug-presentation/&ztz=LFPUG Presentation'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2009/08/26/lfpug-presentation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flash Player 10 &#8211; Aka Astro</title>
		<link>http://labs.hellokeita.com/2008/05/15/flash-player-10-aka-astro/</link>
		<comments>http://labs.hellokeita.com/2008/05/15/flash-player-10-aka-astro/#comments</comments>
		<pubDate>Thu, 15 May 2008 11:45:07 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[3d]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Astro]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/2008/05/15/flash-player-10-aka-astro/</guid>
		<description><![CDATA[Adobe launched a Flash Player 10 beta, aka Astro.
I&#8217;m just posting some links about Astro and Flash CS4 that I found. I anybody wants more info about it, just google it.
Astro release notes: http://labs.adobe.com/technologies/flashplayer10/releasenotes.html
Astro demos and videos: http://labs.adobe.com/technologies/flashplayer10/demos/index.html
Native3D sample code: http://download.macromedia.com/pub/labs/flashplayer10/sampleSource/Native3D_Sample.zip
An example using InverseKinematics (Flash CS4 new feature): http://theflashblog.com/?cat=34
Dynamic sound generation in Flash CS4: http://www.kaourantin.net/2008/05/adobe-is-making-some-noise-part-1.html
http://www.kaourantin.net/2008/05/adobe-is-making-some-noise-part-2.html
http://www.kaourantin.net/2008/05/adobe-is-making-some-noise-part-3.html
(update) [...]]]></description>
			<content:encoded><![CDATA[<p>Adobe launched a Flash Player 10 beta, aka Astro.</p>
<p>I&#8217;m just posting some links about Astro and Flash CS4 that I found. I anybody wants more info about it, just google it.</p>
<p>Astro release notes: <a href="http://labs.adobe.com/technologies/flashplayer10/releasenotes.html" target="_blank">http://labs.adobe.com/technologies/flashplayer10/releasenotes.html</a></p>
<p>Astro demos and videos: <a href="http://labs.adobe.com/technologies/flashplayer10/demos/index.html" target="_blank">http://labs.adobe.com/technologies/flashplayer10/demos/index.html</a><br />
Native3D sample code: <a href="http://download.macromedia.com/pub/labs/flashplayer10/sampleSource/Native3D_Sample.zip" target="_blank">http://download.macromedia.com/pub/labs/flashplayer10/sampleSource/Native3D_Sample.zip</a></p>
<p>An example using InverseKinematics (Flash CS4 new feature): <a href="http://theflashblog.com/?cat=34" target="_blank">http://theflashblog.com/?cat=34</a></p>
<p>Dynamic sound generation in Flash CS4: <a href="http://www.kaourantin.net/2008/05/adobe-is-making-some-noise-part-1.html" target="_blank">http://www.kaourantin.net/2008/05/adobe-is-making-some-noise-part-1.html</a><br />
<a href="http://www.kaourantin.net/2008/05/adobe-is-making-some-noise-part-2.html" target="_blank">http://www.kaourantin.net/2008/05/adobe-is-making-some-noise-part-2.html</a><br />
<a href="http://www.kaourantin.net/2008/05/adobe-is-making-some-noise-part-3.html" target="_blank">http://www.kaourantin.net/2008/05/adobe-is-making-some-noise-part-3.html</a></p>
<p>(update) And, if you want to build a Flash 10 content, you need the last nightly build Flex 3:<br />
<a href='http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player+10+Beta+with+Flex+SDK+3.0.x' target='_blank'>http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player+10+Beta+with+Flex+SDK+3.0.x</a></p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2008/05/15/flash-player-10-aka-astro/&ztz=Flash Player 10 - Aka Astro'><img src='http://labs.hellokeita.com/wp-content/plugins/hexosearch-button/logo16x16.png' width='16' height='16' border='0' style='padding:0px 5px 0px 0px;vertical-align:middle' alt='Vote in HexoSearch' title='Vote in HexoSearch' /></a> <span style='vertical-align:middle'><a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2008/05/15/flash-player-10-aka-astro/&ztz=Flash Player 10 - Aka Astro'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2008/05/15/flash-player-10-aka-astro/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
