<?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>Flex Examples &#187; Namespace</title>
	<atom:link href="http://blog.flexexamples.com/category/namespace/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Wed, 26 Jan 2011 18:09:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using the new Fx prefix-less Flex Gumbo builds</title>
		<link>http://blog.flexexamples.com/2009/04/02/using-the-new-fx-prefix-less-flex-gumbo-builds/</link>
		<comments>http://blog.flexexamples.com/2009/04/02/using-the-new-fx-prefix-less-flex-gumbo-builds/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 06:21:50 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta1]]></category>
		<category><![CDATA[Button (Spark)]]></category>
		<category><![CDATA[Namespace]]></category>
		<category><![CDATA[Nightly Builds]]></category>
		<category><![CDATA[Styles]]></category>
		<category><![CDATA[TextInput (Spark)]]></category>
		<category><![CDATA[Gumbo]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2009/04/02/using-the-new-fx-prefix-less-flex-gumbo-builds/</guid>
		<description><![CDATA[<p>The following example shows how you can use styles in a &#60;Style/&#62; block to style a Spark Button and TextInput control as well as a Halo Button and TextInput control.</p> <p>To compile this example, you&#8217;ll need to download the nightly beta Flex Gumbo build 5873 (4.0.0.5873) or newer. The latest Gumbo SDK builds can be [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can use styles in a &lt;Style/&gt; block to style a Spark Button and TextInput control as well as a Halo Button and TextInput control.</p>
<p>To compile this example, you&#8217;ll need to download the nightly beta Flex Gumbo build 5873 (4.0.0.5873) or newer. The latest Gumbo SDK builds can be downloaded from the opensource.adobe.com site at <a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4">http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4</a>.<br />
For more information on the &#8220;Fx&#8221; prefix removal and API changes, see the <a href="http://opensource.adobe.com/wiki/display/flexsdk/Dropping+the+Fx+Prefix">&#8220;Dropping the Fx Prefix&#8221;</a> page on the Flex Gumbo opensource.adobe.com site.<br />
For more information on the new CSS namespaces and styling in Flex Gumbo, see the <a href="http://opensource.adobe.com/wiki/display/flexsdk/Styling+Component+Parts">&#8220;Styling Component Parts&#8221;</a> page on the Flex Gumbo opensource.adobe.com site.</p>
<p>Full code after the jump.</p>
<p><span id="more-1036"></span></p>
<p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in your Flex Builder 3. For more information on downloading and installing the Gumbo SDK into Flex Builder 3, see <a href="http://blog.flexexamples.com/2008/08/02/using-the-beta-gumbo-sdk-in-flex-builder-3/">&#8220;Using the beta Gumbo SDK in Flex Builder 3&#8243;</a>.</p>
<p class="download"><a href="">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2009/04/02/using-the-new-fx-prefix-less-flex-gumbo-builds/ --&gt;
&lt;s:Application name="FxGumbo_test"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/halo"&gt;
    &lt;s:layout&gt;
        &lt;s:BasicLayout /&gt;
    &lt;/s:layout&gt;

    &lt;fx:Style&gt;
        @namespace s "library://ns.adobe.com/flex/spark";
        @namespace mx "library://ns.adobe.com/flex/halo";

        global {
            color: red;
            fontStyle: italic;
            fontWeight: bold;
        }

        s|Button {
            baseColor: haloOrange;
        }

        mx|Button {
            baseColor: haloGreen;
        }
    &lt;/fx:Style&gt;

    &lt;s:VGroup horizontalCenter="0" verticalCenter="0"&gt;
        &lt;s:Button label="I'm a Spark Button" /&gt;
        &lt;mx:Button label="I'm a Halo Button" /&gt;
        &lt;mx:HRule width="100%" /&gt;
        &lt;s:TextInput text="I'm a Spark TextInput" /&gt;
        &lt;mx:TextInput text="I'm a Halo TextInput" /&gt;
    &lt;/s:VGroup&gt;

    &lt;s:RichEditableText id="sdkVer"
            editable="false"
            initialize="sdkVer.text = mx_internal::VERSION;"
            bottom="10"
            right="10" /&gt;

&lt;/s:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/spark/FxGumbo_test/bin/srcview/">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/spark/FxGumbo_test/bin/main.html" width="100%" height="250"></iframe></p>
<p class="alert">This entry is based on a beta version of the Flex Gumbo SDK and therefore is very likely to change as development of the Flex SDK continues. The API can (and will) change causing examples to possibly not compile in newer versions of the Flex Gumbo SDK.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Using the new Fx prefix-less Flex Gumbo builds on FlexExamples.com',url: 'http://blog.flexexamples.com/2009/04/02/using-the-new-fx-prefix-less-flex-gumbo-builds/',contentID: 'post-1036',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'Gumbo',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2009/04/02/using-the-new-fx-prefix-less-flex-gumbo-builds/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Parsing the Kuler RSS feed using Flex</title>
		<link>http://blog.flexexamples.com/2007/08/22/parsing-the-kuler-rss-feed-using-flex/</link>
		<comments>http://blog.flexexamples.com/2007/08/22/parsing-the-kuler-rss-feed-using-flex/#comments</comments>
		<pubDate>Wed, 22 Aug 2007 14:54:35 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[HTTPService]]></category>
		<category><![CDATA[Kuler]]></category>
		<category><![CDATA[Namespace]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[itemRenderer]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/22/parsing-the-kuler-rss-feed-using-flex/</guid>
		<description><![CDATA[<p>Just a quick example I threw together last night which loads the Kuler RSS feed and displays some items in a DataGrid along with their rating and theme image (using the Flex Image control as a custom item renderer).</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Kuler_rss_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2007/08/22/parsing-the-kuler-rss-feed-using-flex/ --&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick example I threw together last night which loads the Kuler RSS feed and displays some items in a DataGrid along with their rating and theme image (using the Flex Image control as a custom item renderer).</p>
<p>Full code after the jump.</p>
<p><span id="more-112"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Kuler_rss_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/08/22/parsing-the-kuler-rss-feed-using-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        creationComplete="tempXML.send(httpServiceParams)"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.controls.dataGridClasses.DataGridColumn;

            private var kulerNS:Namespace = new Namespace("http://kulerserv/services/rss/kulerRSS");

            private function themeTitle_labelFunc(item:XML, column:DataGridColumn):String {
                return item.kulerNS::themeItem.kulerNS::themeTitle;
            }

            private function themeRating_labelFunc(item:XML, column:DataGridColumn):String {
                return item.kulerNS::themeItem.kulerNS::themeRating;
            }

            private function themeImage_labelFunc(item:XML, column:DataGridColumn):String {
                return item.kulerNS::themeItem.kulerNS::themeImage;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:Object id="httpServiceParams"
            listtype="rating"
            readerType="public" /&gt;

    &lt;mx:HTTPService id="tempXML"
            url="http://kuler.adobe.com/kuler/API/rss/get.cfm"
            resultFormat="e4x" /&gt;

    &lt;mx:XMLListCollection id="itemXMLListColl"
            source="{tempXML.lastResult.channel.item}" /&gt;

    &lt;mx:VDividedBox width="100%" height="100%" &gt;
        &lt;mx:DataGrid id="dataGrid"
                width="100%"
                dataProvider="{itemXMLListColl}"&gt;
            &lt;mx:columns&gt;
                &lt;mx:DataGridColumn headerText="Title:"
                        labelFunction="themeTitle_labelFunc"&gt;
                    &lt;mx:itemRenderer&gt;
                        &lt;mx:Component&gt;
                            &lt;mx:Label /&gt;
                        &lt;/mx:Component&gt;
                    &lt;/mx:itemRenderer&gt;
                &lt;/mx:DataGridColumn&gt;

                &lt;mx:DataGridColumn headerText="Rating:"
                        textAlign="center"
                        labelFunction="themeRating_labelFunc" /&gt;

                &lt;mx:DataGridColumn headerText="Image:"
                        textAlign="center"
                        labelFunction="themeImage_labelFunc"
                        itemRenderer="mx.controls.Image" /&gt;
            &lt;/mx:columns&gt;
        &lt;/mx:DataGrid&gt;

        &lt;mx:TextArea text="{tempXML.lastResult}"
                width="100%"
                height="100%" /&gt;
    &lt;/mx:VDividedBox&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Kuler_rss_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/Kuler_rss_test/bin/main.html" width="100%" height="400"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Parsing the Kuler RSS feed using Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/08/22/parsing-the-kuler-rss-feed-using-flex/',contentID: 'post-112',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'itemRenderer',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2007/08/22/parsing-the-kuler-rss-feed-using-flex/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

