| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| // Knäckebrot Registriert seit: Mar 2002 Ort: München
Beiträge: 283
| Panoslider um 90° drehen - klappt nicht...
hallo leute... ich habe ein script für einen panorama-slider, den ich schon oft eingesetzt habe. nun wollte ich das ding einfach mal um 90° drehen, da ich das mal vertikal einsetzten will. das ding funktioniert aber nun plötzlich nichtmehr. ich hab nun schon ne weile rumprobiert, aber nix vernünftiges rausbekommen... das anschließen des duplikats funktioniert nicht und ein mc (duplikat oder orig.) bleibt sogar einfach stehen... wo ist denn da mein fehler? das ist das original: Code: function setzePano(obj) {
obj.mittelpunkt = 0;
obj.umkehrPunkt = (obj._width-(obj.mittelpunkt*2))/2;
duplicateMovieClip(obj, "strip2", 1);
strip2._y = obj._y;
obj.onEnterFrame = function() {
this._x += (this.mittelpunkt-this._parent._xmouse)/40;
if (this._x<-this.umkehrPunkt) {
this._x += this._width;
}
if ((this._x-this._width)>-this.umkehrPunkt) {
this._x -= this._width;
}
this._parent.strip2._x = this._x-this._width;
if (this._x == this.mittelpunkt-this._parent._xmouse) {
delete this.onEnterFrame;
}
};
} Code: function setzePano2(obj) {
obj.mittelpunkt = 0;
obj.umkehrPunkt = (obj.height-(obj.mittelpunkt*2))/2;
duplicateMovieClip(obj, "strip2", 1);
strip2._y = obj._y;
obj.onEnterFrame = function() {
this._y += (this.mittelpunkt-this._parent._ymouse)/40;
if (this._y<-this.umkehrPunkt) {
this._y += this.height;
}
if ((this._y-this.height)>-this.umkehrPunkt) {
this._y -= this.height;
}
this._parent.strip2._y = this._y-this.height;
if (this._y == this.mittelpunkt-this._parent._ymouse) {
delete this.onEnterFrame;
}
};
} vielen dank schon mal, grüße tom |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |