# Getting the 3d carousel right fading out

**URL:** https://forum.kirupa.com/t/getting-the-3d-carousel-right-fading-out/288800
**Category:** flash
**Created:** [May 21, 2009, 5:15am UTC](https://forum.kirupa.com/t/getting-the-3d-carousel-right-fading-out/288800 "2009-05-21T05:15:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mikki65](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@mikki65](https://forum.kirupa.com/u/mikki65)
#### Post date: [May 21, 2009, 5:15am UTC](https://forum.kirupa.com/t/getting-the-3d-carousel-right-fading-out/288800/1 "2009-05-21T05:15:32Z")

</div>

Hello All,  
I am trying to get the 3d carousel to “Fade out and In” dynamic with AS.  
I have got a mover function and think i have to add lines here but do not wich…

I need help the sample i am trying to build is bascily the same as on [http://flashden.net/item/advanced-3d-carousel/19163](http://flashden.net/item/advanced-3d-carousel/19163).

The function i have is :  
function mover()  
{  
this.\_x = Math.cos(this.angle) \* radiusX + centerX;  
this.\_y = Math.sin(this.angle) \* radiusY + centerY;  
var s = (this.\_y - perspective) /(centerY+radiusY-perspective);  
this.\_xscale = this.\_yscale = s\*100;  
this.angle += this.\_parent.speed;  
this.swapDepths(Math.round(this.\_xscale) + 100);  
}
