var numPeliculas:Number = 5;
var radioX:Number = 200;
var radioY:Number = 70;
var centrarX:Number = Stage.width / 3 + 1;
var centrarY:Number = Stage.height / 4;
var velocidad:Number = 0.02;
for(var i=0;i<numPeliculas;i++){
var t = this.attachMovie("pelicula"+(i+1), "p"+i, i+1);
t.angle = i * ((Math.PI * 2) / numPeliculas);
t.onEnterFrame = mover;
}
function mover(){
this._x = Math.cos(this.angle) * radioX + centrarX;
this._y = Math.sin(this.angle) * radioY + centrarY;
var s = this._y /(centrarY+radioY);
this._xscale = this._yscale = s * 100;
this.angle += this._parent.velocidad;
this.swapDepths(Math.round(this._xscale) + 100);
}
this.onMouseMove = function(){
velocidad = (this._xmouse-centrarX) / 8000;
}