<?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; TypographicCase</title>
	<atom:link href="http://blog.flexexamples.com/tag/typographiccase/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>Setting the typographic case on a Spark Label control in Flex 4</title>
		<link>http://blog.flexexamples.com/2010/01/26/setting-the-typographic-case-on-a-spark-label-control-in-flex-4/</link>
		<comments>http://blog.flexexamples.com/2010/01/26/setting-the-typographic-case-on-a-spark-label-control-in-flex-4/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 19:44:54 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta2]]></category>
		<category><![CDATA[Label (Spark)]]></category>
		<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[TypographicCase]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2333</guid>
		<description><![CDATA[<p>The following example shows how you can set the typographic case (lowercase, uppercase, etc) on a Spark Label control in Flex 4 by setting the typographicCase style to one of the static constants in the flash.text.engine.TypographicCase class.</p> <p>Full code after the jump.</p> <p></p> &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;!-- http://blog.flexexamples.com/2010/01/26/setting-the-typographic-case-on-a-spark-label-control-in-flex-4/ --&#62; &#60;s:Application name=&#34;Spark_Label_typographicCase_test&#34; xmlns:fx=&#34;http://ns.adobe.com/mxml/2009&#34; xmlns:s=&#34;library://ns.adobe.com/flex/spark&#34; xmlns:mx=&#34;library://ns.adobe.com/flex/mx&#34;&#62; &#60;s:controlBarContent&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set the typographic case (lowercase, uppercase, etc) on a Spark Label control in Flex 4 by setting the <code>typographicCase</code> style to one of the static constants in the flash.text.engine.TypographicCase class.</p>
<p>Full code after the jump.</p>
<p><span id="more-2333"></span></p>
<p class="alert">The following example(s) require Flash Player 10 and the Adobe Flex 4 SDK. To download the Adobe Flash Builder 4 trial, see <a href="http://bit.ly/crThlI">http://www.adobe.com/products/flex/</a>. To download the latest nightly build of the Flex 4 SDK, see <a href="http://bit.ly/Flex4SDK">http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4</a>.<br/><strong>For more information on getting started with Flex 4 and Flash Builder 4, see the official <a href="http://bit.ly/dCkecm">Adobe Flex Team blog</a>.</strong></p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2010/01/26/setting-the-typographic-case-on-a-spark-label-control-in-flex-4/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Application</span> name=<span style="color: #ff0000;">&quot;Spark_Label_typographicCase_test&quot;</span></span>
<span style="color: #000000;">        xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span> </span>
<span style="color: #000000;">        xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:controlBarContent</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:DropDownList</span> id=<span style="color: #ff0000;">&quot;ddl&quot;</span></span>
<span style="color: #000000;">                requireSelection=<span style="color: #ff0000;">&quot;true&quot;</span></span>
<span style="color: #000000;">                change=<span style="color: #ff0000;">&quot;ddl_changeHandler(event);&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:dataProvider</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:ArrayList</span><span style="color: #7400FF;">&gt;</span></span>
                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Object</span> label=<span style="color: #ff0000;">&quot;{TypographicCase.DEFAULT}&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Object</span> label=<span style="color: #ff0000;">&quot;{TypographicCase.CAPS}&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Object</span> label=<span style="color: #ff0000;">&quot;{TypographicCase.CAPS_AND_SMALL_CAPS}&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Object</span> label=<span style="color: #ff0000;">&quot;{TypographicCase.LOWERCASE}&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Object</span> label=<span style="color: #ff0000;">&quot;{TypographicCase.SMALL_CAPS}&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Object</span> label=<span style="color: #ff0000;">&quot;{TypographicCase.TITLE}&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Object</span> label=<span style="color: #ff0000;">&quot;{TypographicCase.UPPERCASE}&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:ArrayList</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:dataProvider</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:DropDownList</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:controlBarContent</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #000000;">            import flash.text.engine.TypographicCase;</span>
<span style="color: #000000;">            import spark.events.IndexChangeEvent;</span>
&nbsp;
<span style="color: #000000;">            protected function ddl_changeHandler<span style="color: #66cc66;">&#40;</span>evt:IndexChangeEvent<span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                if <span style="color: #66cc66;">&#40;</span>ddl.selectedItem<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                    lbl.setStyle<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;typographicCase&quot;</span>, ddl.selectedItem.label<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #000000;">        <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Style</span><span style="color: #7400FF;">&gt;</span></span>
        @font-face {
            src: url(&quot;C:/Windows/fonts/ArnoPro-Regular.otf&quot;);
            fontFamily: ArnoEmbedded;
            embedAsCFF: true;
            unicodeRange: U+0020-007E; /* englishRange */
        }
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Style</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Label</span> id=<span style="color: #ff0000;">&quot;lbl&quot;</span></span>
<span style="color: #000000;">            text=<span style="color: #ff0000;">&quot;The quick brown fox jumps over the lazy dog.&quot;</span></span>
<span style="color: #000000;">            fontFamily=<span style="color: #ff0000;">&quot;ArnoEmbedded&quot;</span></span>
<span style="color: #000000;">            fontSize=<span style="color: #ff0000;">&quot;72&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;90%&quot;</span></span>
<span style="color: #000000;">            horizontalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> verticalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Or you can set the <code>typographicCase</code> style in an external .CSS file or &lt;Style/&gt; block, as seen in the following example:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2010/01/26/setting-the-typographic-case-on-a-spark-label-control-in-flex-4/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Application</span> name=<span style="color: #ff0000;">&quot;Spark_Label_typographicCase_test&quot;</span></span>
<span style="color: #000000;">        xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span> </span>
<span style="color: #000000;">        xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Style</span><span style="color: #7400FF;">&gt;</span></span>
        @namespace s &quot;library://ns.adobe.com/flex/spark&quot;;
&nbsp;
        @font-face {
            src: url(&quot;C:/Windows/fonts/ArnoPro-Regular.otf&quot;);
            fontFamily: ArnoEmbedded;
            embedAsCFF: true;
            unicodeRange: U+0020-007E; /* englishRange */
        }
&nbsp;
        s|Label {
            fontFamily: ArnoEmbedded;
            fontSize: 72;
            typographicCase: capsAndSmallCaps;
        }
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Style</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Label</span> id=<span style="color: #ff0000;">&quot;lbl&quot;</span></span>
<span style="color: #000000;">            text=<span style="color: #ff0000;">&quot;The quick brown fox jumps over the lazy dog.&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;90%&quot;</span></span>
<span style="color: #000000;">            horizontalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> verticalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p class="alert">This entry is based on a beta version of the Flex 4 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 4 SDK.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting the typographic case on a Spark Label control in Flex 4 on FlexExamples.com',url: 'http://blog.flexexamples.com/2010/01/26/setting-the-typographic-case-on-a-spark-label-control-in-flex-4/',contentID: 'post-2333',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'Gumbo,TypographicCase',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/2010/01/26/setting-the-typographic-case-on-a-spark-label-control-in-flex-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting the typographic case on a Spark TextArea control in Flex 4</title>
		<link>http://blog.flexexamples.com/2008/10/20/setting-the-typographic-case-on-an-fxtextarea-control-in-flex-gumbo/</link>
		<comments>http://blog.flexexamples.com/2008/10/20/setting-the-typographic-case-on-an-fxtextarea-control-in-flex-gumbo/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 06:55:36 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta]]></category>
		<category><![CDATA[FxTextArea]]></category>
		<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[TypographicCase]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/10/20/setting-the-typographic-case-on-an-fxtextarea-control-in-flex-gumbo/</guid>
		<description><![CDATA[<p>The following example shows how you can set the typographic case on a Spark TextArea control in Flex 4 by setting the typographicCase style to one of the static constants in the flash.text.engine.TypographicCase class.</p> <p>Full code after the jump.</p> <p></p> &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;!-- http://blog.flexexamples.com/2008/10/20/setting-the-typographic-case-on-an-fxtextarea-control-in-flex-gumbo/ --&#62; &#60;Application name=&#34;FxTextArea_typographicCase_test&#34; xmlns=&#34;http://ns.adobe.com/mxml/2009&#34; layout=&#34;vertical&#34; verticalAlign=&#34;middle&#34; backgroundColor=&#34;white&#34;&#62; &#60;Script&#62; &#60;![CDATA[ import [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set the typographic case on a Spark TextArea control in Flex 4 by setting the <code>typographicCase</code> style to one of the static constants in the flash.text.engine.TypographicCase class.</p>
<p>Full code after the jump.</p>
<p><span id="more-837"></span></p>
<p class="alert">The following example(s) require Flash Player 10 and the Adobe Flex 4 SDK. To download the Adobe Flash Builder 4 trial, see <a href="http://bit.ly/crThlI">http://www.adobe.com/products/flex/</a>. To download the latest nightly build of the Flex 4 SDK, see <a href="http://bit.ly/Flex4SDK">http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4</a>.<br/><strong>For more information on getting started with Flex 4 and Flash Builder 4, see the official <a href="http://bit.ly/dCkecm">Adobe Flex Team blog</a>.</strong></p>
<pre class="code">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!-- http://blog.flexexamples.com/2008/10/20/setting-the-typographic-case-on-an-fxtextarea-control-in-flex-gumbo/ --&gt;
&lt;Application name=&quot;FxTextArea_typographicCase_test&quot;
        xmlns=&quot;http://ns.adobe.com/mxml/2009&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;Script&gt;
        &lt;![CDATA[
            import flash.text.engine.TypographicCase;
        ]]&gt;
    &lt;/Script&gt;

    &lt;Declarations&gt;
        &lt;String id=&quot;lorem&quot; source=&quot;data/lorem.html&quot; /&gt;
        &lt;Array id=&quot;arr&quot;&gt;
            &lt;Object label=&quot;{TypographicCase.CAPS}&quot; /&gt;
            &lt;Object label=&quot;{TypographicCase.CAPS_AND_SMALL_CAPS}&quot; /&gt;
            &lt;Object label=&quot;{TypographicCase.DEFAULT}&quot; /&gt;
            &lt;Object label=&quot;{TypographicCase.LOWERCASE}&quot; /&gt;
            &lt;Object label=&quot;{TypographicCase.SMALL_CAPS}&quot; /&gt;
            &lt;Object label=&quot;{TypographicCase.TITLE}&quot; /&gt;
            &lt;Object label=&quot;{TypographicCase.UPPERCASE}&quot; /&gt;
        &lt;/Array&gt;
    &lt;/Declarations&gt;

    &lt;ApplicationControlBar dock=&quot;true&quot;&gt;
        &lt;Form styleName=&quot;plain&quot;&gt;
            &lt;FormItem label=&quot;typographicCase:&quot;&gt;
                &lt;ComboBox id=&quot;comboBox&quot;
                        dataProvider=&quot;{arr}&quot;
                        selectedIndex=&quot;2&quot; /&gt;
            &lt;/FormItem&gt;
        &lt;/Form&gt;
    &lt;/ApplicationControlBar&gt;

    &lt;FxTextArea id=&quot;fxTextArea&quot;
            content=&quot;{lorem}&quot;
            typographicCase=&quot;{comboBox.selectedItem.label}&quot;
            widthInChars=&quot;80&quot;
            marginTop=&quot;20&quot; /&gt;

&lt;/Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/FxTextArea_typographicCase_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/FxTextArea_typographicCase_test/bin/main.html" width="100%" height="300"></iframe></p>
<p>You can also set the <code>typographicCase</code> style in an external .CSS file or &lt;mx:Style /&gt; block, as seen in the following example:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/FxTextArea_typographicCase_test/bin/srcview/source/main2.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!-- http://blog.flexexamples.com/2008/10/20/setting-the-typographic-case-on-an-fxtextarea-control-in-flex-gumbo/ --&gt;
&lt;Application name=&quot;FxTextArea_typographicCase_test&quot;
        xmlns=&quot;http://ns.adobe.com/mxml/2009&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;Style&gt;
        FxTextArea {
            typographicCase: &quot;uppercase&quot;;
        }
    &lt;/Style&gt;

    &lt;Declarations&gt;
        &lt;String id=&quot;lorem&quot; source=&quot;data/lorem.html&quot; /&gt;
    &lt;/Declarations&gt;

    &lt;FxTextArea id=&quot;fxTextArea&quot;
            content=&quot;{lorem}&quot;
            widthInChars=&quot;80&quot;
            marginTop=&quot;20&quot; /&gt;

&lt;/Application&gt;
</pre>
<p>Or, you can set the <code>typographicCase</code> style using ActionScript, as seen in the following example:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/FxTextArea_typographicCase_test/bin/srcview/source/main3.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!-- http://blog.flexexamples.com/2008/10/20/setting-the-typographic-case-on-an-fxtextarea-control-in-flex-gumbo/ --&gt;
&lt;Application name=&quot;FxTextArea_typographicCase_test&quot;
        xmlns=&quot;http://ns.adobe.com/mxml/2009&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;Script&gt;
        &lt;![CDATA[
            import flash.text.engine.TypographicCase;
            import mx.events.ListEvent;

            private function comboBox_change(evt:ListEvent):void {
                var value:String = comboBox.selectedItem.label;
                fxTextArea.setStyle(&quot;typographicCase&quot;, value);
            }
        ]]&gt;
    &lt;/Script&gt;

    &lt;Declarations&gt;
        &lt;String id=&quot;lorem&quot; source=&quot;data/lorem.html&quot; /&gt;
        &lt;Array id=&quot;arr&quot;&gt;
            &lt;Object label=&quot;{TypographicCase.CAPS}&quot; /&gt;
            &lt;Object label=&quot;{TypographicCase.CAPS_AND_SMALL_CAPS}&quot; /&gt;
            &lt;Object label=&quot;{TypographicCase.DEFAULT}&quot; /&gt;
            &lt;Object label=&quot;{TypographicCase.LOWERCASE}&quot; /&gt;
            &lt;Object label=&quot;{TypographicCase.SMALL_CAPS}&quot; /&gt;
            &lt;Object label=&quot;{TypographicCase.TITLE}&quot; /&gt;
            &lt;Object label=&quot;{TypographicCase.UPPERCASE}&quot; /&gt;
        &lt;/Array&gt;
    &lt;/Declarations&gt;

    &lt;ApplicationControlBar dock=&quot;true&quot;&gt;
        &lt;Form styleName=&quot;plain&quot;&gt;
            &lt;FormItem label=&quot;typographicCase:&quot;&gt;
                &lt;ComboBox id=&quot;comboBox&quot;
                        dataProvider=&quot;{arr}&quot;
                        selectedIndex=&quot;2&quot;
                        change=&quot;comboBox_change(event);&quot; /&gt;
            &lt;/FormItem&gt;
        &lt;/Form&gt;
    &lt;/ApplicationControlBar&gt;

    &lt;FxTextArea id=&quot;fxTextArea&quot;
            content=&quot;{lorem}&quot;
            widthInChars=&quot;80&quot;
            marginTop=&quot;20&quot; /&gt;

&lt;/Application&gt;
</pre>
<p>Due to popular demand, here is the &#8220;same&#8221; example in a more ActionScript friendly format:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/FxTextArea_typographicCase_test/bin/srcview/source/main4.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!-- http://blog.flexexamples.com/2008/10/20/setting-the-typographic-case-on-an-fxtextarea-control-in-flex-gumbo/ --&gt;
&lt;Application name=&quot;FxTextArea_typographicCase_test&quot;
        xmlns=&quot;http://ns.adobe.com/mxml/2009&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;
        initialize=&quot;init();&quot;&gt;

    &lt;Declarations&gt;
        &lt;String id=&quot;lorem&quot; source=&quot;data/lorem.html&quot; /&gt;
    &lt;/Declarations&gt;

    &lt;Script&gt;
        &lt;![CDATA[
            import flash.text.engine.TypographicCase;
            import mx.components.FxTextArea;
            import mx.containers.ApplicationControlBar;
            import mx.containers.Form;
            import mx.containers.FormItem;
            import mx.controls.ComboBox;
            import mx.events.ListEvent;

            private var comboBox:ComboBox;
            private var fxTextArea:FxTextArea;
            private var arr:Array;

            private function init():void {
                arr = [];
                arr.push({label:TypographicCase.CAPS});
                arr.push({label:TypographicCase.CAPS_AND_SMALL_CAPS});
                arr.push({label:TypographicCase.DEFAULT});
                arr.push({label:TypographicCase.LOWERCASE});
                arr.push({label:TypographicCase.SMALL_CAPS});
                arr.push({label:TypographicCase.TITLE});
                arr.push({label:TypographicCase.UPPERCASE});

                comboBox = new ComboBox();
                comboBox.dataProvider = arr;
                comboBox.selectedIndex = 2;
                comboBox.addEventListener(ListEvent.CHANGE,
                            comboBox_change);

                var formItem:FormItem = new FormItem();
                formItem.label = &quot;typographicCase:&quot;;
                formItem.addChild(comboBox);

                var form:Form = new Form();
                form.styleName = &quot;plain&quot;;
                form.addChild(formItem);

                var appControlBar:ApplicationControlBar;
                appControlBar = new ApplicationControlBar();
                appControlBar.dock = true;
                appControlBar.addChild(form);
                addChildAt(appControlBar, 0);

                fxTextArea = new FxTextArea();
                fxTextArea.content = lorem;
                fxTextArea.widthInChars = 80;
                fxTextArea.setStyle(&quot;marginTop&quot;, 20);
                addChild(fxTextArea);
            }

            private function comboBox_change(evt:ListEvent):void {
                var value:String = comboBox.selectedItem.label;
                fxTextArea.setStyle(&quot;typographicCase&quot;, value);
            }
        ]]&gt;
    &lt;/Script&gt;

&lt;/Application&gt;
</pre>
<p class="alert">This entry is based on a beta version of the Flex 4 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 4 SDK.</p>
<p>For more information on the TypographicCase class in Flash Player 10, see <a href="http://livedocs.adobe.com/flex/gumbo/langref/flash/text/engine/TypographicCase.html">http://livedocs.adobe.com/flex/gumbo/langref/flash/text/engine/TypographicCase.html</a>.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting the typographic case on a Spark TextArea control in Flex 4 on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/10/20/setting-the-typographic-case-on-an-fxtextarea-control-in-flex-gumbo/',contentID: 'post-837',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'Gumbo,TypographicCase',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/2008/10/20/setting-the-typographic-case-on-an-fxtextarea-control-in-flex-gumbo/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

