PDA

View Full Version : start drag!



distortionstorm
January 15th, 2004, 04:28 AM
ok here is the problem. i have a flash movie happening... with a custom cursor (using the startdrag command as per usual). now i have a volume control slider that also uses the startdrag command and it steals my cursor! (by steal i mean it takes one of the layers (out of 7) of my cursor) and wont let me move it anymore! the rest of my cursor moves with the mouse as usual.) not sure if this is a startdrag related error (on my part probably) but if anyone can help me i'd be muchly appreciative!



cursor actions:
Mouse.hide();
startDrag ("curse", true);


volume slider actions:

on (press) {
startDrag (this, false, GetProperty("../track",_x)-GetProperty("../track",_width)/2, GetProperty("../track",_y), GetProperty("../track",_x)+GetProperty("../track",_width)/2, GetProperty("../track",_y));
}
on (release) {
stopDrag ();
}

any suggestions or ideas would be grat! thanks!

flash4food
February 1st, 2004, 09:33 PM
i can't see whats wrong from what you are saying but try this, it may work

on the cursor put the following code



onClipEvent(enterFrame){
_x=_root._xmouse
_y=_root._ymouse
}