Search tutorials
Step Five: More Actionscript and the MovieClip
Drag an instance of the main MovieClip to the stage, position it where you want it to start and name it "scrollMC", and add this code

The onClipEvent(enterFrame) action and the setVariable (Actions <%gt%> setVariable) action is the piece of code that sets the 'x' position of the scrollMC MovieClip to the value 'b' which is set by the position of the slider to its path. The '-1' in front of the code makes the MovieClip scroll in the opposite direction to the slider.
There we are, you are all done. It is really a very simple and tidy design when you fully understand everything that it
happening. If you are having problems feel free to contact me for any help.
| » Level Intermediate |
|
Added: 2003-03-24 Rating: 7 Votes: 38 |
| » Author |
| Cyclist, Snowboarder, Flash Designer Extrordinaire. |
| » Download |
| Download the files used in this tutorial. |
| Download (133 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!