ok, I'll retract that.  looks like the bubbles up retains the target.

Chris, try adding this to your object inside your itemRenderer
creationComplete="this.addEventListener(MouseEvent.CLICK,handleUpClick);"

This seems to work for me.

DK

On 3/29/06, Douglas Knudsen <[EMAIL PROTECTED]> wrote:
> 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?
>


--
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

<*> 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