2009/3/3 Fotis Chatzinikos <[email protected]>:
> mouse move?
>
> on press, register mouse move and then on release / drop unregister...


This is my sample code but does not work because I was not able to
detecting that the mouse click is continued clicked. Any suggestion ?

triangle2 = new UIComponent();
triangle2.addEventListener(MouseEvent.CLICK, handlerClick);


private function handlerClick(evt:MouseEvent) : void {
       triangle2.addEventListener(MouseEvent.MOUSE_MOVE, handlerMouseMove);
}
                        
private function handlerMouseMove(evt:MouseEvent) : void {
        Alert.show(evt.stageX + " :: " + evt.stageY);
}

Reply via email to