Hey,
nochmal ich! Habe eine Thumbnailbar, die ich per mc_left und mc_right verschiebe. Zurück scrollen, also nach links funzt prima:
Code:
onRollOver = function () {
_root.thumbbar.onEnterFrame = function() {
if(this._x <= _global.thumbbarxstart) {
this._x += 10;
} else {
delete this.onEnterFrame;
}
};
};
onRollOut = function() {
delete _root.thumbbar.onEnterFrame;
} aber ich bekomme es nicht hin, die thumbbar nach rechts zu verschieben und sie dann stehen zu lassen. Da bricht bei mir der Film ab. Habs so versucht:
Code:
onRollOver = function () {
trace(_root.thumbbar._width)
_root.thumbbar.onEnterFrame = function() {
trace(_root.thumbbar._x);
if(_root.thumbbar._x <= -_root.thumbbar._width) {
delete this.onEnterFrame();
} else {
this._x -= 10;
}
};
};
onRollOut = function() {
delete _root.thumbbar.onEnterFrame;
} Danke für Eure Hilfe!