event.target is whatever object called dispatchEvent(). It stays fixed
through the capture and bubble phases of event dispatching.

event.currentTarget is the object whose event listeners are being
processed. It changes during the capture and bubble phases, but will
always be an ancestor of the target.

- Gordon


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Douglas Knudsen
Sent: Wednesday, March 29, 2006 1:11 PM
To: [email protected]
Subject: Re: [flexcoders] dispatching an event from an itemRenderer

IIRC, the event.target changes to the last object catching the event.

I'm having the same issue with a TileList and itemRenderer

DK

On 3/29/06, Tobias Patton <[EMAIL PROTECTED]> wrote:
> Does your event listener listen for events dispatched by the DataGrid?
> Make sure that the event your item renderer dispatches has
> "bubbles=true". That way, the DataGrid will dispatch the event after
the
> renderer dispatches it.
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
On
> Behalf Of Chris Scott
> Sent: Wednesday, March 29, 2006 11:44 AM
> To: [email protected]
> Subject: [flexcoders] dispatching an event from an itemRenderer
>
> OK, this has been giving me trouble for 2 hours now. Flex 2 Beta 2,
> btw. So I have a component with a dataGrid in it. For one of the
> dataGridColumns I have itemRenderer set to another component, in
> which I have a few text fields. I would like to dispatch an event
> when one of those text fields is clicked, and add an event listener
> for it in the component containing the dataGrid. But this will just
> not happen for me. Does anyone have any examples of doing something
> like this? Imagine hyperlinks in the dataGrid cells. Of course I will
> need to access the data for that cell, but one step at a time,
perhaps!
>
>
> Chris Scott
> [EMAIL PROTECTED]
> http://cdscott.blogspot.com/
> http://www.coldspringframework.org/
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>


--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to