alisonc
12-13-2005, 06:24 PM
Hello,
I'm attempting some simple actionscripting, where the user clicks on a button and it jumps to a new frame. The problem is, my actionscripting is working with one of the buttons (I called it new_bw_logo button, placed it in its own layer titled "bw_logo", and inserted the actionscript into frame 1). The script is this:
new_bw_logo.onRelease = function() {
gotoAndPlay(2);
}
However, I have almost identical (the frame # in the parens is different) script for two other buttons, but neither of them work and I have no idea why :(
The one button that does not work is the new_bu_logo button, in the Be U! layer, in frame 1. The script is this:
new_bu_logo.onRelease = function() {
gotoAndPlay(31);
}
The second button that does not work is the lil_bwdot_a button, in the bwdot_a layer. The script is plugged into frame 29. The script is this:
lil_bwdot_a.onRelease = function() {
gotoAndPlay(30);
}
In other words, when I press and release my mouse on the latter two buttons, nothing happens. The first button works the way it is supposed to.
I can't for the life of me figure out what is wrong. I've tried different variations of on (release) script but to no avail. I am using Flash MX 2004 on a mac. Any suggestions would be greatly appreciated -
Thanks!
I'm attempting some simple actionscripting, where the user clicks on a button and it jumps to a new frame. The problem is, my actionscripting is working with one of the buttons (I called it new_bw_logo button, placed it in its own layer titled "bw_logo", and inserted the actionscript into frame 1). The script is this:
new_bw_logo.onRelease = function() {
gotoAndPlay(2);
}
However, I have almost identical (the frame # in the parens is different) script for two other buttons, but neither of them work and I have no idea why :(
The one button that does not work is the new_bu_logo button, in the Be U! layer, in frame 1. The script is this:
new_bu_logo.onRelease = function() {
gotoAndPlay(31);
}
The second button that does not work is the lil_bwdot_a button, in the bwdot_a layer. The script is plugged into frame 29. The script is this:
lil_bwdot_a.onRelease = function() {
gotoAndPlay(30);
}
In other words, when I press and release my mouse on the latter two buttons, nothing happens. The first button works the way it is supposed to.
I can't for the life of me figure out what is wrong. I've tried different variations of on (release) script but to no avail. I am using Flash MX 2004 on a mac. Any suggestions would be greatly appreciated -
Thanks!