Step Six: More ActionscriptSelect 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|
Rating: 7 Votes: 63
|Flash Designer, Snowboarder, Cyclist Extraordinaire.|
|Download the files used in this tutorial.|
|Download (149 kb)|
|More help? Search our boards for quick answers!|