
04.12.2003, 14:29
|
|
Регистрация: Dec 2003
Адрес: Leopolis
Сообщений: 398
|
вставь этот код в корень
--------------------------------------
zig.max = 5;
zig2.max = 10;
zig3.max = 15;
zig.count = 0;
zig2.count = 0;
zig3.count = 0;
zig.flag = 1;
zig2.flag = 1;
zig3.flag = 1;
zig.onRelease = function() {
this.count += this.flag;
if (this.count == this.max) {
this.nextFrame();
this.flag = -1;
}
if (this.count == 0) {
this.prevFrame();
this.flag = 1;
}
};
zig2.onRelease = function() {
this.count += this.flag;
if (this.count == this.max) {
this.nextFrame();
this.flag = -1;
}
if (this.count == 0) {
this.prevFrame();
this.flag = 1;
}
};
zig3.onRelease = function() {
this.count += this.flag;
if (this.count == this.max) {
this.nextFrame();
this.flag = -1;
}
if (this.count == 0) {
this.prevFrame();
this.flag = 1;
}
};
-----------------------------------------------
|