1 Reply Latest reply on Aug 23, 2008 10:27 AM by kglad

    HELP!!!! Duplicate Object

      Hi all,

      I have been working on an animation where an object is supposed to vibrate and rotate on itself within a specific area of my stage. I have been successful in having the object vibrate, rotate and start at the specified location. What I am having trouble with, is creating about 60 instances of the same object to move in the area I specified. All I get instead, is the one object to vibrate about and rotate. I am using AS2 and the following is the code I have attached to the "particle_mc".

      onClipEvent (enterFrame) {
      this._rotation = (this._rotation + (3))%360;

      onClipEvent (enterFrame) {
      width = 330; // area where animation should be segregated into
      height = 380;

      this._x = 577 //Math.round(Math.random()*width);
      this._y = 347; //Math.round(Math.random()*height);

      cx = this._x;
      cy = this._y;
      onClipEvent (enterFrame) {
      this._x = cx+(Math.random()*7);
      this._y = cy+(Math.random()*7);

      Also in Frame 1 I put this code

      i = 0;
      while (i<60) {
      //duplicateMovieClip("particle_mc"+i, i);
      particle_mc.duplicateMovieClip("particle_mc"+i, i);

      hoping to get multiple instances of the object, but no success!

      Any HELP would be greatly appreciated