Well, basically it's because the onPress/onRelease event only happens once.
I recommend doing something like this (NOTE: I'm assuming this code is from a button inside of a movie clip):
code:
on(press){
startDrag(this);
this.onMouseMove = function(){
if(_root.pin.hitTest(_root.balloon)){
_root.balloon.balloon2.gotoAndPlay("popped");
}
}
}
on(release){
stopDrag();
this.onMouseMove = undefined
}
EDIT: Oh yeah. / = _root




Reply With Quote