I have used flash before. I have totally forgotten everything though. I have been trying to get to grips with it again. I want to make the following simple program.

1. I have created a simple shape(rectangle). I called it s1 in the instance box.

2. I right clicked and added the following script into the shapes actions.

rotate=4;// rotation variable
this.onEnterFrame=function(){// our dynamic event
rotate++;// the angle will increase constantly
s1_.rotation=rotate;// rotate
s1_.onEnterFrame=function(){// dynamic event

All I want to do is rotate the shape by 1 degree a frame. How do I do it the above code obviously doesn't work.