[Laszlo-dev] <text> scrolling madness

André Bargull andre.bargull at udo.edu
Fri Dec 12 16:30:21 PST 2008


>
> Text has methods for:
>
>    setScroll
>    setHScroll
>    setXScroll
>    setYscroll
>
> Can anyone explain these to me?  How many dimensions can the text be  
> scrolled in?
>   

 From the implementation for swf8 textsprites:
setScroll -> changes TextField#scroll
setHScroll -> changes TextField#hscroll
setXScroll -> changes the x-offset of the textfield, so TextField#_x
setYScroll -> changes the y-offset of the textfield and performs 
"advanced" tricks, so TextField#_y + TextField#scroll

But who needs all those different methods?

---
Madness? This is Sparta!



More information about the Laszlo-dev mailing list