Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 20-02-2005, 18:52   #1 (permalink)
Neuer User
 
Registriert seit: May 2003
Beiträge: 78
Question scrollbar, inhalt auf volle positionen anhalten lassen??

Hy, ich habe das problem das ich zwar eine funtionierende Scrollbar habe, allerdings befinden sich in den MC die ich scrolle Texte.
Am Anfang werden sie einwandfrei scharf dargestellt (positionen auf .0 ...).
Wenn ich jetzt aber scrolle und der Inhalt anhält, passiert es das der inhalt auch auf ungeraden positionen anhält, wie kann man es machen das der inhalt immer automatisch auf die vollen also .0 positionen anhält??


AS:

onClipEvent (load) {
_root.koeficient = _root.length/(_root.window._height - _root.length - 1.5*_height);
_root.top = _y;
_root.left = _x;
_root.right = _x;
_root.bottom = _y+_root.length;
}
onClipEvent (enterFrame) {
if (_root.dragging == true) {
_root.window._y = _root.nullpos - (_y - _root.top)/_root.koeficient;
}
}
Angehängte Dateien
Dateityp: zip problem.zip (8,3 KB, 2x aufgerufen)
BenjaminFritz ist offline   Mit Zitat antworten
Alt 20-02-2005, 19:27   #2 (permalink)
Nix Wisser
 
Benutzerbild von nullidee
 
Registriert seit: May 2003
Ort: Würzburg, Kleinstadt
Beiträge: 3.510
Code:
_root.window._y = Math.round(_root.nullpos - (_y - _root.top)/_root.koeficient);
__________________
nullidee

Abakus GT 10² Kugeln - 80"Leinwand - CARAN D´ACHE SUPRACOLOR®
nullidee ist offline   Mit Zitat antworten
Alt 20-02-2005, 19:41   #3 (permalink)
Neuer User
 
Registriert seit: May 2003
Beiträge: 78
Smile

hy, danke jetzt funzt super!!!
BenjaminFritz ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 05:31 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele