[font=Fixedsys][font=Times New Roman][size=3]Hello!
I have a problem and I hope that u can help me out. The thing is that I’m going to have several buttons on my page but I want them all to have the same animation or behavior when clicked on. Is it possible to use variables to label objects?
[/size][/font][font=Times New Roman][size=3]
[/size][/font][font=Times New Roman][size=3]Would really appreciate if someone could help me out![/size][/font][font=Times New Roman][size=3]
[/size][/font][font=Times New Roman][size=3]Lets imagine that I have button named home and another one labeled about. And then I have a variable named buttonName that changes when you put ur mouse over a button.[/size][/font]
[font=Courier New]
home.onRollOver = function(){
buttonName = “home”;
URL = “http://www.google.com”;
};
home.onRollOut = function(){
buttonName = "";
URL = "";
};
[/font] [/font][font=Courier New]about.onRollOver = function(){
buttonName = “about”;
URL = “http://www.av.com”;
};
about.onRollOut = function(){
buttonName = “”;
URL = “”;
};
[/font][font=Fixedsys][font=Courier New]
[/font] [font=Courier New][color=Red]buttonName[/color][/font][font=Courier New].onRelease = function(){
getURL(URL, _blank);
};[/font]
[font=Times New Roman][size=3]I hope you understand the problem…
Thanks![/size][/font][/font]