Groups | Blog | Home
all groups > flash actionscript > december 2005 >

flash actionscript : Navigation Issues


Tyler Roehmholdt
12/13/2005 8:35:51 PM
Afternoon everyone,

I'm having some issues with a slideshow I'm making for a professor at my
university. The navigation of the slideshow is a row of buttons in the
lower-right corner of the scene which you click on to get to the various frames
of the slideshow. The first frame consists of buttons that take you the various
other frames, and the following frames have a button that can take you back to
the first frame; this is where the problem is. In order for the button object
to return the user to the first frame, I have to place that same button on the
first page, else the actionscript isn't executed. I'm wondering what I can do
to have the actionscript allow navigation back to the first frame without
having that button object be on the first page. Here is the code I'm using for
navigation purposes:



// mainHome button
mainHome_btn.onRelease = function() {
gotoAndStop(1);
};
Wolf van Ween
12/14/2005 12:00:56 AM
It's true that this script needs to be on a frame that already contains the
button, but nobody says you can't have both button and script on frame 2, for
example.
Or you could put the script on the button. Or you could hide the button, and
unhide it on frame 2. Or.... :-)
Wolf
AddThis Social Bookmark Button