<?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>ross&#124;gerbasi &#187; programming</title>
	<atom:link href="http://www.rossgerbasi.com/tag/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rossgerbasi.com</link>
	<description>{code === art}</description>
	<lastBuildDate>Wed, 21 Dec 2011 16:48:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>AS3Signals Vs Events</title>
		<link>http://www.rossgerbasi.com/2010/09/as3signals-vs-events/</link>
		<comments>http://www.rossgerbasi.com/2010/09/as3signals-vs-events/#comments</comments>
		<pubDate>Fri, 10 Sep 2010 23:47:53 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[signals]]></category>

		<guid isPermaLink="false">http://www.rossgerbasi.com/?p=110</guid>
		<description><![CDATA[Alright so I have been doing a lot of research on frameworks and structures for building out some classes of my own at work. We have a lot of code we share between developers and its finally time to move things into a bit more of a structured framework and leverage some of our reusable [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rossgerbasi.com/wp-content/uploads/2010/09/signalsVsEventsChart.gif" rel="shadowbox[sbpost-110];player=img;"><img class="aligncenter size-full wp-image-116" title="Signals Vs Events Chart" src="http://www.rossgerbasi.com/wp-content/uploads/2010/09/signalsVsEventsChart.gif" alt="" width="550" height="357" /></a></p>
<p>Alright so I have been doing a lot of research on frameworks and structures for building out some classes of my own at work. We have a lot of code we share between developers and its finally time to move things into a bit more of a structured framework and leverage some of our reusable code. The first hill I had to climb was events. In AS3 events are really our communication pipeline. We use events to talk between objects while still keeping a nice Object Oriented independent structure. Events have there flaws though. The biggest of which, for me, is the lack of a real world usable way to outline for other developers when to use events in an interface. It is currently not possible in AS3 for an interface to dictate what events should be dispatched. Yes I have seen <a title="Event Interface Workaround" href="http://www.davidarno.org/2010/02/24/actionscript-signals-events-and-interfaces/" target="_blank">workarounds</a> and even though they do fix the problem they also create more work then needed. This is where <a title="AS3 Signals" href="http://github.com/robertpenner/as3-signals" target="_blank">Signals </a>comes into play.</p>
<p>As3 Signals is a library for dispatching events through composition instead of inheritance. A class does not need to extend EventDispatcher to use a signal and with that comes the ability to control the listeners to your signal. You can clear out everyone listening, add a listener only one time, and a lot of other neat features. The big deal though is performance. Is it faster? Well I threw together a little experiment using <a title="gSkinner Performance Harness" href="http://www.gskinner.com/blog/archives/2010/02/performancetest.html" target="_blank">gSkinners Performance Harness</a> to test dispatching 100000 events using a Event Dispatcher and then again using a Signal. The Tests start with 0 listeners to the signal and the event dispatcher and move up to 5. You can see the <a rel="shadowbox;height=600;width=800;options={flashParams:{bgcolor:'#ff0000'}}" href="/wp-content/uploads/2010/09/signalsVsEvents.swf">Performance Tests Here</a> and if your interested in running this yourself feel free to download <a title="Signals vs Events Performance Code" href="/wp-content/uploads/2010/09/SignalsVsEventDispatching.zip">the code</a>.</p>
<p>If your not interested in looking at all, let me just tell you signals is faster, though oddly enough when there are 0 listeners event dispatching is faster. Honestly I can&#8217;t imagine this happens very often though! Hope this helps some people out. Maybe in the near future I will pump out a small signals tutorial for those interested, doubtful though as I don&#8217;t think I could any better then this <a title="Signals Tutorial" href="http://johnlindquist.com/2010/01/21/as3-signals-tutorial/" target="_blank">John Lindquist Signals Tutorial</a>. Check it out!</p>
<div id="attachment_113" class="wp-caption aligncenter" style="width: 516px"><a rel="shadowbox;height=600;width=800;options={flashParams:{bgcolor:'#ff0000'}}" href="/wp-content/uploads/2010/09/signalsVsEvents.swf"><img class="size-full wp-image-113" title="Signals vs Events Performance" src="http://www.rossgerbasi.com/wp-content/uploads/2010/09/SignalsPerformanceThumbnail.gif" alt="" width="506" height="394" /></a><p class="wp-caption-text">Signals vs Events Performance</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.rossgerbasi.com/2010/09/as3signals-vs-events/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Multitouch Air2 and the iPhone</title>
		<link>http://www.rossgerbasi.com/2010/03/multitouch-air2-and-the-iphone/</link>
		<comments>http://www.rossgerbasi.com/2010/03/multitouch-air2-and-the-iphone/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 16:19:05 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[air]]></category>
		<category><![CDATA[air2.0]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[multitouch]]></category>
		<category><![CDATA[OSC]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[TUIO]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.rossgerbasi.com/?p=62</guid>
		<description><![CDATA[Hello again, in this tutorial I am going to go over Multitouch, IntelliJ, and Air 2.0 beta 2, along with SimTouch and the MSA Remote for the iPhone . We will be looking at how to setup IntelliJ to compile and run a Air 2 beta 2 project, inside this project we will add Multitouch [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rossgerbasi.com/2010/03/multitouch-air2-and-the-iphone/"><em>Click here to view the embedded video.</em></a></p>
<p>Hello again, in this tutorial I am going to go over Multitouch, <a title="IntelliJ" href="http://www.jetbrains.com/idea/" target="_blank">IntelliJ</a>, and <a title="Air 2.0b2" href="http://labs.adobe.com/downloads/air2.html" target="_blank">Air 2.0 beta 2</a>, along with <a title="SimTouch" href="http://code.google.com/p/simtouch/" target="_blank">SimTouch</a> and the<a title="MSA Remote" href="http://www.memo.tv/iphone/msaremote" target="_blank"> MSA Remote</a> for the iPhone . We will be looking at how to setup IntelliJ to compile and run a Air 2 beta 2 project, inside this project we will add Multitouch events and use the iPhone to send those events to the air app. The iPhone will act as a simulator for a touch screen. Currently the SimConnect class we will be using only supports TOUCH_BEGIN, TOUCH_MOVE, and TOUCH_END events, thought hopefully we will see this extend out into gesture support. This tutorial is a bit long, and kinda advanced you should have an idea on how to create a Air app in Flex/Flash Builder already and be somewhat familiar with the IntelliJ IDE. Below are all the links I use in the tutorial, hopefully this saves you all time. Thanks again for stopping in, I will keep trying to push out tutorials as much as I can!</p>
<p><strong><span style="text-decoration: underline;">Tutorial Links</span></strong></p>
<ul>
<li><a title="Flex 4 SDK" href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4" target="_blank">Flex 4 SDK</a></li>
<li><a title="Adobe AIR 2.0b2 SDK" href="http://labs.adobe.com/downloads/air2.html" target="_blank">Adobe Air 2.0b2 SDK</a></li>
<li><a title="SimTouch" href="http://code.google.com/p/simtouch/" target="_blank">SimTouch Google Code Project</a></li>
<li><a title="MSA Remote" href="http://www.memo.tv/iphone/msaremote" target="_blank">MSA Remote iPhone App</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.rossgerbasi.com/2010/03/multitouch-air2-and-the-iphone/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IntelliJ and Flash CS4</title>
		<link>http://www.rossgerbasi.com/2010/03/intellij-and-flash-cs4/</link>
		<comments>http://www.rossgerbasi.com/2010/03/intellij-and-flash-cs4/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 08:11:19 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[intellij]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.rossgerbasi.com/?p=39</guid>
		<description><![CDATA[In this tutorial I will be going over how to get IntelliJ working with the Flash IDE. We will look at configuring a Actionscript only project in IntelliJ and then running a Bash Script to call the Flash IDE. We will be using a shell script I have ported over from my TextMate Bundle you [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rossgerbasi.com/2010/03/intellij-and-flash-cs4/"><em>Click here to view the embedded video.</em></a></p>
<p>In this tutorial I will be going over how to get <a title="IntelliJ" href="http://www.jetbrains.com/idea/" target="_blank">IntelliJ </a>working with the Flash IDE. We will look at configuring a Actionscript only project in IntelliJ and then running a Bash Script to call the Flash IDE. We will be using a shell script I have ported over from my TextMate Bundle you can download that below. For those just getting started with <a title="IntelliJ" href="http://www.jetbrains.com/idea/" target="_blank">IntelliJ </a>I recommend read Jesse Freeman&#8217;s<a href="http://www.insideria.com/2010/02/intellij-idea9-actionscript-3f.html"> IntelliJ Workflow Tutorial</a> before you start into this.</p>
<p>For Windows Users the process is very similar except you cannot use the Bash Support Plugin you need to use the Batch Plugin. Sadly at the time of writing this the Batch Plugin in the &#8220;available plugins&#8221; section of intelliJ does not work so you need to download the <a title="Batch Plugin" href="http://code.google.com/p/idea-batch/downloads/list">Lastest  Batch Plugin</a> from Google Code. Once you download this simply place the jar file it in your &#8220;C:\Users\{username}\.IntelliJIdea90\config\plugins&#8221; folder and restart IntelliJ. You will want to confirm it installed correctly by going to your IntelliJ Settings Panel and looking under IDE Settings -&gt; Plugins to confirm that under the Installed  tab y0u see Batch Scripts Support with a check mark to the left.  Now when you edit your configuration instead of choosing Bash choose Batch and point it at the .bat file you download from this site. A quick <span style="color: #800000;">warning</span> the Batch Plugin does not seem to support folders with spaces in them, so you will need to be aware of that when you place your .BAT file, do not nest it inside any folders with spaces.</p>
<p>Hopefully this will help some more people feel comfortable moving over into the IntelliJ environment. Trust me you won&#8217;t regret it, especially if you are a Mac users looking for a good Actionscript coding environment. Thanks for stopping by! check back for more tutorials soon!</p>
<p>Download the: <a title="Publish In Flash IDE" href="/wp-content/uploads/downloads/PublishInIDE_mac.zip">&#8220;Publish in Flash IDE&#8221; Shell Script For Mac</a></p>
<p>Download the: <a title="Publish In Flash IDE" href="/wp-content/uploads/downloads/PublishInIDE_win.zip">&#8220;Publish  in Flash IDE&#8221; Shell Script For Windows<br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rossgerbasi.com/2010/03/intellij-and-flash-cs4/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

