[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (752 B)
speed = 14;
imageMask.onEnterFrame = function () {
var _local1 = this;
if ((_local1._width + _local1._x) < _xmouse) {
if (((_local1._width + _local1._x) >= (_xmouse - 0.8)) || ((_local1._width + _local1._x) == _xmouse)) {
_local1._x = _xmouse - _local1._width;
} else {
_local1._x = _local1._x + ((_xmouse - (_local1._width + _local1._x)) / speed);
}
} else if ((_local1._width + _local1._x) > _xmouse) {
if (((_local1._width + _local1._x) <= (_xmouse + 0.8)) || ((_local1._width + _local1._x) == _xmouse)) {
_local1._x = _xmouse - _local1._width;
} else {
_local1._x = _local1._x - (((_local1._width + _local1._x) - _xmouse) / speed);
}
} else {
_local1._x = _xmouse - _local1._width;
}
};