# Caruosel help

**URL:** <https://forum.kirupa.com/t/caruosel-help/255085>\
**Category:** Uncategorized\
**Created:** [March 18, 2008, 9:45pm UTC](https://forum.kirupa.com/t/caruosel-help/255085 "2008-03-18T21:45:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashbevel](https://avatars.discourse-cdn.com/v4/letter/f/35a633/32.png) [@flashbevel](https://forum.kirupa.com/u/flashbevel)\
**Post date:** [March 18, 2008, 9:45pm UTC](https://forum.kirupa.com/t/caruosel-help/255085/1 "2008-03-18T21:45:52Z")

</div>

Hi Everyone,

This is my first time, ever, posting on a forum. So I hope the community can help me out on this problem I’m having with this carousel I’m building.

Flash cs3, Actionscript 2

I’m build a carousel without using XML. I found a great tutorial at [gotoandlearn.com](http://gotoandlearn.com), but I’m left guessing on one aspect. I’ve completed the first tutorial with having one icon multiplied a few times rotate in a carousel, but I can’t figure out how to get the code to identify six logos that I have in the library. The Linkage properties all correspond with the code, but it’s just not working out. I didn’t hear this aspect outlined in the tutorial. Can any one help. Here’s the code:

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

for(var i=0;i\<numOfLogos;i++)  
{ [COLOR=DarkRed]// I’ve got item1 - item6 and linkage properties with the same names. What to do?//[/COLOR]  
var t = this.attachMovie(“item”,""+i,+i+1);  
t.angle = i \* ((Math.PI\*2)/numOfLogos);  
t.onEnterFrame = mover;  
}

function mover()  
{  
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;  
this.swapDepths(Math.round(this.\_xscale) + 100);  
}

this.onMouseMove = function()  
{  
speed = (this.\_xmouse-centerX)/1500;  
}

Thanks!
