I’m trying to tweak the script/tut found at gotoandlearn.com. I’m new to actionscript so I really need help with this one.
- Add 2 other menus/carousels to display in the same movie.
- Limit each carousel to only show one item each.
- Give each carousel it’s own “tilt.”
- Link each item to a URL and will take over the parent window.
- 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:
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