<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Data.Driven() &#187; Flash</title>
	<atom:link href="http://datadriven.com.au/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://datadriven.com.au</link>
	<description>By reading this blog you&#039;ve signed an NDA.</description>
	<lastBuildDate>Thu, 09 Jun 2011 09:05:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<!-- podcast_generator="podPress/8.8" -->
		<copyright>&#xA9; </copyright>
		<managingEditor>marcosscaceres@gmail.com ()</managingEditor>
		<webMaster>marcosscaceres@gmail.com()</webMaster>
		<category></category>
		<itunes:keywords></itunes:keywords>
		<itunes:subtitle></itunes:subtitle>
		<itunes:summary>Marcos Caceres#039; ramblings about stuff</itunes:summary>
		<itunes:author></itunes:author>
		<itunes:category text="Society &amp; Culture"/>
		<itunes:owner>
			<itunes:name></itunes:name>
			<itunes:email>marcosscaceres@gmail.com</itunes:email>
		</itunes:owner>
		<itunes:block>No</itunes:block>
		<itunes:explicit>no</itunes:explicit>
		<itunes:image href="http://datadriven.com.au/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<image>
			<url>http://datadriven.com.au/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
			<title>Data.Driven()</title>
			<link>http://datadriven.com.au</link>
			<width>144</width>
			<height>144</height>
		</image>
		<item>
		<title>My empire for a NullPointerException &#8211; reasons ActionScript sucks</title>
		<link>http://datadriven.com.au/2006/08/my-empire-for-a-nullpointerexception-reasons-actionscript-sucks/</link>
		<comments>http://datadriven.com.au/2006/08/my-empire-for-a-nullpointerexception-reasons-actionscript-sucks/#comments</comments>
		<pubDate>Tue, 22 Aug 2006 06:51:22 +0000</pubDate>
		<dc:creator>Marcos</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.datadriven.com.au/?p=18</guid>
		<description><![CDATA[I&#8217;ve just finished coding two kids games in Flash called &#8220;BarryBell&#8221; and &#8220;DrumBell&#8221; (I will make them available here soon). ActionScript is a cool language: it has all the things you would expect from a real programming language, it is compiled, supports strong typing, classes and inheritance, interfaces, static variables, and constants. However, there are [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just finished coding two kids games in Flash called &#8220;BarryBell&#8221; and &#8220;DrumBell&#8221; (I will make them available here soon). ActionScript is a cool language: it has all the things you would expect from a real programming language, it is compiled, supports strong typing, classes and inheritance, interfaces, static variables, and constants. However, there are some things that suck.</p>
<p>The following is a list of things I think suck about Flash Professional (in order of most suckful!):</p>
<ul>
<li>no null pointer exceptions &#8211; I can reference properties and variables that don&#8217;t exists and Flash does not care! this is highly irritating when you make a spelling mistake as Flash will not inform you of the error. The only way around it seems to be to use a decent IDE that actually does strict checking of existing classes, their public properties (if any), and member functions.</li>
<li>Event Dispatcher class &#8211; the included event dispatcher class lacks the option to provide a member function to call back when an event is fired.</li>
<li>No generic Event class &#8211; of course you can write your own, but a standardised one would save you having to look through Macromedia&#8217;s EventDispatcher class to work how the event broadcaster actually works!</li>
<li>Delegate class &#8211; really, why does this even exists! Plus the lack of support to bundle an argument is highly irritating.</li>
<li>no ability to send arguments when instantiating a movie clip &#8211; that is pretty severe.</li>
<li>Phoney-baloney iterators &#8211; calling the for (i in someHashMapObject) returns i as an integer instead of the object. What is that all about?!</li>
</ul>
<p>If I get a chance, I will write another entry describing these problems in more details. All I can say is, if you are going to copy Java&#8217;s Event broadcasting model, do it completely as it is not that hard. There is hope yet, as all the core classes are open, you can simply re-code them to do what you need.</p>
<p>Mozilla, heed to the flaws of Adobe Flash and lets us avoid this in JavaScript 2.0!</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdatadriven.com.au%2F2006%2F08%2Fmy-empire-for-a-nullpointerexception-reasons-actionscript-sucks%2F&amp;t=My%20empire%20for%20a%20NullPointerException%20-%20reasons%20ActionScript%20sucks" id="facebook_share_link_18">Share on Facebook</a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_18') || document.getElementById('facebook_share_icon_18') || document.getElementById('facebook_share_both_18') || document.getElementById('facebook_share_button_18');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_18') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://datadriven.com.au/2006/08/my-empire-for-a-nullpointerexception-reasons-actionscript-sucks/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

