<?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</title>
    <link>http://www.asserttrue.com/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>powered by Pattern Park</description>
    <item>
      <title>What is Continuous Integration and how do I use it with ActionScript or Flex applications?</title>
      <description>&lt;p&gt;We recently got a question on the &lt;a href="http://groups.google.com/group/projectsprouts"&gt;Sprouts Group&lt;/a&gt; about Continuous Integration (CI) and I thought I&amp;#8217;d try to give it a quick explanation here.&lt;/p&gt;


	&lt;p&gt;The idea behind Continuous Integration is that you have a machine somewhere on the network that will check out, compile and test your application after almost every check-in. Whenever failures are encountered anywhere in that process, the entire team is notified. This helps us discover unexpected regressions or injections early which helps us pinpoint and address their root causes more efficiently.&lt;/p&gt;


	&lt;p&gt;This process can be useful in any project, but is especially helpful when working with teams that are all checking into different components of a larger project.&lt;/p&gt;


	&lt;p&gt;There are essentially three major problems when attempting to introduce ActionScript or Flex applications to typical CI systems:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;The Flash Player requires a visual window manager to execute your test harness (Usually X-Windows on Linux)&lt;/li&gt;
	&lt;/ul&gt;


	&lt;ul&gt;
	&lt;li&gt;The Flash Player does not give us the ability to capture all runtime exceptions, and when an uncaught runtime exception is encountered in the Debug Flash Player, a &lt;span class="caps"&gt;GUI&lt;/span&gt; dialog box is presented that must be manually clicked with a mouse in order to continue or abort execution. This can hang a typical CI set up, and result in an unhelpful &amp;#8220;execution timeout&amp;#8221; failure.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;ul&gt;
	&lt;li&gt;It can be challenging to get a Linux machine properly configured to compile your ActionScript or Flex application, run your test harness, and collect trace output and error messages.&lt;/li&gt;
	&lt;/ul&gt;</description>
      <pubDate>Fri, 08 May 2009 10:00:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:97b42ce3-2e99-498d-acef-bcca9dda83aa</guid>
      <author>Luke Bayes</author>
      <link>http://www.asserttrue.com/articles/2009/05/08/what-is-continuous-integration-and-how-do-i-use-it-with-actionscript-or-flex-applications</link>
      <category>actionscript</category>
      <category>flex</category>
      <category>sprouts</category>
      <trackback:ping>http://www.asserttrue.com/articles/trackback/1615</trackback:ping>
    </item>
    <item>
      <title>navigateToWindow() project added to github</title>
      <description>&lt;p&gt;I just added a new project to &lt;a href="http://github.com/"&gt;github&lt;/a&gt; called &lt;a href="http://github.com/alimills/navigatetowindow/tree/master"&gt;navigateToWindow()&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://github.com/alimills/navigatetowindow/tree/master"&gt;navigateToWindow()&lt;/a&gt; is a package-level ActionScript function that encapsulates all of the logic around opening a browser popup window from within Flash.&lt;/p&gt;


	&lt;p&gt;The function works very similarly to &lt;a href="http://livedocs.adobe.com/flex/3/langref/flash/net/package.html#navigateToURL"&gt;navigateToURL()&lt;/a&gt; except that you call it with the parameters that JavaScript&amp;#8217;s &lt;a href="https://developer.mozilla.org/En/Window.open"&gt;window.open&lt;/a&gt; might expect.&lt;/p&gt;


	&lt;p&gt;The &lt;a href="http://github.com/alimills/navigatetowindow/blob/e81fef17d80db50b57e1b12979ad6a9630460e87/test/patternpark/net/NavigateToWindowTest.as"&gt;test/patternpark/net/NavigateToWindowTest.as&lt;/a&gt; file demonstrates how you might use navigateToWindow(). This project was build with &lt;a href="http://github.com/lukebayes/project-sprouts/tree/master"&gt;Project Sprouts&lt;/a&gt;.  To run the test suite, install &lt;a href="http://github.com/lukebayes/project-sprouts/tree/master"&gt;Sprouts&lt;/a&gt; and then run &amp;#8216;rake html&amp;#8217; from the location where you pulled this project down.&lt;/p&gt;


	&lt;p&gt;One of the unique and interesting features of this implementation is that the developer using it doesn&amp;#8217;t have to write any JavaScript. Using a method derived from the ideas of &lt;a href="http://www.abdulqabiz.com/blog/"&gt;Abdul Qabiz&lt;/a&gt; and his post &lt;a href="http://www.abdulqabiz.com/blog/archives/macromedia_flex/a_mxml_component_tha.php"&gt;&lt;em&gt;&lt;span class="caps"&gt;A MXML&lt;/span&gt; component that embeds JavaScript in html&lt;/em&gt;&lt;/a&gt;, &lt;a href="http://dougmccune.com/blog/"&gt;Doug McCune&lt;/a&gt; and his post &lt;a href="http://dougmccune.com/blog/2007/05/15/multi-line-strings-in-actionscript-3/"&gt;&lt;em&gt;Multi-line strings in Actionscript 3&lt;/em&gt;&lt;/a&gt;, and &lt;a href="http://www.zorked.com/"&gt;Jordan Ambra&lt;/a&gt; and his post &lt;a href="http://www.zorked.com/flash/flash-and-navigatetourl-popup-blocking/"&gt;&lt;em&gt;Popups Blocked in &lt;span class="caps"&gt;AS3&lt;/span&gt; with navigateToURL()&lt;/em&gt;&lt;/a&gt; we are able to execute all necessary JavaScript directly from ActionScript.&lt;/p&gt;


	&lt;p&gt;For background on this project, you can check out &lt;a href="http://www.asserttrue.com/"&gt;my&lt;/a&gt; old post &lt;a href="http://www.asserttrue.com/articles/2007/08/22/workaround-for-safari-blocking-flash-initiated-pop-ups"&gt;&lt;em&gt;Workaround for Safari Blocking Flash Initiated Pop Ups&lt;/em&gt;&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;For another interesting project that solves this same problem through a JavaScript file and an ActionScript file, check out Matt Lohkampl&amp;#8217;s &lt;a href="http://code.google.com/p/popupfromflash/"&gt;popupfromflash&lt;/a&gt;.&lt;/p&gt;</description>
      <pubDate>Wed, 29 Apr 2009 13:52:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:59e6ad62-b6fc-473b-9b9b-d26954f3970e</guid>
      <author>Ali Mills</author>
      <link>http://www.asserttrue.com/articles/2009/04/29/navigatetowindow-project-added-to-github</link>
      <category>actionscript</category>
      <trackback:ping>http://www.asserttrue.com/articles/trackback/1612</trackback:ping>
    </item>
    <item>
      <title>Execute any preprocessor on your ActionScript or Flex project with Sprouts!</title>
      <description>&lt;p&gt;Preprocessing? Check.&lt;/p&gt;


	&lt;p&gt;With more big thanks to &lt;a href="http://www.xxeo.com/"&gt;Dru Nelson&lt;/a&gt; of &lt;a href="http://www.brightroll.com"&gt;BrightRoll&lt;/a&gt;, we have just dropped new releases of the sprout and as3 gems that support preprocessing for any compiler task.&lt;/p&gt;


	&lt;p&gt;You can add the &lt;code&gt;preprocessor&lt;/code&gt; directive to any compilation task (or project model if you&amp;#8217;re using task &amp;#8216;helpers&amp;#8217;).&lt;/p&gt;


	&lt;p&gt;The rdoc for the base &lt;a href="http://www.projectsprouts.org/rdoc.5/classes/Sprout/ToolTask.html#M000144"&gt;ToolTask&lt;/a&gt; has more detailed information.&lt;/p&gt;


	&lt;p&gt;To get the latest version open a new terminal and enter the following:&lt;/p&gt;


&lt;code&gt;&lt;pre&gt;gem update sprout-as3-bundle&lt;/pre&gt;&lt;/code&gt;

	&lt;p&gt;As always, &lt;a href="http://groups.google.com/group/projectsprouts"&gt;please let us know&lt;/a&gt; if you run into any issues!&lt;/p&gt;</description>
      <pubDate>Tue, 13 Jan 2009 14:52:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:9dd75c9d-5789-4f77-980f-5fb27f33721e</guid>
      <author>Luke Bayes</author>
      <link>http://www.asserttrue.com/articles/2009/01/13/execute-any-preprocessor-on-your-actionscript-or-flex-project-with-sprouts</link>
      <category>sprouts</category>
      <category>actionscript</category>
      <category>flex</category>
      <trackback:ping>http://www.asserttrue.com/articles/trackback/1610</trackback:ping>
    </item>
    <item>
      <title>Sprouts now supports Flex Debugger (FDB), Flex Compiler SHell (FCSH) and Continuous Integration (CI)!</title>
      <description>&lt;p&gt;Today brings a major set of improvements to the Sprouts ActionScript 3 bundle (and related gems).&lt;/p&gt;


	&lt;p&gt;We have introduced three major features that you can retrieve by opening a terminal and entering:&lt;/p&gt;


&lt;code&gt;gem update sprout-as3-bundle&lt;/code&gt;</description>
      <pubDate>Wed, 07 Jan 2009 11:32:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:dcaeb7ef-fb68-4012-b302-6eebd33fce95</guid>
      <author>Luke Bayes</author>
      <link>http://www.asserttrue.com/articles/2009/01/07/sprouts-now-supports-flex-debugger-fdb-flex-compiler-shell-fcsh-and-continuous-integration-ci</link>
      <category>sprouts</category>
      <category>actionscript</category>
      <category>flex</category>
      <trackback:ping>http://www.asserttrue.com/articles/trackback/1605</trackback:ping>
    </item>
    <item>
      <title>Pre-Processing ActionScript files with cpp on OSX</title>
      <description>&lt;p&gt;Back in March 2005, &lt;a href="http://www.mikechambers.com/blog/"&gt;Mike Chambers&lt;/a&gt; wrote a couple &lt;a href="http://www.mikechambers.com/blog/2005/03/30/pre-processing-actionscript-files-classes/"&gt;interesting&lt;/a&gt; &lt;a href="http://www.mikechambers.com/blog/2005/03/31/using-a-pre-processor-with-actionscript-to-define-constants/"&gt;posts&lt;/a&gt; about using &lt;a href="http://en.wikipedia.org/wiki/C_preprocessor"&gt;cpp&lt;/a&gt;, a C pre-processor, to pre-process ActionScript files.&lt;/p&gt;


	&lt;p&gt;He noted that, while cpp is included on Mac &lt;span class="caps"&gt;OS X&lt;/span&gt;, for some reason it wasn&amp;#8217;t working for him.  Well, I think that I just found the reason.  It appears that cpp&amp;#8217;s &lt;a href="http://gcc.gnu.org/onlinedocs/cpp/Invocation.html#Invocation"&gt;docs&lt;/a&gt; and &lt;a href="http://developer.apple.com/DOCUMENTATION/DARWIN/Reference/ManPages/man1/cpp.1.html"&gt;man pages&lt;/a&gt; don&amp;#8217;t emphasize how picky the tool is about white space.&lt;/p&gt;


	&lt;p&gt;To get the examples to work on my MacBook, I had to make some minor white space modifications.&lt;/p&gt;</description>
      <pubDate>Tue, 06 Jan 2009 14:08:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:88649279-ef94-4935-8af7-2944053b0340</guid>
      <author>Ali Mills</author>
      <link>http://www.asserttrue.com/articles/2009/01/06/pre-processing-actionscript-files-with-cpp-on-osx</link>
      <category>actionscript</category>
      <trackback:ping>http://www.asserttrue.com/articles/trackback/1604</trackback:ping>
    </item>
    <item>
      <title>Getting Started with AsUnit</title>
      <description>&lt;p&gt;Kelly Brown has put together a great article to help folks get started with AsUnit over on the Inside &lt;span class="caps"&gt;RIA&lt;/span&gt; blog.&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://www.insideria.com/2008/09/unit-testing-with-asunit.html"&gt;Definitely check it out if you&amp;#8217;re interested.&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;Thanks Kelly!&lt;/p&gt;</description>
      <pubDate>Tue, 16 Sep 2008 09:10:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:f8db3d7f-40ae-41a9-8d56-eef1cc1ac6e9</guid>
      <author>Luke Bayes</author>
      <link>http://www.asserttrue.com/articles/2008/09/16/getting-started-with-asunit</link>
      <category>asunit</category>
      <category>actionscript</category>
      <trackback:ping>http://www.asserttrue.com/articles/trackback/1586</trackback:ping>
    </item>
    <item>
      <title>Using External Libraries with Sprouts</title>
      <description>&lt;p&gt;Sprouts has quite a wide variety of different libraries available that you can instantly include in your project.&lt;/p&gt;


&lt;pre&gt;
as3crypto
as3flickrlib-src
as3flickrlib
as3mapprlib-src
as3mapprlib
as3syndicationlib-src
as3syndicationlib
as3youtubelib-src
as3youtubelib
asunit25
asunit3
bulkloader
cairngorm-src
cairngorm
corelib-src
corelib
degrafa
facebook-api
flexlib-src
flexlib
flexunit-src
flexunit
fuse
papervision
swx
tweener
tweeneras2
yahoomapsas3
&lt;/pre&gt;

	&lt;p&gt;You can include any of these libraries by simply adding them as a symbol to your &lt;code&gt;project_model&lt;/code&gt;.&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;table class="typocode_linenumber"&gt;&lt;tr&gt;&lt;td class="lineno"&gt;
&lt;pre&gt;
1
2
3
4
5
6
7
8
9
&lt;/pre&gt;
&lt;/td&gt;&lt;td width="100%"&gt;&lt;pre&gt;&lt;code class="typocode_default code-example"&gt;project_model :model do |m|
  m.project_name            = 'SomeProject'
  m.language                = 'mxml'
  m.background_color        = '#FFFFFF'
  m.width                   = 970
  m.height                  = 550
  m.libraries               &amp;lt;&amp;lt; :corelib
  m.libraries               &amp;lt;&amp;lt; :papervision
end&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

	&lt;p&gt;This will automatically download and install these libraries into your project and update your compilation tasks to make these targets available!&lt;/p&gt;


	&lt;p&gt;If you find that the downloaded libraries aren&amp;#8217;t working or are out of date, please &lt;a href="http://groups.google.com/group/projectsprouts"&gt;send us an email&lt;/a&gt; with a link to the latest files.&lt;/p&gt;


	&lt;p&gt;Read on to learn more about packaging up your own libraries!&lt;/p&gt;</description>
      <pubDate>Tue, 09 Sep 2008 18:26:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:8c37a48b-de29-48c9-89f1-200e0d2aae66</guid>
      <author>Luke Bayes</author>
      <link>http://www.asserttrue.com/articles/2008/09/09/using-external-libraries-with-sprouts</link>
      <category>sprouts</category>
      <category>actionscript</category>
      <trackback:ping>http://www.asserttrue.com/articles/trackback/1585</trackback:ping>
    </item>
    <item>
      <title>Using Flex 4 (Gumbo) with Sprouts</title>
      <description>&lt;p&gt;I just got a question about using the Flex 4 &lt;span class="caps"&gt;SDK&lt;/span&gt; with Sprouts and figured I&amp;#8217;d share the answer with anyone else that may be interested&amp;#8230;&lt;/p&gt;


	&lt;p&gt;Being insanely flexible does often have it&amp;#8217;s downsides, but in this case life is good.&lt;/p&gt;


	&lt;p&gt;To use the latest Flex 4 &lt;span class="caps"&gt;SDK&lt;/span&gt; with the latest release of Sprouts, you can simply update your project_model by specifying the &lt;code&gt;compiler_gem_name&lt;/code&gt; as follows:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;table class="typocode_linenumber"&gt;&lt;tr&gt;&lt;td class="lineno"&gt;
&lt;pre&gt;
1
2
3
4
5
6
7
8
&lt;/pre&gt;
&lt;/td&gt;&lt;td width="100%"&gt;&lt;pre&gt;&lt;code class="typocode_default code-example"&gt;project_model :model do |m|
  m.project_name            = 'SomeProject'
  m.language                = 'mxml'
  m.background_color        = '#FFFFFF'
  m.width                   = 970
  m.height                  = 550
  m.compiler_gem_name       = 'sprout-flex4sdk-tool'
end&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

	&lt;p&gt;Then run rake.&lt;/p&gt;


	&lt;p&gt;Fits like it grew there!&lt;/p&gt;</description>
      <pubDate>Tue, 09 Sep 2008 18:19:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:ff039fec-f3f9-42ac-a78d-580ff84098bd</guid>
      <author>Luke Bayes</author>
      <link>http://www.asserttrue.com/articles/2008/09/09/using-flex-4-gumbo-with-sprouts</link>
      <category>sprouts</category>
      <category>actionscript</category>
      <trackback:ping>http://www.asserttrue.com/articles/trackback/1584</trackback:ping>
    </item>
    <item>
      <title>Obama Doesn't Like Mac People</title>
      <description>&lt;p&gt;&lt;img src="/files/DemConvention.png" /&gt;&lt;/p&gt;


	&lt;p&gt;I just couldn&amp;#8217;t resist this&amp;#8230;&lt;/p&gt;


	&lt;p&gt;It seems the Democratic Convention has decided to roll with Microsoft Silverlight for their video content.&lt;/p&gt;


	&lt;p&gt;Perhaps they&amp;#8217;re hoping no one will watch? It seems they don&amp;#8217;t understand this whole interweb-thing any more than the Olympics committee.&lt;/p&gt;</description>
      <pubDate>Tue, 26 Aug 2008 15:01:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:79c56246-5f39-4409-a38f-3cd825c07069</guid>
      <author>Luke Bayes</author>
      <link>http://www.asserttrue.com/articles/2008/08/26/obama-doesnt-like-mac-people</link>
      <category>silverlight</category>
      <enclosure length="264755" type="image/png" url="http://www.asserttrue.com/files/DemConvention.png"/>
      <trackback:ping>http://www.asserttrue.com/articles/trackback/1576</trackback:ping>
    </item>
    <item>
      <title>Sprouts From the Outside Looking In...</title>
      <description>&lt;p&gt;As I&amp;#8217;m sure many of you are aware, I&amp;#8217;ve had a difficult time articulating what exactly Sprouts is and does. Finally, someone else has taken a stab at and I think he&amp;#8217;s done a better job than I have!&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://fijiaaron.wordpress.com/about/"&gt;Aaron Evans&lt;/a&gt; has published &lt;a href="http://fijiaaron.wordpress.com/2008/08/12/more-on-sprouts/"&gt;his first exploration&lt;/a&gt; into &lt;a href="http://www.projectsprouts.org"&gt;Sprouts&lt;/a&gt; and I just wanted to share it before too much time went by.&lt;/p&gt;</description>
      <pubDate>Wed, 13 Aug 2008 10:37:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:bbf6e492-255d-47b3-822c-0267d792f86e</guid>
      <author>Luke Bayes</author>
      <link>http://www.asserttrue.com/articles/2008/08/13/sprouts-from-the-outside-looking-in</link>
      <category>sprouts</category>
      <trackback:ping>http://www.asserttrue.com/articles/trackback/1575</trackback:ping>
    </item>
  </channel>
</rss>
