I've found that using the "this" keyword too much can get you into trouble. I'm guessing that it's not referencing the right mc when you're using it inside your function. You can find out by adding this line to your onRollOver function (you probably already know how to do this):
I would actually rewrite your loop to reference the correct movieclip only once, and then you know you've always got the right one:
Code:
for (i=0; i<numOfBtn+1; i++) {
var my_mc:Movieclip = this["btn"+i];
my_mc.num = i;
my_mc.onRollOver = function() {
my_mc.play();
my_mc.arrows.alphaTo("0", .5, "easeOutQuad", 0);
}
}
If that doesn't work, I'd run some more trace actions to see what you're actually referencing. You might also check the syntax of your "alphaTo" function, etc.
Bookmarks