<?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>CleVR » Panoramic photography and image stitching blog &#187; AS3</title>
	<atom:link href="http://www.clevr.com/blog/category/as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.clevr.com/blog</link>
	<description>Panoramic photography, virtual tours and stitching software</description>
	<lastBuildDate>Wed, 22 Jul 2009 18:24:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Actionscript 3 vector speedups</title>
		<link>http://www.clevr.com/blog/2008/actionscript-3-vector-speedups/</link>
		<comments>http://www.clevr.com/blog/2008/actionscript-3-vector-speedups/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 09:02:34 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[CleVR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[image processing]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[maths]]></category>
		<category><![CDATA[panoramas]]></category>
		<category><![CDATA[Stitcher]]></category>
		<category><![CDATA[Stitching software]]></category>

		<guid isPermaLink="false">http://www.clevr.com/blog/?p=82</guid>
		<description><![CDATA[Mike Chambers has posted a comparison between the performance of AS3 arrays and the new Vectors available in Flash Player 10. The results look good: he managed a 60% speedup. This is very exciting for us at CleVR, because of the potential impact it has on the Stitcher in particular. This uses massive Arrays and [...]]]></description>
			<content:encoded><![CDATA[<p>Mike Chambers has posted <a href="http://www.mikechambers.com/blog/2008/09/24/actioscript-3-vector-array-performance-comparison/">a comparison</a> between the performance of AS3 arrays and the new Vectors available in Flash Player 10. The results look good: he managed a 60% speedup. This is very exciting for us at CleVR, because of the potential impact it has on the Stitcher in particular. This uses massive Arrays and lots of nested loops which seem to be just the kind of thing that would benefit from this. I haven&#8217;t had a chance to do any benchmarking of my own (hard at work on CleVR Pro) but when I do I&#8217;ll post another entry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clevr.com/blog/2008/actionscript-3-vector-speedups/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Hiding Flex DataGrid columns using a context menu in AIR</title>
		<link>http://www.clevr.com/blog/2008/hide-flex-datagrid-columns-with-context-menu/</link>
		<comments>http://www.clevr.com/blog/2008/hide-flex-datagrid-columns-with-context-menu/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 14:04:52 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.clevr.com/blog/2008/hide-flex-datagrid-columns-with-context-menu/</guid>
		<description><![CDATA[A Flex/AIR project I&#8217;m working on at the moment uses a DataGrid to display a lot of data. There needs to be lots of columns, but this means that the view can be a bit cluttered. What I wanted was an easy for the user to show or hide columns as they prefer. In Cocoa [...]]]></description>
			<content:encoded><![CDATA[<p>A Flex/AIR project I&#8217;m working on at the moment uses a DataGrid to display a lot of data. There needs to be lots of columns, but this means that the view can be a bit cluttered. What I wanted was an easy for the user to show or hide columns as they prefer. In Cocoa on Mac OS X you can right-click (or ctrl-click) to show a context menu to do this, which seems to be a good way. I thought there may be a way of doing this in Flex, but there didn&#8217;t appear to be. It was quite simple to implement and could be useful in lots of cases, so I thought I&#8217;d share the code. I put this in a creationComplete handler.</p>
<p>I&#8217;ve attached it as a context menu on the DataGrid, but you could also attach it to the header or to a button. I hope it helpful to someone.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> context<span style="color: #000000; font-weight: bold;">:</span>NativeMenu = <span style="color: #0033ff; font-weight: bold;">new</span> NativeMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #0033ff; font-weight: bold;">each</span> <span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> col<span style="color: #000000; font-weight: bold;">:</span>DataGridColumn <span style="color: #0033ff; font-weight: bold;">in</span> myDataGrid.columns<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> menuI<span style="color: #000000; font-weight: bold;">:</span>NativeMenuItem = <span style="color: #0033ff; font-weight: bold;">new</span> NativeMenuItem<span style="color: #000000;">&#40;</span>col.headerText<span style="color: #000000;">&#41;</span>;
	menuI.checked = col.<span style="color: #004993;">visible</span>;
	menuI.<span style="color: #004993;">data</span> = col;
	context.addItem<span style="color: #000000;">&#40;</span>menuI<span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span>
context.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">SELECT</span>, <span style="color: #339966; font-weight: bold;">function</span><span style="color: #000000;">&#40;</span>e<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; 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> t<span style="color: #000000; font-weight: bold;">:</span>NativeMenuItem = e.<span style="color: #004993;">target</span> <span style="color: #0033ff; font-weight: bold;">as</span> NativeMenuItem;
	t.checked = <span style="color: #000000; font-weight: bold;">!</span>t.checked;
	t.<span style="color: #004993;">data</span>.<span style="color: #004993;">visible</span> = t.checked;
<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
myDataGrid.<span style="color: #004993;">contextMenu</span> = context;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.clevr.com/blog/2008/hide-flex-datagrid-columns-with-context-menu/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>State change bug in Flex</title>
		<link>http://www.clevr.com/blog/2008/state-change-bug-in-flex/</link>
		<comments>http://www.clevr.com/blog/2008/state-change-bug-in-flex/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 10:21:58 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[CleVR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[MXML]]></category>
		<category><![CDATA[panoramas]]></category>
		<category><![CDATA[Stitcher]]></category>
		<category><![CDATA[Stitching software]]></category>

		<guid isPermaLink="false">http://www.clevr.com/blog/2008/state-change-bug-in-flex/</guid>
		<description><![CDATA[I&#8217;ve been trying to track down the source of a bug in the Stitcher. The issue was in the welcome screen, which has states for logging-in, creating a new account etc. The problem was that whenever the login state had been active, moving to another state would throw an error, The supplied DisplayObject must be [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been trying to track down the source of a bug in the Stitcher. The issue was in the welcome screen, which has states for logging-in, creating a new account etc. The problem was that whenever the login state had been active, moving to another state would throw an error, <code>The supplied DisplayObject must be a child of the caller</code>. After much trial and error I worked out that it was down to the ControlBar that held the login buttons. It seems that the issue is that when Flex adds a controlbar, it doesn&#8217;t actually add it as a child of the container in which you place it. This means that when you then try to remove it, it&#8217;s in the wrong place. It seems to be related to <a href="http://bugs.adobe.com/jira/browse/SDK-12080">this bug</a>, which was apparently fixed last year. I&#8217;m going to have to produce a minimal version and see if I need to submit a bug report and/or patch.</p>
<p>Anyway, after changing it to use an HBox it&#8217;s working. I&#8217;ve uploaded a new version of the CleVR Stitcher with that fix and a few others. You can install it from that box in the sidebar (unless you&#8217;re reading this via the feed).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clevr.com/blog/2008/state-change-bug-in-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

