# Carousel at gotoandlearn.com Need help w/ tweaks

**URL:** https://forum.kirupa.com/t/carousel-at-gotoandlearn-com-need-help-w-tweaks/252800
**Category:** open source
**Created:** [February 23, 2008, 7:22pm UTC](https://forum.kirupa.com/t/carousel-at-gotoandlearn-com-need-help-w-tweaks/252800 "2008-02-23T19:22:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![grassmeyer](https://avatars.discourse-cdn.com/v4/letter/g/85f322/32.png) [@grassmeyer](https://forum.kirupa.com/u/grassmeyer)
#### Post date: [February 23, 2008, 7:22pm UTC](https://forum.kirupa.com/t/carousel-at-gotoandlearn-com-need-help-w-tweaks/252800/1 "2008-02-23T19:22:18Z")

</div>

I’m trying to tweak the script/tut found at [gotoandlearn.com](http://gotoandlearn.com). I’m new to actionscript so I really need help with this one.

1. Add 2 other menus/carousels to display in the same movie.
2. Limit each carousel to only show one item each.
3. Give each carousel it’s own “tilt.”
4. Link each item to a URL and will take over the parent window.
5. Add an image in the middle with a static depth so the items appear to rotate around it.

I hope someone can help with this . . . or let me know if what I’m wanting to do is impossible. So far I’ve tried duplicating the menu with no success. I’ve tried adding a tilt to the original movie with no success. I’ve tried adding the image in the middle with a depth with no success. The only thing that I’ve figured out how to do is limit the items to 1- which was totally easy. I think the linking should be pretty easy as well. . .

Here’s the actionscript:

```auto
var numOfBalls:Number = 10;
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<numOfBalls;i++)
{
    var t = this.attachMovie("ball","b"+i,i+1);
    t.angle = i * ((Math.PI*2)/numOfBalls);
    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;
}

```

Someone please HELP, please . . . 🙂

J
