0 Replies Latest reply on Oct 26, 2010 3:54 PM by almir_me

    click event inside ButtonBar

    almir_me

      How to fill ButtonBar with Buttons or ButtonBarButtons, or to be more specific how to make them act like real buttons once they are inside.

      My objective is to have buttonBar with buttons that can dispatch click event. Below is some of my code, suppose to be easy, but when I click on buttons nothing happens.

       

       

       

      <s:ButtonBarskinClass="skins.toolbar" id="mainMenu"

           width="

      100%" height="100%">

       

       

                <s:dataProvider>

       

       

                     <s:ArrayList>

       

       

                       <s:ButtonBarButton data="@Embed(source='assets/departureW.png')"

                                  label="

      Read"

                                  click="views.selectedChild=read"

      />

       

       

                       <s:ButtonBarButton data="@Embed(source='assets/TV.png')"

                                  label="

      Watch"

                                  click="views.selectedChild=watch"

      />

       

       

                       <s:ButtonBarButton data="@Embed(source='assets/departureW.png')"

                                  label="

      Change state"

                                  click="currentState = 'selections'"

      />

       

       

                       </s:ArrayList>

       

       

                </s:dataProvider>

       

       

       

      </s:ButtonBar>