I’m putting all my code into one frame for organization. If a button named “dragger” originally has…
on (press) {
startDrag (this, true, 30, 80, 140, 110);
}
on (release) {
stopDrag ();
}
How do move this code onto my one frame in root? I have to tweak some stuff, right?
[AS]dragger.onPress=function(){
startDrag (this, true, 30, 80, 140, 110);
}
dragger.onRelease=function(){
this.stopDrag()
}[/AS]
Yeah, that works. But when I try to do this, the dragger continues to be dragged even when the mouse rolls off.
dragger.onRollout = function() {
this.stopDrag();
}
[AS]dragger.onRelease=dragger.onReleaseOutside=function(){
this.stopDrag()
}[/AS]