I think you have two basic choices:

 

1)       re-dispatch all mouse events.  You’ll have to listen to mouseUp/Down/Over/Out, translate them into chart pieces and probably simulate rollover/rollout, which will not be a pleasant thing to do.

2)       Make everything in your component mouseEnabled=false so the mouse events go straight to the chart and rely on bubbling to let you know what is happening underneath you.

 

I would explore (2) first.

 

-Alex

 


From: [email protected] [mailto:[email protected]] On Behalf Of zenwarden
Sent: Thursday, September 28, 2006 8:13 AM
To: [email protected]
Subject: [flexcomponents] Re: Canvas based component blocking evnts on underlying chart.

 

I forgot to mention that I also have a mouseDown event for the custom
component, and register a moseMove event listener for the component on
initialize.

--- In flexcomponents@yahoogroups.com, "zenwarden" <[EMAIL PROTECTED]> wrote:
>
> Yes, I am asking the chart to see the mouse when buried under a
> mousable area. I have a mouseUp event for the whole canvas, and
> various other mouseEvents for subcomponents in the canvas. So I am
> assuming I should somehow pass an event on to the chart underneath.
> What I am loath to do is integrate the chart and the custom component.
>
> Having the datatips show is not essential, but would be nice.
>
>
> --- In flexcomponents@yahoogroups.com, "Alex Harui" <aharui@> wrote:
> >
> > Are you asking to get the chart to see the mouse when buried under a
> > mouseable area? Or just through the canvas itself? Have you played
> > with the mouseEnabled flag?
> >
> >
> >
> > ________________________________
> >
> > From: flexcomponents@yahoogroups.com
> > [mailto:flexcomponents@yahoogroups.com] On Behalf Of zenwarden
> > Sent: Wednesday, September 27, 2006 12:04 PM
> > To: flexcomponents@yahoogroups.com
> > Subject: [flexcomponents] Canvas based component blocking evnts on
> > underlying chart.
> >
> >
> >
> > I have built a component that allows me to select a range of dates
on a
> > chart (kind of like the google finance). The component is based on a
> > canvas and it lies on "top" of the chart.
> >
> > When I turn on datatips on the chart, they do not show up because the
> > chart/data point never gets the event of the mouse rollover.
> >
> > I assume I need to pass the event from my custom component to the
chart.
> > Is that assumption correct? If so, any suggestions on how to do it?
> >
> > Any other ideas would also be welcome.
> >
> > Chris Warden
> >
>

__._,_.___


SPONSORED LINKS
Software development tool Application development software Development software
Development outsourcing software Embedded software development

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to