Hi to all
Can anybody help me with calculation? AS2. I am trying to set items in
carousel depending on item size.

for(var i=0;i<numOfItems;i++)   {
                var t = home.attachMovie("pic"+i,"item"+i,i+1);
                t.angle = i * ((Math.PI*2)/numOfItems);
                t.mover();

}

MovieClip.prototype.mover=function(){
this._x = Math.cos(this.angle) * radiusX + centerX;
        this._y = Math.sin(this.angle) * radiusY + centerY;
        var s = (this._y - perspective) /(centerY+radiusY-perspective);
        this._xscale = this._yscale = s*100;
}
Items set in not even pitch because item width is different. How to do
correct calculation based on item width?
Thanks in advance.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to