if they were all members of a unique class, you could add the rollOver action to the whole class, but you’d still have to add each button to the class.
if they’re all stored in an array you can loop through the array.
if they’re all in a movie clip you can do a for in loop through the contents of the clip, provided there’s nothing else in the clip.
if they’re all named to that naming convention you could use a while (or a for loop) loop:
var i = 50;
while(i--){
_root["button"+i].onRollOver = doit;
};
<bowing> Thank you, Supra. That is exactly what I wanted. I tried the loop method.
I haven’t messed with class much, yet… but I can feel it coming soon. I keep reading and reading the prototype stuff, so I can start thinking in those terms. Before, I would just try to use the tools I knew to solve any problem. Well, some cannot be solved without protoype, classes, etc… or, at least, not in a simple fashion.