Rollout function only works on one button...?

Hi here’s my AS2 code…

stop();
website_button.onRollOver = function () {
gotoAndStop (2);
}
website_button.onRollOut = function () {
gotoAndStop (1);
}
website_button.onPress = function () {
gotoAndPlay(3);
this.onRollOut = null;
}

Very simple AS2 code, which works fine for the button i first used it on. I then go to program my other buttons and change the instance names both on the objects and in the code and it stops working. The mouse over works and gets stuck on frame 2 (mouse on) I have no idea why this is but it is very frustrating. Could someone help please, I’m a bit of a noob. :slight_smile:

Why are you programming in AS2?
CS3 is capable of AS3, which is significantly easier to work with.
(although more lines of code are occassionally required)
Also, programmatic tweens using tweening classes are vastly simpler to edit and maintain than nested timeline tweens and frame navigation.
But, I digress…

Post your fla.

I’ve attached a file containing the buttons which shows my problem. If you could fix it with AS3 and could post the code i can re-do what I have already done so thats not too much of a problem. I’m just not sure why it all works fine for one and not the other.