A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Is this even possible? Playing mc instances sequentially in an array.

Threaded View

  1. #1
    Member
    Join Date
    Jan 2009
    Posts
    43

    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?
    Last edited by G-man; 02-26-2009 at 11:28 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center