Hi everyone. There is a mismatch in the documentation. scrollToX and scrollToY are internal methods that are not publicly available. Instead, you use scrollToPosition (no need to wait for a daily build, it’s already in there).
Here’s the syntax:
scrollView:scrollToPosition( [x, y, timeInMs, onComplete] )[/code]All arguments are optional. If you want to scroll only in the X-direction, you can set y to equal the current y-value of the scrollView, or just set it to nil (and vice-versa for y-direction scrolling). You can also scroll both directions simultaneously.I'm updating the documentation right now to remove the scrollToX and scrollToY methdods and replace them with scrollToPosition. [import]uid: 52430 topic_id: 20285 reply_id: 84481[/import]