0 Replies Latest reply on Jul 12, 2007 11:15 PM by san00001

    problem in buttons

    san00001 Level 1
      hi!!1

      i created repeated buttons the code is given below.but am getting problem while giving effects in click event.
      animation is happening for click of all buttons.i want to do animation whle clicking a particular button.
      but the buttons should be dynamically repeated buttons.hw to code .pls help me

      <mx:Script>
      <![CDATA[
      [Bindable]
      public var myArray:Array=["Home","Admin","PIM","Leave","Reports","Bug Tracker"];


      ]]>
      </mx:Script>
      <mx:ArrayCollection id="myAC" source="{myArray}"/>
      <mx:HBox id="mnubox" x="1400" y="222" width="420" height="31" horizontalGap="2">
      <mx:Repeater id="myrep" dataProvider="{myAC}">
      <mx:Button id="but" click="currentState='two';moveComp()" label="{myrep.currentItem}" fillColors="[#00ffff, #804000]" borderColor="#c0c0c0" fillAlphas="[0.8, 0.51]"/>
      </mx:Repeater>
      </mx:HBox>