thx, that helped, solutions are sometimes so easy and close ...

thank you very very much you make my day .

 thx again

On Dec 18, 3:08 am, saurabh goel <[email protected]> wrote:
> 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%2bunsubscr...@googlegrou­ps.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/flex_india?hl=en.- Hide quoted text -
>
> - Show quoted text -

--

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