
Код:
this.karta.onPress = function() {
startDrag(this);
}
_root.onMouseUp = function() {
_root.stopDrag();
};
или так =)

Код:
ramcaXleft = 100;
ramcaXright = 450;
this.ramca.onEnterFrame = function() {
if (this._x<=ramcaXleft) {//условие проверки границы координаты по левому краю
this._x = ramcaXleft;
}
if (this._x>=ramcaXright) {//условие проверки границы координаты по правому краю
this._x = ramcaXright;
}
};
this.ramca.onMouseDown = function() {
//условие хватания
if ((_root._xmouse>=(this._x-(this._width/2))) && (_root._xmouse<=(this._x+(this._width/2))) && (_root._ymouse>=(this._y-(this._height/2))) && (_root._ymouse<=(this._y+(this._height/2)))) {
startDrag(this);
}
};
//
_root.onMouseUp = function() {
_root.stopDrag();
};
Старо как мир ... еще кординаты какието отлавливать
