15 Replies Latest reply on Aug 13, 2006 2:17 PM by microes

    self-pausing rotation

    microes Level 1
      i.m trying to create a 3d rotation much like the widely used carousel only the rotation i desire consist of four upright(90 degrees) movieclips resting on a slanted, 30 degree plane which rotate onEnterFrame or following a tween on a oval like path - then pause for a given number of seconds at the four movieclips positions equal in distance on the plane

      function around() {
      this._x = Math.cos(this.angle) * radiusX + centerX;
      this._y = Math.sin(this.angle) * radiusY + centerY;
      var s = this._y /(centerY+radiusY);
      this._xscale = this._yscale = s*100;
      this.angle += this._parent.speed;
      }


      var radiusX:Number = 250;
      var radiusY:Number = 75;
      var centerX:Number = Stage.width / 2;
      var centerY:Number = Stage.height / 2;
      var speed:Number = 0.02;