basic understanding of the Scroll Bar in the Buttons - Advanced Library this is a very basic introduction in how to understand the scroll bar in this library. if you want to see a more complex sample (= scrolling a textfield) then go to http://www.flashlite.net/tutorials/f4gm_scroll.html check out e.g the script on the "ScrollUp" button in the "ScrollBar" movieclip: On (Press) everything i left black is just to make the scrollbar work, the important part is what i highlited red. it means that the script passes on two variables (ScrollBarName and ScrollBarValue) to the next higher level and then calles a script called ScrollUpdate as well on the next higher level. what you have to do is to create a keyframe which you label "ScrollUpdate" and write any script of your choice for which you can use the variables ScrollBarName and ScrollBarValue. in the sample below i used: Set Property ("/sobject", Y Position) = 213
- ScrollBarValue in this case sobject is the movieclip i want to scroll and 213 is the initial position from which i subtract the current ScrollBarValue. that's it. ScrollBarName would be useful if you have more than one scrollbar... click here to download the sample. |