Create a new movie clip and name it scrollbarMC. Place a graphic of a scrollbar in it. Make sure the top of the scrollbar is on the center cross. This way, when we'll scale the movie clip, its bottom side will move up, which is what we want.
Place your scrollbar inside of containerMC, in between the up and down arrows. Name it "scrollbar" in the instance properties panel. You will need to make sure that the scrollbar fits exactly in between of the two arrows, like so:
In order to fit the scrollbar in between the two buttons, do not scale it from controllerMC; otherwise, we'll have problems when we'll scale the scrollbar in actionscript. Instead, go into scrollbarMC itself and change the height of the scrollbar from there.
You will need to place the scrollbar at a 0 y position in controllerMC. If you look at the screenshot, you will see that both containerMC and scrollbarMC's crosses are aligned horizontally. If we read scrollbarMC's y position in actionscript, we'll see that it's 0, and this will help us later on.
|» Level Intermediate|
Rating: 8 Votes: 176
|No details available.|
|Download the files used in this tutorial.|
|Download (34 kb)|
|More help? Search our boards for quick answers!|