Search Tutorials
Adding the Drag-Scrollbar and Necessary TriggerStep 1 : Now it's time for the dragable scrollbar. Create a button which will
function as the draggable button. Name it scroll drag button. Because
the button should be dragged in a straight line of a certain distance, we'll
create a container Movie Clip for the button. Make a new Movie Clip and call
it scroll drag mc. Place the scroll drag button exactly with it's
center point at x=0 and y=0 so that it won't shift some pixels the moment it's
dragged. To make the button in this Movie Clip draggable we need to add some action to this button. Remember that in the beginning we added a variable balkheight in frame 4 of layer actions in Movie Clip window? Besides using this variable later to calculate/set the position of the drag button, we are going to use it to set the dragable distance of the button. Add the following action to the button:
On (Press)
Start Drag ("", L=0, T=0, R=0, B=../../:balkheight)
End On
On (Release, Release Outside)
Stop Drag
End On
Refer to the image on the next page.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|