Need some help real quick. I have my project set up so when a button is clicked, it makes a variable = true, creates a MC at mouse x and y position, and draged by mouse. It works, but I can’t seem to get the stopDrag(); to work now. Here is what I have.
Within the Button
on(release){
_root.buildingsomething=true;
_root.attachMovie ("BoxMc", "BoxMc"+ 1, getNextHighestDepth());
_root.BoxMc1._x = _root._xmouse;
_root.BoxMc1._y = _root._ymouse;
_root.BoxMc1.startDrag();
Mouse.hide();
}
In the main timeline.
BoxMc1.onMouseDown = function() {
if(_root.buildingsomething==true){
_root.BoxMc1.stopDrag();
_root.buildingsomething=false;
}
if(_root.buildingsomething==false){
_root.menu.gotoAndStop(3);
}
};
But it doesn’t work.