ok, im makin a game in flash mx 2004, where you have to use your mouse to drag something to another place, i can do that, but how do i make it once you've dragged it, you cant do it again? please help :(
Printable View
ok, im makin a game in flash mx 2004, where you have to use your mouse to drag something to another place, i can do that, but how do i make it once you've dragged it, you cant do it again? please help :(
Have you tried:
?PHP Code:var i = false;
my_mc.onPress = function() {
if (!_root.i) {
this.startDrag(true);
}
}
my_mc.onRelease = function() {
stopDrag();
_root.i = true
}
my_mc.onReleaseOutside = my_mc.onRelease;
Hope this helps