Buttons having toggle mode true have property named as 'selected'.

On click of any button, start with a blank array on click of any
button, loop thru all the buttons and check for selected property. If
the selected property is true, push the label into the array. remember
that every time a new array is created so you dont have to remove
anything from the array, just add only the labels of the buttons for
which the selected property is true. You don;t have to write three
click handlers for this, just write on click handler for the click
event of every button.

HTH
-Sambhav

On Mar 4, 9:57 pm, cool saurabh <[email protected]> wrote:
> Hi all,
> any idea on how o solve this??
>
> Regards
>
> On Wed, Mar 4, 2009 at 10:55 AM, cool saurabh
> <[email protected]>wrote:
>
> > Hi all
>
> > I am having set of buttons(say 3 buttons labelled button1,button2,button3)
> > & toggling property is set true on this buttons. Now problem is that as soon
> > as button is clicked i have to get the label of button stored in array.
> > Problem i am facing is that when user clicks on button1 then array has
> > button1 ; Now user clicks button2  array is button1,button2 & present state
> > of both buttons is they are toggled now if user clicks on button1 again then
> > it has to untoggle & array will be only button2 now.
> > Can anyone tell how can i solve the problem If i can get a sample code it
> > will be helpful :)
>
> > Regards
> > Saurabh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to