Problem with rotation

Hi,

I’ve a difficult problem with my poll - http://tommisundqvist.com/demo/demo.html - grades 80 and 100 crosses 180 degrees in this rotation when this._rotation never get the value of asteLuku. Of course I could set the value of asteLuku like -175 and -125, but then the pointer rotate wrong direction. How can I solv this situation? Can I define the direction of rotation or…? :slight_smile:

Thanks in advance.
-Tommi

[SIZE=2][FONT=Courier New]var listenerObject:Object = new Object();
listenerObject.click = function( eventObj:Object ):Void{
      
      if(radioArvio1.selected == true){
            radioArvioTulos = 20;
            asteLuku = 48.5;
            }
      if(radioArvio2.selected == true){
            radioArvioTulos = 40;
            asteLuku = 90;
            }
      if(radioArvio3.selected == true){
            radioArvioTulos = 60;
            asteLuku = 137;
            }
      if(radioArvio4.selected == true){
            radioArvioTulos = 80;
            asteLuku = 185;
            }
      if(radioArvio5.selected == true){
            radioArvioTulos = 100;
            asteLuku = 235;
            }
      
mc_mittaritaulu_suuri.mc_viisari_suuri.onEnterFrame = function()
{
      this._rotation += (asteLuku-this._rotation)/5;
                  
                  
      //inforuutu, jossa näkyy arvo this._rotation
      tr = this._rotation;
}
};
arvosanat.addEventListener( "click", listenerObject );
[/FONT][/SIZE]