-
I'm using Flash MX 2004 on a PC. Haven't used Flash since v5 so everything is different. I'm trying to get a submit button when clicked goes to a frame within a movieclip and I don't know the updated ActionScript programming to make it do that. (The submit button in not active, all it is doing is going to a frame that says "username and password did not match.") Any help on this would be much appreciated. THANKS!!
-
I'm using Flash MX 2004 on a PC. Haven't used Flash since v5 so everything is different. I'm trying to get a submit button when clicked goes to a frame within a movieclip and I don't know the updated ActionScript programming to make it do that. (The submit button in not active, all it is doing is going to a frame that says "username and password did not match.") Any help on this would be much appreciated. THANKS!!
-
Hello Matt
Try this:
on (release) {
gotoAndPlay("frameName");
}
Where frameName is the name of the frame to go to. (or just use a number [without the quote marks] if it's a frame number.
-
THanks for your reply. I receive an error message when trying to play the swf and nothing happens when I click submit.
**Error** Symbol=drinks_menu, layer=submit, frame=86:Line 1: Mouse events are permitted only for button instances
on(release){
-
Matt
The reason your getting this error message is due to the fact that you've pasted the action on the time line, not on a button. Check your time line action. The tiny 'a's. Other than that it could be your button is not a button but a graphic symbol. In fact looking at the error again this would seem to be the case. You have a symbol named 'drinks_menu', on the 'submit' layer, at frame 86, with the action attached , but it's NOT a button.
Let me know how you get on.
Egg