13 Replies Latest reply on Sep 25, 2006 5:33 AM by Newsgroup_User

    duplicate attached moive clips-urgent

      Hullo, all
      here is a simple animation I wrote. 81 duplications of moive clip "ball"
      appear on screen and form a rectangle shape. now the problem is all 81 balls appear and animate at the same time.

      is it possible to make 5 duplications appear and form part of the rectangle shape every second?

      import mx.transitions.Tween;
      import mx.transitions.easing.*;
      var intervalId:Number;
      var count:Number = 0;
      var maxCount:Number = 10;
      var duration:Number = 1000;
      for (i=0; i<10; i++) {
      for (j=0; j<10; j++) {
      var ball = this.attachMovie("ball", "ball", i+10*j);
      var ball_x = Math.random()*Stage.width;
      var ball_y = Math.random()*Stage.height;
      var end_x = 40+i*30;
      var end_y = 40+j*30;
      var timing = Math.random()*5;
      var ball_tween1:Object = new Tween(ball, "_x", Strong.easeOut, ball_x, end_x, timing, true);
      var ball_tween2:Object = new Tween(ball, "_y", Strong.easeOut, ball_y, end_y, timing, true);
      var ball_tween3:Object = new Tween(ball, "_width", Strong.easeOut, ball_x, 10, timing, true);
      var ball_tween4:Object = new Tween(ball, "_height", Strong.easeOut, ball_x, 10, timing, true);

      is there any flash guru can help me out?