<?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>Is Good Stuff &#187; actionscript</title>
	<atom:link href="http://www.isgoodstuff.com/tag/actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.isgoodstuff.com</link>
	<description>For all the good things!</description>
	<lastBuildDate>Mon, 26 Jul 2010 01:38:24 +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>AS3 : Using FlashVars functions in a neat class &#8211; JadBox</title>
		<link>http://www.isgoodstuff.com/2010/06/20/as3-using-flashvars-functions-in-a-neat-class-jadbox/</link>
		<comments>http://www.isgoodstuff.com/2010/06/20/as3-using-flashvars-functions-in-a-neat-class-jadbox/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 02:43:16 +0000</pubDate>
		<dc:creator>Mr.GoodStuff</dc:creator>
				<category><![CDATA[Articles Submits]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Useful Scripts]]></category>
		<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://www.isgoodstuff.com/?p=563</guid>
		<description><![CDATA[I&#8217;m sure some of you might be looking for a class that can allow you to do reading in flashvars. You can still do it using the my previous way but, is much neater using classes. Well fortunately, there is such thing. It&#8217;s called JadBox Flashvar class. You can get the util class here. Here [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://www.isgoodstuff.com/wp-content/uploads/2009/09/ActionscriptIcon_400_thumb.png"><img class="alignleft size-full wp-image-485" style="margin-right: 5px;" title="ActionscriptIcon_400_thumb.png" src="http://www.isgoodstuff.com/wp-content/uploads/2009/09/ActionscriptIcon_400_thumb.png" alt="" width="124" height="124" /></a>I&#8217;m sure some of you might be looking for a class that can allow you to do reading in flashvars. You can still do it using the my previous way but, is much neater using classes. Well fortunately, there is such thing. It&#8217;s called JadBox Flashvar class. You can get the util class <a href="http://www.jadbox.com/2009/01/flashvars-for-everyone/">here</a>. Here an example how this class is used (remember to import the jadbox class into your main first before using it)</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> myFlashvar:<span style="color: #0066CC;">String</span> = FlashVars.<span style="color: #006600;">parameters</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;myFlashvar&quot;</span><span style="color: #66cc66;">&#93;</span>;</pre></div></div>

<p>or you can access the flashvar values this way.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> myFlashvar:<span style="color: #0066CC;">String</span> = FlashVars.<span style="color: #006600;">parameters</span>.<span style="color: #006600;">myFlashvar</span>;</pre></div></div>

<div style="text-align:left"><a style="text-align:left" href="javascript:toggleStartStop();PicLensLite.start({feedUrl:'http://www.isgoodstuff.com/wp-content/plugins/wp-piclens/mrss.php?id=563'});">Start Slide Show with PicLens Lite <img src="http://www.isgoodstuff.com/wp-content/plugins/wp-piclens/PicLensButton.png" alt="PicLens" width="16" height="12" border="0" align="top"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.isgoodstuff.com/2010/06/20/as3-using-flashvars-functions-in-a-neat-class-jadbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 : Using Flash Console Commandline</title>
		<link>http://www.isgoodstuff.com/2010/04/23/as3-using-flash-console-commandline/</link>
		<comments>http://www.isgoodstuff.com/2010/04/23/as3-using-flash-console-commandline/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 06:45:15 +0000</pubDate>
		<dc:creator>Mr.GoodStuff</dc:creator>
				<category><![CDATA[Articles Submits]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash games]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.isgoodstuff.com/?p=570</guid>
		<description><![CDATA[This post is short tutorial about using the command line feature in Flash Console Class as mentioned in previous post here. Aside from cool features like mouseOver Roller, inspect utility, measurement tool; the commandLine is one of the Flash Console greatest feature. To control an instance on Stage with the console. You must first understand what [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">This post is short tutorial about using the command line feature in Flash Console Class as mentioned in <a href="http://www.isgoodstuff.com/2009/12/04/flash-console/" target="_blank"><strong>previous post here</strong></a>. Aside from cool features like mouseOver Roller, inspect utility, measurement tool; the <strong>commandLine</strong> is one of the Flash Console greatest feature.</p>
<p>To control an instance on Stage with the console. You must first understand what is a <strong>Scope</strong>.</p>
<p style="text-align: center;"><a rel="lightbox" href="http://www.isgoodstuff.com/wp-content/uploads/2010/04/console_controls01.png"><img class="size-full wp-image-571  aligncenter" title="console_controls01" src="http://www.isgoodstuff.com/wp-content/uploads/2010/04/console_controls01.png" alt="" width="598" height="198" /></a></p>
<p>A Scope is basically, what Object the console is currently point as reference at. By default the Scope is always pointing to the Stage.</p>
<p><span id="more-570"></span></p>
<p style="text-align: center;"><a rel="lightbox" href="http://www.isgoodstuff.com/wp-content/uploads/2010/04/Screenshot2.jpg"><img class="size-full wp-image-572  aligncenter" title="Screenshot2" src="http://www.isgoodstuff.com/wp-content/uploads/2010/04/Screenshot2.jpg" alt="" width="548" height="391" /></a></p>
<ul>
<li>To control a particular instance on Stage. Use a /map command (insert this command in commandline)</li>
<li>Once the list of tree appear, click on the name of the instance within the console output. Notice the Scope (below the commandLine) now changes to point to the instance you just selected.</li>
<li>You can now either, store the instance into a variable in console. (use command /store &lt;variablename&gt;). You can re-scope the instance anytime, by typing in $&lt;variablename&gt;.</li>
<li>Or, access the instance property. You can also set the property with value too. This means runtime scripting on the fly.
<ul>
<li>Once, the instance scoped &#8211; you can modify the attribute easily, by typing in AS3 command just like you do when you script them.</li>
<li>You can practice the console command line below.</li>
</ul>
</li>
</ul>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.isgoodstuff.com/wp-content/uploads/2010/04/ConsoleTestSandBox.swf" /><embed type="application/x-shockwave-flash" width="550" height="400" src="http://www.isgoodstuff.com/wp-content/uploads/2010/04/ConsoleTestSandBox.swf"></embed></object></p>
<div style="text-align:left"><a style="text-align:left" href="javascript:toggleStartStop();PicLensLite.start({feedUrl:'http://www.isgoodstuff.com/wp-content/plugins/wp-piclens/mrss.php?id=570'});">Start Slide Show with PicLens Lite <img src="http://www.isgoodstuff.com/wp-content/plugins/wp-piclens/PicLensButton.png" alt="PicLens" width="16" height="12" border="0" align="top"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.isgoodstuff.com/2010/04/23/as3-using-flash-console-commandline/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>AS3 : Collision Detection Kit</title>
		<link>http://www.isgoodstuff.com/2010/03/30/as3-collision-detection-kit/</link>
		<comments>http://www.isgoodstuff.com/2010/03/30/as3-collision-detection-kit/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 00:55:15 +0000</pubDate>
		<dc:creator>Mr.GoodStuff</dc:creator>
				<category><![CDATA[Articles Submits]]></category>
		<category><![CDATA[Useful Scripts]]></category>
		<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://www.isgoodstuff.com/?p=565</guid>
		<description><![CDATA[Ever wonder, is there an easier way instead of making loops and check for every hitTest with all sorts of  shapes and sizes? Well, may I present to you &#8211; Collision Detection Kit! The Collision Detection Kit is a package of classes created for pixel-precise, shape-based collision detection for all display objects. It is written [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://www.isgoodstuff.com/wp-content/uploads/2009/09/ActionscriptIcon_400_thumb.png"><img class="alignleft size-full wp-image-485" style="margin-right: 8px;" title="ActionscriptIcon_400_thumb.png" src="http://www.isgoodstuff.com/wp-content/uploads/2009/09/ActionscriptIcon_400_thumb.png" alt="" width="124" height="124" /></a>Ever wonder, is there an easier way instead of making loops and check for every hitTest with all sorts of  shapes and sizes? Well, may I present to you &#8211; <a href="http://code.google.com/p/collisiondetectionkit/">Collision Detection Kit</a>!</p>
<div id="_mcePaste">
<p>The Collision Detection Kit is a package of classes created for pixel-precise, shape-based collision detection for all display objects. It is written in Actionscript 3.0 and meant for Flash Player version 9 and higher.</p>
<p>The Collision Detection Kit comes with several features to control how collisions are detected, and provides data for the user of the class so they can do something about the collision:</p>
</div>
<div id="_mcePaste">
<ul>
<li>Set an alpha threshold to ignore colors below the threshold.</li>
<li>Specify colors and color ranges to exclude from collision detection.</li>
<li>Receive an angle of collision for each collision. We&#8217;re not talking about bounding boxes here &#8211; the angle is calculated based on the shapes of the display objects at the site of the collision. Great for when you&#8217;re working with physics!</li>
<li>Receive the pixels that overlapped in a collision in stage coordinates. Combined with the returned angle, and your physics engine will have no problems traversing complicated shapes or performing off-axis rotation.</li>
<li>Takes transformations (scale, rotation, color transforms, etc.) of individual instances of your display objects into account.</li>
<li>Add items for collision detection regardless of their nesting.</li>
<li>You can have as many CollisionGroup and CollisionList instances as you want, allowing you to easily manage different interactions and behaviors.</li>
<li>Works with all display objects &#8211; MovieClips, Sprites, Bitmaps, TextFields, FLVs, and on and on!</li>
</ul>
</div>
<p><span id="more-565"></span></p>
<p>Check out CDK in action below!</p>
<p><object id="Opening" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="align" value="middle" /><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" /><param name="quality" value="high" /><param name="bgcolor" value="#ff6600" /><param name="src" value="http://www.isgoodstuff.com/wp-content/uploads/2010/03/Opening.swf" /><param name="name" value="Opening" /><param name="allowfullscreen" value="false" /><embed id="Opening" type="application/x-shockwave-flash" width="550" height="400" src="http://www.isgoodstuff.com/wp-content/uploads/2010/03/Opening.swf" name="Opening" bgcolor="#ff6600" quality="high" allowfullscreen="false" allowscriptaccess="sameDomain" align="middle"></embed></object></p>
<div style="text-align:left"><a style="text-align:left" href="javascript:toggleStartStop();PicLensLite.start({feedUrl:'http://www.isgoodstuff.com/wp-content/plugins/wp-piclens/mrss.php?id=565'});">Start Slide Show with PicLens Lite <img src="http://www.isgoodstuff.com/wp-content/plugins/wp-piclens/PicLensButton.png" alt="PicLens" width="16" height="12" border="0" align="top"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.isgoodstuff.com/2010/03/30/as3-collision-detection-kit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AS3 : Explosion Burst Class</title>
		<link>http://www.isgoodstuff.com/2010/02/11/as3-explosion-burst-class/</link>
		<comments>http://www.isgoodstuff.com/2010/02/11/as3-explosion-burst-class/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 09:27:11 +0000</pubDate>
		<dc:creator>Mr.GoodStuff</dc:creator>
				<category><![CDATA[Articles Submits]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Useful Scripts]]></category>

		<guid isPermaLink="false">http://www.isgoodstuff.com/?p=548</guid>
		<description><![CDATA[Developing games like Shooter in As3 can be boring without good explosion effects. Over the weekends, I ported a simple class ( from As2 )which does some randomized explosion movie-clips. This is to be used when there&#8217;s an explosion in the game. The class allows you to create explosion effect based on number of particles, [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://www.isgoodstuff.com/wp-content/uploads/2009/09/ActionscriptIcon_400_thumb.png"><img class="alignleft size-full wp-image-485" style="margin-right: 8px; margin-bottom: 5px;" title="ActionscriptIcon_400_thumb.png" src="http://www.isgoodstuff.com/wp-content/uploads/2009/09/ActionscriptIcon_400_thumb.png" alt="" width="124" height="124" /></a>Developing games like Shooter in As3 can be boring without good explosion effects. Over the weekends, I ported a simple class ( from As2 )which does some randomized explosion movie-clips.</p>
<p>This is to be used when there&#8217;s an explosion in the game. The class allows you to create explosion effect based on number of particles, size of distance and alpha. All you need is to instantiate it and pass in the variables needed. See sample below.</p>
<div align="center">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.isgoodstuff.com/wp-content/uploads/2010/02/explosionSystemCS3.swf" /><embed type="application/x-shockwave-flash" width="500" height="300" src="http://www.isgoodstuff.com/wp-content/uploads/2010/02/explosionSystemCS3.swf"></embed></object></div>
<p><span id="more-548"></span></p>
<p>Download the <a href="http://www.isgoodstuff.com/wp-content/files/explosionBurst.zip" target="_blank">source here</a>, when you use make sure you have to use the movie-clip from the library folder as well.</p>
<div style="text-align:left"><a style="text-align:left" href="javascript:toggleStartStop();PicLensLite.start({feedUrl:'http://www.isgoodstuff.com/wp-content/plugins/wp-piclens/mrss.php?id=548'});">Start Slide Show with PicLens Lite <img src="http://www.isgoodstuff.com/wp-content/plugins/wp-piclens/PicLensButton.png" alt="PicLens" width="16" height="12" border="0" align="top"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.isgoodstuff.com/2010/02/11/as3-explosion-burst-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 : Flash-Console</title>
		<link>http://www.isgoodstuff.com/2009/12/04/flash-console/</link>
		<comments>http://www.isgoodstuff.com/2009/12/04/flash-console/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 01:59:50 +0000</pubDate>
		<dc:creator>Mr.GoodStuff</dc:creator>
				<category><![CDATA[Articles Submits]]></category>
		<category><![CDATA[Useful Scripts]]></category>
		<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://www.isgoodstuff.com/?p=501</guid>
		<description><![CDATA[Every wonder that, there&#8217;s something to display your run-time variables smoothly without using the laggy trace. Not to say trace command is useless, but at times is much less cpu intensive to debug values especially on enterFrame run time to an on screen textbox instead of using trace. But, lately I stumbled upon a good [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://www.isgoodstuff.com/wp-content/uploads/2009/12/console_controls01.png"><img src="http://www.isgoodstuff.com/wp-content/uploads/2009/12/console_controls01.png" alt="console_controls01" title="console_controls01" width="598" height="198" class="alignleft size-full wp-image-523" /></a></p>
<p></br></p>
<p>Every wonder that, there&#8217;s something to display your run-time variables smoothly without using the laggy trace. Not to say trace command is useless, but at times is much less cpu intensive to debug values especially on enterFrame run time to an on screen textbox instead of using trace.</p>
<p>But, lately I stumbled upon a good console interface like debugger called Flash Console in a form of as3 class package! </p>
<p><span id="more-501"></span></p>
<p>Aside from the being able to watch your values real time , it also came with various handy feature such as.</p>
<ul>
<li>Command line</li>
<li>Display info/properties checker (known as Roller)</li>
<li>RunTime Measurement Ruler</li>
</ul>
<p>All you need to do is to import the class into your main.as and attach C (the singleton class) method startOnStage.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">atticmedia</span>.<span style="color: #006600;">console</span>.<span style="color: #006600;">C</span>;
C.<span style="color: #006600;">startOnStage</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>, <span style="color: #ff0000;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// To debug a value</span>
C.<span style="color: #006600;">info</span><span style="color: #66cc66;">&#40;</span>variableName<span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>If you are interested click <a href="http://code.google.com/p/flash-console/">here to get it </a>.</p>
<p></br></p>
<div style="text-align:left"><a style="text-align:left" href="javascript:toggleStartStop();PicLensLite.start({feedUrl:'http://www.isgoodstuff.com/wp-content/plugins/wp-piclens/mrss.php?id=501'});">Start Slide Show with PicLens Lite <img src="http://www.isgoodstuff.com/wp-content/plugins/wp-piclens/PicLensButton.png" alt="PicLens" width="16" height="12" border="0" align="top"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.isgoodstuff.com/2009/12/04/flash-console/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
