<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>assertTrue: HaXe Found!</title>
    <link>http://www.asserttrue.com/articles/2006/08/07/haxe-found</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>powered by Pattern Park</description>
    <item>
      <title>HaXe Found!</title>
      <description>&lt;p&gt;In comments to the last post &lt;a href="http://www.asserttrue.com/articles/2006/08/02/wheres-haxe"&gt;Where&amp;#8217;s haXe?&lt;/a&gt;, &lt;a href="http://www.asserttrue.com/articles/2006/08/02/wheres-haxe#comments"&gt;&lt;strong&gt;iongion&lt;/strong&gt;&lt;/a&gt; did a great job spotting many of the ways in which &lt;a href="http://www.haxe.org"&gt;haXe&lt;/a&gt; differs from &lt;a href="http://www.adobe.com/support/documentation/en/flash/"&gt;ActionScript 2.0&lt;/a&gt;.  Highlights of the differences in syntax follow:&lt;/p&gt;


	&lt;p&gt;&lt;br /&gt;
&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default code-example"&gt;package mediator.events;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;


	&lt;p&gt;In haXe, &lt;a href="http://www.haxe.org/ref#packages_and_imports"&gt;source code files can begin with an optional package declaration&lt;/a&gt;.  The files should exist in subdirectories mapping to the package declaration.&lt;/p&gt;


	&lt;p&gt;&lt;br /&gt;
&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default code-example"&gt;    private var listeners:Array&amp;lt;EventListener&amp;gt;;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;


	&lt;p&gt;HaXe uses &lt;a href="http://www.haxe.org/ref#arrays"&gt;typed arrays&lt;/a&gt;.  In the code snippet above, the type parameter &lt;em&gt;&amp;lt;EventListener&amp;gt;&lt;/em&gt; means that the &lt;em&gt;listeners&lt;/em&gt; array contains objects of type &lt;em&gt;EventListener&lt;/em&gt;.&lt;/p&gt;</description>
      <pubDate>Mon, 07 Aug 2006 21:35:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:af12001b-62a6-4248-9a2e-4795798d54ae</guid>
      <author>Ali Mills</author>
      <link>http://www.asserttrue.com/articles/2006/08/07/haxe-found</link>
      <category>haxe</category>
      <trackback:ping>http://www.asserttrue.com/articles/trackback/46</trackback:ping>
    </item>
  </channel>
</rss>
