Cast owner to something like ListBase to get round the compiler error.

--- In [email protected], "Battershall, Jeff" 
<[EMAIL PROTECTED]> wrote:
>
> OK, I tried this but I get a compiler error - owner (which is a
> DisplayObjectContainer) doesn't have a property owner.
> 
> Jeff
> 
> -----Original Message-----
> From: [email protected] 
[mailto:[EMAIL PROTECTED] On
> Behalf Of reflexactions
> Sent: Wednesday, July 09, 2008 2:17 PM
> To: [email protected]
> Subject: [flexcoders] Re: ComboBox ItemRenderer Custom Events only 
go to
> SystemManager - WHY?????
> 
> 
> Try owner.owner
> 
> Inside itemRenderer owner would be the List, the Lists' owner would 
> be the CB I think
> 
> 
> 
> --- In [email protected], "Battershall, Jeff" 
> <jeff.battershall@> wrote:
> >
> > Alex,
> >  
> > I thought that might be the case, but when I use
> > owner.dispatchEvent(myCustomEventInstance,true) from within my 
> > itemRenderer, and I have previously added an event listener to my 
> > ComboBox, no event is broadcast from my ComboBox.
> >  
> > Jeff
> > 
> >     -----Original Message-----
> >     From: [email protected]
> [mailto:[EMAIL PROTECTED] 
> > On Behalf Of Alex Harui
> >     Sent: Wednesday, July 09, 2008 1:47 PM
> >     To: [email protected]
> >     Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events
> only go 
> > to SystemManager - WHY?????
> >     
> >     
> > 
> >     Popups have to float over "everything" so they are parented by
> > SM and not the CB or the app.   If you dispatch the event off the
> > "owner" it will go to the CB and bubble up from there
> > 
> >      
> > 
> >     
> > ________________________________
> > 
> > 
> >     From: [email protected]
> [mailto:[EMAIL PROTECTED] 
> > On Behalf Of Battershall, Jeff
> >     Sent: Wednesday, July 09, 2008 10:23 AM
> >     To: [email protected]
> >     Subject: [flexcoders] ComboBox ItemRenderer Custom Events only
> go to 
> > SystemManager - WHY?????
> > 
> >      
> > 
> >     I've been remiss in addressing my less-than-perfect
> understanding of
> >     Events and event bubbling.
> >     
> >     My custom itemRenderer needs to fire a custom event. I've
> spent
> > the last
> >     day trying to get it to bubble up from my custom itemRenderer
> to
> > the
> >     ComboBox, but no dice. If I add an eventListener in my
> ComboBox,
> > it does
> >     not receive the event. However when I use
> >     systemManager.addEventListener("myCustomEvent",myHandler),
> > suddenly I
> >     can receive the event.
> >     
> >     Is this the expected behavior? Why?
> >     
> >     Jeff Battershall
> >     Application Architect
> >     Dow Jones Indexes
> >     jeff.battershall@ <mailto:jeff.battershall%40dowjones.com>
> >     (609) 520-5637 (p)
> >     (484) 477-9900 (c)
> >
> 
> 
> 
> ------------------------------------
> 
> --
> Flexcoders Mailing List
> FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups
> Links
>


Reply via email to