I'm coming from flash 5 to flash 8 trying to learn actionscript, and for some reason I can't seem to code even the simplest things correctly I'm attaching a simple navigation I'm working on to help explain. Basically, I'm working with a variable and 5 buttons. I have 5 labels on the timeline acting as points to stop on, then a few frames after each I have a keyframe set to determine the value of the variable and send it to the corresponding keyframe. The function of the buttons is to set the variable to a certain string, then set the main timeline in motion. So in effect, this is what will happen:
The timeline is stopped on the "welcome" frame. When you click on a button, it sets the "nav" variable to a string, and tells the maintimeline to play. The timeline comes to a frame with script saying:
if (nav = "home") {
gotoAndStop("home");
}
if (nav = "about") {
gotoAndStop("about");
}
etc... Then the process should repeat whenever the user clicks on a button. Why isn't this simple script working??? If I'm having problems with actionscripting things this basic, I think I'm really going to need to find some serious "actionscripting for dummies" book.
Any thoughts?
Last edited by TrytoAnimate; 02-03-2007 at 08:12 PM.