onClipEvent (load) {
// We define the reference point
centerx = 100 ;
centery = 100 ;
// temporary variables used to calculate
// the speed of the mass
x0 = this._x ;
y0 = this._y ;
}
onClipEvent (enterFrame) {
if (pressing) {
startDrag (this,true) ;
xp = this._x - x0 ;
yp = this._y - y0 ;
x0 = this._x ;
y0 = this._y ;
}
else {
stopDrag () ;
this.move (centerx,centery,0.9,0.1) ;
}
}
What is startDrag and stopDrag? I can’t find any functions by that name in the .fla. What are they doing?