Is this even possible? Playing mc instances sequentially in an array.
I have a movieclip tweened of a lightbulb bright then fading. 50 or so instances are placed within another movieclip and given instance names of bulb0 to bulb50. I have a stop action on the first frame of this movieclip.
Other animation within the main movieclip is activated on rollover and I have used actionscript to place this main movieclip on the stage and to control the other animation within it.
Within my external as. I have an array as follows:
var bulbclips:Array = new Array();
for (var i:uint; i < 58; i++) {
bulbclips.push("winNav.bulb"+i);
var index:int = 0;
trace("winNav.bulb"+i);
}
which successfully traces the loop of the instances of the bulbs.
What i'm trying to get is to mouse over the main movieclip and for the instances of the movieclips within the main movieclip to light up and fade in sequence from 0 to 50 (each one starting a little later). I've tried adding:
bulbclips[index].play();
to my function among many other things but no joy so far....
any ideas appreciated!
G
p.s. do i even need the array?