ruota_mc e' un movieClip con punto di registrazione al centro ....

scusa se non e' perfetta ma coi semiquadri e la geometria ho cominciato da poco.

ti dico il bug:
se vai da piu' di 270° a meno di 270 [ lo 0 e' la x0 e y0 dello stage ] fa il giro dall' altra parte ... altrimenti e' OK [ quindi orario OK, antiorario OK tranne a 270 ]

.... se riesci a perfezionarlo fammelo sapere


Codice PHP:
ruota_mc.onEnterFrame = function() {
    var 
_root._xmouse;
    var 
_root._ymouse;
    if(
x<Stage.width/&& y<Stage.height/2) {
        var 
x_rot = (( 180 ) / Stage.width);
        var 
y_rot = -(( 180 ) / Stage.height);
        var 
ruota = ((y_rot/2)+(x_rot/2));
    }
    else if(
x>Stage.width/&& y<Stage.height/2) {
        var 
x_rot = (( 180 ) / Stage.width);
        var 
y_rot = (( 180 ) / Stage.height);
        var 
ruota = ((y_rot/2)+(x_rot/2));    
    }
    else if(
x>Stage.width/&& y>Stage.height/2) {
        var 
x_rot = -(( 180 ) / Stage.width);
        var 
y_rot = (( 180 ) / Stage.height);
        var 
ruota 180 + ((y_rot/2)+(x_rot/2));    
    }
    else {
        var 
x_rot = -(( 180 ) / Stage.width);
        var 
y_rot = -(( 180 ) / Stage.height);
        var 
ruota = ((y_rot/2)+(x_rot/2));
    }
    if(    
ruota 180 ) {
        
this._rotation += ( ruota this._rotation ) / 10;
    }
    else {
        
this._rotation += ( ruota 360 this._rotation ) / 10;
    }