Step Five: More Actionscript and the MovieClipDrag 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|
Rating: 7 Votes: 38
|Cyclist, Snowboarder, Flash Designer Extrordinaire.|
|Download the files used in this tutorial.|
|Download (133 kb)|
|More help? Search our boards for quick answers!|