- * SPECIAL NOTE: The scroll_bar symbol is also carried over
from Mick's tutorial, although I made it completely transparent in this movie
(_alpha = 0). I did this purely
for design reasons, since I did not want an outline box that reveals the upper
and lower limits of scroll_shape. Do not remove (or ignore) scroll_bar,
since it is very significant in constraining the bottom _y limit of
scroll_shape in the ActionScript code.
- Our top and bottom continuous feedback button instances both have the same
parent symbol, scroll_button. Each is rotated 90 degrees in opposite
directions, and you can find this button by choosing Window > Common
Libraries > Buttons. Since both buttons have the same parent, the gradient
lighting effect doesn't make sense physically - but we'll just ignore that
- Study scroll_shape_obj in detail, as it houses the workings of our
draggable scroll features. Note that our instance of the scroll_logic
symbol is in the logic layer of this MC, and that this instance is
named logic. All of the drag ActionScript code is written as Object
Actions for invisibut, on the button layer.
- Finally, scroll_target is the MC we want to be scrolled underneath
the window mask layer. Mine is simply a long collection of fake_button_#
instances, but any MC can be scrolled Also remember that my instance of scroll_target
is named button_list.
- Familiarize yourself with the instance names in this movie as well as their
parent symbols. It is the MC instance names that will be referenced in the
ActionScript code, but each instance retains certain aspects of its parent
symbol. In the case of the three logic loop action MC's, this is very important.
|» Level Intermediate|
Rating: 8 Votes: 94
|Me Like Flash 5. Flash 4 good. Flash 5 better.|
|Download the files used in this tutorial.|
|Download (229 kb)|
|More help? Search our boards for quick answers!|