<?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; AS3</title>
	<atom:link href="http://labs.hellokeita.com/category/as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.hellokeita.com</link>
	<description>Yet another labs blog</description>
	<lastBuildDate>Thu, 01 Dec 2011 20:14:22 +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>Editing BitmapData from different domain</title>
		<link>http://labs.hellokeita.com/2011/12/02/editing-bitmapdata-from-different-domain/</link>
		<comments>http://labs.hellokeita.com/2011/12/02/editing-bitmapdata-from-different-domain/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 20:12:26 +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>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=129</guid>
		<description><![CDATA[Wonder how to apply smoothing, read and write pixels on a image loaded from a different domain name?
Quite simple, load as binary first and than load the ByteArray as Bitmap.

var urlLoader:URLLoader = new URLLoader();
urlLoader.dataFormat = URLLoaderDataFormat.BINARY;
urlLoader.addEventListener(Event.COMPLETE, urlLoaderComplete);
var url:String = "http://www.adobe.com/images/shared/product_mnemonics/50x50/flash_player_50x50.gif";
urlLoader.load(new URLRequest(url));
function urlLoaderComplete(e:Event):void
{
&#160;&#160;var loader:Loader = new Loader();
&#160;&#160;loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderComplete);
&#160;&#160;loader.loadBytes(urlLoader.data as ByteArray);
}

function loaderComplete(e:Event):void
{
&#160;&#160;var bmp:Bitmap = e.currentTarget.content as Bitmap;
&#160;&#160;addChild(bmp);
&#160;&#160;var [...]]]></description>
			<content:encoded><![CDATA[<p>Wonder how to apply smoothing, read and write pixels on a image loaded from a different domain name?</p>
<p>Quite simple, load as binary first and than load the ByteArray as Bitmap.</p>
<p><code><br />
var urlLoader:URLLoader = new URLLoader();<br />
urlLoader.dataFormat = URLLoaderDataFormat.BINARY;<br />
urlLoader.addEventListener(Event.COMPLETE, urlLoaderComplete);</code></p>
<p><code>var url:String = "http://www.adobe.com/images/shared/product_mnemonics/50x50/flash_player_50x50.gif";<br />
urlLoader.load(new URLRequest(url));</code></p>
<p><code>function urlLoaderComplete(e:Event):void<br />
{<br />
&nbsp;&nbsp;var loader:Loader = new Loader();<br />
&nbsp;&nbsp;loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderComplete);<br />
&nbsp;&nbsp;loader.loadBytes(urlLoader.data as ByteArray);<br />
}</p>
<p></code></p>
<p><code>function loaderComplete(e:Event):void<br />
{<br />
&nbsp;&nbsp;var bmp:Bitmap = e.currentTarget.content as Bitmap;<br />
&nbsp;&nbsp;addChild(bmp);<br />
&nbsp;&nbsp;var bitmapData:BitmapData = bmp.bitmapData<br />
&nbsp;&nbsp;bitmapData.applyFilter(bitmapData, bitmapData.rect, new Point(0, 0),<br />
&nbsp;&nbsp;&nbsp;&nbsp;new ColorMatrixFilter([<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0, 0, 0, 0, 0,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1, 1, 0, 0, 0,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0, 0, 1, 0, 0,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0, -1, -1, 1, 0<br />
&nbsp;&nbsp;]));<br />
}<br />
</code></p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2011/12/02/editing-bitmapdata-from-different-domain/&ztz=Editing BitmapData from different domain'><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/2011/12/02/editing-bitmapdata-from-different-domain/&ztz=Editing BitmapData from different domain'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2011/12/02/editing-bitmapdata-from-different-domain/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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_865259663"
			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_865259663"
			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_933332977"
			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_933332977"
			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>4</slash:comments>
		</item>
		<item>
		<title>Wi-Fireworks Interactive Installation</title>
		<link>http://labs.hellokeita.com/2010/07/16/wi-fireworks-interactive-installation/</link>
		<comments>http://labs.hellokeita.com/2010/07/16/wi-fireworks-interactive-installation/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 22:53:29 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=116</guid>
		<description><![CDATA[
I had a great opportunity to make an interactive installation at unit9.
So, I came up with the technical idea, using the mobile device&#8217;s web browser that supports html5, and an internet connection, you could interact with a computer, without the need to install any app.
The idea our creative director Kishi brought was simple, you draw, [...]]]></description>
			<content:encoded><![CDATA[<p><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/i9mhK7qpWKQ&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/i9mhK7qpWKQ&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="360"></embed></object></p>
<p>I had a great opportunity to make an interactive installation at unit9.</p>
<p>So, I came up with the technical idea, using the mobile device&#8217;s web browser that supports html5, and an internet connection, you could interact with a computer, without the need to install any app.</p>
<p>The idea our creative director Kishi brought was simple, you draw, and make your drawing a firework.<br />
With the help from unit9, we were able to create this unique way to interact from a mobile to a computer, in a straightforward way, no need to install any app, no need of advanced technical knowledge.</p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2010/07/16/wi-fireworks-interactive-installation/&ztz=Wi-Fireworks Interactive Installation'><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/07/16/wi-fireworks-interactive-installation/&ztz=Wi-Fireworks Interactive Installation'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2010/07/16/wi-fireworks-interactive-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My first installation, Wi-Fireworks</title>
		<link>http://labs.hellokeita.com/2010/03/27/my-first-installation-wi-fireworks/</link>
		<comments>http://labs.hellokeita.com/2010/03/27/my-first-installation-wi-fireworks/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 02:46:05 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[OpenFrameworks]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[hoxton]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[wi-fireworks]]></category>
		<category><![CDATA[wifireworks]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=112</guid>
		<description><![CDATA[So, my time has came.
My first installation.
It&#8217;s really simple drawing installation.
You get your iPhone and access the URL from your browser in the instruction on the projection, and just start drawing, and you can see it right away on the projection.
You don&#8217;t need to install any application.
You can check some videos here: http://www.facebook.com/event.php?eid=106749376013168
So, I used [...]]]></description>
			<content:encoded><![CDATA[<p>So, my time has came.<br />
My first installation.</p>
<p>It&#8217;s really simple drawing installation.<br />
You get your iPhone and access the URL from your browser in the instruction on the projection, and just start drawing, and you can see it right away on the projection.<br />
You don&#8217;t need to install any application.</p>
<p>You can check some videos here: <a href="http://www.facebook.com/event.php?eid=106749376013168" target="_blank">http://www.facebook.com/event.php?eid=106749376013168</a></p>
<p>So, I used HTML5 + JavaScript for the web application, PHP for the socket (I know, it&#8217;s not the best solution, but it was what I could&#8217;ve done at this time), C++ &#038; OpenFrameworks for the application running for the projection and a MySQL database to store all the drawn data.</p>
<p>What I&#8217;ve learned from this?<br />
- you don&#8217;t really need to learn Objective-C and pay hundreds to Apple to make some simple application<br />
- don&#8217;t try to do what everyone is doing<br />
- I know c++ now<br />
- flash is slow even on AIR<br />
- sockets on PHP works pretty well<br />
- HTML5 won&#8217;t be replacing Flash any time soon<br />
- people are afraid to do something different at work until someone does something new<br />
- don&#8217;t try to do everything by yourself</p>
<p>Anyway, at the end, everything went well, personally the result was really good.</p>
<p>If you read this post before 29th of March, you can still go check it out at Hoxton Square.</p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2010/03/27/my-first-installation-wi-fireworks/&ztz=My first installation, Wi-Fireworks'><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/03/27/my-first-installation-wi-fireworks/&ztz=My first installation, Wi-Fireworks'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2010/03/27/my-first-installation-wi-fireworks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Catching up</title>
		<link>http://labs.hellokeita.com/2010/03/27/catching-up/</link>
		<comments>http://labs.hellokeita.com/2010/03/27/catching-up/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 02:27:13 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[3d]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Jobs]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[bring it to life]]></category>
		<category><![CDATA[carling]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[google earth]]></category>
		<category><![CDATA[guiness]]></category>
		<category><![CDATA[kent]]></category>
		<category><![CDATA[unit9]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=110</guid>
		<description><![CDATA[Again, I didn&#8217;t update my blog for a long time.
So to catch up, here goes what happened in my life in the last months.
At beginning of November I started working at unit9 (http://www.unit9.com) a interactive media company based in London.
As first project, I did Guinness Bring it to Life (http://www.bringittolife.tv)
It&#8217;s a project that integrates Google [...]]]></description>
			<content:encoded><![CDATA[<p>Again, I didn&#8217;t update my blog for a long time.<br />
So to catch up, here goes what happened in my life in the last months.</p>
<p>At beginning of November I started working at unit9 (http://www.unit9.com) a interactive media company based in London.</p>
<p>As first project, I did Guinness Bring it to Life (http://www.bringittolife.tv)<br />
It&#8217;s a project that integrates Google Earth plug-in, Flash, Javascript, Facebook, and lot of other technologies.<br />
Basically, you can build your planet with different terrains on Google Earth plug-in and bring life to your new planet.</p>
<p>Last week I went to play Carling in Kent with some friends.<br />
It was amazing, much exciting than watching someone playing. You should play it when you have chance.</p>
<p>And, this week, I made a installation at unit9, my very first one, that I&#8217;ll explain on next post.</p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2010/03/27/catching-up/&ztz=Catching up'><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/03/27/catching-up/&ztz=Catching up'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2010/03/27/catching-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adhemas.com I&#8217;m Selling Colors</title>
		<link>http://labs.hellokeita.com/2009/12/15/adhemas-com-im-selling-colors/</link>
		<comments>http://labs.hellokeita.com/2009/12/15/adhemas-com-im-selling-colors/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 11:05:57 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[adhemas]]></category>
		<category><![CDATA[batista]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=104</guid>
		<description><![CDATA[Released couple weeks ago, I programmed the portfolio website for Adhemas Batista.
He is a Brazilian illustrator based in Los Angeles &#8211; US.

Vote]]></description>
			<content:encoded><![CDATA[<p>Released couple weeks ago, I programmed the portfolio website for <a href="http://www.adhemas.com/" target="_blank">Adhemas Batista</a>.<br />
He is a Brazilian illustrator based in Los Angeles &#8211; US.</p>
<p><a href="http://www.adhemas.com/" target="_blank"><img src="/files//work/adhemas/1.jpg" width="500" height="311" /></a></p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/12/15/adhemas-com-im-selling-colors/&ztz=Adhemas.com I\'m Selling Colors'><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/12/15/adhemas-com-im-selling-colors/&ztz=Adhemas.com I\'m Selling Colors'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2009/12/15/adhemas-com-im-selling-colors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash App on iPhone is crap</title>
		<link>http://labs.hellokeita.com/2009/11/27/flash-app-on-iphone-is-crap/</link>
		<comments>http://labs.hellokeita.com/2009/11/27/flash-app-on-iphone-is-crap/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 14:59:40 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[catalyst]]></category>
		<category><![CDATA[cs5]]></category>
		<category><![CDATA[flash builder]]></category>
		<category><![CDATA[flash pro]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[London]]></category>
		<category><![CDATA[Max]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=101</guid>
		<description><![CDATA[I went today for Adobe Back from MAX conference here in London. It&#8217;s like a mashup of what they showed at Adobe MAX LA.
Well, here is the note I took, and I&#8217;m really disapointed about Flash app in iPhone&#8230;

Flash app on iPhone:
- It&#8217;s a &#8220;static&#8221; app. Only SWFs packed in the app can be loaded. [...]]]></description>
			<content:encoded><![CDATA[<p>I went today for Adobe Back from MAX conference here in London. It&#8217;s like a mashup of what they showed at Adobe MAX LA.</p>
<p>Well, here is the note I took, and I&#8217;m really disapointed about Flash app in iPhone&#8230;<br />
<strong><br />
Flash app on iPhone:</strong><br />
- It&#8217;s a &#8220;static&#8221; app. Only SWFs packed in the app can be loaded. No SWFs from outside can be loaded;<br />
- You can load images, sound, text from outside;<br />
- No H.264, RTMPT, PixelBender&#8230;;<br />
- No access to Mic / Camera;<br />
- No access to Native API like Maps;<br />
- The packed file size is at least 2.7mb because they have to bundle all the functionalities because the compiler doesn&#8217;t know what is being used or not;</p>
<p><strong>Flash Embed in HTML<br />
</strong>- You can assign a priority to swfs during embed, so in a page with 2 banners and a main swf, can assign main swf a higher priority for performance;</p>
<p><strong>Flash Catalyst</strong><br />
- easy integration of Photoshop/Illustrator design with Flash, using Catalyst.<br />
- good for prototyping and IAs<br />
- skinning components easy<br />
- you can create a Flex Project directly from Catalyst, but the Flex Project can&#8217;t be loaded in Catalyst<br />
- you can create just a Library Project so you can change components skins easily</p>
<p><strong>Flash Pro CS5</strong><br />
- Text Framework integrated (http://labs.adobe.com/technologies/textlayout/)<br />
- AS3 snippets for designers, creates simple interactive code as Keyboard / Mouse interaction<br />
- Can save FLA or a uncompressed FLA format, that is a bunch of XML&#8217;s and assets inside a folder.<br />
- The uncompressed file format is good to change the assets without opening the FLA file</p>
<p><strong>Flash Builder</strong><br />
- You can easily create Flash Project and select a FLA file<br />
- Better integration with back-end stuff, WebServices / AMF (CF, PHP, Java)<br />
- Code generator for WebService / AMF<br />
- Network monitor, to monitor webservices and AMF<br />
- Easily create CMS, selecting the data origin, can be set to edit or only ready the data</p>
<p><strong>Flash Distribution</strong><br />
- Monetization, using Adobe ID, sell Flash / AIR products<br />
- Apps supports Ads<br />
- Frameworks to make easier integrations with social network.</p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/11/27/flash-app-on-iphone-is-crap/&ztz=Flash App on iPhone is crap'><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/11/27/flash-app-on-iphone-is-crap/&ztz=Flash App on iPhone is crap'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2009/11/27/flash-app-on-iphone-is-crap/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Drag and Drop between Flash and HTML</title>
		<link>http://labs.hellokeita.com/2009/10/17/drag-and-drop-between-flash-and-html/</link>
		<comments>http://labs.hellokeita.com/2009/10/17/drag-and-drop-between-flash-and-html/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 16:42:44 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[ExternalInterface]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Drag drop]]></category>
		<category><![CDATA[Experiment]]></category>
		<category><![CDATA[HTML flash]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=98</guid>
		<description><![CDATA[A long time I didn&#8217;t code anything in JS&#8230; and I just had an insight.
I don&#8217;t know if it&#8217;s new but at least it&#8217;s interesting for me how we can integrate Flash and HTML contents.
This is just a simple ugly test to drag something from Flash and drop on HTML.
The demo is in this link:http://www.hellokeita.in/xp/DragDrop/
 [...]]]></description>
			<content:encoded><![CDATA[<p>A long time I didn&#8217;t code anything in JS&#8230; and I just had an insight.<br />
I don&#8217;t know if it&#8217;s new but at least it&#8217;s interesting for me how we can integrate Flash and HTML contents.<br />
This is just a simple ugly test to drag something from Flash and drop on HTML.</p>
<p>The demo is in this link:<a href="http://www.hellokeita.in/xp/DragDrop/" target="_blank">http://www.hellokeita.in/xp/DragDrop/</a></p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/10/17/drag-and-drop-between-flash-and-html/&ztz=Drag and Drop between Flash and HTML'><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/10/17/drag-and-drop-between-flash-and-html/&ztz=Drag and Drop between Flash and HTML'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2009/10/17/drag-and-drop-between-flash-and-html/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Gesture Source</title>
		<link>http://labs.hellokeita.com/2009/09/25/gesture-source/</link>
		<comments>http://labs.hellokeita.com/2009/09/25/gesture-source/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 00:33:23 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[BitmapData]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[gesture]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=96</guid>
		<description><![CDATA[So, here is the source for the Gesture Test I posted before.
http://labs.hellokeita.com/files/gesture/gesture.zip
As I said, it&#8217;s really simple, it&#8217;s not the best code but it gives you some ideas of how it&#8217;s made.
Inside the &#8220;tags&#8221; folder, I have three pngs for each shape (triangle, square and circle).
You draw the shape you want, I trim it, and [...]]]></description>
			<content:encoded><![CDATA[<p>So, here is the source for the Gesture Test I posted before.<br />
<a href="http://labs.hellokeita.com/files/gesture/gesture.zip">http://labs.hellokeita.com/files/gesture/gesture.zip</a></p>
<p>As I said, it&#8217;s really simple, it&#8217;s not the best code but it gives you some ideas of how it&#8217;s made.</p>
<p>Inside the &#8220;tags&#8221; folder, I have three pngs for each shape (triangle, square and circle).<br />
You draw the shape you want, I trim it, and compare to each png.<br />
The comparisson is, get the drawn image, stretch it to the size of each png, and apply threshold. The BitmapData.threshold returns you an uint, the number of pixels that has been changed. With this number, divide it to the area of the png, and than, you choose the one that returns you tha smallest number.</p>
<p>and&#8230; that&#8217;s it. simple simple&#8230;</p>
<p>actually, it&#8217;s a technique used for some facial/object recognition softwares, but in a simplified way.</p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/09/25/gesture-source/&ztz=Gesture Source'><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/25/gesture-source/&ztz=Gesture Source'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2009/09/25/gesture-source/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_1717214314"
			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_1717214314"
			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>
	</channel>
</rss>

