Groups | Blog | Home
all groups > flash actionscript > march 2004 >

flash actionscript : Menu button pop ups


mheddle
3/5/2004 9:04:02 PM
This should be an easy one to fix.

I have a four button menu. Each time one is pressed, a text graphic appears
giving a description of what each button title area means. When pressed the
button "goes to and stops" at a frame instance where the graphic lies. The
problem is that it will only show the first two menu items but not the last
two. A little hand showing a button comes up, but nothing happens when I click
it. I have no idea why it won't work.

on (press) {
gotoAndStop("Menu");
}

is the code for each button with a different ("? ") depending on which menu
text I want to show.

Attached are screen prints so you can see the layout.
tallphil
3/5/2004 9:56:00 PM
hmm, the file doesn't want to download, so it's a little difficult to know
exactly what your problem is...
The code should be different for each button in that your four different
frames with the four different descriptions should all have different labels,
for example "menuitem1", "menuitem2", "menuitem3" and "menuitem4". Then the
code on the respective buttons will be
on (press) {
gotoAndStop ("menuitem1")
}
Also, have you accidentally put keyframes in the layer with the buttons, so
that once you have gone to the respective frame, the buttons no-longer have any
actionscript?
Hope this helps,
Phil
mheddle
3/10/2004 5:31:23 PM
Each button is coded accordingly and is present throughout the entire movie.
Each button has a associated name and is coded to goto the correct specific
frame. I just only works for the first two buttons. Logically, it seems that
everything should work, but I am a newbie to flash and especially to
actionscript, however I have coding experience in Java, VBasic, HTML, etc.
Does anybody know if this coding only works for two buttons and something
different has to happen for three or more?
AddThis Social Bookmark Button