
var num:Number = 3;
var radioX:Number = 170;
var radioY:Number = -15;
var centroX:Number = 450;
var centroY = 100;
var perspectiva:Number = 180;
var velocidad:Number = 0.08;
var links:Array = [3,4,2];
for(i = 0; i < num; i++)
{
var mcs = attachMovie("item", "item" + i, i);
mcs.angle = i*((Math.PI*2)/num);
mcs.onEnterFrame = Movimiento;
mcs.foto_mc.def_mc.loadMovie("0" + i + ".png");
Presionar(i);
Sobre (i)
}
function Movimiento()
{
this._x = Math.cos(this.angle)*radioX + centroX;
this._y = Math.sin(this.angle)*radioY + centroY;
this.angle += this._parent.velocidad;
var s = (this._y - perspectiva) / (centroY + radioY - perspectiva);
this._xscale = 100*s;
this._yscale = 100*s;
this.swapDepths(Math.round(this._xscale) + 100);
}
function Sobre(i)
{
mcs.foto_mc.onRollOver = function()
{
velocidad=0;
}
mcs.foto_mc.onRollOut = function()
{
velocidad=0.08;
}
}
function Presionar(i)
{
mcs.foto_mc.onPress = function()
{
gotoAndStop(links[i]);
}
}