<?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>The Morphic Group &#187; Gumbo</title>
	<atom:link href="http://www.themorphicgroup.com/blog/tag/gumbo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.themorphicgroup.com/blog</link>
	<description></description>
	<lastBuildDate>Mon, 22 Feb 2010 18:20:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Using Gumbo and itemRendererFunction to create multiple ItemRenderers</title>
		<link>http://www.themorphicgroup.com/blog/2008/12/03/using-gumbo-and-itemrendererfunction-to-create-multiple-itemrenderers/</link>
		<comments>http://www.themorphicgroup.com/blog/2008/12/03/using-gumbo-and-itemrendererfunction-to-create-multiple-itemrenderers/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 18:11:36 +0000</pubDate>
		<dc:creator>Seth</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Gumbo]]></category>

		<guid isPermaLink="false">http://www.themorphicgroup.com/blog/?p=61</guid>
		<description><![CDATA[Gumbo has added an &#34;itemRendererFunction&#34; function that allows certain data containers to specify an itemRenderer based on the data item. In this example an FxDataContainer's dataProvider is set to an ArrayCollection that contains 2 different types of Value Objects. Depending on the type of Value Object the itemRendererFunction returns a different itemRenderer. View Example (right [...]]]></description>
			<content:encoded><![CDATA[<p>
	<a href="http://labs.adobe.com/technologies/gumbo/" target="_blank">Gumbo</a> has added an &quot;itemRendererFunction&quot; function that allows certain data containers to specify an itemRenderer based on the data item. In this example an FxDataContainer's dataProvider is set to an ArrayCollection that contains 2 different types of Value Objects. Depending on the type of Value Object the itemRendererFunction returns a different itemRenderer.</p>
<p style="20px;">
<p>    <a href="http://www2.themorphicgroup.com/projects/examples/itemrendererfunction" target="_blank"><img src="http://www2.themorphicgroup.com/projects/examples/img/itemRendererFunction.png" width="200" height="149" alt="" border="none" /></a><br />
<br />
    <a href="http://www2.themorphicgroup.com/projects/examples/itemrendererfunction" target="_blank"><strong>View Example</strong> (right click for source)</a>
</p>
<p>In this example there are two different Value Objects: PhotoVO and QuoteVO. An FxDataContainer's dataProvider is set to an ArrayCollection:</p>
<pre>
[Bindable]private var VODataProvider:ArrayCollection;
&lt;FxDataContainer dataProvider="{VODataProvider}"...
</pre>
<p>
	The ArrayCollection is populated with 5 Value Objects, 2 PhotoVO and 3 QuoteVO.
</p>
<p>In the FxDataContainer the itemRendererFunction is set to a function:</p>
<pre>&lt;FxDataContainer dataProvider="{VODataProvider}"
	itemRendererFunction="itemRendererFunction_handler"
</pre>
<p>In the itemRendererFunction a ClassFactory is passed back based on the type of data item in the itemRenderer. In this example there is a different itemRenderer for the PhotoVO and QuoteVO. We will also pass in a function to the itemRenderer to handle clicks:</p>
<pre>
private function itemRendererFunction_handler(item:Object):ClassFactory {
	var classFactory:ClassFactory;
	if (item is PhotoVO) {
		//item is PhotoVO so use Photo ItemRenderer
		classFactory = new ClassFactory(PhotoItemRenderer);
	} else if (item is QuoteVO) {
		//item is QuoteVO so use Quote ItemRenderer
		classFactory = new ClassFactory(QuoteItemRenderer);
	}
	//pass callback click function
	classFactory.properties = {clickFunction:itemRenderClick_handler};
	return classFactory;
}
</pre>
<p>
<a href="http://www2.themorphicgroup.com/projects/examples/itemrendererfunction" target="_blank">View Example</a> with source enabled (flash 10 required)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.themorphicgroup.com/blog/2008/12/03/using-gumbo-and-itemrendererfunction-to-create-multiple-itemrenderers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Gumbo and Catalyst Photo Viewer Application</title>
		<link>http://www.themorphicgroup.com/blog/2008/12/03/gumbo-and-catalyst-photo-viewer-application/</link>
		<comments>http://www.themorphicgroup.com/blog/2008/12/03/gumbo-and-catalyst-photo-viewer-application/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 18:07:47 +0000</pubDate>
		<dc:creator>Seth</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Gumbo]]></category>

		<guid isPermaLink="false">http://www.themorphicgroup.com/blog/?p=60</guid>
		<description><![CDATA[I've posted an example of a Flex application created with the MAX preview versions of Flash Catalyst and Gumbo. This small demo application was created to test out some of the new features in both Catalyst and Gumbo. It is not a perfect project, but a starting point for further projects. View Example (right click [...]]]></description>
			<content:encoded><![CDATA[<p>I've posted an example of a Flex application created with the MAX preview versions of Flash Catalyst and Gumbo. This small demo application was created to test out some of the new features in both Catalyst and Gumbo. It is not a perfect project, but a starting point for further projects.</p>
<p style="20px;">
	<a href="http://www2.themorphicgroup.com/projects/catalystgumbophoto/" target="_blank"><img src="http://www2.themorphicgroup.com/projects/examples/img/gumbo_app.png" width="215" height="157" alt="Gumbo Catalyst Photo Application" border="none" /></a><br />
    <br />
    <a href="http://www2.themorphicgroup.com/projects/catalystgumbophoto/" target="_blank"><strong>View Example</strong> (right click for source)</a>
</p>
<p>The main goal of this project was to play with the new features in Catalyst and Gumbo using a close to real world example application, here is what was done:</p>
<ul>
<li>Start with a photoshop layout (PhotoShop file located in PSD directory)</li>
<li>Use Catalyst to layout/components/skins and export FXG project</li>
<li>Import FXG to Gumbo project</li>
<li>In Gumbo add data/photo/etc functionality to the project</li>
<li>Take project back to Catalyst for small visual edits, then back to Gumbo</li>
<li>Use new Gumbo MXML tags/components</li>
<li>Play with new Vector (using the new BitmapData.histogram)</li>
</ul>
<p>
	Instead of detailing every step of the process there is great <a href="http://opensource.adobe.com/wiki/display/flexsdk/Gumbo#Gumbo-DocumentsandSpecifications" target="_blank">Gumbo Documentation</a> and <a href="http://thermoteamblog.com/category/started/" target="_blank">Catalyst Examples</a>.
</p>
<p>
	<a href="http://www2.themorphicgroup.com/projects/catalystgumbophoto/" target="_blank"><strong>View Catalyst and Gumbo Photo Application</strong></a> (requires Flash 10 player)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.themorphicgroup.com/blog/2008/12/03/gumbo-and-catalyst-photo-viewer-application/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
