# Self - pausing 3d rotation

**URL:** <https://forum.kirupa.com/t/self-pausing-3d-rotation/196902>\
**Category:** Uncategorized\
**Created:** [August 11, 2006, 6:56pm UTC](https://forum.kirupa.com/t/self-pausing-3d-rotation/196902 "2006-08-11T18:56:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![layer](https://avatars.discourse-cdn.com/v4/letter/l/9dc877/32.png) [@layer](https://forum.kirupa.com/u/layer)\
**Post date:** [August 11, 2006, 6:56pm UTC](https://forum.kirupa.com/t/self-pausing-3d-rotation/196902/1 "2006-08-11T18:56:02Z")

</div>

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;
