Search tutorials
Step Six: More Actionscript
Select the text MovieClip instance and add this code
1. The onClipEvent(load) action and the loadVariables (Actions <%gt%> loadVariables) action simply loads the text from the saved text file
2. The onClipEvent(enterFrame) action and the setVariable (Actions <%gt%> setVariable) action is the piece of code that sets 'scroll', the current top row of text to the value 'b' which is set by the position of the slider to its path.
There we are, you are all done. It is really a very simple and tidy design when you fully understand everything that it happening. Remember for the path the slider will slide up and down a 100 pixel path starting at the paths registration point therefore the design of the path itself is not important. You can make the path any size as well but you must change all the '100's' in the code to the length you have chosen. If you are having problems feel free to contact me for any help.
| » Level Intermediate |
|
Added: 2002-12-06 Rating: 7 Votes: 63 |
| » Author |
| Flash Designer, Snowboarder, Cyclist Extraordinaire. |
| » Download |
| Download the files used in this tutorial. |
| Download (149 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!