Alright Guys, this is My Code:
bttn_1.onRelease = function() {
getURL(bttn_1_URL, "_self");
TintOn = new Color(this);
TintOn.setRGB(0x3E7997);
TintOff.setRGB(0xFFFFFF);
TintOff = new Color(bttn_MR);
TintOff = new Color(bttn_3); TintOff.setRGB(0xFFFFFF);
TintOff = new Color(bttn_4); TintOff.setRGB(0xFFFFFF);
TintOff = new Color(bttn_5); TintOff.setRGB(0xFFFFFF);
TintOff = new Color(bttn_6); TintOff.setRGB(0xFFFFFF);
TintOff = new Color(bttn_7); TintOff.setRGB(0xFFFFFF);
TintOff = new Color(bttn_8); TintOff.setRGB(0xFFFFFF);
TintOff = new Color(bttn_9); TintOff.setRGB(0xFFFFFF);
beat(this);
function beat(who) {
var twx:Tween = new Tween(who, "_xscale", Bounce.easeOut, 100, 130, 3, false);
var twy:Tween = new Tween(who, "_yscale", Bounce.easeOut, 100, 130, 3, false);
twy.onMotionFinished = function() {
twx.yoyo();
twy.yoyo();
};
};
};
I have 9 Buttons, I have it so The use Clicks a Button and it changes tint to blue, and starts a Beating effect. To make Sure that only 1 Button is selected at a time, showing were you currently are on the website, I also turn off all the tints on all the other Buttons.
My problem is I need to figure out a way to make shure only the button that is selected is beating.
For an Example of my problem go here:
www.frightfan.com
If you Notice, Clicking multiple Buttons(Other then Home or Forum) , they all keep beating. I got the color to go back to normal, just not the beating.
Please Help, Thanks!