I thought I have a very simple job: create an analog clock where students can set when the hours are rotated Handles
OK, the whole thing works at one point ... I have made a bone system to ensure that the base of both the handles remains at the center of the clock while dragging about the handle. Are there. The problem is that I can not restrict user movement within the "reach" of each operation (or is it?) And if the mouse is dragged out of the dragged hand at the drop down point, then the MOUSE_UP does not trigger the event .
I have also searched for a movieclip modified event which will work wonders in this case but I could not find it ...
Is there any way to get out of this?
TIA
You can avail such benefits like forum mood events.
handle.addEventListener (MouseEvent.MOUSE_DOWN, onMouseDown); Handle.addEventListener (MouseEvent.MOUSE_UP, onMouseUp); Mausaudown (E: MouseIvent) on Private Function: Zero {stage.addEventListener (MouseEvent.MOUSE_UP, onMouseUp); // If the mouse is drag out of the handle, it will still keep track of the mouse up event // dragging} Personal function onmouse (e: mouseEvent): place the mouse up for the zero handle handle platform. RemoveEventListener (MouseEvent.MOUSE_UP, on-mouseup); }
Comments
Post a Comment