
Код:
var n = 7;
MovieClip.prototype.x = function() {
if (this._x != 0 ) $x = this._x;
ASSetPropFlags(this, ["$x"], n);
return $x;
};
MovieClip.prototype.y = function() {
if (this._y != 0 ) $y = this._y;
ASSetPropFlags(this, ["$y"], n);
return $y;
};
ASSetPropFlags(MovieClip.prototype, ["x", "y"], n);
MovieClip.prototype.useHandCursor = 0;
MovieClip.prototype.onRollOver = function() {
if (this.hitTest(_root._xmouse, _root._ymouse, 1)) {
trace(this._name+"| x:"+this.x()+" | y:"+this.y());
this._x += 10;
}
};
как сделать для всех мс разные значения ??? оно сохраняет только одно...