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 <[email protected]> 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
