<?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; Panel</title>
	<atom:link href="http://blog.flexexamples.com/category/halo/panel/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>Smoothing the background fill on an MX Panel container in Flex 3</title>
		<link>http://blog.flexexamples.com/2010/03/15/smoothing-the-background-fill-on-an-mx-panel-container-in-flex-3/</link>
		<comments>http://blog.flexexamples.com/2010/03/15/smoothing-the-background-fill-on-an-mx-panel-container-in-flex-3/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 01:34:36 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Embed]]></category>
		<category><![CDATA[Panel]]></category>
		<category><![CDATA[backgroundImage]]></category>
		<category><![CDATA[backgroundSize]]></category>
		<category><![CDATA[BitmapAsset]]></category>
		<category><![CDATA[smoothing]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2601</guid>
		<description><![CDATA[<p>The following example shows how you can apply smoothing to a background image fill on an MX Panel container in Flex 3 by extending the BitmapAsset class, setting the Boolean smoothing property, and setting the backgroundImage and backgroundSize styles.</p> <p></p> &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;!-- http://blog.flexexamples.com/2010/03/15/smoothing-the-background-fill-on-an-mx-panel-container-in-flex-3/ --&#62; &#60;mx:Application name=&#34;Embed_smoothing_test&#34; xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;vertical&#34; verticalAlign=&#34;middle&#34; backgroundColor=&#34;white&#34;&#62; &#160; &#60;mx:Panel id=&#34;pnl1&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can apply smoothing to a background image fill on an MX Panel container in Flex 3 by extending the BitmapAsset class, setting the Boolean <code>smoothing</code> property, and setting the <code>backgroundImage</code> and <code>backgroundSize</code> styles.</p>
<p><span id="more-2601"></span></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/03/15/smoothing-the-background-fill-on-an-mx-panel-container-in-flex-3/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> name=<span style="color: #ff0000;">&quot;Embed_smoothing_test&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">        layout=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">        verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span></span>
<span style="color: #000000;">        backgroundColor=<span style="color: #ff0000;">&quot;white&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> id=<span style="color: #ff0000;">&quot;pnl1&quot;</span></span>
<span style="color: #000000;">            title=<span style="color: #ff0000;">&quot;default&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;50%&quot;</span></span>
<span style="color: #000000;">            backgroundImage=<span style="color: #ff0000;">&quot;@Embed('fx_appicon-tn.gif')&quot;</span></span>
<span style="color: #000000;">            backgroundSize=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> id=<span style="color: #ff0000;">&quot;pnl2&quot;</span></span>
<span style="color: #000000;">            title=<span style="color: #ff0000;">&quot;smoothing (MXML)&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;50%&quot;</span></span>
<span style="color: #000000;">            backgroundImage=<span style="color: #ff0000;">&quot;{FxLogo}&quot;</span></span>
<span style="color: #000000;">            backgroundSize=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>And the custom BitmapAsset class, <code>FxLogo.as</code>, is as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #3f5fbf;">/**
 * http://blog.flexexamples.com/2010/03/15/smoothing-the-background-fill-on-an-mx-panel-container-in-flex-3/ 
 */</span>
<span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #000000;">&#123;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> mx<span style="color: #000066; font-weight: bold;">.</span>core<span style="color: #000066; font-weight: bold;">.</span>BitmapAsset<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
    <span style="color: #000000;">&#91;</span>Embed<span style="color: #000000;">&#40;</span><span style="color: #004993;">source</span>=<span style="color: #990000;">&quot;fx_appicon-tn.gif&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span>
    <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> FxLogo <span style="color: #0033ff; font-weight: bold;">extends</span> BitmapAsset <span style="color: #000000;">&#123;</span>
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> FxLogo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
            <span style="color: #004993;">smoothing</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>You can also set the <code>backgroundImage</code> and <code>backgroundSize</code> styles 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/03/15/smoothing-the-background-fill-on-an-mx-panel-container-in-flex-3/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> name=<span style="color: #ff0000;">&quot;Embed_smoothing_test&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">        layout=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">        verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span></span>
<span style="color: #000000;">        backgroundColor=<span style="color: #ff0000;">&quot;white&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Style</span><span style="color: #7400FF;">&gt;</span></span>
        .fxLogoStyles {
            backgroundImage: ClassReference(&quot;FxLogo&quot;);
            backgroundSize: &quot;100%&quot;;
        }
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Style</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> id=<span style="color: #ff0000;">&quot;pnl1&quot;</span></span>
<span style="color: #000000;">            title=<span style="color: #ff0000;">&quot;default&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;50%&quot;</span></span>
<span style="color: #000000;">            backgroundImage=<span style="color: #ff0000;">&quot;@Embed('fx_appicon-tn.gif')&quot;</span></span>
<span style="color: #000000;">            backgroundSize=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> id=<span style="color: #ff0000;">&quot;pnl2&quot;</span></span>
<span style="color: #000000;">            title=<span style="color: #ff0000;">&quot;smoothing (CSS)&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;50%&quot;</span></span>
<span style="color: #000000;">            styleName=<span style="color: #ff0000;">&quot;fxLogoStyles&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Or you can also set the <code>backgroundImage</code> and <code>backgroundSize</code> styles using ActionScript, 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/03/15/smoothing-the-background-fill-on-an-mx-panel-container-in-flex-3/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> name=<span style="color: #ff0000;">&quot;Embed_smoothing_test&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">        layout=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">        verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span></span>
<span style="color: #000000;">        backgroundColor=<span style="color: #ff0000;">&quot;white&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            protected function init():void {</span>
<span style="color: #339933;">                pnl2.setStyle(&quot;backgroundImage&quot;, FxLogo);</span>
<span style="color: #339933;">                pnl2.setStyle(&quot;backgroundSize&quot;, &quot;100%&quot;);</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> id=<span style="color: #ff0000;">&quot;pnl1&quot;</span></span>
<span style="color: #000000;">            title=<span style="color: #ff0000;">&quot;default&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;50%&quot;</span></span>
<span style="color: #000000;">            backgroundImage=<span style="color: #ff0000;">&quot;@Embed('fx_appicon-tn.gif')&quot;</span></span>
<span style="color: #000000;">            backgroundSize=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> id=<span style="color: #ff0000;">&quot;pnl2&quot;</span></span>
<span style="color: #000000;">            title=<span style="color: #ff0000;">&quot;smoothing (ActionScript)&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;50%&quot;</span></span>
<span style="color: #000000;">            initialize=<span style="color: #ff0000;">&quot;init();&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Smoothing the background fill on an MX Panel container in Flex 3 on FlexExamples.com',url: 'http://blog.flexexamples.com/2010/03/15/smoothing-the-background-fill-on-an-mx-panel-container-in-flex-3/',contentID: 'post-2601',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'backgroundImage,backgroundSize,BitmapAsset,smoothing',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/03/15/smoothing-the-background-fill-on-an-mx-panel-container-in-flex-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setting a control bar background image fill on a Halo Panel control in Flex 4</title>
		<link>http://blog.flexexamples.com/2009/07/08/setting-a-control-bar-background-image-fill-on-a-halo-panel-control-in-flex-4/</link>
		<comments>http://blog.flexexamples.com/2009/07/08/setting-a-control-bar-background-image-fill-on-a-halo-panel-control-in-flex-4/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 06:59:06 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta1]]></category>
		<category><![CDATA[Panel]]></category>
		<category><![CDATA[borderSkin]]></category>
		<category><![CDATA[Gumbo]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/?p=1469</guid>
		<description><![CDATA[<p>The following example shows how you can set the control bar background image fill on a Halo Panel control (with default Spark skin) in Flex 4 by setting the borderSkin style.</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/2009/07/08/setting-a-control-bar-background-image-fill-on-a-halo-panel-control-in-flex-4/ --&#62; &#60;s:Application name=&#34;Halo_Panel_borderSkin_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/halo&#34;&#62; &#160; &#60;mx:Panel id=&#34;panel&#34; borderSkin=&#34;skins.CustomPanelBorderSkin&#34; width=&#34;80%&#34; height=&#34;80%&#34; horizontalCenter=&#34;0&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set the control bar background image fill on a Halo Panel control (with default Spark skin) in Flex 4 by setting the <code>borderSkin</code> style.</p>
<p>Full code after the jump.</p>
<p><span id="more-1469"></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/2009/07/08/setting-a-control-bar-background-image-fill-on-a-halo-panel-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;Halo_Panel_borderSkin_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/halo&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> id=<span style="color: #ff0000;">&quot;panel&quot;</span></span>
<span style="color: #000000;">            borderSkin=<span style="color: #ff0000;">&quot;skins.CustomPanelBorderSkin&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;80%&quot;</span> height=<span style="color: #ff0000;">&quot;80%&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>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:List</span> id=<span style="color: #ff0000;">&quot;list&quot;</span> labelField=<span style="color: #ff0000;">&quot;fontName&quot;</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;100%&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> source=<span style="color: #ff0000;">&quot;{Font.enumerateFonts(true)}&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:List</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ControlBar</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;60&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Group</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:SimpleText</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;{list.selectedItem.fontName}&quot;</span></span>
<span style="color: #000000;">                        fontSize=<span style="color: #ff0000;">&quot;32&quot;</span></span>
<span style="color: #000000;">                        maxDisplayedLines=<span style="color: #ff0000;">&quot;1&quot;</span></span>
<span style="color: #000000;">                        width=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Group</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:ControlBar</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</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>And the custom skin class, skins/CustomPanelBorderSkin.mxml, is as follows:</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/2009/07/08/setting-a-control-bar-background-image-fill-on-a-halo-panel-control-in-flex-4/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:SparkSkin</span> name=<span style="color: #ff0000;">&quot;CustomPanelBorderSkin&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;">        implements=<span style="color: #ff0000;">&quot;mx.core.IRectangularBorder&quot;</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 mx.core.EdgeMetrics;</span>
<span style="color: #000000;">            import mx.core.IUIComponent;</span>
&nbsp;
<span style="color: #000000;">            /* Define the skin elements that should not be colorized. </span>
<span style="color: #000000;">               For panel, border and title backround are skinned, but the content area and title text are not. */</span>
<span style="color: #000000;">            static private const exclusions:Array = <span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;background&quot;</span><span style="color: #66cc66;">&#93;</span>;</span>
<span style="color: #000000;">            override public function get colorizeExclusions<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:Array <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                return exclusions;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
&nbsp;
<span style="color: #000000;">            /* Define the content fill items that should be colored by the <span style="color: #ff0000;">&quot;contentBackgroundColor&quot;</span> style. */</span>
<span style="color: #000000;">            static private const contentFill:Array = <span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;bgFill&quot;</span><span style="color: #66cc66;">&#93;</span>;</span>
<span style="color: #000000;">            override public function get contentItems<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:Array <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                return contentFill</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
&nbsp;
<span style="color: #000000;">            private var _metrics:EdgeMetrics = new EdgeMetrics<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">32</span>, <span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">            public function get borderMetrics<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:EdgeMetrics <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                var hasPanelParent:Boolean = isPanel<span style="color: #66cc66;">&#40;</span>parent<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                var controlBar:IUIComponent = hasPanelParent ? Object<span style="color: #66cc66;">&#40;</span>parent<span style="color: #66cc66;">&#41;</span>.mx_internal::_controlBar : null;</span>
&nbsp;
<span style="color: #000000;">                if <span style="color: #66cc66;">&#40;</span>controlBar &amp;&amp; controlBar.includeInLayout<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                    _metrics.bottom = controlBar.getExplicitOrMeasuredHeight<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> + <span style="color: #cc66cc;">1</span>;</span>
<span style="color: #000000;">                <span style="color: #66cc66;">&#125;</span> else <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                    _metrics.bottom = <span style="color: #cc66cc;">1</span>;</span>
<span style="color: #000000;">                <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #000000;">                return _metrics;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
&nbsp;
<span style="color: #000000;">            public function get backgroundImageBounds<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:Rectangle <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                return null;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
&nbsp;
<span style="color: #000000;">            public function set backgroundImageBounds<span style="color: #66cc66;">&#40;</span>value:Rectangle<span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
&nbsp;
<span style="color: #000000;">            public function get hasBackgroundImage<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:Boolean <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                return false;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
&nbsp;
<span style="color: #000000;">            public function layoutBackgroundImage<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
&nbsp;
<span style="color: #000000;">            override protected function updateDisplayList<span style="color: #66cc66;">&#40;</span>unscaledWidth:Number, unscaledHeight:Number<span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                var em:EdgeMetrics = borderMetrics;</span>
<span style="color: #000000;">                if <span style="color: #66cc66;">&#40;</span>em.bottom <span style="color: #7400FF;">&gt;</span></span> 1) {
                    cbbg.height = em.bottom - 1;
                    cbdiv.bottom = cbbg.height;
                    cbbg.visible = cbdiv.visible = true;
                } else {
                    cbbg.visible = cbdiv.visible = false;
                }
                super.updateDisplayList(unscaledWidth, unscaledHeight);
            }
&nbsp;
            private static var panels:Object = {};
&nbsp;
            private static function isPanel(parent:Object):Boolean {
                var s:String = getQualifiedClassName(parent);
                if (panels[s] == 1) {
                    return true;
                }
                if (panels[s] == 0) {
                    return false;
                }
                if (s == &quot;mx.containers::Panel&quot;) {
                    panels[s] == 1;
                    return true;
                }
                var x:XML = describeType(parent);
                var xmllist:XMLList = x.extendsClass.(@type == &quot;mx.containers::Panel&quot;);
                if (xmllist.length() == 0) {
                    panels[s] = 0;
                    return false;
                }
                panels[s] = 1;
                return true;
            }
        ]]&gt;
    <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: #808080; font-style: italic;">&lt;!-- drop shadow --&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> left=<span style="color: #ff0000;">&quot;0&quot;</span> top=<span style="color: #ff0000;">&quot;0&quot;</span> right=<span style="color: #ff0000;">&quot;0&quot;</span> bottom=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:filters</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:DropShadowFilter</span> blurX=<span style="color: #ff0000;">&quot;20&quot;</span> blurY=<span style="color: #ff0000;">&quot;20&quot;</span> alpha=<span style="color: #ff0000;">&quot;0.32&quot;</span> distance=<span style="color: #ff0000;">&quot;11&quot;</span> angle=<span style="color: #ff0000;">&quot;90&quot;</span> knockout=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:filters</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:fill</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:SolidColor</span> color=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:fill</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Rect</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- layer 1: border --&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> left=<span style="color: #ff0000;">&quot;0&quot;</span> right=<span style="color: #ff0000;">&quot;0&quot;</span> top=<span style="color: #ff0000;">&quot;0&quot;</span> bottom=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:stroke</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:SolidColorStroke</span> color=<span style="color: #ff0000;">&quot;0&quot;</span> alpha=<span style="color: #ff0000;">&quot;0.50&quot;</span> weight=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:stroke</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Rect</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- layer 2: background fill --&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> id=<span style="color: #ff0000;">&quot;background&quot;</span> left=<span style="color: #ff0000;">&quot;1&quot;</span> top=<span style="color: #ff0000;">&quot;1&quot;</span> right=<span style="color: #ff0000;">&quot;1&quot;</span> bottom=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:fill</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:SolidColor</span> color=<span style="color: #ff0000;">&quot;0xFFFFFF&quot;</span> id=<span style="color: #ff0000;">&quot;bgFill&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:fill</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Rect</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- layer 3: title bar fill --&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> left=<span style="color: #ff0000;">&quot;1&quot;</span> right=<span style="color: #ff0000;">&quot;1&quot;</span> top=<span style="color: #ff0000;">&quot;1&quot;</span> height=<span style="color: #ff0000;">&quot;30&quot;</span><span style="color: #7400FF;">&gt;</span></span>
       <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:fill</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:LinearGradient</span> rotation=<span style="color: #ff0000;">&quot;90&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:GradientEntry</span> color=<span style="color: #ff0000;">&quot;0xE2E2E2&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:GradientEntry</span> color=<span style="color: #ff0000;">&quot;0xD9D9D9&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:LinearGradient</span><span style="color: #7400FF;">&gt;</span></span>
       <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:fill</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Rect</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- layer 4: title bar highlight --&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> left=<span style="color: #ff0000;">&quot;1&quot;</span> right=<span style="color: #ff0000;">&quot;1&quot;</span> top=<span style="color: #ff0000;">&quot;1&quot;</span> height=<span style="color: #ff0000;">&quot;30&quot;</span><span style="color: #7400FF;">&gt;</span></span>
       <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:stroke</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:LinearGradientStroke</span> rotation=<span style="color: #ff0000;">&quot;90&quot;</span> weight=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:GradientEntry</span> color=<span style="color: #ff0000;">&quot;0xEAEAEA&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:GradientEntry</span> color=<span style="color: #ff0000;">&quot;0xD9D9D9&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:LinearGradientStroke</span><span style="color: #7400FF;">&gt;</span></span>
       <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:stroke</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Rect</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> left=<span style="color: #ff0000;">&quot;1&quot;</span> right=<span style="color: #ff0000;">&quot;1&quot;</span> top=<span style="color: #ff0000;">&quot;31&quot;</span> height=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:fill</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:SolidColor</span> color=<span style="color: #ff0000;">&quot;0xC0C0C0&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:fill</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Rect</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- layer 5: control bar background --&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> id=<span style="color: #ff0000;">&quot;cbbg&quot;</span> left=<span style="color: #ff0000;">&quot;1&quot;</span> right=<span style="color: #ff0000;">&quot;1&quot;</span> bottom=<span style="color: #ff0000;">&quot;1&quot;</span> height=<span style="color: #ff0000;">&quot;20&quot;</span> alpha=<span style="color: #ff0000;">&quot;0.6&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:fill</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:BitmapFill</span> source=<span style="color: #ff0000;">&quot;@Embed('assets/pattern_149.gif')&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:fill</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Rect</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- layer 6: control bar divider line --&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> id=<span style="color: #ff0000;">&quot;cbdiv&quot;</span> left=<span style="color: #ff0000;">&quot;1&quot;</span> right=<span style="color: #ff0000;">&quot;1&quot;</span> bottom=<span style="color: #ff0000;">&quot;20&quot;</span> height=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:fill</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:SolidColor</span> color=<span style="color: #ff0000;">&quot;0xCDCDCD&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:fill</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Rect</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:SparkSkin</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<div span="googleAdsLeaderboard">
<script type="text/javascript"><!--
google_ad_client = "pub-3325829455487492";
/* 728x90, created 7/15/09 */
google_ad_slot = "6403511741";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br />
</div>
<p>Or, you can set the <code>borderSkin</code> style globally using ActionScript, 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/2009/07/08/setting-a-control-bar-background-image-fill-on-a-halo-panel-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;Halo_Panel_borderSkin_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/halo&quot;</span></span>
<span style="color: #000000;">        initialize=<span style="color: #ff0000;">&quot;init();&quot;</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 skins.CustomPanelBorderSkin;</span>
&nbsp;
<span style="color: #000000;">            private function init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                var panelStyles:CSSStyleDeclaration = StyleManager.getStyleDeclaration<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;mx.containers.Panel&quot;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                panelStyles.setStyle<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;borderSkin&quot;</span>, CustomPanelBorderSkin<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;">&#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;mx:Panel</span> id=<span style="color: #ff0000;">&quot;panel&quot;</span></span>
<span style="color: #000000;">            borderSkin=<span style="color: #ff0000;">&quot;skins.CustomPanelBorderSkin&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;80%&quot;</span> height=<span style="color: #ff0000;">&quot;80%&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>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:List</span> id=<span style="color: #ff0000;">&quot;list&quot;</span> labelField=<span style="color: #ff0000;">&quot;fontName&quot;</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;100%&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> source=<span style="color: #ff0000;">&quot;{Font.enumerateFonts(true)}&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:List</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ControlBar</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;60&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Group</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:SimpleText</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;{list.selectedItem.fontName}&quot;</span></span>
<span style="color: #000000;">                        fontSize=<span style="color: #ff0000;">&quot;32&quot;</span></span>
<span style="color: #000000;">                        maxDisplayedLines=<span style="color: #ff0000;">&quot;1&quot;</span></span>
<span style="color: #000000;">                        width=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Group</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:ControlBar</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</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 a control bar background image fill on a Halo Panel control in Flex 4 on FlexExamples.com',url: 'http://blog.flexexamples.com/2009/07/08/setting-a-control-bar-background-image-fill-on-a-halo-panel-control-in-flex-4/',contentID: 'post-1469',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'borderSkin,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/07/08/setting-a-control-bar-background-image-fill-on-a-halo-panel-control-in-flex-4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Toggling the drop shadow on a Panel container in Flex</title>
		<link>http://blog.flexexamples.com/2008/10/19/toggling-the-drop-shadow-on-a-panel-container-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/10/19/toggling-the-drop-shadow-on-a-panel-container-in-flex/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 05:25:02 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Panel]]></category>
		<category><![CDATA[dropShadowEnabled]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/10/19/toggling-the-drop-shadow-on-a-panel-container-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can toggle the drop shadow on a Flex Panel container by setting the dropShadowEnabled style.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_dropShadowEnabled_test/bin/srcview/source/main.mxml.html">View MXML</a></p> &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;!-- http://blog.flexexamples.com/2008/10/19/toggling-the-drop-shadow-on-a-panel-container-in-flex/ --&#62; &#60;mx:Application name=&#34;Panel_dropShadowEnabled_test&#34; xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;vertical&#34; verticalAlign=&#34;middle&#34; backgroundColor=&#34;white&#34;&#62; &#60;mx:ApplicationControlBar dock=&#34;true&#34;&#62; &#60;mx:CheckBox id=&#34;checkBox&#34; label=&#34;dropShadowEnabled:&#34; labelPlacement=&#34;left&#34; selected=&#34;true&#34; /&#62; &#60;/mx:ApplicationControlBar&#62; &#60;mx:Panel id=&#34;panel&#34; title=&#34;Panel [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can toggle the drop shadow on a Flex Panel container by setting the <code>dropShadowEnabled</code> style.</p>
<p>Full code after the jump.</p>
<p><span id="more-836"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_dropShadowEnabled_test/bin/srcview/source/main.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/19/toggling-the-drop-shadow-on-a-panel-container-in-flex/ --&gt;
&lt;mx:Application name=&quot;Panel_dropShadowEnabled_test&quot;
        xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:ApplicationControlBar dock=&quot;true&quot;&gt;
        &lt;mx:CheckBox id=&quot;checkBox&quot;
                label=&quot;dropShadowEnabled:&quot;
                labelPlacement=&quot;left&quot;
                selected=&quot;true&quot; /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:Panel id=&quot;panel&quot;
            title=&quot;Panel title&quot;
            width=&quot;100%&quot;
            height=&quot;100%&quot;
            borderColor=&quot;haloSilver&quot;
            dropShadowEnabled=&quot;{checkBox.selected}&quot;&gt;
        &lt;mx:Label text=&quot;Panel contents&quot; /&gt;
    &lt;/mx:Panel&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_dropShadowEnabled_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/Panel_dropShadowEnabled_test/bin/main.html" width="100%" height="250"></iframe></p>
<p>You can also set the <code>dropShadowEnabled</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/Panel_dropShadowEnabled_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/19/toggling-the-drop-shadow-on-a-panel-container-in-flex/ --&gt;
&lt;mx:Application name=&quot;Panel_dropShadowEnabled_test&quot;
        xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:Style&gt;
        Panel {
            border-color: haloSilver;
            dropShadowEnabled: false;
        }
    &lt;/mx:Style&gt;

    &lt;mx:Panel id=&quot;panel&quot;
            title=&quot;Panel title&quot;
            width=&quot;100%&quot;
            height=&quot;100%&quot;&gt;
        &lt;mx:Label text=&quot;Panel contents&quot; /&gt;
    &lt;/mx:Panel&gt;

&lt;/mx:Application&gt;
</pre>
<p>Or, you can set the <code>dropShadowEnabled</code> style using ActionScript, as seen in the following example:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_dropShadowEnabled_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/19/toggling-the-drop-shadow-on-a-panel-container-in-flex/ --&gt;
&lt;mx:Application name=&quot;Panel_dropShadowEnabled_test&quot;
        xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function checkBox_change(evt:Event):void {
                panel.setStyle(&quot;dropShadowEnabled&quot;, checkBox.selected);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ApplicationControlBar dock=&quot;true&quot;&gt;
        &lt;mx:CheckBox id=&quot;checkBox&quot;
                label=&quot;dropShadowEnabled:&quot;
                labelPlacement=&quot;left&quot;
                selected=&quot;true&quot;
                change=&quot;checkBox_change(event);&quot; /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:Panel id=&quot;panel&quot;
            title=&quot;Panel title&quot;
            width=&quot;100%&quot;
            height=&quot;100%&quot;
            borderColor=&quot;haloSilver&quot;&gt;
        &lt;mx:Label text=&quot;Panel contents&quot; /&gt;
    &lt;/mx:Panel&gt;

&lt;/mx:Application&gt;
</pre>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Toggling the drop shadow on a Panel container in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/10/19/toggling-the-drop-shadow-on-a-panel-container-in-flex/',contentID: 'post-836',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'dropShadowEnabled',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/19/toggling-the-drop-shadow-on-a-panel-container-in-flex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adding a title icon to a Panel container in Flex</title>
		<link>http://blog.flexexamples.com/2008/10/18/adding-a-title-icon-to-a-panel-container-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/10/18/adding-a-title-icon-to-a-panel-container-in-flex/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 06:11:56 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Panel]]></category>
		<category><![CDATA[titleIcon]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/10/18/adding-a-title-icon-to-a-panel-container-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can add an icon to a Flex Panel container&#8217;s title bar by setting the titleIcon property.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_titleIcon_test/bin/srcview/source/main.mxml.html">View MXML</a></p> &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;!-- http://blog.flexexamples.com/2008/10/18/adding-a-title-icon-to-a-panel-container-in-flex/ --&#62; &#60;mx:Application name=&#34;Panel_titleIcon_test&#34; xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;vertical&#34; verticalAlign=&#34;middle&#34; backgroundColor=&#34;white&#34;&#62; &#60;mx:String id=&#34;lorem&#34; source=&#34;lorem.txt&#34; /&#62; &#60;mx:Panel id=&#34;panel&#34; title=&#34;Panel title&#34; titleIcon=&#34;@Embed('assets/Panel.png')&#34;&#62; &#60;mx:Text id=&#34;txt&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can add an icon to a Flex Panel container&#8217;s title bar by setting the <code>titleIcon</code> property.</p>
<p>Full code after the jump.</p>
<p><span id="more-835"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_titleIcon_test/bin/srcview/source/main.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/18/adding-a-title-icon-to-a-panel-container-in-flex/ --&gt;
&lt;mx:Application name=&quot;Panel_titleIcon_test&quot;
        xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:String id=&quot;lorem&quot; source=&quot;lorem.txt&quot; /&gt;

    &lt;mx:Panel id=&quot;panel&quot;
            title=&quot;Panel title&quot;
            titleIcon=&quot;@Embed('assets/Panel.png')&quot;&gt;
        &lt;mx:Text id=&quot;txt&quot;
                text=&quot;{lorem}&quot;
                width=&quot;500&quot;
                textAlign=&quot;justify&quot;
                selectable=&quot;false&quot; /&gt;
    &lt;/mx:Panel&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_titleIcon_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/Panel_titleIcon_test/bin/main.html" width="100%" height="300"></iframe></p>
<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/Panel_titleIcon_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/18/adding-a-title-icon-to-a-panel-container-in-flex/ --&gt;
&lt;mx:Application name=&quot;Panel_titleIcon_test&quot;
        xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;
        initialize=&quot;init();&quot;&gt;

    &lt;mx:String id=&quot;lorem&quot; source=&quot;lorem.txt&quot; /&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.controls.Text;
            import mx.containers.Panel;

            [Embed(&quot;assets/Panel.png&quot;)]
            private const PanelTitleIcon:Class;

            private var panel:Panel;

            private function init():void {
                var txt:Text = new Text();
                txt.text = lorem;
                txt.selectable = false;
                txt.width = 500;
                txt.setStyle(&quot;textAlign&quot;, &quot;justify&quot;);

                panel = new Panel();
                panel.title = &quot;Panel title&quot;;
                panel.titleIcon = PanelTitleIcon;
                panel.addChild(txt);
                addChild(panel);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

&lt;/mx:Application&gt;
</pre>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Adding a title icon to a Panel container in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/10/18/adding-a-title-icon-to-a-panel-container-in-flex/',contentID: 'post-835',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'titleIcon',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/18/adding-a-title-icon-to-a-panel-container-in-flex/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Adding links to a Panel container&#8217;s status text in Flex</title>
		<link>http://blog.flexexamples.com/2008/04/17/adding-links-to-a-panel-containers-status-text-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/04/17/adding-links-to-a-panel-containers-status-text-in-flex/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 02:13:27 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Panel]]></category>
		<category><![CDATA[TextEvent]]></category>
		<category><![CDATA[getStatusTextField()]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[mx internal]]></category>
		<category><![CDATA[selectable]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/17/adding-links-to-a-panel-containers-status-text-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can assign an HTML formatted string to a Panel container&#8217;s status text field using the getStatusTextField() method in the mx_internal namespace.</p> <p></p> <p class="alert">Since this example uses the mx_internal namespace, you can&#8217;t always depend on this behavior to work in future versions of the Flex SDK. Use at your [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can assign an HTML formatted string to a Panel container&#8217;s status text field using the <code>getStatusTextField()</code> method in the <code>mx_internal</code> namespace.</p>
<p><span id="more-598"></span></p>
<p class="alert">Since this example uses the <strong>mx_internal</strong> namespace, you can&#8217;t always depend on this behavior to work in future versions of the Flex SDK. Use at your own risk.</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/2008/04/17/adding-links-to-a-panel-containers-status-text-in-flex/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> name=<span style="color: #ff0000;">&quot;Panel_getStatusTextField_test&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">        layout=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">        verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span></span>
<span style="color: #000000;">        backgroundColor=<span style="color: #ff0000;">&quot;white&quot;</span></span>
<span style="color: #000000;">        creationComplete=<span style="color: #ff0000;">&quot;init();&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            import mx.core.IUITextField;</span>
<span style="color: #339933;">            import mx.controls.Alert;</span>
&nbsp;
<span style="color: #339933;">            private function init():void {</span>
<span style="color: #339933;">                var tf:IUITextField = panel.mx_internal::getStatusTextField();</span>
<span style="color: #339933;">                tf.selectable = true;</span>
<span style="color: #339933;">                tf.addEventListener(TextEvent.LINK, textField_link);</span>
<span style="color: #339933;">                tf.htmlText = &quot;status with &lt;a href='event:showAlert'&gt;&lt;u&gt;link&lt;/u&gt;&lt;/a&gt;&quot;;</span>
&nbsp;
<span style="color: #339933;">            }</span>
&nbsp;
<span style="color: #339933;">            private function textField_link(evt:TextEvent):void {</span>
<span style="color: #339933;">                Alert.show(&quot;Success! A Panel container with a link in the status text.&quot;, evt.text);</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> id=<span style="color: #ff0000;">&quot;panel&quot;</span></span>
<span style="color: #000000;">            title=<span style="color: #ff0000;">&quot;Title&quot;</span></span>
<span style="color: #000000;">            status=<span style="color: #ff0000;">&quot;status with link&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;320&quot;</span></span>
<span style="color: #000000;">            height=<span style="color: #ff0000;">&quot;240&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Text</span> text=<span style="color: #ff0000;">&quot;Click the link in the Panel container's status bar to launch an Alert control.&quot;</span></span>
<span style="color: #000000;">                width=<span style="color: #ff0000;">&quot;100%&quot;</span> selectable=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ControlBar</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Text</span> htmlText=<span style="color: #ff0000;">&quot;&amp;lt;b&amp;gt;Note:&amp;lt;/b&amp;gt; The status text field must have it's selectable property set to true in order to dispatch the link event.&quot;</span></span>
<span style="color: #000000;">                    width=<span style="color: #ff0000;">&quot;100%&quot;</span> selectable=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:ControlBar</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_getStatusTextField_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/Panel_getStatusTextField_test/bin/main.html" width="100%" height="300"></iframe></p>
<p class="note">The status text field must have it&#8217;s <code>selectable</code> property set to <code>true</code> in order to dispatch the <code>link</code> event.</p>
<p class="construction">Note that the Panel container&#8217;s status message was initially set to the desired final string, minus any HTML formatting. This ensures that when the status text is created and measured, the HTML formatted text <i>should</i> fit correctly when it is substituted. This may not work if the width of your text changes due to bold fonts or other changes.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Adding links to a Panel container\&#039;s status text in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/04/17/adding-links-to-a-panel-containers-status-text-in-flex/',contentID: 'post-598',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'getStatusTextField(),link,mx internal,selectable',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/04/17/adding-links-to-a-panel-containers-status-text-in-flex/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Setting the background alpha on a Panel container in Flex</title>
		<link>http://blog.flexexamples.com/2008/03/12/setting-the-background-alpha-on-a-panel-container-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/03/12/setting-the-background-alpha-on-a-panel-container-in-flex/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 03:25:43 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Panel]]></category>
		<category><![CDATA[backgroundAlpha]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/12/setting-the-background-alpha-on-a-panel-container-in-flex/</guid>
		<description><![CDATA[<p>In a previous example, <a href="http://blog.flexexamples.com/2008/03/12/setting-the-border-alpha-on-a-panel-container-in-flex/">&#8220;Setting the border alpha on a Panel container in Flex&#8221;</a>, we saw how you could change a panel&#8217;s border alpha by setting the borderAlpha style.</p> <p>The following example shows how you can set the background alpha on a Flex Panel container by setting the backgroundAlpha style.</p> <p>Full code after the [...]]]></description>
			<content:encoded><![CDATA[<p>In a previous example, <a href="http://blog.flexexamples.com/2008/03/12/setting-the-border-alpha-on-a-panel-container-in-flex/">&#8220;Setting the border alpha on a Panel container in Flex&#8221;</a>, we saw how you could change a panel&#8217;s border alpha by setting the <code>borderAlpha</code> style.</p>
<p>The following example shows how you can set the background alpha on a Flex Panel container by setting the <code>backgroundAlpha</code> style.</p>
<p>Full code after the jump.</p>
<p><span id="more-562"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_backgroundAlpha_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/03/12/setting-the-background-alpha-on-a-panel-container-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        creationComplete="init();"&gt;

    &lt;mx:Style&gt;
        Application {
            backgroundColor: red;
            backgroundGradientColors: red, black;
        }
    &lt;/mx:Style&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.events.SliderEvent;

            private function init():void {
                slider.value = panel.getStyle("backgroundAlpha");
            }

            private function slider_change(evt:SliderEvent):void {
                panel.setStyle("backgroundAlpha", evt.value);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Label text="backgroundAlpha:" /&gt;
        &lt;mx:HSlider id="slider"
                minimum="0.0"
                maximum="1.0"
                liveDragging="true"
                snapInterval="0.01"
                tickInterval="0.1"
                change="slider_change(event);" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:Panel id="panel" title="Panel" width="100%" height="100%"&gt;
        &lt;mx:ControlBar&gt;
            &lt;mx:Label text="ControlBar" /&gt;
        &lt;/mx:ControlBar&gt;
    &lt;/mx:Panel&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_backgroundAlpha_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/Panel_backgroundAlpha_test/bin/main.html" width="100%" height="350"></iframe></p>
<p>You can also set the <code>backgroundAlpha</code> style in MXML, using the following snippet:</p>
<pre class="code">
&lt;mx:Panel title=&quot;Panel&quot; <strong style="color:red;">backgroundAlpha=&quot;0.75&quot;</strong>&gt;
...
&lt;/mx:Panel&gt;
</pre>
<p>Or you can set the <code>backgroundAlpha</code> style in an external .CSS file or a &lt;mx:Style /&gt; block, as seen in the following snippet:</p>
<pre class="code">
&lt;mx:Style&gt;
    Panel {
        backgroundAlpha: 0.75; /* 75% */
    }
&lt;/mx:Style&gt;
</pre>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting the background alpha on a Panel container in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/03/12/setting-the-background-alpha-on-a-panel-container-in-flex/',contentID: 'post-562',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'backgroundAlpha',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/03/12/setting-the-background-alpha-on-a-panel-container-in-flex/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Setting the border alpha on a Panel container in Flex</title>
		<link>http://blog.flexexamples.com/2008/03/12/setting-the-border-alpha-on-a-panel-container-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/03/12/setting-the-border-alpha-on-a-panel-container-in-flex/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 02:17:37 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Panel]]></category>
		<category><![CDATA[borderAlpha]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/12/setting-the-border-alpha-on-a-panel-container-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can set the border alpha on a Flex Panel container by setting the borderAlpha style.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_borderAlpha_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2008/03/12/setting-the-border-alpha-on-a-panel-container-in-flex/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" creationComplete="init();"&#62; &#60;mx:Style&#62; Application { backgroundColor: red; backgroundGradientColors: red, black; } &#60;/mx:Style&#62; &#60;mx:Script&#62; &#60;![CDATA[ import [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set the border alpha on a Flex Panel container by setting the <code>borderAlpha</code> style.</p>
<p>Full code after the jump.</p>
<p><span id="more-561"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_borderAlpha_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/03/12/setting-the-border-alpha-on-a-panel-container-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        creationComplete="init();"&gt;

    &lt;mx:Style&gt;
        Application {
            backgroundColor: red;
            backgroundGradientColors: red, black;
        }
    &lt;/mx:Style&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.events.SliderEvent;

            private function init():void {
                slider.value = panel.getStyle("borderAlpha");
            }

            private function slider_change(evt:SliderEvent):void {
                panel.setStyle("borderAlpha", evt.value);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Label text="borderAlpha:" /&gt;
        &lt;mx:HSlider id="slider"
                minimum="0.0"
                maximum="1.0"
                liveDragging="true"
                snapInterval="0.1"
                tickInterval="0.1"
                change="slider_change(event);" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:Panel id="panel" title="Panel" width="100%" height="100%"&gt;
        &lt;mx:ControlBar&gt;
            &lt;mx:Label text="ControlBar" /&gt;
        &lt;/mx:ControlBar&gt;
    &lt;/mx:Panel&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_borderAlpha_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/Panel_borderAlpha_test/bin/main.html" width="100%" height="350"></iframe></p>
<p class="new">For an example on setting the Panel container&#8217;s background alpha, see <a href="http://blog.flexexamples.com/2008/03/12/setting-the-background-alpha-on-a-panel-container-in-flex/">&#8220;Setting the background alpha on a Panel container in Flex&#8221;</a>.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting the border alpha on a Panel container in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/03/12/setting-the-border-alpha-on-a-panel-container-in-flex/',contentID: 'post-561',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'borderAlpha',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/03/12/setting-the-border-alpha-on-a-panel-container-in-flex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using embedded fonts with the Panel container in Flex</title>
		<link>http://blog.flexexamples.com/2008/02/28/using-embedded-fonts-with-the-panel-container-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/02/28/using-embedded-fonts-with-the-panel-container-in-flex/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 05:32:07 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Embed]]></category>
		<category><![CDATA[Panel]]></category>
		<category><![CDATA[fontFamily]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/28/using-embedded-fonts-with-the-panel-container-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can use an embedded font with the Flex Panel container so that a Panel container can be rotated or faded without the text &#8220;disappearing&#8221;. The trick here is to set the panel&#8217;s titleStyleName style to a custom style which sets the font family to the embedded font.</p> <p>Full code [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can use an embedded font with the Flex Panel container so that a Panel container can be rotated or faded without the text &#8220;disappearing&#8221;. The trick here is to set the panel&#8217;s <code>titleStyleName</code> style to a custom style which sets the font family to the embedded font.</p>
<p>Full code after the jump.</p>
<p><span id="more-533"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_titleStyleName_fontFamily_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/02/28/using-embedded-fonts-with-the-panel-container-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Style&gt;
        @font-face {
            src: local("Verdana");
            fontFamily: VerdanaEmbedded;
        }

        Panel {
            titleStyleName: panelTitleStyleName;
        }

        .panelTitleStyleName {
            fontFamily: VerdanaEmbedded;
            fontWeight: normal;
        }
    &lt;/mx:Style&gt;

    &lt;mx:Panel fontFamily="VerdanaEmbedded"
            title="Title"
            status="status"
            width="160"
            height="120"
            rotation="15"&gt;
        &lt;mx:Text text="The quick brown fox jumped over the lazy dog."
                width="100%" /&gt;
        &lt;mx:ControlBar&gt;
            &lt;mx:Label text="ControlBar label" /&gt;
        &lt;/mx:ControlBar&gt;
    &lt;/mx:Panel&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_titleStyleName_fontFamily_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/Panel_titleStyleName_fontFamily_test/bin/main.html" width="100%" height="250"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Using embedded fonts with the Panel container in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/02/28/using-embedded-fonts-with-the-panel-container-in-flex/',contentID: 'post-533',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'fontFamily',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/02/28/using-embedded-fonts-with-the-panel-container-in-flex/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Indenting a Flex Panel control&#8217;s title</title>
		<link>http://blog.flexexamples.com/2008/01/14/indenting-a-flex-panel-controls-title/</link>
		<comments>http://blog.flexexamples.com/2008/01/14/indenting-a-flex-panel-controls-title/#comments</comments>
		<pubDate>Tue, 15 Jan 2008 02:56:42 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Panel]]></category>
		<category><![CDATA[textIndent]]></category>
		<category><![CDATA[titleStyleName]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/14/indenting-a-flex-panel-controls-title/</guid>
		<description><![CDATA[<p>The following example shows how you can indent the title of a Panel control in Flex by setting the titleStyleName style and textIndent style.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_titleStyleName_textIndent_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2008/01/14/indenting-a-flex-panel-controls-title/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"&#62; &#60;mx:Style&#62; .myPanelTitle { textIndent: 50; } &#60;/mx:Style&#62; &#60;mx:Panel title="Lorem ipsum" [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can indent the title of a Panel control in Flex by setting the <code>titleStyleName</code> style and <code>textIndent</code> style.</p>
<p>Full code after the jump.</p>
<p><span id="more-451"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_titleStyleName_textIndent_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/01/14/indenting-a-flex-panel-controls-title/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Style&gt;
        .myPanelTitle {
            textIndent: 50;
        }
    &lt;/mx:Style&gt;

    &lt;mx:Panel title="Lorem ipsum"
            titleStyleName="myPanelTitle"
            titleIcon="@Embed('assets/images/accept.png')"
            width="200"&gt;
        &lt;mx:Text text="The quick brown fox jumped over the lazy dog."
                width="100%" /&gt;
    &lt;/mx:Panel&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_titleStyleName_textIndent_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/Panel_titleStyleName_textIndent_test/bin/main.html" width="100%" height="150"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Indenting a Flex Panel control\&#039;s title on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/01/14/indenting-a-flex-panel-controls-title/',contentID: 'post-451',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'textIndent,titleStyleName',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/01/14/indenting-a-flex-panel-controls-title/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Setting the child layout direction of a Flex Panel container</title>
		<link>http://blog.flexexamples.com/2008/01/13/setting-the-child-layout-direction-of-a-flex-panel-container/</link>
		<comments>http://blog.flexexamples.com/2008/01/13/setting-the-child-layout-direction-of-a-flex-panel-container/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 18:21:20 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Panel]]></category>
		<category><![CDATA[layout]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/13/setting-the-child-layout-direction-of-a-flex-panel-container/</guid>
		<description><![CDATA[<p>The following example shows how you can set a Panel container&#8217;s layout to horizontal or vertical in Flex by setting the layout property.</p> <p class="note">You can also set the Panel container&#8217;s layout to &#8220;absolute&#8221;. For an example, see <a href="http://blog.flexexamples.com/2008/01/12/setting-the-border-thickness-in-a-flex-panel-container/">&#8220;Setting the border thickness in a Flex Panel container&#8221;</a>.</p> <p>Full code after the jump.</p> <p></p> <p [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set a Panel container&#8217;s layout to horizontal or vertical in Flex by setting the <code>layout</code> property.</p>
<p class="note">You can also set the Panel container&#8217;s layout to &#8220;absolute&#8221;. For an example, see <a href="http://blog.flexexamples.com/2008/01/12/setting-the-border-thickness-in-a-flex-panel-container/">&#8220;Setting the border thickness in a Flex Panel container&#8221;</a>.</p>
<p>Full code after the jump.</p>
<p><span id="more-442"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_layout_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/01/13/setting-the-child-layout-direction-of-a-flex-panel-container/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Array id="arr"&gt;
        &lt;mx:Object label="horizontal" /&gt;
        &lt;mx:Object label="vertical" /&gt;
    &lt;/mx:Array&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Form styleName="plain"&gt;
            &lt;mx:FormItem label="layout:"&gt;
                &lt;mx:ToggleButtonBar id="toggleButtonBar"
                        dataProvider="{arr}"
                        selectedIndex="1"
                        itemClick="panel.layout = event.label;" /&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:Panel id="panel"
            status="{panel.layout}"
            width="320"
            height="160"&gt;
        &lt;mx:Label text="Button" /&gt;
        &lt;mx:Label text="ButtonBar" /&gt;
        &lt;mx:Label text="CheckBox" /&gt;
        &lt;mx:Label text="ColorPicker" /&gt;
        &lt;mx:Label text="ComboBox" /&gt;
        &lt;mx:Label text="DataGrid" /&gt;

        &lt;mx:ControlBar&gt;
            &lt;mx:Button label="Submit" /&gt;
            &lt;mx:Button label="Cancel" /&gt;
        &lt;/mx:ControlBar&gt;
    &lt;/mx:Panel&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Panel_layout_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/Panel_layout_test/bin/main.html" width="100%" height="250"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting the child layout direction of a Flex Panel container on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/01/13/setting-the-child-layout-direction-of-a-flex-panel-container/',contentID: 'post-442',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'layout',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/01/13/setting-the-child-layout-direction-of-a-flex-panel-container/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

