Hi, why u r not sending event along with clickHandler function? U can easily get the label like - event.currentTarget.label. inside click handler function. Hope it will help
Regards Saurabh On 12/18/09, explorer <[email protected]> wrote: > > Hello , > > I have problems accessing label of clicked button. I generated row of > buttons using repeater, dataProvider is ArrayCollection generated by > database. Every button have next value from arrayCollection, and this > works fine. I decided to create custom eventObject just to pass label > from selected button. > > <mx:Repeater dataProvider="{objekti}" id="sviObjekti"> > <mx:LinkButton labelPlacement="left" textAlign="left" width="80" > height="25" id="naziviObjekata" > > label="{sviObjekti.currentItem.imeKlijenta.toString()}" > themeColor="#A29DA5" alpha="0.26" click="clickHandler()"/> > </mx:Repeater> > > As you can see every button have clickHandler(). This function should > is like this > > private function clickHandler():void > { > var link:String = naziviObjekata.label; > var eventObj:DugmicKlikni = new > DugmicKlikni(naziviObjekata.label, > "rokamo"); > dispatchEvent(eventObj); > } > > but this don t work, when I get call this custom event result have > value of null, > > any idea how to access property of clicked button. > > Thx > > -- > > 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]<flex_india%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > > > -- 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.

