Umieszczanie na stronie Kilka warstw naraz Metody Pętla

Scroller

 
Dzięki metodom obiektu scrollera, można sterować warstwą na rozmaite spsoby.
Można przewijać warstwę do tyłu lub do przodu z różnymi prędkościami.
Można wykonać skok na początek lub na koniec.
Można wykonać skok do określonego miejsca na warstwie lub o określoną odległość od aktualnego miejsca przewinięcia.

Przykłady (onClick):

Scroll1.moveBy(40) - skok do przodu o 40px.

Scroll1.moveTo(70) - skok na odległość 70px liczoną od początku.

Scroll1.begin() - skok na początek.

Scroll1.end() - skok na koniec.

Scroll1.scroll(1) - Wolne przewijanie do przodu.

Scroll1.scroll(-1) - Wolne przewijanie do tyłu.

Scroll1.stop() - Zatrzymanie przewijania.

test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test
koniec
Rozmiar: 266 bajtów

Metody obiektu

Każdy obiekt scrollera posiada następujące metody:

Wstecz    Dalszy opis