I have 60 or so buttons that i want all to use the function: this wont make much sence but…
[AS]manybuttons=new Array(“60 button names in here”)
function buttonRollover(x){
manybuttons.onRollover= function(){
buttonAnim[x].gotoAndPlay(2)[/AS]
at the end of the day all i really want to know is how do you get all of the contents of an array(being instance names of existing buttons) to do an onRollover or similar function.
Ok, well I whipped up a quick example of targeting buttons from instance names in arrays.
This is what I originally thought you were trying to do, but then claudio posted and you cleared things up a bit more, then I realized what I was working on what wrong, but I was too tired to start over so I just kept going with the example I was working on.
Attached is the fully commented .fla, let me know if it is of any use for you.
I am glad I could help, if you need me to explain anything in my script I will, I added the comments to help guide you, but I didn’t want to clutter the file with explanations. If there is anything you don’t understand feel free to ask.
[size=1]just be warned, I am sick right now so my explanations might be kind of confusing and jumbled…lol[/size]