<?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>Flash &#124; Retrospective &#187; ActionScript 3</title>
	<atom:link href="http://www.yapiodesign.com/blog/category/actionscript-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yapiodesign.com/blog</link>
	<description>Flash tidbits, struggles, revelations, and teaching</description>
	<lastBuildDate>Thu, 13 May 2010 22:14:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flex Builder/Eclipse MXML/AS3 Source Formatter</title>
		<link>http://www.yapiodesign.com/blog/2009/02/07/flex-buildereclipse-mxmlas3-source-formatter/</link>
		<comments>http://www.yapiodesign.com/blog/2009/02/07/flex-buildereclipse-mxmlas3-source-formatter/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 19:18:56 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.yapiodesign.com/blog/?p=206</guid>
		<description><![CDATA[Way back in April, I had been looking for an Eclipse plugin to format MXML and came up blank.   Today I found one (thanks to Digital Media Minute) and it works great.  I just used to clean up some old code of mine, plus reformat some code I inherited from another developer.
Flex Formatter:   http://flexformatter.sourceforge.net/ Download [...]]]></description>
			<content:encoded><![CDATA[<p>Way back in <a href="http://www.yapiodesign.com/blog/2008/04/">April</a>, I had been looking for an Eclipse plugin to format MXML and came up blank.   Today I found one (thanks to <a href="http://www.digitalmediaminute.com/" target="_blank">Digital Media Minute</a>) and it works great.  I just used to clean up some old code of mine, plus reformat some code I inherited from another developer.</p>
<p><strong>Flex Formatter</strong>:   <a href="http://flexformatter.sourceforge.net/" target="_blank">http://flexformatter.sourceforge.net/</a> Download the .jar file and place in your Flex Builder or Eclipse plugins folder and restart FB or Eclipse.   There is a pretty extensive configuration panel that you can use to modify the formatting to your standards (Window &gt; Preferences &gt; Flex Formatter).  Additional information on the formatting options is here: <a href="http://sourceforge.net/docman/display_doc.php?docid=137421&amp;group_id=248408" target="_blank">http://sourceforge.net/docman/display_doc.php?docid=137421&amp;group_id=248408</a>.  You can also import/export your settings so you can share with your team.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yapiodesign.com/blog/2009/02/07/flex-buildereclipse-mxmlas3-source-formatter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FXG Complex Rectangle Experiment</title>
		<link>http://www.yapiodesign.com/blog/2009/01/28/fxg-complex-rectangle-experiment/</link>
		<comments>http://www.yapiodesign.com/blog/2009/01/28/fxg-complex-rectangle-experiment/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 21:53:12 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.yapiodesign.com/blog/?p=194</guid>
		<description><![CDATA[I&#8217;m a bit late to the party, but started really looking at Flex4 this week &#8230; FXG in particular.  I looked over the few basic FXG Shapes (Rect, Ellipsis, and Line) and thought it looked pretty limited.  I had used Degrafa on a few projects and really got used to the Round Rectangle Complex and [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a bit late to the party, but started really looking at Flex4 this week &#8230; <a href="http://opensource.adobe.com/wiki/display/flexsdk/FXG+1.0+Specification">FXG</a> in particular.  I looked over the few basic FXG Shapes (Rect, Ellipsis, and Line) and thought it looked pretty limited.  I had used <a href="http://degrafa.org/">Degrafa</a> on a few projects and really got used to the Round Rectangle Complex and the ability to set each rectangle corner with a different radius.   The FXG Rect has the ability to set corner radius, but its every corner and lacks the the control.   So&#8230; i figured with FXG the new standard for Adobe, I&#8217;d look at how hard it would be to create a custom FXG class.</p>
<p>Well, not too hard at all.   I started by looking at the Rect class in Flex, and then had to hunt around for simulate Cubic Beziers using the curveTo method (Thanks Senocular for that answer).</p>
<p>If you want to play around with it (requires Flash Player 10):  <a href="http://www.yapiodesign.com/files/blog/FXG_ComplexRect/srcview/index.html" target="_blank">View Source</a></p>
<p><object width="400" height="300" data="http://www.yapiodesign.com/files/blog/FXG_ComplexRect/FXG_Sample01.swf" type="application/x-shockwave-flash"><param name="src" value="http://www.yapiodesign.com/files/blog/FXG_ComplexRect/FXG_Sample01.swf" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.yapiodesign.com/blog/2009/01/28/fxg-complex-rectangle-experiment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AMFEXT on OSX? Anyone?</title>
		<link>http://www.yapiodesign.com/blog/2008/09/30/amfext-on-osx-anyone/</link>
		<comments>http://www.yapiodesign.com/blog/2008/09/30/amfext-on-osx-anyone/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 22:24:18 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.yapiodesign.com/blog/2008/09/30/amfext-on-osx-anyone/</guid>
		<description><![CDATA[Has anyone been able to get AMFEXT for OSX?    I read a few posts regarding AMFEXT on OSX, but it didnt help out too much.
AMFEXT is a PHP extension written in C that implements encoding and decoding of AMF and AMF3 messages for the PHP language. It has been based on some of the experience [...]]]></description>
			<content:encoded><![CDATA[<p>Has anyone been able to get <a href="http://www.teslacore.it/wiki/index.php?title=AMFEXT" target="_blank">AMFEXT</a> for OSX?    I read a few posts regarding AMFEXT on OSX, but it didnt help out too much.</p>
<blockquote><p>AMFEXT is a PHP extension written in C that implements encoding and decoding of AMF and AMF3 messages for the PHP language. It has been based on some of the experience gained with AMFPP, a native code for encoding and decoding C. The native encoding and decoding is extremely fast and memory efficient respect existing PHP implementation, and the flexibility has been provided using callbacks to the PHP code.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.yapiodesign.com/blog/2008/09/30/amfext-on-osx-anyone/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Lee&#8217;s  New Event Generator Extension for Flash CS3!</title>
		<link>http://www.yapiodesign.com/blog/2008/02/10/lees-new-event-generator-extension-for-flash-cs3/</link>
		<comments>http://www.yapiodesign.com/blog/2008/02/10/lees-new-event-generator-extension-for-flash-cs3/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 23:27:20 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.yapiodesign.com/blog/2008/02/10/lees-new-event-generator-extension-for-flash-cs3/</guid>
		<description><![CDATA[If you are new to ActionScript 3.0 in Flash CS3, check out Lee&#8217;s new Flash CS3 extension for writing the event code.   Very handy if you are starting out.  Based on initial response and Lee providing the source code, I&#8217;m sure we&#8217;ll see some great enchancements to this extension.
http://theflashblog.com/?p=331
]]></description>
			<content:encoded><![CDATA[<p>If you are new to ActionScript 3.0 in Flash CS3, check out <a href="http://theflashblog.com/?p=331" target="_blank">Lee&#8217;s new Flash CS3 extension</a> for writing the event code.   Very handy if you are starting out.  Based on initial response and Lee providing the source code, I&#8217;m sure we&#8217;ll see some great enchancements to this extension.</p>
<p>http://theflashblog.com/?p=331</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yapiodesign.com/blog/2008/02/10/lees-new-event-generator-extension-for-flash-cs3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3: Getting the path of the HTML hosting the SWF</title>
		<link>http://www.yapiodesign.com/blog/2007/11/02/as3-getting-the-path-of-the-html-hosting-the-swf/</link>
		<comments>http://www.yapiodesign.com/blog/2007/11/02/as3-getting-the-path-of-the-html-hosting-the-swf/#comments</comments>
		<pubDate>Fri, 02 Nov 2007 20:47:27 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>

		<guid isPermaLink="false">http://www.yapiodesign.com/blog/2007/11/02/as3-getting-the-path-of-the-html-hosting-the-swf/</guid>
		<description><![CDATA[I was trying to get the full path of the HTML that is hosting the SWF in ActionScript 3.  I found this post by Abdul Qabiz detailing how to use ExternalInterface to call JS and return the location.   In his post, Abdul also details how to get any of the query string variables as well.
Since [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to get the full path of the HTML that is hosting the SWF in ActionScript 3.  I found this <a target="_blank" href="http://www.abdulqabiz.com/blog/archives/macromedia_flex/how_to_get_url.php">post</a> by Abdul Qabiz detailing how to use ExternalInterface to call JS and return the location.   In his post, Abdul also details how to get any of the query string variables as well.</p>
<p>Since I&#8217;m sure I&#8217;ll use it again and don&#8217;t want to hunt it down, I&#8217;m posting it here for myself and well as everyone else who may find it useful.</p>
<p> [code]<br />
import flash.external.ExternalInterface;</p>
<p>var t:TextField = new TextField();<br />
t.autoSize = TextFieldAutoSize.LEFT;<br />
var full:String = ExternalInterface.call("window.location.href.toString");<br />
t.text = full;<br />
addChild(t);<br />
[/code]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yapiodesign.com/blog/2007/11/02/as3-getting-the-path-of-the-html-hosting-the-swf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash: Every increasing system memory</title>
		<link>http://www.yapiodesign.com/blog/2007/10/29/flash-every-increasing-system-memory/</link>
		<comments>http://www.yapiodesign.com/blog/2007/10/29/flash-every-increasing-system-memory/#comments</comments>
		<pubDate>Mon, 29 Oct 2007 22:48:57 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.yapiodesign.com/blog/2007/10/29/flash-every-increasing-system-memory/</guid>
		<description><![CDATA[A buddy of mine IM&#8217;d me last night and came across an interesting behaviour in Flash.  He had been trying to hunt down a memory leak in his Flash AS3 project and did a simple test using an Enter_Frame loop and traced out System.totalMemory.   His tests showed totalMemory going up just a little over time.  I [...]]]></description>
			<content:encoded><![CDATA[<p>A buddy of mine IM&#8217;d me last night and came across an interesting behaviour in Flash.  He had been trying to hunt down a memory leak in his Flash AS3 project and did a simple test using an Enter_Frame loop and traced out System.totalMemory.   His tests showed totalMemory going up just a little over time.  I tested it on my side and even testing it in Flex and got the same behaviour.   It&#8217;s very small, but I was curious why this was happening.</p>
<p>Here is the very simple sample code in Flash CS3 (you could repeat it in Flex as well):</p>
<p>[code]</p>
<p> addEventListener(Event.ENTER_FRAME, repeater);</p>
<p>function repeater(evt:Event) {<br />
 trace("System memory:"+System.totalMemory);<br />
}</p>
<p>[/code]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yapiodesign.com/blog/2007/10/29/flash-every-increasing-system-memory/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
