
23.02.2004, 18:59
|
|
Регистрация: Dec 2002
Адрес: Сочи
Сообщений: 2,819
|
silin - не знаю, как у тебя, а я набросал такой прототипчик:
MovieClip.prototype.test = function() {
n = 1;
this.onMouseMove = function() {
y2 = _root._ymouse;
};
this.onRollOver = function() {
this.onMouseDown = function() {
this.onEnterFrame = function() {
n *= -1;
if (n>0) {
y1 = _root._ymouse;
}
if ((y2-y1)>0) {
this._rotation += 30;
}
if ((y2-y1)<0) {
this._rotation += -30;
}
if ((y2-y1) == 0) {
this._rotation += 0;
}
};
this.onDragOut = function() {
delete this.onEnterFrame;
delete this.onMouseDown;
};
};
this.onMouseUp = function() {
delete this.onEnterFrame;
delete this.onMouseDown;
};
};
};
mc.test();//mc - крутящ.мувик.
|