I´m currently building a flash-website for myself. I have constructed a menu using the “menu with slider” tutorial. I have build the menu within a movieclip, and dragged the whole thing on to the main stage. I´m now trying to make the first button send the main movie to frame 2. But I just can´t seem to make it work…and it´s driving me crazy.
This is the script currently assignet to the button.
on (rollOver) {
// slider - Movie Clip’s Instance Name. button_1 - Button’s Instance Name.
slider.xMove = button_1._x;
}
on (release) {
gotoAndStop (2);
}
I have´nt worked with flash for a long time, last time was with Flash 5. I´m building THIS site with Flash MX 2004 Professional.
I am fairly new with flash. I think you might need to change “gotoAndStop(2);” to "gotoAndPlay(2); and then on frame 2 enter “stop();” this will make it stop at frame 2.
If you have the button ‘inside’ a movieclip then gotoAndPlay(2); will got to and play the 2nd frame of the movieclip’s (timeline) rather than the 2nd frame of the main movie’s (timeline) - which you can point to by putting _root. in front of your command.