PDA

View Full Version : onClipEvent (mouseDown) -- drag movieclip problem


@bc
05-26-2006, 02:30 AM
Hello guys.. i need some help on this.. I have a movieclip which contains combobox.. on my movieclip, i put this code:

onClipEvent(mousedown){
startDrag(this);
}
onClipEvent(mouseup){
stopDrag();
}


The problem is, when i tried to scroll down the combobox (the scroll panel), it cause the movieclip moving... please take time to check my attached *.fla and try running it..

advika
05-26-2006, 01:29 PM
before start drag use hitTest , to check whether the mouse is pressed on the movieclip which you want drag.

movieclipName.hitTest(_root._xmouse, _root._ymouse, true)