Can I get the carousel to stop when item is clicked?

Hello everyone,

flash cs3 AS2

Yeah …some of us are still trying to tweak the carousel… I need to know how to stop the carousel when an item in the carousel is clicked on. Of course I’d also like to have that item come to the front and center as well. This carousel is done without XML.

Any help would be greatly appreciated.

here’s my current code:

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

for(var i=0;i<numOfLogos;i++)
{
var t = this.attachMovie(“item”+(i+1),“item”+i,i+1); //This line is what allows different logos//
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;
}

//INFO PANELS//
phInfoPanel_mc._visible = false;

//NOW FOR THE CLICK ACTIONS//

item0.onRelease = function () {
phInfoPanel_mc._visible = true;
phInfoPanel_mc.swapDepths(Math.round(this._xscale) + 1000);
}