0 Replies Latest reply on Apr 27, 2011 6:35 AM by Francesco_C

    Animated movie clips in button skin states

    Francesco_C Level 1

      Hello to gurus out there,

       

      i am trying to attach flash animated skins to my button in a Flex application. Can somebody help me?

      Works fine but don't animate the movieclip (timeline animation) on up, over and down states.

      Thnaks!

       

      CSS file:

      .flashButton
      {
          up-skin: Embed("/../libs/assets.swf#upSkin");
          over-skin: Embed("/../libs/assets.swf#overSkin");
          down-skin: Embed("/../libs/assets.swf#downSkin");   
      }

       

       

      FlashButtonSkin

      [other code]

      <s:BitmapImage id="icon"
                         source="{hostComponent.getStyle('upSkin')}"
                         left="0" right="0" top="0" bottom="0" />

       

       

      Main.mxml

      <s:Button styleName="flashButton" skinClass="skins.FlashButtonSkin"/>