Phil Chertok on July 17, 2009
Using scrollbars can be a little bit of a trick in Papervision. When you use a scrollbar with a movie clip you’ll notice that the entire movie clip will move when the content scrolls, definitely not the desired effect. Fortunately the solution is fairly simple, just set the .rect property of the movieMaterial you are using.
var movieMat:MovieMaterial = new MovieMaterial(_scrollClip, true, true, false); movieMat.interactive = true; movieMat.smooth = true; movieMat.doubleSided = true; movieMat.rect = new Rectangle(0, 0, 226, 300);
You can view an example of this in action here.
You can download the source for the example here.
Note: In the example we use AxisScroller which is available at EVOLVE. But this method should work with any scrollbar class.