Scrolling Menus - Step Six: The Right Button
Posted by : PhilS on Aug 01, 2008

- reate a new Layer called: Right Button
- Place a button in frame 2 of this Layer. There is no point in having it on frame 1 as it does not do anything.
Attach the following script to this button:
on (rollOver) { _root.controller.gotoAndPlay(2); } on (rollOut) { _root.controller.gotoAndStop(1); }
This turns the controller loop on and off.
All the layers complete.
Note: I have placed a red box around the stage. This is just outside the main stage so it is not visible in the final movie. It is used to see the edge of the stage is during test mode.
4. Test your movie as it should now scroll happily back and forth.
Here's a slight variation on the theme. In the movie below the menu scrolls continually to the left or the right.
Non stop movement in any direction.
Source: http://www.webwasp.co.uk/tutorials/b14-scroll-menu/index.php

no comment
Add comment