beckersbesters
Mitglied
Hallo,
ich habe probleme mit diesem Horizontalen Scroller hier (siehe Anhang):
Er soll jeweils am Ende links oder rechts, wenn es geht, weich abstoppen.
Weiß jemand Rat?
cu
ich habe probleme mit diesem Horizontalen Scroller hier (siehe Anhang):
PHP:
factor = 20;
this.onEnterFrame = function() {
speed = ((this.ct._width / 2) - _root._xmouse) / factor;
ct._x += speed;
if (this.ct._x > this.mask._x) {
trace("links - ende");
}
if ((this.mask._x + this.mask._width) > (this.ct._x + this.ct._width)) {
trace("rechts - ende");
}
};
Er soll jeweils am Ende links oder rechts, wenn es geht, weich abstoppen.
Weiß jemand Rat?
cu