<?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>Les bases de l'ActionScript 3</title>
	<atom:link href="http://www.bases-as3.fr/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bases-as3.fr</link>
	<description>Appréhender facilement la programmation en ActionScript 3.</description>
	<lastBuildDate>Thu, 28 Jul 2011 11:38:00 +0000</lastBuildDate>
	<language>fr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Définir la couleur d&#8217;arrière-plan d&#8217;un contrôle Spark Image invalide dans Flex 4</title>
		<link>http://www.bases-as3.fr/flex-couleur-arriere-plan-spark-image</link>
		<comments>http://www.bases-as3.fr/flex-couleur-arriere-plan-spark-image#comments</comments>
		<pubDate>Mon, 11 Jul 2011 17:00:18 +0000</pubDate>
		<dc:creator>tannoy</dc:creator>
				<category><![CDATA[Flex 4]]></category>
		<category><![CDATA[arriere-plan]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://www.bases-as3.fr/?p=404</guid>
		<description><![CDATA[Dans un exemple précédent, &#171;&#160;Définir la couleur d&#8217;arrière-plan d&#8217;un contrôle Spark Image dans Flex 4&#8243;, nous avons vu comment définir la couleur d&#8217;arrière plan d&#8217;un contrôle Spark Image dans Flex 4...]]></description>
			<content:encoded><![CDATA[<p>Dans un exemple précédent, <a href="http://www.bases-as3.fr/flex-couleur-arriere-plan-image">&laquo;&nbsp;Définir la couleur d&#8217;arrière-plan d&#8217;un contrôle Spark Image dans Flex 4&#8243;</a>, nous avons vu comment définir la couleur d&#8217;arrière plan d&#8217;un contrôle Spark Image dans Flex 4 en définissant le style <var>backgroundColor</var>.</p>
<p>L&#8217;exemple suivant montre comment vous pouvez définir la couleur d&#8217;arrière-plan d&#8217;un contrôle Spark Image invalide en définissant le style <var>backgroundColor</var> dans l&#8217;état <var>invalid</var> de la skin.</p>
<p>L&#8217;exemple suivant requiert Flash Player 10 et le SDK Adobe Flex 4. Vous pouvez télécharger la version d&#8217;évaluation d&#8217;Adobe Flash Builder 4 à l&#8217;adresse http://www.adobe.com/products/flex/. Pour télécharger la dernière version du SDK Flex 4, regardez http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex +4.</p>
<pre class="brush:as3">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2010/10/25/setting-the-background-color-on-an-invalid-spark-image-control-in-flex-hero/ --&gt;
&lt;s:Application name="Spark_Image_invalid_backgroundColor_test"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"&gt;
    &lt;s:controlBarContent&gt;
        &lt;s:Form&gt;
            &lt;s:FormItem label="source:"&gt;
                &lt;s:layout&gt;
                    &lt;s:HorizontalLayout /&gt;
                &lt;/s:layout&gt;
                &lt;s:Button label="image1.jpg"
                        click="img.source = 'http://helpexamples.com/flash/images/image1.jpg';"
                        chromeColor="haloGreen" /&gt;
                &lt;s:Button label="logo"
                        click="img.source = 'http://helpexamples.com/flash/images/logo.png';"
                        chromeColor="haloGreen" /&gt;
                &lt;s:Button label="(404)"
                        click="img.source = 'http://helpexamples.com/flash/images/404.gif';"
                        chromeColor="red" /&gt;
                &lt;s:Button label="(null)"
                        click="img.source = null;" /&gt;
            &lt;/s:FormItem&gt;
        &lt;/s:Form&gt;
    &lt;/s:controlBarContent&gt;

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

        s|Image:ready {
            backgroundColor: haloGreen;
        }
        s|Image:invalid {
            backgroundColor: red;
        }
    &lt;/fx:Style&gt;

    &lt;s:Image id="img"
             width="200" height="200"
             horizontalCenter="0" verticalCenter="0" /&gt;

&lt;/s:Application&gt;</pre>
<h3>L&#8217;exemple en action</h3>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_0" width="580" height="300">
      <param name="movie" value="http://www.bases-as3.fr/wp-content/uploads/2011/07/Exemple12.swf" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://www.bases-as3.fr/wp-content/uploads/2011/07/Exemple12.swf" width="580" height="300">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<h3>Traduction de l&#8217;article de Peter DeHaan:</h3>
<p><a href="http://blog.flexexamples.com/2010/10/25/setting-the-background-color-on-an-invalid-spark-image-control-in-flex-hero/">Setting the background color on an invalid Spark Image control in Flex Hero</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bases-as3.fr/flex-couleur-arriere-plan-spark-image/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Définir la couleur d&#8217;arrière-plan d&#8217;un contrôle Spark Image dans Flex 4</title>
		<link>http://www.bases-as3.fr/flex-couleur-arriere-plan-image</link>
		<comments>http://www.bases-as3.fr/flex-couleur-arriere-plan-image#comments</comments>
		<pubDate>Fri, 08 Jul 2011 17:00:31 +0000</pubDate>
		<dc:creator>tannoy</dc:creator>
				<category><![CDATA[Flex 4]]></category>
		<category><![CDATA[arriere-plan]]></category>
		<category><![CDATA[couleur]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://www.bases-as3.fr/?p=397</guid>
		<description><![CDATA[L&#8217;exemple suivant montre comment vous pouvez définir la couleur d&#8217;arrière plan d&#8217;un contrôle Spark Image dans Flex 4 en définissant le style backgroundColor. L&#8217;exemple suivant requiert Flash Player 10 et...]]></description>
			<content:encoded><![CDATA[<p>L&#8217;exemple suivant montre comment vous pouvez définir la couleur d&#8217;arrière plan d&#8217;un contrôle Spark Image dans Flex 4 en définissant le style <var>backgroundColor</var>.</p>
<p><span id="more-397"></span></p>
<p class="alert">L&#8217;exemple suivant requiert Flash Player 10 et le SDK Adobe Flex 4. Vous pouvez télécharger la version d&#8217;évaluation d&#8217;Adobe Flash Builder 4 à l&#8217;adresse <a href="http://bit.ly/crThlI">http://www.adobe.com/products/flex/</a>. Pour télécharger la dernière version du SDK Flex 4, regardez <a href="http://bit.ly/Flex4SDK">http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex +4</a>.</p>
<pre class="brush:as3">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2010/10/25/setting-the-background-color-on-a-spark-image-control-in-flex-hero/ --&gt;
&lt;s:Application name="Spark_Image_backgroundColor_test"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"&gt;
    &lt;s:controlBarContent&gt;
        &lt;s:Form&gt;
            &lt;s:FormItem label="backgroundColor:"&gt;
                &lt;mx:ColorPicker id="cp" selectedColor="black" /&gt;
            &lt;/s:FormItem&gt;
            &lt;s:FormItem label="source:"&gt;
                &lt;s:layout&gt;
                    &lt;s:HorizontalLayout /&gt;
                &lt;/s:layout&gt;
                &lt;s:Button label="image1.jpg" click="img.source = 'http://helpexamples.com/flash/images/image1.jpg';" /&gt;
                &lt;s:Button label="logo" click="img.source = 'http://helpexamples.com/flash/images/logo.png';" /&gt;
                &lt;s:Button label="(404)" click="img.source = 'http://helpexamples.com/flash/images/404.gif';" /&gt;
                &lt;s:Button label="(null)" click="img.source = null;" /&gt;
            &lt;/s:FormItem&gt;
        &lt;/s:Form&gt;
    &lt;/s:controlBarContent&gt;

    &lt;s:Image id="img"
             backgroundColor="{cp.selectedColor}"
             width="200" height="200"
             horizontalCenter="0" verticalCenter="0" /&gt;

&lt;/s:Application&gt;</pre>
<p>Vous pouvez aussi définir le style <var>backgroundColor</var> dans une feuille de styles externe, .CSS, ou dans un bloc <var>Style</var>, comme le montre l&#8217;exemple suivant:</p>
<pre class="brush:as3">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2010/10/25/setting-the-background-color-on-a-spark-image-control-in-flex-hero/ --&gt;
&lt;s:Application name="Spark_Image_backgroundColor_test"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"&gt;
    &lt;s:controlBarContent&gt;
        &lt;s:Form&gt;
            &lt;s:FormItem label="source:"&gt;
                &lt;s:layout&gt;
                    &lt;s:HorizontalLayout /&gt;
                &lt;/s:layout&gt;
                &lt;s:Button label="image1.jpg" click="img.source = 'http://helpexamples.com/flash/images/image1.jpg';" /&gt;
                &lt;s:Button label="logo" click="img.source = 'http://helpexamples.com/flash/images/logo.png';" /&gt;
                &lt;s:Button label="(404)" click="img.source = 'http://helpexamples.com/flash/images/404.gif';" /&gt;
                &lt;s:Button label="(null)" click="img.source = null;" /&gt;
            &lt;/s:FormItem&gt;
        &lt;/s:Form&gt;
    &lt;/s:controlBarContent&gt;

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

        s|Image {
            background-color: haloSilver;
        }
    &lt;/fx:Style&gt;

    &lt;s:Image id="img"
             width="200" height="200"
             horizontalCenter="0" verticalCenter="0" /&gt;

&lt;/s:Application&gt;</pre>
<p>Ou vous pouvez aussi définir le style <var>backgroundColor</var> en ActionScript, comme le montre l&#8217;exemple suivant:</p>
<pre class="brush:as3">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2010/10/25/setting-the-background-color-on-a-spark-image-control-in-flex-hero/ --&gt;
&lt;s:Application name="Spark_Image_backgroundColor_test"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"&gt;
    &lt;s:controlBarContent&gt;
        &lt;s:Form&gt;
            &lt;s:FormItem label="backgroundColor:"&gt;
                &lt;mx:ColorPicker id="cp" selectedColor="black" change="cp_changeHandler(event);" /&gt;
            &lt;/s:FormItem&gt;
            &lt;s:FormItem label="source:"&gt;
                &lt;s:layout&gt;
                    &lt;s:HorizontalLayout /&gt;
                &lt;/s:layout&gt;
                &lt;s:Button label="image1.jpg" click="img.source = 'http://helpexamples.com/flash/images/image1.jpg';" /&gt;
                &lt;s:Button label="logo" click="img.source = 'http://helpexamples.com/flash/images/logo.png';" /&gt;
                &lt;s:Button label="(404)" click="img.source = 'http://helpexamples.com/flash/images/404.gif';" /&gt;
                &lt;s:Button label="(null)" click="img.source = null;" /&gt;
            &lt;/s:FormItem&gt;
        &lt;/s:Form&gt;
    &lt;/s:controlBarContent&gt;

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

            protected function cp_changeHandler(evt:ColorPickerEvent):void {
                img.setStyle("backgroundColor", evt.color);
            }
        ]]&gt;
    &lt;/fx:Script&gt;

    &lt;s:Image id="img"
             width="200" height="200"
             horizontalCenter="0" verticalCenter="0" /&gt;

&lt;/s:Application&gt;</pre>
<h3>L&#8217;exemple en action</h3>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_1" width="576" height="371">
      <param name="movie" value="http://www.bases-as3.fr/wp-content/uploads/2011/07/Exemple111.swf" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://www.bases-as3.fr/wp-content/uploads/2011/07/Exemple111.swf" width="576" height="371">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<h3>Traduction de l&#8217;article de Peter DeHaan:</h3>
<p><a href="http://blog.flexexamples.com/2010/10/25/setting-the-background-color-on-a-spark-image-control-in-flex-hero/">Setting the background color on a Spark Image control in Flex Hero</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bases-as3.fr/flex-couleur-arriere-plan-image/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Créer une skin personnalisée sur le contrôle Spark TabBar dans Flex 4</title>
		<link>http://www.bases-as3.fr/flex-skin-tabbar</link>
		<comments>http://www.bases-as3.fr/flex-skin-tabbar#comments</comments>
		<pubDate>Thu, 07 Jul 2011 20:22:04 +0000</pubDate>
		<dc:creator>tannoy</dc:creator>
				<category><![CDATA[Flex 4]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[skin]]></category>
		<category><![CDATA[tabbar]]></category>

		<guid isPermaLink="false">http://www.bases-as3.fr/?p=388</guid>
		<description><![CDATA[L&#8217;exemple suivant montre comment vous pouvez créer une skin, basée sur le contrôle RadioButton, sur le contrôle Spark TabBar dans Flex 4 en définissant le style skinClass. L&#8217;exemple suivant requiert...]]></description>
			<content:encoded><![CDATA[<p>L&#8217;exemple suivant montre comment vous pouvez créer une skin, basée sur le contrôle RadioButton, sur le contrôle Spark TabBar dans Flex 4 en définissant le style <var>skinClass</var>.</p>
<p><span id="more-388"></span></p>
<p class="alert">L&#8217;exemple suivant requiert Flash Player 10 et le SDK Adobe Flex 4. Vous pouvez télécharger la version d&#8217;évaluation d&#8217;Adobe Flash Builder 4 à l&#8217;adresse <a href="http://bit.ly/crThlI">http://www.adobe.com/products/flex/</a>. Pour télécharger la dernière version du SDK Flex 4, regardez <a href="http://bit.ly/Flex4SDK">http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex +4</a>.</p>
<pre class="brush:as3">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2010/10/10/creating-a-custom-skin-on-the-spark-tabbar-control-in-flex-4/ --&gt;
&lt;s:Application name="Spark_TabBar_skinClass_test"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"&gt;

    &lt;s:VGroup horizontalAlign="center"
            horizontalCenter="0" verticalCenter="0"&gt;
        &lt;mx:ViewStack id="vs" width="300" height="100"&gt;
            &lt;s:NavigatorContent label="One"
                    backgroundColor="red"
                    width="100%" height="100%" /&gt;
            &lt;s:NavigatorContent label="Two"
                    backgroundColor="haloOrange"
                    width="100%" height="100%" /&gt;
            &lt;s:NavigatorContent label="Three"
                    backgroundColor="Yellow"
                    width="100%" height="100%" /&gt;
            &lt;s:NavigatorContent label="Four"
                    backgroundColor="haloGreen"
                    width="100%" height="100%" /&gt;
            &lt;s:NavigatorContent label="Five"
                    backgroundColor="haloBlue"
                    width="100%" height="100%" /&gt;
        &lt;/mx:ViewStack&gt;
        &lt;s:TabBar dataProvider="{vs}" skinClass="skins.CustomSparkTabBarSkin" /&gt;
    &lt;/s:VGroup&gt;

&lt;/s:Application&gt;</pre>
<p>et la classe de skin personnalisée du contrôle TabBar, <em>skins/CustomSparkTabBarSkin.mxml</em>, se présente comme suit:</p>
<pre class="brush:as3">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2010/10/10/creating-a-custom-skin-on-the-spark-tabbar-control-in-flex-4/ --&gt;
&lt;spark:TabBarSkin name="CustomSparkTabBarSkin"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        xmlns:spark="spark.skins.spark.*"&gt;

    &lt;s:DataGroup id="dataGroup" width="100%" height="100%"&gt;
        &lt;s:layout&gt;
            &lt;s:ButtonBarHorizontalLayout gap="-1"/&gt;
        &lt;/s:layout&gt;
        &lt;s:itemRenderer&gt;
            &lt;fx:Component&gt;
                &lt;s:RadioButton /&gt;
            &lt;/fx:Component&gt;
        &lt;/s:itemRenderer&gt;
    &lt;/s:DataGroup&gt;

&lt;/spark:TabBarSkin&gt;</pre>
<h3>L&#8217;exemple en action</h3>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_2" width="400" height="300">
      <param name="movie" value="http://www.bases-as3.fr/wp-content/uploads/2011/07/Exemple10.swf" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://www.bases-as3.fr/wp-content/uploads/2011/07/Exemple10.swf" width="400" height="300">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<h3>Traduction de l&#8217;article de Peter DeHaan:</h3>
<p><a href="http://blog.flexexamples.com/2010/10/10/creating-a-custom-skin-on-the-spark-tabbar-control-in-flex-4/">Creating a custom skin on the Spark TabBar control in Flex 4</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bases-as3.fr/flex-skin-tabbar/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Créer un fournisseur de données complexe utilisant des objets dans Flex 4</title>
		<link>http://www.bases-as3.fr/fournisseur-donnees-objets-flex-4</link>
		<comments>http://www.bases-as3.fr/fournisseur-donnees-objets-flex-4#comments</comments>
		<pubDate>Sun, 13 Mar 2011 14:19:07 +0000</pubDate>
		<dc:creator>tannoy</dc:creator>
				<category><![CDATA[Flex 4]]></category>
		<category><![CDATA[dataprovider]]></category>
		<category><![CDATA[mxml]]></category>
		<category><![CDATA[objects]]></category>

		<guid isPermaLink="false">http://www.bases-as3.fr/?p=373</guid>
		<description><![CDATA[L&#8217;exemple suivant montre comment vous pouvez créer, en MXML, un fournisseur de données complexe pour un contrôle MX DataGrid avec des objets imbriqués en utilisant la balise &#60;fx:Object&#62;. L&#8217;exemple suivant...]]></description>
			<content:encoded><![CDATA[<p>L&#8217;exemple suivant montre comment vous pouvez créer, en MXML, un fournisseur de données complexe pour un contrôle MX DataGrid avec des objets imbriqués en utilisant la balise <var>&lt;fx:Object&gt;</var>.</p>
<p><span id="more-373"></span></p>
<p class="alert">L&#8217;exemple suivant requiert Flash Player 10 et le SDK Adobe Flex 4. Vous pouvez télécharger la   version d&#8217;évaluation d&#8217;Adobe Flash Builder 4 à l&#8217;adresse <a href="http://bit.ly/crThlI">http://www.adobe.com/products/flex/</a>. Pour télécharger la dernière version du SDK   Flex 4, regardez <a href="http://bit.ly/Flex4SDK">http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex  +4</a>.</p>
<pre class="brush:xml">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2010/10/20/creating-complex-data-provider-objects-in-mxml-using-flex-4/ --&gt;
&lt;s:Application name="MX_DataGrid_dataProvider_Object_test"
			   xmlns:fx="http://ns.adobe.com/mxml/2009"
			   xmlns:s="library://ns.adobe.com/flex/spark"
			   xmlns:mx="library://ns.adobe.com/flex/mx"&gt;

	&lt;mx:DataGrid id="dg" horizontalCenter="0" verticalCenter="0"&gt;
		&lt;mx:columns&gt;
			&lt;mx:DataGridColumn dataField="firstName" /&gt;
			&lt;mx:DataGridColumn dataField="lastName" /&gt;
			&lt;mx:DataGridColumn dataField="address.town" /&gt;
			&lt;mx:DataGridColumn dataField="address.state" /&gt;
			&lt;mx:DataGridColumn dataField="address.zipCode" /&gt;
		&lt;/mx:columns&gt;
		&lt;mx:dataProvider&gt;
			&lt;mx:ArrayCollection&gt;
				&lt;fx:Object firstName="Carol" lastName="F."&gt;
					&lt;fx:address&gt;
						&lt;fx:Object town="Waltham" state="MA" zipCode="02452" /&gt;
					&lt;/fx:address&gt;
				&lt;/fx:Object&gt;
				&lt;fx:Object firstName="Darrell" lastName="L."&gt;
					&lt;fx:address&gt;
						&lt;fx:Object town="Waltham" state="MA" zipCode="02452" /&gt;
					&lt;/fx:address&gt;
				&lt;/fx:Object&gt;
				&lt;fx:Object firstName="Hans" lastName="M."&gt;
					&lt;fx:address&gt;
						&lt;fx:Object town="San Francisco" state="CA" zipCode="94103" /&gt;
					&lt;/fx:address&gt;
				&lt;/fx:Object&gt;
				&lt;fx:Object firstName="Kevin" lastName="L."&gt;
					&lt;fx:address&gt;
						&lt;fx:Object town="San Francisco" state="CA" zipCode="94103" /&gt;
					&lt;/fx:address&gt;
				&lt;/fx:Object&gt;
			&lt;/mx:ArrayCollection&gt;
		&lt;/mx:dataProvider&gt;
	&lt;/mx:DataGrid&gt;

&lt;/s:Application&gt;</pre>
<p>Ou vous pouvez aussi créer les objets imbriqués en utilisant ActionScript , comme vous pouvez le voir dans l&#8217;exemple suivant:</p>
<pre class="brush:xml">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2010/10/20/creating-complex-data-provider-objects-in-mxml-using-flex-4/ --&gt;
&lt;s:Application name="MX_DataGrid_dataProvider_Object_test"
			   xmlns:fx="http://ns.adobe.com/mxml/2009"
			   xmlns:s="library://ns.adobe.com/flex/spark"
			   xmlns:mx="library://ns.adobe.com/flex/mx"
			   initialize="init();"&gt;

	&lt;fx:Script&gt;
		&lt;![CDATA[
			import mx.collections.ArrayCollection;
			import mx.controls.DataGrid;
			import mx.controls.dataGridClasses.DataGridColumn;

			protected var dg:DataGrid;

			protected function init():void {
				var cols:Array = [];
				cols.push(new DataGridColumn("firstName"));
				cols.push(new DataGridColumn("lastName"));
				cols.push(new DataGridColumn("address.town"));
				cols.push(new DataGridColumn("address.state"));
				cols.push(new DataGridColumn("address.zipCode"));

				var arr:Array = [];
				arr.push({firstName:"Carol", lastName:"F.", address:{town:"Waltham", state:"MA", zipCode:"02452"}});
				arr.push({firstName:"Darrell", lastName:"L.", address:{town:"Waltham", state:"MA", zipCode:"02452"}});
				arr.push({firstName:"Hans", lastName:"M.", address:{town:"San Francisco", state:"CA", zipCode:"94103"}});
				arr.push({firstName:"Kevin", lastName:"L.", address:{town:"San Francisco", state:"CA", zipCode:"94103"}});

				dg = new DataGrid();
				dg.columns = cols;
				dg.dataProvider = new ArrayCollection(arr);;
				dg.horizontalCenter = dg.verticalCenter = 0;
				addElement(dg);
			}
		]]&gt;
	&lt;/fx:Script&gt;

&lt;/s:Application&gt;</pre>
<p>Vous pouvez aussi définir l&#8217;objet imbriqué en ligne dans le MXML en utilisant 2 caractères &laquo;&nbsp;{&nbsp;&raquo; au lieu d&#8217;1, comme vous pouvez le voir dans l&#8217;exemple suivant (ou le premier &laquo;&nbsp;{&nbsp;&raquo; correspond à la liaison de données et le second &laquo;&nbsp;{&nbsp;&raquo; correspond à la forme raccourcie de l&#8217;objet)</p>
<p>&nbsp;</p>
<pre class="brush:xml">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2010/10/20/creating-complex-data-provider-objects-in-mxml-using-flex-4/ --&gt;
&lt;s:Application name="MX_DataGrid_dataProvider_Object_test"
			   xmlns:fx="http://ns.adobe.com/mxml/2009"
			   xmlns:s="library://ns.adobe.com/flex/spark"
			   xmlns:mx="library://ns.adobe.com/flex/mx"&gt;

	&lt;mx:DataGrid id="dg" horizontalCenter="0" verticalCenter="0"&gt;
		&lt;mx:columns&gt;
			&lt;mx:DataGridColumn dataField="firstName" /&gt;
			&lt;mx:DataGridColumn dataField="lastName" /&gt;
			&lt;mx:DataGridColumn dataField="address.town" /&gt;
			&lt;mx:DataGridColumn dataField="address.state" /&gt;
			&lt;mx:DataGridColumn dataField="address.zipCode" /&gt;
		&lt;/mx:columns&gt;
		&lt;mx:dataProvider&gt;
			&lt;mx:ArrayCollection&gt;
				&lt;fx:Object firstName="Carol" lastName="F." address="{{town:'Waltham', state:'MA', zipCode:'02452'}}" /&gt;
				&lt;fx:Object firstName="Darrell" lastName="L." address="{{town:'Waltham', state:'MA', zipCode:'02452'}}" /&gt;
				&lt;fx:Object firstName="Hans" lastName="M." address="{{town:'San Francisco', state:'CA', zipCode:'94103'}}" /&gt;
				&lt;fx:Object firstName="Kevin" lastName="L." address="{{town:'San Francisco', state:'CA', zipCode:'94103'}}" /&gt;
			&lt;/mx:ArrayCollection&gt;
		&lt;/mx:dataProvider&gt;
	&lt;/mx:DataGrid&gt;

&lt;/s:Application&gt;</pre>
<h3>L&#8217;exemple en action</h3>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_3" width="560" height="260">
      <param name="movie" value="http://www.bases-as3.fr/wp-content/uploads/2011/03/Exemple8.swf" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://www.bases-as3.fr/wp-content/uploads/2011/03/Exemple8.swf" width="560" height="260">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<h3>Traduction de l&#8217;article de Peter DeHaan:</h3>
<p><a href="http://blog.flexexamples.com/2010/10/20/creating-complex-data-provider-objects-in-mxml-using-flex-4/">Creating complex data provider objects in MXML using Flex 4</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bases-as3.fr/fournisseur-donnees-objets-flex-4/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Définir un format riche pour le texte d&#8217;un contrôle Spark Button en Flex 4</title>
		<link>http://www.bases-as3.fr/format-riche-texte-bouton-flex-4</link>
		<comments>http://www.bases-as3.fr/format-riche-texte-bouton-flex-4#comments</comments>
		<pubDate>Thu, 10 Feb 2011 21:06:20 +0000</pubDate>
		<dc:creator>tannoy</dc:creator>
				<category><![CDATA[Flex 4]]></category>
		<category><![CDATA[bouton]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[label]]></category>
		<category><![CDATA[rich text]]></category>
		<category><![CDATA[riche]]></category>
		<category><![CDATA[skin]]></category>
		<category><![CDATA[texte]]></category>

		<guid isPermaLink="false">http://www.bases-as3.fr/?p=353</guid>
		<description><![CDATA[L'exemple suivant montre comment vous pouvez définir un format riche pour le texte d'un contrôle Spark Button en surclassant le contrôle Spark Button et en créant une skin de bouton...]]></description>
			<content:encoded><![CDATA[<p>L'exemple suivant montre comment vous pouvez définir un format riche pour le texte d'un contrôle Spark Button en surclassant le contrôle <var>Spark Button</var> et en créant une skin de bouton personnalisée qui utilise un contrôle <var>RichText</var> en tant que partie d'affichage du texte dans la skin.</p>
<p><span id="more-353"></span></p>
<p class="alert">L'exemple suivant requiert Flash Player 10 et le SDK Adobe Flex 4. Vous pouvez télécharger la   version d'évaluation d'Adobe Flash Builder 4 à l'adresse <a href="http://bit.ly/crThlI">http://www.adobe.com/products/flex/</a>. Pour télécharger la dernière version du SDK   Flex 4, regardez <a href="http://bit.ly/Flex4SDK">http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex  +4</a>.</p>
<pre>
<div class="igBar"><span id="lxml-4"><a href="#" onclick="javascript:showPlainTxt('xml-4'); return false;">COPIER-COLLER</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-4">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;</span>?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">"1.0"</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">"utf-8"</span>?<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2010/10/22/setting-a-rich-text-label-on-a-spark-button-control-in-flex-4/ --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:application <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"Spark_Button_textFlow_test"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; xmlns:<span style="color: #000066;">fx</span>=<span style="color: #ff0000;">"http://ns.adobe.com/mxml/2009"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; xmlns:<span style="color: #000066;">s</span>=<span style="color: #ff0000;">"library://ns.adobe.com/flex/spark"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; xmlns:<span style="color: #000066;">mx</span>=<span style="color: #ff0000;">"library://ns.adobe.com/flex/mx"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; xmlns:<span style="color: #000066;">comps</span>=<span style="color: #ff0000;">"comps.*"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"200"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"200"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;fx</span>:style<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; @namespace comps &quot;comps.*&quot;;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; comps|RichButton {</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; skinClass: ClassReference(&quot;skins.RichButtonSkin&quot;);</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; }</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/fx</span>:style<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;comps</span>:richbutton <span style="color: #000066;">horizontalCenter</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">verticalCenter</span>=<span style="color: #ff0000;">"0"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;comps</span>:textflow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:textflow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:p <span style="color: #000066;">fontStyle</span>=<span style="color: #ff0000;">"italic"</span><span style="font-weight: bold; color: black;">&gt;</span></span>The quick<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:br <span style="font-weight: bold; color: black;">/&gt;</span></span>brown fox <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:span <span style="color: #000066;">fontWeight</span>=<span style="color: #ff0000;">"bold"</span><span style="font-weight: bold; color: black;">&gt;</span></span>jumps<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:br <span style="font-weight: bold; color: black;">/&gt;</span></span>over the<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span> lazy <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:span <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#FF0000"</span> <span style="color: #000066;">fontStyle</span>=<span style="color: #ff0000;">"normal"</span><span style="font-weight: bold; color: black;">&gt;</span></span>dog<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span>.<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:p<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:p<span style="font-weight: bold; color: black;">&gt;</span></span>And then some more stuff.<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:p<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:textflow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/comps</span>:textflow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/comps</span>:richbutton<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:application<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>

</pre>
<p>Le contrôle personnalisé Spark Button, <em>comps/RichButton.as</em>, se présente comme suit:</p>
<pre>
<div class="igBar"><span id="lactionscript-5"><a href="#" onclick="javascript:showPlainTxt('actionscript-5'); return false;">COPIER-COLLER</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-5">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">/** http://blog.flexexamples.com/2010/10/22/setting-a-rich-text-label-on-a-spark-button-control-in-flex-4/ */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">package comps <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flashx.<span style="color: #006600;">textLayout</span>.<span style="color: #006600;">elements</span>.<span style="color: #006600;">TextFlow</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> spark.<span style="color: #006600;">components</span>.<span style="color: #0066CC;">Button</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> RichButton <span style="color: #0066CC;">extends</span> <span style="color: #0066CC;">Button</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> RichButton<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">super</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#91;</span>Bindable<span style="color: #66cc66;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> textFlow:TextFlow;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>

</pre>
<p>Et la skin personnalisée du contrôle RichButton, <em>skins/RichButtonSkin.mxml</em>, se présente comme suit:</p>
<pre>
<div class="igBar"><span id="lxml-6"><a href="#" onclick="javascript:showPlainTxt('xml-6'); return false;">COPIER-COLLER</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-6">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;</span>?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">"1.0"</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">"utf-8"</span>?<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2010/10/22/setting-a-rich-text-label-on-a-spark-button-control-in-flex-4/ --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:sparkskin <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"RichButtonSkin"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; xmlns:<span style="color: #000066;">fx</span>=<span style="color: #ff0000;">"http://ns.adobe.com/mxml/2009"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; xmlns:<span style="color: #000066;">s</span>=<span style="color: #ff0000;">"library://ns.adobe.com/flex/spark"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; xmlns:<span style="color: #000066;">fb</span>=<span style="color: #ff0000;">"http://ns.adobe.com/flashbuilder/2009"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span style="color: #000066;">minWidth</span>=<span style="color: #ff0000;">"21"</span> <span style="color: #000066;">minHeight</span>=<span style="color: #ff0000;">"21"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; alpha.<span style="color: #000066;">disabled</span>=<span style="color: #ff0000;">"0.5"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- states --&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:states<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:state <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"up"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:state <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"over"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:state <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"down"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:state <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"disabled"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:states<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;fx</span>:metadata<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; [HostComponent(&quot;comps.RichButton&quot;)]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/fx</span>:metadata<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;fx</span>:script fb:<span style="color: #000066;">purpose</span>=<span style="color: #ff0000;">"styling"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">&lt;![CDATA[</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import spark.components.Group;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /* Define the skin elements that should not be colorized.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For button, the graphics are colorized but the label is not. */</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; static private const exclusions:Array = [&quot;labelDisplay&quot;];</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; override public function get colorizeExclusions():Array {</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return exclusions;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; override protected function initializationComplete():void {</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; useChromeColor = true;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; super.initializationComplete();</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var cr:Number = getStyle(&quot;cornerRadius&quot;);</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (cornerRadius != cr) {</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cornerRadius = cr;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; shadow.radiusX = cornerRadius;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fill.radiusX = cornerRadius;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lowlight.radiusX = cornerRadius;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; highlight.radiusX = cornerRadius;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; border.radiusX = cornerRadius;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (highlightStroke) highlightStroke.radiusX = cornerRadius;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (hldownstroke1) hldownstroke1.radiusX = cornerRadius;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (hldownstroke2) hldownstroke2.radiusX = cornerRadius;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; super.updateDisplayList(unscaledWidth, unscaledHeight);</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; private var cornerRadius:Number = 2;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/fx</span>:script<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- layer 1: shadow --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:rect <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"shadow"</span> <span style="color: #000066;">left</span>=<span style="color: #ff0000;">"-1"</span> <span style="color: #000066;">right</span>=<span style="color: #ff0000;">"-1"</span> <span style="color: #000066;">top</span>=<span style="color: #ff0000;">"-1"</span> <span style="color: #000066;">bottom</span>=<span style="color: #ff0000;">"-1"</span> <span style="color: #000066;">radiusX</span>=<span style="color: #ff0000;">"2"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:fill<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:lineargradient <span style="color: #000066;">rotation</span>=<span style="color: #ff0000;">"90"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0x000000"</span> color.<span style="color: #000066;">down</span>=<span style="color: #ff0000;">"0xFFFFFF"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.01"</span> alpha.<span style="color: #000066;">down</span>=<span style="color: #ff0000;">"0"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0x000000"</span> color.<span style="color: #000066;">down</span>=<span style="color: #ff0000;">"0xFFFFFF"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.07"</span> alpha.<span style="color: #000066;">down</span>=<span style="color: #ff0000;">"0.5"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:lineargradient<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:fill<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:rect<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- layer 2: fill --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:rect <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"fill"</span> <span style="color: #000066;">left</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">right</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">top</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">bottom</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">radiusX</span>=<span style="color: #ff0000;">"2"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:fill<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:lineargradient <span style="color: #000066;">rotation</span>=<span style="color: #ff0000;">"90"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0xFFFFFF"</span> color.<span style="color: #000066;">over</span>=<span style="color: #ff0000;">"0xBBBDBD"</span> color.<span style="color: #000066;">down</span>=<span style="color: #ff0000;">"0xAAAAAA"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.85"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0xD8D8D8"</span> color.<span style="color: #000066;">over</span>=<span style="color: #ff0000;">"0x9FA0A1"</span> color.<span style="color: #000066;">down</span>=<span style="color: #ff0000;">"0x929496"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.85"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:lineargradient<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:fill<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:rect<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- layer 3: fill lowlight --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:rect <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"lowlight"</span> <span style="color: #000066;">left</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">right</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">top</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">bottom</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">radiusX</span>=<span style="color: #ff0000;">"2"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:fill<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:lineargradient <span style="color: #000066;">rotation</span>=<span style="color: #ff0000;">"270"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0x000000"</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0.0"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.0627"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0x000000"</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0.48"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.0099"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0x000000"</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0.48001"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:lineargradient<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:fill<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:rect<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- layer 4: fill highlight --&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:rect <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"highlight"</span> <span style="color: #000066;">left</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">right</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">top</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">bottom</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">radiusX</span>=<span style="color: #ff0000;">"2"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:fill<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:lineargradient <span style="color: #000066;">rotation</span>=<span style="color: #ff0000;">"90"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0xFFFFFF"</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0.0"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.33"</span> alpha.<span style="color: #000066;">over</span>=<span style="color: #ff0000;">"0.22"</span> alpha.<span style="color: #000066;">down</span>=<span style="color: #ff0000;">"0.12"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0xFFFFFF"</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0.48"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.33"</span> alpha.<span style="color: #000066;">over</span>=<span style="color: #ff0000;">"0.22"</span> alpha.<span style="color: #000066;">down</span>=<span style="color: #ff0000;">"0.12"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0xFFFFFF"</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0.48001"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:lineargradient<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:fill<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:rect<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- layer 5: highlight stroke (all states except down) --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:rect <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"highlightStroke"</span> <span style="color: #000066;">left</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">right</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">top</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">bottom</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">radiusX</span>=<span style="color: #ff0000;">"2"</span> <span style="color: #000066;">excludeFrom</span>=<span style="color: #ff0000;">"down"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:stroke<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:lineargradientstroke <span style="color: #000066;">rotation</span>=<span style="color: #ff0000;">"90"</span> <span style="color: #000066;">weight</span>=<span style="color: #ff0000;">"1"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0xFFFFFF"</span> alpha.<span style="color: #000066;">over</span>=<span style="color: #ff0000;">"0.22"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0xD8D8D8"</span> alpha.<span style="color: #000066;">over</span>=<span style="color: #ff0000;">"0.22"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:lineargradientstroke<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:stroke<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:rect<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- layer 6: highlight stroke (down state only) --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:rect <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"hldownstroke1"</span> <span style="color: #000066;">left</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">right</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">top</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">bottom</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">radiusX</span>=<span style="color: #ff0000;">"2"</span> <span style="color: #000066;">includeIn</span>=<span style="color: #ff0000;">"down"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:stroke<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:lineargradientstroke <span style="color: #000066;">rotation</span>=<span style="color: #ff0000;">"90"</span> <span style="color: #000066;">weight</span>=<span style="color: #ff0000;">"1"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0x000000"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.25"</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0.0"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0x000000"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.25"</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0.001"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0x000000"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.07"</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0.0011"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0x000000"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.07"</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0.965"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0x000000"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.00"</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0.9651"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:lineargradientstroke<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:stroke<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:rect<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:rect <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"hldownstroke2"</span> <span style="color: #000066;">left</span>=<span style="color: #ff0000;">"2"</span> <span style="color: #000066;">right</span>=<span style="color: #ff0000;">"2"</span> <span style="color: #000066;">top</span>=<span style="color: #ff0000;">"2"</span> <span style="color: #000066;">bottom</span>=<span style="color: #ff0000;">"2"</span> <span style="color: #000066;">radiusX</span>=<span style="color: #ff0000;">"2"</span> <span style="color: #000066;">includeIn</span>=<span style="color: #ff0000;">"down"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:stroke<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:lineargradientstroke <span style="color: #000066;">rotation</span>=<span style="color: #ff0000;">"90"</span> <span style="color: #000066;">weight</span>=<span style="color: #ff0000;">"1"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0x000000"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.09"</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0.0"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0x000000"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.00"</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0.0001"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:lineargradientstroke<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:stroke<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:rect<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- layer 7: border - put on top of the fill so it doesn't disappear when scale is less than 1 --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:rect <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"border"</span> <span style="color: #000066;">left</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">right</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">top</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">bottom</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"69"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"20"</span> <span style="color: #000066;">radiusX</span>=<span style="color: #ff0000;">"2"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:stroke<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:lineargradientstroke <span style="color: #000066;">rotation</span>=<span style="color: #ff0000;">"90"</span> <span style="color: #000066;">weight</span>=<span style="color: #ff0000;">"1"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0x000000"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.5625"</span> alpha.<span style="color: #000066;">down</span>=<span style="color: #ff0000;">"0.6375"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0x000000"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.75"</span> alpha.<span style="color: #000066;">down</span>=<span style="color: #ff0000;">"0.85"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:lineargradientstroke<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:stroke<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:rect<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- layer 8: text --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:richtext <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"rt"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">textFlow</span>=<span style="color: #ff0000;">"{hostComponent.textFlow}"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">textAlign</span>=<span style="color: #ff0000;">"center"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">verticalAlign</span>=<span style="color: #ff0000;">"middle"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">horizontalCenter</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">verticalCenter</span>=<span style="color: #ff0000;">"1"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">left</span>=<span style="color: #ff0000;">"10"</span> <span style="color: #000066;">right</span>=<span style="color: #ff0000;">"10"</span> <span style="color: #000066;">top</span>=<span style="color: #ff0000;">"2"</span> <span style="color: #000066;">bottom</span>=<span style="color: #ff0000;">"2"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:sparkskin<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>

</pre>
<h3>L'exemple en action</h3>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_4" width="400" height="300">
      <param name="movie" value="http://www.bases-as3.fr/wp-content/uploads/2011/02/Exemple7.swf" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://www.bases-as3.fr/wp-content/uploads/2011/02/Exemple7.swf" width="400" height="300">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<h3>Traduction de l'article de Peter DeHaan:</h3>
<p><a href="http://blog.flexexamples.com/2010/10/22/setting-a-rich-text-label-on-a-spark-button-control-in-flex-4/">Setting a rich text label on a Spark Button control in Flex 4</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bases-as3.fr/format-riche-texte-bouton-flex-4/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Définir plusieurs noms de styles pour un contrôle Spark Button dans Flex 4</title>
		<link>http://www.bases-as3.fr/plusieurs-styles-composant-flex-4</link>
		<comments>http://www.bases-as3.fr/plusieurs-styles-composant-flex-4#comments</comments>
		<pubDate>Mon, 07 Feb 2011 12:47:39 +0000</pubDate>
		<dc:creator>tannoy</dc:creator>
				<category><![CDATA[Flex 4]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[contrôle]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[styleName]]></category>
		<category><![CDATA[styles]]></category>

		<guid isPermaLink="false">http://www.bases-as3.fr/?p=348</guid>
		<description><![CDATA[L'exemple suivant montre comment vous pouvez définir plusieurs noms de styles d'un contrôle Spark Button dans Flex 4 en définissant la propriété styleName avec une liste de noms de styles...]]></description>
			<content:encoded><![CDATA[<p>L'exemple suivant montre comment vous pouvez définir plusieurs noms de styles d'un contrôle Spark Button dans Flex 4 en définissant la propriété <var>styleName</var> avec une liste de noms de styles CSS, séparés par un espace.</p>
<p><span id="more-348"></span></p>
<p class="alert">L'exemple suivant requiert Flash Player 10 et le SDK Adobe Flex 4. Vous pouvez télécharger la   version d'évaluation d'Adobe Flash Builder 4 à l'adresse <a href="http://bit.ly/crThlI">http://www.adobe.com/products/flex/</a>. Pour télécharger la dernière version du SDK   Flex 4, regardez <a href="http://bit.ly/Flex4SDK">http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex  +4</a>.</p>
<pre class="brush:xml">&lt; ?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2010/10/27/setting-multiple-style-names-on-a-spark-button-control-in-flex-4/ --&gt;
&lt;s:application name="Spark_Button_styleName_test"
			   xmlns:fx="http://ns.adobe.com/mxml/2009"
			   xmlns:s="library://ns.adobe.com/flex/spark"
			   xmlns:mx="library://ns.adobe.com/flex/mx"&gt;
	&lt;s:layout&gt;
		&lt;s:horizontallayout horizontalAlign="center" verticalAlign="middle" /&gt;
	&lt;/s:layout&gt;

	&lt;fx:style&gt;
		.boldWeight {
			fontWeight: bold;
		}
		.redColor {
			color: red;
		}
	&lt;/fx:style&gt;

	&lt;s:button id="btn1"
			  label="MXML"
			  styleName="redColor boldWeight" /&gt;

	&lt;s:button id="btn2"
			  label="ActionScript (click)"
			  toolTip="Click to apply styles"
			  click="btn2.styleName = 'redColor boldWeight';" /&gt;

&lt;/s:application&gt;</pre>
<h3>L'exemple en action</h3>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_5" width="400" height="300">
      <param name="movie" value="http://www.bases-as3.fr/wp-content/uploads/2011/02/Exemple6.swf" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://www.bases-as3.fr/wp-content/uploads/2011/02/Exemple6.swf" width="400" height="300">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<h3>Traduction de l'article de Peter DeHaan:</h3>
<p><a href="http://blog.flexexamples.com/2010/10/27/setting-multiple-style-names-on-a-spark-button-control-in-flex-4/" target="_blank">Setting multiple style names on a Spark Button control in Flex 4</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bases-as3.fr/plusieurs-styles-composant-flex-4/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ajouter des barres de défilement (scroll bar) à un conteneur Spark Application dans Flex 4</title>
		<link>http://www.bases-as3.fr/barres-defilement-scroll-bar-application-flex-4</link>
		<comments>http://www.bases-as3.fr/barres-defilement-scroll-bar-application-flex-4#comments</comments>
		<pubDate>Tue, 25 Jan 2011 12:09:46 +0000</pubDate>
		<dc:creator>tannoy</dc:creator>
				<category><![CDATA[Flex 4]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[contentGroup]]></category>
		<category><![CDATA[defilement]]></category>
		<category><![CDATA[scrollbar]]></category>
		<category><![CDATA[scroller]]></category>
		<category><![CDATA[skin]]></category>
		<category><![CDATA[skinClass]]></category>

		<guid isPermaLink="false">http://www.bases-as3.fr/?p=338</guid>
		<description><![CDATA[L'exemple suivant montre comment vous pouvez ajouter des barres de défilement (scroll bars) à un conteneur Spark Application dans Flex 4 en créant une skin personnalisée, en ajoutant un conteneur...]]></description>
			<content:encoded><![CDATA[<p>L'exemple suivant montre comment vous pouvez ajouter des barres de défilement (scroll bars) à un conteneur Spark Application dans Flex 4 en créant une skin personnalisée, en ajoutant un conteneur Spark Scroller autour de l'élément <var>contentGroup</var> de la skin, et en définissant le style <var>skinClass</var> sur l'élément Application.</p>
<p><span id="more-338"></span></p>
<p class="alert">L'exemple suivant requiert Flash Player 10 et le SDK Adobe Flex 4. Vous pouvez télécharger la   version d'évaluation d'Adobe Flash Builder 4 à l'adresse <a href="http://bit.ly/crThlI">http://www.adobe.com/products/flex/</a>. Pour télécharger la dernière version du SDK   Flex 4, regardez <a href="http://bit.ly/Flex4SDK">http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex  +4</a>.</p>
<pre>
<div class="igBar"><span id="lxml-9"><a href="#" onclick="javascript:showPlainTxt('xml-9'); return false;">COPIER-COLLER</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-9">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;</span>?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">"1.0"</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">"utf-8"</span>?<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2010/11/03/adding-scroll-bars-to-an-spark-application-container-in-flex-4/ --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:application <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"Spark_Application_Scroller_test"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; xmlns:<span style="color: #000066;">fx</span>=<span style="color: #ff0000;">"http://ns.adobe.com/mxml/2009"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; xmlns:<span style="color: #000066;">s</span>=<span style="color: #ff0000;">"library://ns.adobe.com/flex/spark"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; xmlns:<span style="color: #000066;">mx</span>=<span style="color: #ff0000;">"library://ns.adobe.com/flex/mx"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">skinClass</span>=<span style="color: #ff0000;">"skins.CustomScrollingApplicationSkin"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:controlbarcontent<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:label <span style="color: #000066;">text</span>=<span style="color: #ff0000;">"Rect height (px):"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:hslider <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"sl"</span> <span style="color: #000066;">minimum</span>=<span style="color: #ff0000;">"100"</span> <span style="color: #000066;">maximum</span>=<span style="color: #ff0000;">"1000"</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">"300"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:controlbarcontent<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:rect <span style="color: #000066;">top</span>=<span style="color: #ff0000;">"20"</span> <span style="color: #000066;">horizontalCenter</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"50%"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"{sl.value}"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:fill<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:lineargradient <span style="color: #000066;">rotation</span>=<span style="color: #ff0000;">"45"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"red"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"haloOrange"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"yellow"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"haloGreen"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"haloBlue"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:lineargradient<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:fill<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:rect<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:application<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>

</pre>
<p>Et la classe de skin personnalisée, <em>skins/CustomScrollingApplicationSkin.mxml</em>, se présente comme suit:</p>
<pre>
<div class="igBar"><span id="lxml-10"><a href="#" onclick="javascript:showPlainTxt('xml-10'); return false;">COPIER-COLLER</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-10">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;</span>?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">"1.0"</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">"utf-8"</span>?<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2010/11/03/adding-scroll-bars-to-an-spark-application-container-in-flex-4/ --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:skin <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"CustomScrollingApplicationSkin"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; xmlns:<span style="color: #000066;">fx</span>=<span style="color: #ff0000;">"http://ns.adobe.com/mxml/2009"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; xmlns:<span style="color: #000066;">s</span>=<span style="color: #ff0000;">"library://ns.adobe.com/flex/spark"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; xmlns:<span style="color: #000066;">fb</span>=<span style="color: #ff0000;">"http://ns.adobe.com/flashbuilder/2009"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; alpha.<span style="color: #000066;">disabledStates</span>=<span style="color: #ff0000;">"0.5"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- states --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:states<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:state <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"normal"</span> <span style="color: #000066;">stateGroups</span>=<span style="color: #ff0000;">"normalStates"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:state <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"disabled"</span> <span style="color: #000066;">stateGroups</span>=<span style="color: #ff0000;">"disabledStates"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:state <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"normalWithControlBar"</span> <span style="color: #000066;">stateGroups</span>=<span style="color: #ff0000;">"normalStates"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:state <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"disabledWithControlBar"</span> <span style="color: #000066;">stateGroups</span>=<span style="color: #ff0000;">"disabledStates"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:states<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;fx</span>:metadata<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; [HostComponent(&quot;spark.components.Application&quot;)]</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/fx</span>:metadata<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;fx</span>:script fb:<span style="color: #000066;">purpose</span>=<span style="color: #ff0000;">"styling"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">&lt;![CDATA[</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bgRectFill.color = getStyle('backgroundColor');</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bgRectFill.alpha = getStyle('backgroundAlpha');</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; super.updateDisplayList(unscaledWidth, unscaledHeight);</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/fx</span>:script<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- fill --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!--- </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">&nbsp; &nbsp; A rectangle with a solid color fill that forms the background of the application.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">&nbsp; &nbsp; The color of the fill is set to the Application's backgroundColor property.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">&nbsp; &nbsp; --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:rect <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"backgroundRect"</span> <span style="color: #000066;">left</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">right</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">top</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">bottom</span>=<span style="color: #ff0000;">"0"</span> <span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:fill<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:solidcolor <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"bgRectFill"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#FFFFFF"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:fill<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:rect<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:group <span style="color: #000066;">left</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">right</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">top</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">bottom</span>=<span style="color: #ff0000;">"0"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:layout<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:verticallayout <span style="color: #000066;">gap</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">horizontalAlign</span>=<span style="color: #ff0000;">"justify"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:layout<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!--- Application Control Bar --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:group<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:group <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"topGroup"</span> <span style="color: #000066;">minWidth</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">minHeight</span>=<span style="color: #ff0000;">"0"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066;">includeIn</span>=<span style="color: #ff0000;">"normalWithControlBar, disabledWithControlBar"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- layer 0: control bar highlight --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:rect <span style="color: #000066;">left</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">right</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">top</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">bottom</span>=<span style="color: #ff0000;">"1"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:stroke<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:lineargradientstroke <span style="color: #000066;">rotation</span>=<span style="color: #ff0000;">"90"</span> <span style="color: #000066;">weight</span>=<span style="color: #ff0000;">"1"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0xFFFFFF"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0xD8D8D8"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:lineargradientstroke<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:stroke<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:rect<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- layer 1: control bar fill --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:rect <span style="color: #000066;">left</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">right</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">top</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">bottom</span>=<span style="color: #ff0000;">"2"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:fill<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:lineargradient <span style="color: #000066;">rotation</span>=<span style="color: #ff0000;">"90"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0xEDEDED"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:gradiententry <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0xCDCDCD"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:lineargradient<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:fill<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:rect<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- layer 2: control bar divider line --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:rect <span style="color: #000066;">left</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">right</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">bottom</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.55"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:fill<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:solidcolor <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0x000000"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:fill<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:rect<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- layer 3: control bar --&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:group<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:group <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"controlBarGroup"</span> <span style="color: #000066;">left</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">right</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">top</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">bottom</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">minWidth</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">minHeight</span>=<span style="color: #ff0000;">"0"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:layout<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:horizontallayout <span style="color: #000066;">paddingLeft</span>=<span style="color: #ff0000;">"10"</span> <span style="color: #000066;">paddingRight</span>=<span style="color: #ff0000;">"10"</span> <span style="color: #000066;">paddingTop</span>=<span style="color: #ff0000;">"7"</span> <span style="color: #000066;">paddingBottom</span>=<span style="color: #ff0000;">"7"</span> <span style="color: #000066;">gap</span>=<span style="color: #ff0000;">"10"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:layout<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:group<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:scroller <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"contentScroller"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"100%"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"100%"</span> <span style="color: #000066;">minWidth</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">minHeight</span>=<span style="color: #ff0000;">"0"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:group <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"contentGroup"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"100%"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"100%"</span> <span style="color: #000066;">minWidth</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">minHeight</span>=<span style="color: #ff0000;">"0"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:scroller<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:skin<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>

</pre>
<h3>L'exemple en action</h3>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_6" width="400" height="300">
      <param name="movie" value="http://www.bases-as3.fr/wp-content/uploads/2011/01/Exemple5.swf" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://www.bases-as3.fr/wp-content/uploads/2011/01/Exemple5.swf" width="400" height="300">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<h3>Traduction de l'article de Peter DeHaan:</h3>
<p><a href="http://blog.flexexamples.com/2010/11/03/adding-scroll-bars-to-an-spark-application-container-in-flex-4/" target="_blank">Adding scroll bars to an Spark Application container in Flex 4</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bases-as3.fr/barres-defilement-scroll-bar-application-flex-4/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Effacer un style d&#8217;un contrôle Spark Button dans Flex 4</title>
		<link>http://www.bases-as3.fr/flex-4-effacer-style-bouton</link>
		<comments>http://www.bases-as3.fr/flex-4-effacer-style-bouton#comments</comments>
		<pubDate>Sat, 22 Jan 2011 10:40:11 +0000</pubDate>
		<dc:creator>tannoy</dc:creator>
				<category><![CDATA[Flex 4]]></category>
		<category><![CDATA[bouton]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[clear]]></category>
		<category><![CDATA[effacer]]></category>
		<category><![CDATA[style]]></category>

		<guid isPermaLink="false">http://www.bases-as3.fr/?p=330</guid>
		<description><![CDATA[L'exemple suivant montre comment vous pouvez effacer un style d'un contrôle Spark Button dans Flex 4 en utilisant la méthode clearStyle(). L'exemple suivant requiert Flash Player 10 et le SDK...]]></description>
			<content:encoded><![CDATA[<p>L'exemple suivant montre comment vous pouvez effacer un style d'un contrôle Spark Button dans Flex 4 en utilisant la méthode <var>clearStyle()</var>.</p>
<p><span id="more-330"></span></p>
<p class="alert">L'exemple suivant requiert Flash Player 10 et le SDK Adobe Flex 4. Vous pouvez télécharger la   version d'évaluation d'Adobe Flash Builder 4 à l'adresse <a href="http://bit.ly/crThlI">http://www.adobe.com/products/flex/</a>. Pour télécharger la dernière version du SDK   Flex 4, regardez <a href="http://bit.ly/Flex4SDK">http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex  +4</a>.</p>
<pre>
<div class="igBar"><span id="lxml-12"><a href="#" onclick="javascript:showPlainTxt('xml-12'); return false;">COPIER-COLLER</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-12">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;</span>?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">"1.0"</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">"utf-8"</span>?<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2010/10/27/clearing-a-style-on-the-spark-button-control-in-flex-4/ --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:application <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"Spark_Button_clearStyle_test"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; xmlns:<span style="color: #000066;">fx</span>=<span style="color: #ff0000;">"http://ns.adobe.com/mxml/2009"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; xmlns:<span style="color: #000066;">s</span>=<span style="color: #ff0000;">"library://ns.adobe.com/flex/spark"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; xmlns:<span style="color: #000066;">mx</span>=<span style="color: #ff0000;">"library://ns.adobe.com/flex/mx"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:controlbarcontent<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:button <span style="color: #000066;">label</span>=<span style="color: #ff0000;">"bold"</span> <span style="color: #000066;">fontWeight</span>=<span style="color: #ff0000;">"bold"</span> <span style="color: #000066;">click</span>=<span style="color: #ff0000;">"btn.setStyle('fontWeight', FontWeight.BOLD);"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:button <span style="color: #000066;">label</span>=<span style="color: #ff0000;">"no bold"</span> <span style="color: #000066;">click</span>=<span style="color: #ff0000;">"btn.clearStyle('fontWeight');"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:controlbarcontent<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;fx</span>:script<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">&lt;![CDATA[</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import flash.text.engine.FontWeight;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/fx</span>:script<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:button <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"btn"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #000066;">label</span>=<span style="color: #ff0000;">"Button"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #000066;">horizontalCenter</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">verticalCenter</span>=<span style="color: #ff0000;">"0"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:application<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>

</pre>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_7" width="400" height="300">
      <param name="movie" value="http://www.bases-as3.fr/wp-content/uploads/2011/01/Exemple4.swf" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://www.bases-as3.fr/wp-content/uploads/2011/01/Exemple4.swf" width="400" height="300">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<h3>Traduction de l'article de Peter DeHaan:</h3>
<p><a href="http://blog.flexexamples.com/2010/10/27/clearing-a-style-on-the-spark-button-control-in-flex-4/" target="_blank">Clearing a style on the Spark Button control in Flex 4</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bases-as3.fr/flex-4-effacer-style-bouton/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Définir une largeur fixe aux boutons d&#8217;un contrôle Spark ButtonBar dans Flex 4</title>
		<link>http://www.bases-as3.fr/largeur-fixe-boutons-buttonbar</link>
		<comments>http://www.bases-as3.fr/largeur-fixe-boutons-buttonbar#comments</comments>
		<pubDate>Fri, 21 Jan 2011 13:01:11 +0000</pubDate>
		<dc:creator>tannoy</dc:creator>
				<category><![CDATA[Flex 4]]></category>
		<category><![CDATA[boutons]]></category>
		<category><![CDATA[columnwidth]]></category>
		<category><![CDATA[largeur]]></category>

		<guid isPermaLink="false">http://www.bases-as3.fr/?p=312</guid>
		<description><![CDATA[L'exemple suivant montre comment vous pouvez définir une largeur fixe pour les boutons d'un contrôle Spark ButtonBar dans Flex 4 en créant une mise en page personnalisé de type HorizontalLayout...]]></description>
			<content:encoded><![CDATA[<p>L'exemple suivant montre comment vous pouvez définir une largeur fixe pour les boutons d'un contrôle Spark ButtonBar dans Flex 4 en créant une mise en page personnalisé de type <var>HorizontalLayout</var> et en définissant les propriétés <var>columnWidth</var> et <var>variableColumnWidth</var>.<br />
 <span id="more-312"></span></p>
<p class="alert">L'exemple suivant requiert Flash Player 10 et le SDK Adobe Flex 4. Vous pouvez télécharger la version d'évaluation d'Adobe Flash Builder 4 à l'adresse <a href="http://bit.ly/crThlI">http://www.adobe.com/products/flex/</a>. Pour télécharger la dernière version du SDK Flex 4, regardez <a href="http://bit.ly/Flex4SDK">http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4</a>.</p>
<pre>
<div class="igBar"><span id="lxml-14"><a href="#" onclick="javascript:showPlainTxt('xml-14'); return false;">COPIER-COLLER</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-14">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;</span>?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">"1.0"</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">"utf-8"</span>?<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2010/12/10/setting-a-fixed-button-width-on-a-spark-buttonbar-control-in-flex-4/ --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:application <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"Spark_ButtonBar_layout_columnWidth_test"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; xmlns:<span style="color: #000066;">fx</span>=<span style="color: #ff0000;">"http://ns.adobe.com/mxml/2009"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; xmlns:<span style="color: #000066;">s</span>=<span style="color: #ff0000;">"library://ns.adobe.com/flex/spark"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; xmlns:<span style="color: #000066;">mx</span>=<span style="color: #ff0000;">"library://ns.adobe.com/flex/mx"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:buttonbar <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"bBar"</span> <span style="color: #000066;">horizontalCenter</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">verticalCenter</span>=<span style="color: #ff0000;">"0"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:layout<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:horizontallayout <span style="color: #000066;">gap</span>=<span style="color: #ff0000;">"-1"</span> <span style="color: #000066;">columnWidth</span>=<span style="color: #ff0000;">"80"</span> <span style="color: #000066;">variableColumnWidth</span>=<span style="color: #ff0000;">"false"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:layout<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:dataprovider<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:arraylist <span style="color: #000066;">source</span>=<span style="color: #ff0000;">"[Red,Halo Orange,Yellow,Halo Green,Halo Blue,A,The quick brown fox]"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:dataprovider<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:buttonbar<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:application<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>

</pre>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_8" width="400" height="300">
      <param name="movie" value="http://www.bases-as3.fr/wp-content/uploads/2011/01/Exemple3.swf" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://www.bases-as3.fr/wp-content/uploads/2011/01/Exemple3.swf" width="400" height="300">
      <!--<![endif]-->
        Exemple Flash pour l\'article Définir une largeur fixe aux boutons d’un contrôle Spark ButtonBar dans Flex 4
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<h3>Traduction de l'article de Peter DeHaan:</h3>
<p><a href="http://blog.flexexamples.com/2010/12/10/setting-a-fixed-button-width-on-a-spark-buttonbar-control-in-flex-4/" target="_blank">Setting a fixed button width on a Spark ButtonBar control in Flex 4</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bases-as3.fr/largeur-fixe-boutons-buttonbar/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FileReference et Chrome &#8211; IOError en utilisant la méthode download()</title>
		<link>http://www.bases-as3.fr/filereference-chrome-ioerror</link>
		<comments>http://www.bases-as3.fr/filereference-chrome-ioerror#comments</comments>
		<pubDate>Thu, 20 Jan 2011 12:37:13 +0000</pubDate>
		<dc:creator>tannoy</dc:creator>
				<category><![CDATA[Chargement de données]]></category>
		<category><![CDATA[erreur]]></category>
		<category><![CDATA[filereference]]></category>
		<category><![CDATA[ioerror]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[telechargement]]></category>

		<guid isPermaLink="false">http://www.bases-as3.fr/?p=292</guid>
		<description><![CDATA[Lorsque l'on souhaite donner la possibilité à un utilisateur de télécharger un fichier depuis une animation Flash, on utilise la méthode download() de la classe FileReference. Le fichier téléchargé peut-être...]]></description>
			<content:encoded><![CDATA[<p>Lorsque l'on souhaite donner la possibilité à un utilisateur de télécharger un fichier depuis une animation Flash, on utilise la méthode <code>download()</code> de la classe <code>FileReference</code>.</p>
<p>Le fichier téléchargé peut-être un fichier présent physiquement sur le serveur où un fichier généré à la volée par un script serveur.</p>
<p>Dans une de mes applications, je devais télécharger un fichier zip qui était généré dynamiquement depuis un script PHP. Le téléchargement fonctionnait très bien sous tous les navigateurs sauf avec Chrome où j'obtenais une erreur 2038:</p>
<p class="alert">Error #2038: Erreur d'E/S de fichier</p>
<p><span id="more-292"></span><br />
Dans ce cas précis, la problématique provenait du header PHP 'Content-Length' qui était utilisé dans mon script.</p>
<div class="igBar"><span id="lphp-17"><a href="#" onclick="javascript:showPlainTxt('php-17'); return false;">COPIER-COLLER</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-17">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/header"><span style="color:#000066;">header</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Content-Type: application/zip'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/header"><span style="color:#000066;">header</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Content-Length: '</span> . <a href="http://www.php.net/filesize"><span style="color:#000066;">filesize</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$tempFile</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/header"><span style="color:#000066;">header</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Content-Disposition: attachment; filename=&quot;monfichier.zip&quot;'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La solution a donc été de supprimer le header PHP du script et le téléchargement fonctionne bien désormais sous Chrome.</p>
<div class="igBar"><span id="lphp-18"><a href="#" onclick="javascript:showPlainTxt('php-18'); return false;">COPIER-COLLER</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-18">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/header"><span style="color:#000066;">header</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Content-Type: application/zip'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/header"><span style="color:#000066;">header</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Content-Disposition: attachment; filename=&quot;monfichier.zip&quot;'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bases-as3.fr/filereference-chrome-ioerror/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

