Skip navigation
MrPlumber21
Currently Being Moderated

I can't get buttons to work correctly!

Apr 23, 2012 12:24 PM

Tags: #problem #cs5 #flash #script #website #as3 #cs5.5 #3.0 #button #buttons #action #3 #action_script_3 #movieclip #ac3 #actionscript3 #actionscript_3.0

Ok here is my problem...

 

I am trying to make my cousins website and everything looks ok. Nothing to fancy since it is the first time I am working with flash. But now I am trying to get the buttons working. Here is the website to follow what I am going to ask: www.andrelenza.com.br

 

Ok so there is a main menu (Home, Projetos, Bio, Imprensa, and Contato) and there are submenus. I am trying to get the main menu buttons working during the WHOLE site. I don't want them to ever change. I have found a way to do this which is by putting the code snippet "Click to Go to Frame and Play". But I have to redo each button ALL the time and it ends up being a lot of repeated code. I am sure there is a simple way to do this but I have really tried everything and I still haven't found out how to do it.

 

I tried making another actions layer, one for the stops and the other one I was going to make all the code for the buttons in the first frame and let it go on the whole time. But that didn't work, when I publish it, the movie doesn't even start. Which I don't get why since there is no Stop at the beginning.

 

If anyone could help it would be great. I really want to learn how to work with flash.

 

If you need I also have the .fla ready to be downloaded so that you can have a look at what I have done.

 

Thanks in advance,

Leandro

 
Replies
  • Currently Being Moderated
    Apr 23, 2012 12:56 PM   in reply to MrPlumber21

    have you defined the buttons in frame 1 and got those buttons active on the timeline from start to finish?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 29, 2012 3:10 AM   in reply to MrPlumber21

    You only need to define the buttons in the first frame. Think of it like this. The main timeline is where you can set the variable and properties of your functions that will be present for the entire duration of your "Movie"

     

    setting them in frame 1 is all you need to do for the movie to remember the details but you must make sure that the buttons are present in every frame, i.e select the last frame of your movie, on the buttons layer, and "Insert Frame" so that the frames are filled through the entire scene.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points