Ну что ж решение примерно такое. При желании его можно доработать.
Создается MovieClip в нем Button.
В первом кадре
stop();
_root.drag = false;
// переменная указывающая происходит сейчас таскание
//мувиклипа или нет.
в Action на MovieClip:
onClipEvent ( enterFrame )
{
if ( !_root.drag )
{
_root.x = this._x;
_root.y = this._y;
return;
}
else {
this._x -= (_root.x - this._x)/3;
this._y -= (_root.y - this._y)/3;
_root.x -= (_root.x - this._x)/3;
_root.y -= (_root.y - this._y)/3;
}
}
в Action на Button:
on ( press )
{
startDrag(this);
_root.drag = false;
}
on (release)
{
stopDrag();
_root.drag = true;
}
//все. желающим могу выслать готовый скрипт по почте.
