[flexcoders] Re: How to retrieve the Button label name?

2008-02-22 Thread flexawesome
any suggestions? Thanks --- In flexcoders@yahoogroups.com, flexawesome [EMAIL PROTECTED] wrote: Hey there, Is there a way to retrieve the button label name once user click the button? ( the button label name is CLICK HERE and in itemRenderer ) Main Application:

Re: [flexcoders] Re: How to retrieve the Button label name?

2008-02-22 Thread Scott Melby
You should probably just dispatch an event that bubbles from within the renderer when the button is clicked... you can then send the button (or just the label) in the event payload. Your code that needs it can register as a listener for the event on the component that holds your items (list

Re: [flexcoders] Re: How to retrieve the Button label name?

2008-02-22 Thread Andriy Panas
You should assign an identifier to the label, something like mx:Label id=myLabel/. Then, in the code, you can access Label's current label by calling 'myLabel.text'.