Actionscript Code:
rotate = true;
arrow1.onEnterFrame = function() {
    if(this._rotation<90 && rotate) {
        this._rotation+=1;
            if(this._rotation>=90) {
                rotate = false;
            }
        }
     if(this._rotation>0 && rotate ==false) {
        this._rotation-=1;
        if(this._rotation <=0) {
            rotate = true;
        }
   }
}