.

Step Six: The Right Button



1. Create a new Layer called: Right Button
2. 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.
3. 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.





question Posted on 08/25/2008

is there any way that i can insert buttons that would skip to a section of the image or information within the movie clip. like a short cut that takes me to the area i want.



my bad Posted on 08/25/2008

action script 2 not 3



help Posted on 08/25/2008

Hey,

this is perfect for a project i am working on. i like the simplicity of the lesson. but i am having problems. my buttons won‘t work and it says there are issues with the code and having trouble being allowed to put code on the button. any help would be much appreciated.



thanks