Hi,
I have tried this loop on my clips with no success:
Code:
_root["subMenuButton"+i].onRollOver = function():Void {
_root["subMenuButton"+i]._alpha = 50;
}
while if I refer to the clips individually it works:
Code:
_root.subMenuButton1.onRollOver = function():Void {
trace("I have been rolledOver");
_root.subMenuButton1._alpha = 50;
}
the clips can tlle when they are rolled over because this works as well:
Code:
for(i=1;i<=15;i++){
_root["subMenuButton"+i].onRollOver = function():Void {
trace("I have been rolledOver");
_root["subMenuButton"+i]._alpha = 50;
_root["subMenuButton"+i].onRollOut = function():Void {
_root["subMenuButton"+i]._alpha = 100;
}
}
is my code wrong or is this some sort of a bug? I have also tried referring to the clips by their _level but I get no response either.