0 Replies Latest reply on Oct 22, 2009 7:20 AM by Alek83

    Skin fields binding

    Alek83

      Hi all

      I have one question..

       

      How can I change some fields in MXML skin?

       

      For example, I created slider skin with Degrafa... and I want to change track or indicator color in runtime..

       

      .......................................   

               [Bindable]

                private var _indicatorColor:Number=0xFC5976;

       

          ]]>

          </mx:Script>

       

          <geometry>

              <Polygon data="0,30 0,12 7,0 14,12 14,30 " id="Polygon2408">

                   <fill>

                       <LinearGradientFill angle="90">

                           <GradientStop alpha="1" color="#000000" ratio="0"/>

                           <GradientStop alpha="1" color="{_indicatorColor}" ratio="1"/>

                       </LinearGradientFill>

                   </fill>

                   <stroke>

                       <SolidStroke alpha="1" caps="round" color="#000000" joints="round" weight="2"/>

                   </stroke>

               </Polygon>

          </geometry> 

      ......................................

       

      Thanks