flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak MS <megharajdee...@gmail.com>
Subject Re: Lineseries tooltip on mobile
Date Fri, 05 Sep 2014 09:13:57 GMT
I added that piece under measure.
But still, onClick method isn't getting called.


On Fri, Sep 5, 2014 at 2:40 PM, Justin Mclean <justin@classsoftware.com>
wrote:

> Hi,
>
> >>>        public function DataPointRenderer()
> >>>        {
> >>>            super();
> >>>            width = 20;
> >>>            height = 20;
> >>>            addEventListener(MouseEvent.CLICK, onClick);
> >>>            addEventListener(TouchEvent.TOUCH_TAP, onClick);
> >>>
> >>>            addEventListener(MouseEvent.MOUSE_OVER, onOver);
> >>>        }
>
>
> Not closely checked the code or tried it out but setting width, height and
> adding event listeners is not normally done in a constructor, you may have
> to wait until the component is initialised.
>
> Thanks,
> Justin

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message