1 Reply Latest reply on Aug 14, 2009 9:23 PM by Gregory Lafrance

    changing the color of a lot of paths...

    jonatasmz

      hey guys xD.. i have a problem....

       

      i have a lot of "paths" that looks like this one...

       

      <s:Path height="33" data="M 12.424 32.62 L 0 32.62 L 0 -0.021 L 8.334 -0.021 L 6.991 4.297 L 5.704 4.11 L 1.851 8.672 L 7.725 15.116 L 12.436 18.781 L 6.654 24.325 L 11.376 29.524 L 12.424 32.62 Z">
              <s:fill>
                          <s:SolidColor id="barColor" color.blue="0x46B4C1" color.green="0x98C908" color="0x98C908" color.red="0xE53A13" color.orange="0xD96704" />
              </s:fill>
      </s:Path>

       

      and in this skin i have 4 states.... BLUE, GREEN, RED, ORANGE...

      so.. when i change the states... i have this transition that animate the color...

       

      <s:Transition fromState="*" toState="*">
             <s:AnimateColor duration="500" target="{barColor}" />
      </s:Transition>

       

      well.. everytghing it´s working fine.. but now i have a problem... in this skin.. i have a LOT OF other paths...(like... 80..)

      and i want to do this transition(animatecolor)) in all these "paths"...

      and i realy don´t think that the best way to do that is put one "ID" in all pathes...

       

      someone can help me?