Hey guys,
so I have an object on stage when the mouse is rolled over it the object will attach itself to the mouse (startDrag), the problem I’m having is that I still need the user to click on different objects while dragging that object but the onRelease function isn’t registering.
Here’s basically what I have
sucre = function():Void
{
this.onEnterFrame = function(){
if( _root.packaging._currentframe >= 64 )
{
_root.packaging.onRollOver = function() {
if(_root.idx != null) {
trace("clearInterval");
clearInterval(_root.idx);
}
this.startDrag(true);
_root.idx = setInterval(startDraw, 35);
};
}
}
//
myObject.onRelease = function():Void {
trace("works!");
}
any idea why it’s not working?