<?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>Architect, Engineer, Tech Enthusiast - Hasan Otuome &#187; Flash</title>
	<atom:link href="http://technophi.com/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://technophi.com</link>
	<description>personal weblog of a tech addict</description>
	<lastBuildDate>Wed, 23 Nov 2011 18:04:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Flash Builder 4 &#8211; Java Heap Space Issues</title>
		<link>http://technophi.com/2010/08/12/flash-builder-4-java-heap-space-issues/</link>
		<comments>http://technophi.com/2010/08/12/flash-builder-4-java-heap-space-issues/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 01:10:51 +0000</pubDate>
		<dc:creator>Hasan Otuome</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://technophi.com/?p=528</guid>
		<description><![CDATA[If you ever experience a message like &#8220;Error: Java Heap Space&#8221; when building, cleaning or generating a bin-release for a project in Flash Builder 4, try the following as a remedy: 1. Open the following files: a) /install_dir/sdks/3.5.0/bin/jvm.config b) /install_dir/sdks/4.0.0/bin/jvm.config 2. Locate the following line found under # Arguments to VM: java.args=-Xmx384m -Dsun.io.useCanonCaches=false 3. Increase [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever experience a message like &#8220;Error: Java Heap Space&#8221; when building, cleaning or generating a bin-release for a project in Flash Builder 4, try the following as a remedy:</p>
<p>1. Open the following files:<br />
	a) /install_dir/sdks/3.5.0/bin/jvm.config<br />
	b) /install_dir/sdks/4.0.0/bin/jvm.config</p>
<p>2. Locate the following line found under # Arguments to VM:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">java.args=-Xmx384m -Dsun.io.useCanonCaches=<span style="color: #c20cb9; font-weight: bold;">false</span></pre></div></div>

<p>3. Increase the memory size to a larger value like the following example:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">java.args=-Xmx512m -Dsun.io.useCanonCaches=<span style="color: #c20cb9; font-weight: bold;">false</span></pre></div></div>

<p>The max you set this value to is determined by your available memory along with some workflow considerations but this should alleviate your heap issues and smooth out Flash Builder compilations considerably&#8230;</p>
<div style="float: right; padding: 3px;"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="Flash Builder 4 &#8211; Java Heap Space Issues" data-url="http://technophi.com/2010/08/12/flash-builder-4-java-heap-space-issues/" data-via="bufferapp" data-count="none">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script></div><div id="tweetbutton528" class="tw_button" style="padding: 3px;float:right;margin-left:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fj.mp%2FiGWSE1&amp;via=heroizm&amp;text=Flash%20Builder%204%20%26%238211%3B%20Java%20Heap%20Space%20Issues&amp;related=heroizm&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Ftechnophi.com%2F2010%2F08%2F12%2Fflash-builder-4-java-heap-space-issues%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://technophi.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://technophi.com/2010/08/12/flash-builder-4-java-heap-space-issues/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Upgrading Flash Builder</title>
		<link>http://technophi.com/2010/03/01/upgrading-flash-builder/</link>
		<comments>http://technophi.com/2010/03/01/upgrading-flash-builder/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 04:46:56 +0000</pubDate>
		<dc:creator>Hasan Otuome</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://technophi.com/?p=438</guid>
		<description><![CDATA[Whether you&#8217;re upgrading because you&#8217;re using BETA versions that change rather frequently or upgrading to the next major release, you don&#8217;t want to lose all your hard work invested in configuring your setup. Here&#8217;s how I handle it and hopefully it&#8217;s useful to you. If you have other cool ways to persist workflows between upgrades, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://technophi.com/wp-content/uploads/ol_upgrade_flashbuilder.png"><img src="http://technophi.com/wp-content/uploads/ol_upgrade_flashbuilder.png" alt="" title="upgrading flashbuilder" width="603" height="351" class="aligncenter size-full wp-image-440" /></a></p>
<p>Whether you&#8217;re upgrading because you&#8217;re using BETA versions that change rather frequently or upgrading to the next major release, you don&#8217;t want to lose all your hard work invested in configuring your setup. Here&#8217;s how I handle it and hopefully it&#8217;s useful to you. If you have other cool ways to persist workflows between upgrades, please share them.</p>
<h4>Workspaces</h4>
<p>I&#8217;ve created a <strong>workspaces</strong> folder in a custom directory on my HD where I store all the workspaces I like to use with Eclipse-based IDEs. I separate them by IDE and then by purpose. So for Flash Builder, my workspace hierarchy is like this:</p>
<pre>
/workspaces
  /_fb4
    /air
    /as
    /flash
    /flex
</pre>
<p>This is where all of my IDE preferences and workbench layout settings are stored. Centralizing them here allows me greater flexibility when upgrading since I never have to worry about any changes to installation procedures overwriting my custom settings. Nevertheless, I backup my workspaces prior to upgrading and since their small text files it only takes a second to archive.</p>
<h4>Documents Directory</h4>
<p>On OSX, the Flash Builder installer creates an <strong>Adobe Flash Builder 4</strong> directory in your Documents directory. The installation instructions advise you to uninstall any previous versions of Flash Builder before installing the new version. Following this advice will delete this folder if it already exists. So, be sure to back this up prior to uninstalling your current version. That way you can cherry pick anything you need after installing the new version.</p>
<h4>Applications Directory</h4>
<p>You should also backup up your program installation in your Applications directory for the same reasons as with the folder in your Documents directory. If you&#8217;ve heavily modified your install with additional plugins, etc., this is vital!</p>
<h4>Plugin Restoration</h4>
<p>Where are all my cool plugins? They got wiped during the upgrade process but if you followed my advice and backed everything up, you&#8217;ll be back up and running in a minute or two. There are generally (2) locations where plugin info is stored for Flash Builder. If you pull the data from your backups and place them in the following locations, you should have full access to all your plugins post-upgrade (provided they still work with the latest release) </p>
<p>#1 &#8211; /Documents/Adobe Flash Builder 4/.metadata/.plugins<br />
#2 &#8211; /Applications/Adobe Flash Builder 4/plugins</p>
<p>Although this post is slanted more towards upgrading on OSX, it should be similar for other operating systems. Any issues, let me know&#8230;</p>
<div style="float: right; padding: 3px;"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="Upgrading Flash Builder" data-url="http://technophi.com/2010/03/01/upgrading-flash-builder/" data-via="bufferapp" data-count="none">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script></div><div id="tweetbutton438" class="tw_button" style="padding: 3px;float:right;margin-left:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fj.mp%2FlJQBCH&amp;via=heroizm&amp;text=Upgrading%20Flash%20Builder&amp;related=heroizm&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Ftechnophi.com%2F2010%2F03%2F01%2Fupgrading-flash-builder%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://technophi.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://technophi.com/2010/03/01/upgrading-flash-builder/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Introducing Opticon Runtime Debugger</title>
		<link>http://technophi.com/2010/01/09/introducing-opticon-runtime-debugger/</link>
		<comments>http://technophi.com/2010/01/09/introducing-opticon-runtime-debugger/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 12:49:48 +0000</pubDate>
		<dc:creator>Hasan Otuome</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://technophi.com/?p=340</guid>
		<description><![CDATA[Opticon is a runtime debugging console useful for Flash/Flex developers. It&#8217;s simple to start using in your projects. To use, follow these steps after installing the application: 1. Launch the application 2. Click the Settings button 3. Click on the SWC icon to add the OpticonConnector to your project&#8217;s build path 4. Replace your trace [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://technophi.com/wp-content/uploads/ol_opticon_adm_banner_495x250.png" alt="ol_opticon_adm_banner_495x250" title="ol_opticon_adm_banner_495x250" width="495" height="250" class="aligncenter size-full wp-image-348" /></p>
<p>Opticon is a runtime debugging console useful for Flash/Flex developers. It&#8217;s simple to start using in your projects. To use, follow these steps after installing the application:</p>
<p>1. Launch the application<br />
2. Click the Settings button<br />
3. Click on the SWC icon to add the OpticonConnector to your project&#8217;s build path<br />
4. Replace your trace statements with one of the following:</p>
<ul style="list-style-type:none">
<li> a) <font color="green">Opticon.log(&#8216;message to display&#8217;)</font></li>
<li> b) <font color="darkorange">Opticon.warning(&#8216;warning to display&#8217;)</font></li>
<li> c) <font color="#cc0000">Opticon.error(&#8216;error to display&#8217;)</font></li>
</ul>
<p>Download available from:<br />
<a href="http://www.adobe.com/cfusion/marketplace/index.cfm?event=marketplace.offering&#038;offeringid=17303">Adobe AIR Marketplace</a><br />
<a href="http://opticon.riaforge.org">RIAForge</a></p>
<p><strong><em>Some might ask why?</strong></em> This idea first appeared when AIR was Apollo and was born out of necessity (I always forget some trace statements during cleanup). Could I use global find and replace? Sure, when I&#8217;m developing with Eclipse-based IDEs but that&#8217;s not always the case.</p>
<p><strong><em>Why not use one of the other great tools out there?</strong></em> After 2 years in the shadows, it&#8217;s ready to be shared with the world and, because I have a vision of where I&#8217;d like to take this so hopefully you&#8217;ll come along for the ride.</p>
<p><strong><em>Where can I submit any bugs I find?</strong></em> I&#8217;ll have the bug reporting mechanism in place shortly. You&#8217;ll be notified via the application or you can subscribe to this post to be notified once that goes live.</p>
<p><strong><em>My version doesn&#8217;t include the connector. What can I do?</strong></em> This happened as a result of a build error. Visit this link to download the connector <a href="http://labs.otuome.com/get/OpticonConnector">Get Opticon Connector</a>. </p>
<div style="float: right; padding: 3px;"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="Introducing Opticon Runtime Debugger" data-url="http://technophi.com/2010/01/09/introducing-opticon-runtime-debugger/" data-via="bufferapp" data-count="none">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script></div><div id="tweetbutton340" class="tw_button" style="padding: 3px;float:right;margin-left:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fj.mp%2FirJWU8&amp;via=heroizm&amp;text=Introducing%20Opticon%20Runtime%20Debugger&amp;related=heroizm&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Ftechnophi.com%2F2010%2F01%2F09%2Fintroducing-opticon-runtime-debugger%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://technophi.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://technophi.com/2010/01/09/introducing-opticon-runtime-debugger/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>ZamfBrowser &#8211; ZendAMF Service Browser</title>
		<link>http://technophi.com/2009/11/13/zamfbrowser-zendamf-service-browser/</link>
		<comments>http://technophi.com/2009/11/13/zamfbrowser-zendamf-service-browser/#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>Hasan Otuome</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[OSX Server]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ZendAmf]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<a href="http://www.zamfbrowser.org"><img src="http://www.zamfbrowser.org/images/zamfbrowser.png"/></a>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.zamfbrowser.org"><img src="http://www.zamfbrowser.org/images/zamfbrowser.png"/></a></p>
<p>One of my colleagues at <a href="http://almerblank.com"><b>Almer/Blank</b></a>, Omar Gonzalez, just released a very promising project into the open source community today, <a href="http://www.zamfbrowser.org/"><b>ZamfBrowser</b></a>. This AIR application is a lifeline for all the developers who have embraced <a href="http://framework.zend.com/manual/en/zend.amf.html"><b>ZendAMF</b></a> since its release yet have longed for that familiar service browser paradigm we grew used to with AMFPHP. Well, wait no longer. ZamfBrowser performs server introspection to give you access to your ZendAMF services and it even features test retention by remembering the last arguments used for method testing between sessions. This is definitely an application worth a look if you plan on doing any AMF development.</p>
<div style="float: right; padding: 3px;"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="ZamfBrowser &#8211; ZendAMF Service Browser" data-url="http://technophi.com/2009/11/13/zamfbrowser-zendamf-service-browser/" data-via="bufferapp" data-count="none">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script></div><div id="tweetbutton106" class="tw_button" style="padding: 3px;float:right;margin-left:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fj.mp%2Fk9KkoC&amp;via=heroizm&amp;text=ZamfBrowser%20%26%238211%3B%20ZendAMF%20Service%20Browser&amp;related=heroizm&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Ftechnophi.com%2F2009%2F11%2F13%2Fzamfbrowser-zendamf-service-browser%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://technophi.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://technophi.com/2009/11/13/zamfbrowser-zendamf-service-browser/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Cool Features in Flash Builder 4</title>
		<link>http://technophi.com/2009/11/04/cool-features-in-flash-builder-4/</link>
		<comments>http://technophi.com/2009/11/04/cool-features-in-flash-builder-4/#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>Hasan Otuome</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<img src="/files/images/flexrocks_flashbuilder_contextual_help.png"/>

I was recently working on a project in the latest beta release of the forthcoming Flash Builder 4 and wanted to point out the new contextual help feature. What's nice about this feature is that I had just added the highlighted event to the event class and was busy implementing it in a view class and because of FB4's new code-hinting muscle I was able to see everything that I had documented in the event class concerning the event without having to have the event class open. 
]]></description>
			<content:encoded><![CDATA[<p><img src="http://redmachine.net/media/images/flexrocks_flashbuilder_contextual_help.png"/></p>
<p>I was recently working on a project in the latest beta release of the forthcoming Flash Builder 4 and wanted to point out the new contextual help feature. What&#8217;s nice about this feature is that I had just added the highlighted event to the event class and was busy implementing it in a view class and because of FB4&#8242;s new code-hinting muscle I was able to see everything that I had documented in the event class concerning the event without having to have the event class open. </p>
<p>This is definitely a much appreciated usability enhancement. Now, if we could just get editable code (not file) templates (think FDT, Zend Studio, etc), FB4 would be that much closer to being ready for prime time&#8230;:D</p>
<div style="float: right; padding: 3px;"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="Cool Features in Flash Builder 4" data-url="http://technophi.com/2009/11/04/cool-features-in-flash-builder-4/" data-via="bufferapp" data-count="none">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script></div><div id="tweetbutton104" class="tw_button" style="padding: 3px;float:right;margin-left:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fj.mp%2FktGLUR&amp;via=heroizm&amp;text=Cool%20Features%20in%20Flash%20Builder%204&amp;related=heroizm&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Ftechnophi.com%2F2009%2F11%2F04%2Fcool-features-in-flash-builder-4%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://technophi.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://technophi.com/2009/11/04/cool-features-in-flash-builder-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Stepping Up Its Game</title>
		<link>http://technophi.com/2008/05/15/adobe-stepping-up-its-gam/</link>
		<comments>http://technophi.com/2008/05/15/adobe-stepping-up-its-gam/#comments</comments>
		<pubDate>Thu, 15 May 2008 17:02:27 +0000</pubDate>
		<dc:creator>Hasan Otuome</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flash Platform]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[The next version of Flash Player will offer a lot of enhancements to the user experience and it seems Adobe listened to the developer community on a few of the features. Here's one that is sure to be huge:

<cite>
]]></description>
			<content:encoded><![CDATA[<p>The next version of Flash Player will offer a lot of enhancements to the user experience and it seems Adobe listened to the developer community on a few of the features. Here&#8217;s one that is sure to be huge:</p>
<p><cite><br />
<i>&#8220;File Reference runtime access — Bring users into the experience by letting them load files into your RIA.  You can work with the content at runtime and even save it back when you are done through the browse dialog box.  Files can be accessed as a byteArray or text using a convenient API in ActionScript without round-tripping to the server.  You no longer have to know a server language or have access to a server to load or save files at runtime.&#8221;</i><br />
</cite></p>
<p>Don&#8217;t even wait on player version saturation to start noticing the explosion of web-based Flash apps taking advantage of this feature. You can review all of the <a her="http://labs.adobe.com/technologies/flashplayer10/releasenotes.html"><b>release notes</b></a> and even <a href="http://labs.adobe.com/technologies/flashplayer10/"><b>download the beta</b></a> at Adobe Labs&#8230;.:D</p>
<div style="float: right; padding: 3px;"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="Adobe Stepping Up Its Game" data-url="http://technophi.com/2008/05/15/adobe-stepping-up-its-gam/" data-via="bufferapp" data-count="none">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script></div><div id="tweetbutton88" class="tw_button" style="padding: 3px;float:right;margin-left:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fj.mp%2FiDVAgN&amp;via=heroizm&amp;text=Adobe%20Stepping%20Up%20Its%20Game&amp;related=heroizm&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Ftechnophi.com%2F2008%2F05%2F15%2Fadobe-stepping-up-its-gam%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://technophi.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://technophi.com/2008/05/15/adobe-stepping-up-its-gam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Some &#8230;rest</title>
		<link>http://technophi.com/2008/05/08/getting-some-rest/</link>
		<comments>http://technophi.com/2008/05/08/getting-some-rest/#comments</comments>
		<pubDate>Thu, 08 May 2008 17:54:34 +0000</pubDate>
		<dc:creator>Hasan Otuome</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash Platform]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Thought I'd blog about this since I haven't seen this posted before and it comes up from time to time. With AS3, we got access to a new function parameter, the <b>...rest</b> parameter, which allows us to pass in a dynamic list of parameters for usage by our functions. Here's an example:

[code]
// Method in SomeClass
public function someMethod(...rest):void
{
    for (var i:uint=0; i < rest.length; i++)
    {
        trace(rest[i]);
    }
}
[/code]

That will trace out each ...rest parameter that you pass to the method call like so:

[code]
// Usage from SomeOtherClass
]]></description>
			<content:encoded><![CDATA[<p>Thought I&#8217;d blog about this since I haven&#8217;t seen this posted before and it comes up from time to time. With AS3, we got access to a new function parameter, the <b>&#8230;rest</b> parameter, which allows us to pass in a dynamic list of parameters for usage by our functions. Here&#8217;s an example:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900; font-style: italic;">// Method in SomeClass</span>
<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> someMethod<span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">...</span>rest<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
    <span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">uint</span>=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span> i <span style="color: #000066; font-weight: bold;">&lt;</span> rest<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        <span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span>rest<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>That will trace out each &#8230;rest parameter that you pass to the method call like so:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900; font-style: italic;">// Usage from SomeOtherClass</span>
<span style="color: #6699cc; font-weight: bold;">var</span> sc<span style="color: #000066; font-weight: bold;">:</span>SomeClass = <span style="color: #0033ff; font-weight: bold;">new</span> SomeClass<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
      sc<span style="color: #000066; font-weight: bold;">.</span>someMethod<span style="color: #000000;">&#40;</span>arg1<span style="color: #000066; font-weight: bold;">,</span> arg2<span style="color: #000066; font-weight: bold;">,</span> arg3<span style="color: #000066; font-weight: bold;">,</span> arg4<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<p>This allows a lot of flexibility because those arguments can be simple (String, Number, etc) or complex (Array, Object, etc). But, what if <b>someMethod()</b> is part of SWC library that you may or may not have access to and you want to capture those &#8230;rest arguments and pass them to SWC class?</p>
<p>Well, the easiest way that I&#8217;ve found is to use the built-in arguments object in your local code and then pass that to the SWC class that&#8217;s expecting the &#8230;rest array. Here&#8217;s what I mean:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900; font-style: italic;">// Usage from LocalClass</span>
<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> someMethod<span style="color: #000000;">&#40;</span>arg1<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">arguments</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Object</span>=<span style="color: #0033ff; font-weight: bold;">null</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
    <span style="color: #6699cc; font-weight: bold;">var</span> sc<span style="color: #000066; font-weight: bold;">:</span>SomeClass = <span style="color: #0033ff; font-weight: bold;">new</span> SomeClass<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
          sc<span style="color: #000066; font-weight: bold;">.</span>someMethod<span style="color: #000000;">&#40;</span><span style="color: #004993;">arguments</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>This way you can expose <b>LocalClass.someMethod()</b>, accept the concrete parameters that it expects and pass on the dynamic parameters that <b>SomeClass.someMethod()</b> expects.</p>
<p> <img src='http://technophi.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div style="float: right; padding: 3px;"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="Getting Some &#8230;rest" data-url="http://technophi.com/2008/05/08/getting-some-rest/" data-via="bufferapp" data-count="none">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script></div><div id="tweetbutton87" class="tw_button" style="padding: 3px;float:right;margin-left:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fj.mp%2FkxXeWU&amp;via=heroizm&amp;text=Getting%20Some%20%26%238230%3Brest&amp;related=heroizm&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Ftechnophi.com%2F2008%2F05%2F08%2Fgetting-some-rest%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://technophi.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://technophi.com/2008/05/08/getting-some-rest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TextMate + Flex SDK + Ant</title>
		<link>http://technophi.com/2008/03/19/textmate-flexsdk-ant/</link>
		<comments>http://technophi.com/2008/03/19/textmate-flexsdk-ant/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 03:41:07 +0000</pubDate>
		<dc:creator>Hasan Otuome</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Flash Platform]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[This is a pretty sweet combination. <a href="http://macromates.com"><b>TextMate</b></a> has been my favorite text editor on the Mac for a while although I must confess that I hadn't been taking advantage of all it's features. Through <b>"bundles"</b>, you can transform TextMate from an ordinary editor into a complete development environment.

]]></description>
			<content:encoded><![CDATA[<p>This is a pretty sweet combination. <a href="http://macromates.com"><b>TextMate</b></a> has been my favorite text editor on the Mac for a while although I must confess that I hadn&#8217;t been taking advantage of all it&#8217;s features. Through <b>&#8220;bundles&#8221;</b>, you can transform TextMate from an ordinary editor into a complete development environment.</p>
<p>Case in point, I recently discovered the stock <a href="http://macromates.com/svn/Bundles/trunk/Bundles/"><b>Subversion</b></a> bundle and checked out the <a href="http://macromates.com/svn/Bundles/trunk/Review/Bundles/"><b>Ant, AS3 and Flex</b></a> bundles and now have a viable alternative to Eclipse + Subclipse + FB plugin for those days when Eclipse feels too sluggish.</p>
<p>To add the extra bundles, create a path for them, switch to that new directory then do a SVN checkout:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Application\ Suppport
$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> TextMate
$ <span style="color: #7a0874; font-weight: bold;">cd</span> TextMate
$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> Bundles
$ <span style="color: #7a0874; font-weight: bold;">cd</span> Bundles
$ <span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">co</span> http:<span style="color: #000000; font-weight: bold;">//</span>macromates.com<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>Bundles<span style="color: #000000; font-weight: bold;">/</span>trunk<span style="color: #000000; font-weight: bold;">/</span>Review<span style="color: #000000; font-weight: bold;">/</span>Bundles<span style="color: #000000; font-weight: bold;">/</span><span style="color: #666666; font-style: italic;">#bundleName#.tmbundle</span></pre></div></div>

<p>Where #bundleName# is the one you want to check out. If you don&#8217;t specify a bundle, you&#8217;ll check out the whole lot. Also, as an alternative, you can grab the <a href="http://www.entropy.ch/software/applescript/"><b>Open Terminal</b></a> script which lets you open a terminal from Finder after you&#8217;ve created the paths the GUI way. In that case, you just have to run the checkout command.</p>
<p>Happy coding!!</p>
<div style="float: right; padding: 3px;"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="TextMate + Flex SDK + Ant" data-url="http://technophi.com/2008/03/19/textmate-flexsdk-ant/" data-via="bufferapp" data-count="none">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script></div><div id="tweetbutton82" class="tw_button" style="padding: 3px;float:right;margin-left:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fj.mp%2FmIOeQV&amp;via=heroizm&amp;text=TextMate%20%2B%20Flex%20SDK%20%2B%20Ant&amp;related=heroizm&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Ftechnophi.com%2F2008%2F03%2F19%2Ftextmate-flexsdk-ant%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://technophi.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://technophi.com/2008/03/19/textmate-flexsdk-ant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FITC Hollywood 2007 &#8211; Day 1</title>
		<link>http://technophi.com/2007/10/22/fitc-hollywood-2007-day-1/</link>
		<comments>http://technophi.com/2007/10/22/fitc-hollywood-2007-day-1/#comments</comments>
		<pubDate>Tue, 23 Oct 2007 02:28:30 +0000</pubDate>
		<dc:creator>Hasan Otuome</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flash Platform]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[There were a lot of cool presentations during the 1st-half of the day. Here's a rundown of the ones that received good reviews:

- AS2 to AS3 Migration (Stacey Mulcahy)
- AS3 Events: The Whole Story (Jacob Bullock)
- Motion XML (<a href='http://www.motionxml.com/' target='blank'>Chris Charlton/Omar Gonzales</a>)
- Think You Know What Red5 Is? Think Again! (Chris Allen)
- Bed Rock Revisited (Sandro Corsaro)

]]></description>
			<content:encoded><![CDATA[<p>There were a lot of cool presentations during the 1st-half of the day. Here&#8217;s a rundown of the ones that received good reviews:</p>
<p>- AS2 to AS3 Migration (Stacey Mulcahy)<br />
- AS3 Events: The Whole Story (Jacob Bullock)<br />
- Motion XML (<a href='http://www.motionxml.com/' target='blank'>Chris Charlton/Omar Gonzalez</a>)<br />
- Think You Know What Red5 Is? Think Again! (Chris Allen)<br />
- Bed Rock Revisited (Sandro Corsaro)</p>
<p>Congratulations to those guys/gals!! This evening there&#8217;s an awesome &#8220;Get A Job Fair&#8221; going on from 530-9p that aims to connect great freelance talent with great companies. After that, Influxis is throwing a monster jammy-jam for everybody to unwind and relax. </p>
<p>There&#8217;s more great stuff planned for tomorrow as well. Here are my picks for Day 2:<br />
- Flash CS3 Advergame Development (Sam Rivello)<br />
- Reducing Complexity: The Making of Saffron (<a href='http://www.levelofindustry.com' target='blank'>Samuel Agesilas</a>) **<br />
- Making Money: Pricing &#038; Contracts (<a href='http://almerblank.com' target='blank'>R Blank</a>)<br />
- WTF is Phlash 5 (Allen, Swann, Balkan, Lee-Delisle, Mills, Sims, Agesilas) **<br />
- GMUNKICKDOWN 07 (<a href='http://www.gmunk.com' target='blank'>GMUNK</a>) **<br />
- Adobe AIR for Interactive Designers (<a href='http://theflashblog.com' target='blank'>Lee Brimelow</a>) **</p>
<p>** means those sessions will rock (guaranteed)! Got to rap with a lot of cool people today. Love all the girls from <a href='http://www.fitc.ca' target='blank'>FITC</a>!!! Erin, Naomi, Carly, you guys rock!! Chatted w/Lee Brimelow for a bit and that was cool. He told me a funny story about the <a href='http://www.infoworld.com/article/07/10/10/agile-php_1.html' target='blank'>fallout</a> from his <a href='http://zendcon.com/' target='blank'>ZendCon</a> keynote. He also had his video cam in tow so I expect to see some cool footage up real soon. I plan to have my iPhone charged so I can snap some shots on tomorrow and post them for everybody.</p>
<div style="float: right; padding: 3px;"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="FITC Hollywood 2007 &#8211; Day 1" data-url="http://technophi.com/2007/10/22/fitc-hollywood-2007-day-1/" data-via="bufferapp" data-count="none">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script></div><div id="tweetbutton30" class="tw_button" style="padding: 3px;float:right;margin-left:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fj.mp%2FkDBFDN&amp;via=heroizm&amp;text=FITC%20Hollywood%202007%20%26%238211%3B%20Day%201&amp;related=heroizm&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Ftechnophi.com%2F2007%2F10%2F22%2Ffitc-hollywood-2007-day-1%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://technophi.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://technophi.com/2007/10/22/fitc-hollywood-2007-day-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FMS Eclipse Plugin</title>
		<link>http://technophi.com/2007/08/06/fms-eclipse-plugin/</link>
		<comments>http://technophi.com/2007/08/06/fms-eclipse-plugin/#comments</comments>
		<pubDate>Mon, 06 Aug 2007 17:07:06 +0000</pubDate>
		<dc:creator>Hasan Otuome</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flash Platform]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Developer Darren Lee has just released a beta version of his new <a href='http://fczone.com/eclipse/' target='blank'>FMS Eclipse Plugin</a>. It allows you to build out your FMS solutions in Eclipse, right along side of Flex, CF, etc.

It's a really cool tool and I think many will appreciate its features. It's got a lot of what you expect in Eclipse; outline view, code-hinting, etc and even sports an AS2 converter. Hey but don't take my word for it, go to the <a href='http://fczone.com/eclipse/' target='blank'>site</a>, download it and try it out for yourself...]]></description>
			<content:encoded><![CDATA[<p>Developer Darren Lee has just released a beta version of his new <a href='http://fczone.com/eclipse/' target='blank'>FMS Eclipse Plugin</a>. It allows you to build out your FMS solutions in Eclipse, right along side of Flex, CF, etc.</p>
<p>It&#8217;s a really cool tool and I think many will appreciate its features. It&#8217;s got a lot of what you expect in Eclipse; outline view, code-hinting, etc and even sports an AS2 converter. Hey but don&#8217;t take my word for it, go to the <a href='http://fczone.com/eclipse/' target='blank'>site</a>, download it and try it out for yourself&#8230;</p>
<div style="float: right; padding: 3px;"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="FMS Eclipse Plugin" data-url="http://technophi.com/2007/08/06/fms-eclipse-plugin/" data-via="bufferapp" data-count="none">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script></div><div id="tweetbutton24" class="tw_button" style="padding: 3px;float:right;margin-left:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fj.mp%2FkHPFEs&amp;via=heroizm&amp;text=FMS%20Eclipse%20Plugin&amp;related=heroizm&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Ftechnophi.com%2F2007%2F08%2F06%2Ffms-eclipse-plugin%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://technophi.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://technophi.com/2007/08/06/fms-eclipse-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

