Hello, I have a mc named "arrow", which is obviously an arrow and using the below command, I have successfully made it rotate.
Actionscript Code:
onClipEvent (enterFrame) {
    _root.arrow._rotation+=1;
}

But I want it to, when it reaches 0 degrees, start going the other way and when it gets to 90, start going the first way. This is what I have tried:


Actionscript Code:
onClipEvent (enterFrame) {
    _root.arrow._rotation+=1;
    if (arrow._x=90){
        _root.arrow._rotation-=1;
    }
    if (arrow._x=0){
        _root.arrow._rotation+=1;
    }
}

And it does not work. Any help would be helpful. Thank you.