Rotation /w multiple objects

Hi,

it sounds like someone is in trouble…he he … OK here we go…there is an example of what i’m trying to do http://actionscript-toolbox.com/sample3drotator.php

the only difference is that i’d like to use several different objects in my file…and not only one (ie. ball or whatever) - but different objects with different shapes, colors…circulating on the same “path”

any hint or tutorial,… would be of great help

tnx a lot

notpro

You need to change the for loop in the load handler:


  for (i=1;i<=nBalls*3;i++) {
    this.attachMovie("expBall","mcBall"+i, i);
    this["mcBall"+i].angle = i * Math.PI*2/nBalls;
  }

Here, Helen Triolo (absolute respect to her :beam: ) always ataches the same clip, expBall. All you have to do is make a list of the clips you want to attach (their linkage names), in an array because it’s very practical to use in loops, and you’re off:


  myClips=["doggy","mommy","PamXXX"];
  for (i=1;i<=nBalls*3;i++) {
    this.attachMovie(myClips[i-1],"mcBall"+i, i);
    this["mcBall"+i].angle = i * Math.PI*2/nBalls;
  }

pom <:}