| |||||||
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) |
| ...XXX... Registriert seit: Jul 2005
Beiträge: 202
| problem mit slider u pixelfonts
hey ![]() hab ein hoffentlich kleines problem....und zwar hab ich einen image slider der sich per mausposition beweg. (maus links rechts...) wenn ich jetzt mit der maus in der "todeszone" bin so das die bilder anhalten wird mir der text dazu manchmal scharf und manchmal unscharf dargestellt je nachdem obs eben eine ganze oder kommazahl erwischt. kann mir bitte bitte jemand helfen wie ich das beheben kann? werd sonstr noch wahnsinnig hier das bisherige as mit dem sowei au alles funzt 1.Frame //Xphoto = Startposition Bilder _root.xphoto = 0; //Bühnengröße widthmovie = 523; // //Scrollspeed = je höher je langsamer scrollspeed = 15; // //breite des zu scrollenden Bildes widthphoto = 1692; 2.Frame xmouse = _xmouse-(widthmovie/2); // scrollspeed speed = (xmouse)/scrollspeed; if (speed<0) { speed = -(speed); } //x-y scroll stopp mouseposition = getProperty("/myself", _y); if (_ymouse<0) { speed = 0; } if (_ymouse>275) { speed = 0; } mouseposition = getProperty("/myself", _x); if (_xmouse<0) { speed = 0; } if (_xmouse>520) { speed = 0; } // scroll rechts if (xmouse<0) { xphoto = xphoto+speed; } // scroll links if (xmouse>0) { xphoto = xphoto-speed; } // !!!Todeszone!!! if (_xmouse>250 and _xmouse<320) { xphoto = xphoto-speed; } // Bild Ende links if (xphoto>0) { xphoto = 0; } // Bild Ende rechts if (xphoto<-(widthphoto-widthmovie)) { xphoto = -(widthphoto-widthmovie); } setProperty("photo", _x, xphoto); |
| | |
| | #2 (permalink) |
| Nix Wisser Registriert seit: May 2003 Ort: Würzburg, Kleinstadt
Beiträge: 3.510
|
ich kämpf mich jetzt nicht durch das Script, aber ungefähr so: Code: xphoto = Math.round(xphoto-speed); mach das mal moderner.
__________________ nullidee Abakus GT 10² Kugeln - 80"Leinwand - CARAN D´ACHE SUPRACOLOR® |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |