<?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>Mindfock &#187; AS 3.0</title>
	<atom:link href="http://blog.mindfock.com/category/as-30/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mindfock.com</link>
	<description>Flash and ActionScript for the masses. With a little Python thrown in.</description>
	<lastBuildDate>Wed, 31 Mar 2010 10:07:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Color Mixer Flex App Updated</title>
		<link>http://blog.mindfock.com/color-mixer-flex-app-updated/</link>
		<comments>http://blog.mindfock.com/color-mixer-flex-app-updated/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 10:14:00 +0000</pubDate>
		<dc:creator>John del Rosario</dc:creator>
				<category><![CDATA[AS 3.0]]></category>
		<category><![CDATA[Art and Design]]></category>
		<category><![CDATA[Experiments]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Apps]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blog.mindfock.com/?p=68</guid>
		<description><![CDATA[I’ve updated my Color Mixer application. Right now it is as good as done. It’s not the best looking, but all the functionality is working fine. If there are any suggestions on how to improve it, I’d be glad to hear them. I am still working on the AIR version. It’s taking a while figuring [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mindfock.com/experiments/ColorManipulation/ColorMixer.html"><img title="colormixer" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="320" alt="colormixer" src="http://www.mindfock.com/images/001b899971c0_FC7B/colormixer_thumb.jpg" width="320" border="0" /></a> </p>
<p> I’ve updated my Color Mixer application. Right now it is as good as done. It’s not the best looking, but all the functionality is working fine. If there are any suggestions on how to improve it, I’d be glad to hear them. </p>
<p>I am still working on the AIR version. It’s taking a while figuring out how to skin components properly (the gradient sliders clearly show this).&#160; And it seems that taking a screenshot of the desktop is not possible on AIR, which is a shame because I was really looking forward for the feature to take any color on screen. Unless I find a workaround for this, I’m going to have to leave that feature out. <img src='http://blog.mindfock.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I hope someone finds this useful, as I know I do. <a title="John&#39;s Color Mixer" href="http://www.mindfock.com/experiments/ColorManipulation/ColorMixer.html">Here it is</a>.</p>
<p>On different note, this post was posted from <a title="Windows Live Writer" href="http://get.live.com/writer/overview" target="_blank">Windows Live Writer</a>. I’m liking it very much. I hope everything displays fine. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mindfock.com/color-mixer-flex-app-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RGB to Hexadecimal to HSV conversion in AS3</title>
		<link>http://blog.mindfock.com/rgb-to-hexadecimal-to-hsv-conversion-in-as3/</link>
		<comments>http://blog.mindfock.com/rgb-to-hexadecimal-to-hsv-conversion-in-as3/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 23:19:07 +0000</pubDate>
		<dc:creator>John del Rosario</dc:creator>
				<category><![CDATA[AS 3.0]]></category>
		<category><![CDATA[Programming and Development]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blog.mindfock.com/?p=65</guid>
		<description><![CDATA[In my previous post, I needed to do a lot of conversion between different representations of color. I think a post on how to convert color would be useful. private function RGBToHex(r:uint, g:uint, b:uint):uint{ var hex:uint = (r &#60;&#60; 16 &#124; g &#60;&#60; 8 &#124; b); return hex; } private function HexToRGB(hex:uint):Array{ var rgb:Array = [...]]]></description>
			<content:encoded><![CDATA[<p>In my previous post, I needed to do a lot of conversion between different representations of color. I think a post on how to convert color would be useful.</p>
<pre class="brush: jscript;">
private function RGBToHex(r:uint, g:uint, b:uint):uint{
    var hex:uint = (r &lt;&lt; 16 | g &lt;&lt; 8 | b);
    return hex;
}

private function HexToRGB(hex:uint):Array{
    var rgb:Array = [];

    var r:uint = hex &gt;&gt; 16 &amp; 0xFF;
    var g:uint = hex &gt;&gt; 8 &amp; 0xFF;
    var b:uint = hex &amp; 0xFF;

    rgb.push(r, g, b);
    return rgb;
}

private function RGBtoHSV(r:uint, g:uint, b:uint):Array{
    var max:uint = Math.max(r, g, b);
    var min:uint = Math.min(r, g, b);

    var hue:Number = 0;
    var saturation:Number = 0;
    var value:Number = 0;

    var hsv:Array = [];

    //get Hue
    if(max == min){
        hue = 0;
    }else if(max == r){
        hue = (60 * (g-b) / (max-min) + 360) % 360;
    }else if(max == g){
        hue = (60 * (b-r) / (max-min) + 120);
    }else if(max == b){
        hue = (60 * (r-g) / (max-min) + 240);
    }

    //get Value
    value = max;

    //get Saturation
    if(max == 0){
        saturation = 0;
    }else{
        saturation = (max - min) / max;
    }

    hsv = [Math.round(hue), Math.round(saturation * 100), Math.round(value / 255 * 100)];
    return hsv;

}

private function HSVtoRGB(h:Number, s:Number, v:Number):Array{
    var r:Number = 0;
    var g:Number = 0;
    var b:Number = 0;
    var rgb:Array = [];

    var tempS:Number = s / 100;
    var tempV:Number = v / 100;

    var hi:int = Math.floor(h/60) % 6;
    var f:Number = h/60 - Math.floor(h/60);
    var p:Number = (tempV * (1 - tempS));
    var q:Number = (tempV * (1 - f * tempS));
    var t:Number = (tempV * (1 - (1 - f) * tempS));

    switch(hi){
        case 0: r = tempV; g = t; b = p; break;
        case 1: r = q; g = tempV; b = p; break;
        case 2: r = p; g = tempV; b = t; break;
        case 3: r = p; g = q; b = tempV; break;
        case 4: r = t; g = p; b = tempV; break;
        case 5: r = tempV; g = p; b = q; break;
    }

    rgb = [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)];
    return rgb;
}
</pre>
<p>The code above requires and returns:</p>
<ul>
<li>RGB values between 0 to 255</li>
<li>Hexadecimal in RRGGBB format</li>
<li>Hue values between 0 to 360</li>
<li>Saturation and Value between 0 to 100</li>
</ul>
<p>Notice that the &#8220;middleman&#8221; is RGB. </p>
<p>And, just in case you only have the Hexadecimal string to work with, here is the code to convert that string into a usable decimal value.</p>
<pre class="brush: jscript;">
private function HexToDeci(hex:String):uint{
	var deci:uint = 0;
	var power:uint = hex.length - 1;
	for(var i:uint = 0; i &lt; hex.length; i++){
		var char:String = hex.charAt(i);
		if(parseInt(char) &gt;= 0 &amp;&amp;  parseInt(char) &lt;= 9){
			deci += parseInt(char) * Math.pow(16, power);
		}else{
			switch(char){
				case &quot;A&quot;: case &quot;a&quot;:	deci += 10 * Math.pow(16, power); break;
				case &quot;B&quot;: case &quot;b&quot;:	deci += 11 * Math.pow(16, power); break;
				case &quot;C&quot;: case &quot;c&quot;:	deci += 12 * Math.pow(16, power); break;
				case &quot;D&quot;: case &quot;d&quot;:	deci += 13 * Math.pow(16, power); break;
				case &quot;E&quot;: case &quot;e&quot;:	deci += 14 * Math.pow(16, power); break;
				case &quot;F&quot;: case &quot;f&quot;:	deci += 15 * Math.pow(16, power); break;
			}
		}

		power --;
	}
	return deci;
}
</pre>
<p>EDIT: I&#8217;ve just gathered that there is a much much simpler way to convert a Hexadecimal string into a usable number. I feel kind of stupid right now. <img src='http://blog.mindfock.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  </p>
<pre class="brush: jscript;">
private function HexToDeci(hex:String):uint{
        if (hex.substr(0, 2) != &quot;0x&quot;) {
                hex = &quot;0x&quot; + hex;
        }
        return new uint(hex);
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.mindfock.com/rgb-to-hexadecimal-to-hsv-conversion-in-as3/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Basic (twitchy) Motion Tracking</title>
		<link>http://blog.mindfock.com/basic-twitchy-motion-tracking/</link>
		<comments>http://blog.mindfock.com/basic-twitchy-motion-tracking/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 01:24:36 +0000</pubDate>
		<dc:creator>John del Rosario</dc:creator>
				<category><![CDATA[AS 3.0]]></category>
		<category><![CDATA[Experiments]]></category>

		<guid isPermaLink="false">http://blog.mindfock.com/?p=63</guid>
		<description><![CDATA[I&#8217;ve put on hold reading &#8220;Making Things Move&#8221;, as the remaining chapters were too much for my brain to handle. I decided to try out some cool webcam experiments. Augmented Reality is obviously out of my reach right now (but definitely in my sights), I decided to try out motion tracking. It is very twitchy [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve put on hold reading &#8220;Making Things Move&#8221;, as the remaining chapters were too much for my brain to handle. I decided to try out some cool webcam experiments. <a href="http://www.libspark.org/wiki/saqoosha/FLARToolKit/en" target="_blank">Augmented Reality</a> is obviously out of my reach right now (but definitely in my sights), I decided to try out motion tracking.</p>
<p>It is very twitchy and erratic, and it&#8217;s not very accurate neither, but it works.</p>
<p>Most of the concepts are explained in detail <a href="http://www.adobe.com/devnet/flash/articles/webcam_motion_07.html" target="_blank">here</a> and <a href="http://blog.soulwire.co.uk/flash/actionscript-3/webcam-motion-detection-tracking/" target="_blank">there</a>.</p>
<p>My next step would be to track something of a specific color (a marker). Shouldn&#8217;t be too hard &#8211; I hope.</p>
<p><a href="http://mindfock.com/experiments/MotionTracking/MotionTracking.swf" target="_self">CLICK TO OPEN MOVIE.</a> Press SPACE to toggle between display modes.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mindfock.com/basic-twitchy-motion-tracking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Metaballs update</title>
		<link>http://blog.mindfock.com/metaballs-update/</link>
		<comments>http://blog.mindfock.com/metaballs-update/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 01:32:46 +0000</pubDate>
		<dc:creator>John del Rosario</dc:creator>
				<category><![CDATA[AS 3.0]]></category>
		<category><![CDATA[Experiments]]></category>
		<category><![CDATA[Programming and Development]]></category>
		<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://blog.mindfock.com/?p=61</guid>
		<description><![CDATA[Still delving into metaballs. I implemented the suggestions in this page for optimizing, and the results are good. I could even animate it &#8211; just barely though, at ~15 FPS on my browser.  Again, most of this is just copy &#38; paste from the source provided in the tutorial. Metaballs &#8211; move your mouse around. [...]]]></description>
			<content:encoded><![CDATA[<p>Still delving into metaballs. I implemented the suggestions in this <a href="http://www.gamedev.net/reference/programming/features/isometa2d/page4.asp" target="_blank">page</a> for optimizing, and the results are good. I could even animate it &#8211; just barely though, at ~15 FPS on my browser. <img src='http://blog.mindfock.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Again, most of this is just copy &amp; paste from the <a href="http://www.gamedev.net/reference/programming/features/isometa2d/page5.asp" target="_blank">source</a> provided in the <a href="http://www.gamedev.net/reference/programming/features/isometa2d/" target="_blank">tutorial</a>.</p>
<p><a href="http://www.mindfock.com/experiments/Metaballs/bin/Metaballs-updated.html" target="_self">Metaballs</a> &#8211; move your mouse around.  Click to change the target ball.</p>
<p>Still looking for a more elegant solution for Flash. This is done on a very small stage size, with only 4 balls. I want to do a full screen version, with at least 10 balls moving around. <img src='http://blog.mindfock.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mindfock.com/metaballs-update/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Simple Metaballs</title>
		<link>http://blog.mindfock.com/simple-metaballs/</link>
		<comments>http://blog.mindfock.com/simple-metaballs/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 06:22:14 +0000</pubDate>
		<dc:creator>John del Rosario</dc:creator>
				<category><![CDATA[AS 3.0]]></category>
		<category><![CDATA[Experiments]]></category>
		<category><![CDATA[Programming and Development]]></category>

		<guid isPermaLink="false">http://blog.mindfock.com/?p=60</guid>
		<description><![CDATA[I stumbled upon Metaballs yesterday, and decided it would be cool to try it out. I&#8217;ve seen some very nice examples done in Flash, but no luck finding their sources. After Googling around, I found this tutorial on Metaballs and computer graphics. I ported the code into AS3, but the result is not very impressive. [...]]]></description>
			<content:encoded><![CDATA[<p>I stumbled upon <a href="http://en.wikipedia.org/wiki/Metaball" target="_blank">Metaballs</a> yesterday, and decided it would be cool to try it out. I&#8217;ve seen some very nice examples done in Flash, but no luck finding their sources.</p>
<p>After Googling around, I found this <a href="http://www.gamedev.net/reference/programming/features/isometa2d/page2.asp" target="_blank">tutorial</a> on Metaballs and computer graphics.</p>
<p>I ported the code into AS3, but the <a href="http://www.mindfock.com/experiments/Metaballs/bin/Metaballs.html">result</a> is not very impressive. It is very slow and processor heavy. If you click on the stage, the last Metaball added will be moved, and as you can see, it takes a bit of time to redraw them. I&#8217;m not even thinking about animating this. <img src='http://blog.mindfock.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p><a href="http://www.mindfock.com/experiments/Metaballs/bin/Metaballs-updated.html"><img src="http://www.mindfock.com/experiments/Metaballs/metaball.png" alt="Metaballs" width="320" height="240" /></a></p>
<p>I&#8217;m still looking for a more elegant solution for Flash, hopefully one that uses the Vector-based drawing API of Flash, and not BitmapData.</p>
<p>UPDATE: I have an updated version <a href="http://www.mindfock.com/experiments/Metaballs/bin/Metaballs-updated.html">here</a>. Also, I linked the image above to the updated one. For comparison, the old one is <a href="http://www.mindfock.com/experiments/Metaballs/bin/Metaballs.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mindfock.com/simple-metaballs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Nice source-codes from 25-lines AS contest</title>
		<link>http://blog.mindfock.com/nice-source-codes-from-25-lines-as-contest/</link>
		<comments>http://blog.mindfock.com/nice-source-codes-from-25-lines-as-contest/#comments</comments>
		<pubDate>Sat, 13 Dec 2008 08:12:08 +0000</pubDate>
		<dc:creator>John del Rosario</dc:creator>
				<category><![CDATA[AS 3.0]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Source Code]]></category>

		<guid isPermaLink="false">http://blog.mindfock.com/?p=57</guid>
		<description><![CDATA[I missed it by a few days, but the 25-Line ActionScript contest has just ended, and 12 finalists and their works have been put up. All of them are very impressive and cool. Check it out and vote for your favorite! I especially liked these: http://www.25lines.com/finalists/0812/073.swf http://www.25lines.com/finalists/0812/043.swf http://www.25lines.com/finalists/0812/037.swf http://www.25lines.com/finalists/0812/034.swf]]></description>
			<content:encoded><![CDATA[<p>I missed it by a few days, but the <a href="http://www.25lines.com/" target="_blank">25-Line ActionScript</a> contest has just ended, and 12 finalists and their works have been put up. All of them are very impressive and cool. <a href="http://www.25lines.com/?page_id=139" target="_blank">Check it out and vote</a> for your favorite!<br />
I especially liked these:<br />
<a href="http://www.25lines.com/finalists/0812/073.swf" target="_blank">http://www.25lines.com/finalists/0812/073.swf</a><br />
<a href="http://www.25lines.com/finalists/0812/043.swf" target="_blank">http://www.25lines.com/finalists/0812/043.swf</a><br />
<a href="http://www.25lines.com/finalists/0812/037.swf" target="_blank">http://www.25lines.com/finalists/0812/037.swf</a><br />
<a href="http://www.25lines.com/finalists/0812/034.swf" target="_blank">http://www.25lines.com/finalists/0812/034.swf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mindfock.com/nice-source-codes-from-25-lines-as-contest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActionSnippet &#8211; AS3 tips and tricks</title>
		<link>http://blog.mindfock.com/actionsnippet-as3-tips-and-tricks/</link>
		<comments>http://blog.mindfock.com/actionsnippet-as3-tips-and-tricks/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 00:42:52 +0000</pubDate>
		<dc:creator>John del Rosario</dc:creator>
				<category><![CDATA[AS 3.0]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://blog.mindfock.com/?p=56</guid>
		<description><![CDATA[I&#8217;ve bookmarked this site. You should too! There are some very useful and helpful tips in there. Like the latest one, as of this writing, about simplifying multiple method calls to a graphic (or any) object. From this: mc.graphics.lineStyle(0); mc.graphics.moveTo(10, 10); mc.graphics.lineTo(20,10); //... To this: with (mc.graphics) { lineStyle(0); moveTo(10, 10); lineTo(20,10); //... } Much [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve bookmarked this site. You should too! There are some very useful and helpful tips in there. Like the latest one, as of this writing, about simplifying multiple method calls to a graphic (or any) object.</p>
<p>From this:</p>
<pre class="brush: jscript;">
mc.graphics.lineStyle(0);
mc.graphics.moveTo(10, 10);
mc.graphics.lineTo(20,10);
//...
</pre>
<p>To this:</p>
<pre class="brush: jscript;">
with (mc.graphics) {
    lineStyle(0);
    moveTo(10, 10);
    lineTo(20,10);
    //...
}
</pre>
<p>Much more readable and easier to type. <img src='http://blog.mindfock.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://actionsnippet.com/" target="_blank">Check it out here and bookmark it.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mindfock.com/actionsnippet-as3-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nifty FPS/CPU monitor class</title>
		<link>http://blog.mindfock.com/nifty-fpscpu-monitor-class/</link>
		<comments>http://blog.mindfock.com/nifty-fpscpu-monitor-class/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 04:19:37 +0000</pubDate>
		<dc:creator>John del Rosario</dc:creator>
				<category><![CDATA[AS 3.0]]></category>
		<category><![CDATA[Programming and Development]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Classes]]></category>

		<guid isPermaLink="false">http://blog.mindfock.com/?p=51</guid>
		<description><![CDATA[I found this little class that displays the framerate of the current movie and the total memory usage of the Flash Player on your movie. It also shows the version of the player and the operating system you are on. It even has a graph. Very useful for monitoring your experiments or whatever.  Link. If [...]]]></description>
			<content:encoded><![CDATA[<p>I found this little class that displays the framerate of the current movie and the total memory usage of the Flash Player on your movie. It also shows the version of the player and the operating system you are on. It even has a graph. Very useful for monitoring your experiments or whatever. </p>
<p><a title="FPSMonitor class" href="http://www.flashfuck.it/2008/05/27/fpsmonitor-for-as3-and-flex-projects/#comment-68" target="_blank">Link.</a></p>
<p>If anyone knows something better, please let me know. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mindfock.com/nifty-fpscpu-monitor-class/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Papervision test</title>
		<link>http://blog.mindfock.com/papervision-test/</link>
		<comments>http://blog.mindfock.com/papervision-test/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 04:41:28 +0000</pubDate>
		<dc:creator>John del Rosario</dc:creator>
				<category><![CDATA[AS 3.0]]></category>
		<category><![CDATA[Experiments]]></category>
		<category><![CDATA[Programming and Development]]></category>
		<category><![CDATA[Papervision]]></category>

		<guid isPermaLink="false">http://blog.mindfock.com/?p=50</guid>
		<description><![CDATA[It&#8217;s been a while since I&#8217;ve posted here. Got caught up with exams and projects for school, and a lot of DotA with friends. Now sem-break is here, I  can now just sit around and be bored. I&#8217;ve been playing around with Papervsion lately, and have finally understood how to make it work, albeit only [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since I&#8217;ve posted here. Got caught up with exams and projects for school, and a lot of <a href="http://www.dota-allstars.com">DotA </a>with friends. Now sem-break is here, I  can now just sit around and be bored.</p>
<p>I&#8217;ve been playing around with Papervsion lately, and have finally understood how to make it work, albeit only lightly. Here is one of my first attempts with Papervision. It&#8217;s just a bunch of spheres, where clicking on one will move the camera to its position, while the camera focuses on the center.</p>
<p>It&#8217;s not much. I&#8217;m still working on it, but I just wanted to post something here. <a href="http://www.mindfock.com/experiments/SphereCamera/floatingparticles.html">Check it out</a>. <a href="http://get.adobe.com/flashplayer/">Flash Player 10 is required.</a></p>
<p><a href="http://www.mindfock.com/experiments/SphereCamera/floatingparticles.html"><img class="aligncenter" title="Particles in 3D" src="http://www.mindfock.com/experiments/SphereCamera/particles.jpg" alt="Floating particles" /></a></p>
<p>Update: I&#8217;ve added a depth of field effect. It&#8217;s not very &#8220;accurate&#8221;, but it&#8217;s a nice touch. I don&#8217;t know how to do it efficiently, so it might be CPU intensive.</p>
<p>Update 2: I&#8217;ve added random movement to the particles.</p>
<p>As always, the <a href="http://www.mindfock.com/experiments/SphereCamera/Main.as">source</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mindfock.com/papervision-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex Builder, Papervision and GTween &#8211; great way to get the ball rolling again</title>
		<link>http://blog.mindfock.com/flex-builder-papervision-and-gtween-great-way-to-get-the-ball-rolling-again/</link>
		<comments>http://blog.mindfock.com/flex-builder-papervision-and-gtween-great-way-to-get-the-ball-rolling-again/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 15:50:02 +0000</pubDate>
		<dc:creator>John del Rosario</dc:creator>
				<category><![CDATA[AS 3.0]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming and Development]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Experiments]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Engines]]></category>
		<category><![CDATA[FlexBuilder]]></category>
		<category><![CDATA[Papervision]]></category>

		<guid isPermaLink="false">http://blog.mindfock.com/?p=48</guid>
		<description><![CDATA[Greetings all, still haven&#8217;t fixed the PC, and no plans in buying a new one. But, being forced to use a Macbook with no games installed(damn DotA) and a slow connection, I managed to find some time to get back into Flash and ActionScript. I finally figured out how to setup external class libraries in [...]]]></description>
			<content:encoded><![CDATA[<p>Greetings all, still haven&#8217;t fixed the PC, and no plans in buying a new one. <img src='http://blog.mindfock.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  But, being forced to use a Macbook with no games installed(damn <a title="Defense of the Ancients" href="http://www.dota-allstars.com/">DotA</a>) and a slow connection, I managed to find some time to get back into Flash and ActionScript. <img src='http://blog.mindfock.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I finally figured out how to setup external class libraries in FlexBuilder, which took longer than I would have hoped. Now I can use Papervision3D, Away3D and have a central library for all other API&#8217;s and classes.  It&#8217;s not as enjoyable as FlashDevelop, but, it&#8217;s better than nothing.</p>
<p>I also started playing with PV3D, which is just awesome. Very fun to play around with, and I can&#8217;t wait to make something I could use for my eternally work-in-progress site.</p>
<p>And finally, there&#8217;s a new tweening engine on the block. It&#8217;s called <a title="GTween" href="http://www.gskinner.com/blog/archives/2008/08/gtween_a_new_tw.html">gTween</a> and it&#8217;s made by <a title="gSkinner" href="http://www.gskinner.com/blog">Grant Skinner</a>, so you know it&#8217;s great. Like TweenLite, it aims for speed and it&#8217;s also very lightweight. It&#8217;s still in beta, and not as powerful and feature-packed as TweenMax or other tweening engines. I haven&#8217;t tested it enough to choose it over TweenLite yet, but, I like it&#8217;s different approach to creating and managing (yep, you could manage, edit, reuse and even nest) tweens. Check it out <a title="gTween blog post" href="http://www.gskinner.com/blog/archives/2008/08/gtween_a_new_tw.html">here</a>.</p>
<p>And, yeah, I would post my little &#8220;experiment&#8221; with Papervision, but I can&#8217;t seem to extract/find the swf file. I even tried using the .as file as a Document class to a Flash file, but I still can&#8217;t double-click and play the movie. </p>
<p>I am also having trouble with FlexBuilder, whenever I Run/Play button to test a project, it often doesn&#8217;t show anything until several retries or not at all, but using the .as file as a Doc class to a Flash file, it plays fine. <img src='http://blog.mindfock.com/wp-includes/images/smilies/icon_mad.gif' alt=':x' class='wp-smiley' />  Any help would be very much appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mindfock.com/flex-builder-papervision-and-gtween-great-way-to-get-the-ball-rolling-again/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
