Answered
Help with this code, please?
I've had this code working before in other projects, but for
some reason it's not working now in this new one. Can anyone see
the problem?
There's a "Button1" instance on the stage and the Actionscript for the frame has this:
Button1.onRelease = b1release() {
var my_valid_frames:Array = new Array(2,4,6);
function b1release() {
var temp_frame:Number = my_valid_frames[random(my_valid_frames.length)]
this.gotoAndPlay(temp_frame);
}
When you press the button, absolutely nothing happens.
There's a "Button1" instance on the stage and the Actionscript for the frame has this:
Button1.onRelease = b1release() {
var my_valid_frames:Array = new Array(2,4,6);
function b1release() {
var temp_frame:Number = my_valid_frames[random(my_valid_frames.length)]
this.gotoAndPlay(temp_frame);
}
When you press the button, absolutely nothing happens.
