Basically i am trying to rewind my animation, i have created a button(rewind_btn) on main stage, and on the frame i have written this code to rewind my animation on button press,
rewind_btn.onPress= function(){
onEnterFrame()= function(){
prevFrame();
}
}
but i am getting the below error when the movie is tested.
Error Scene=Scene 1, layer=actions, frame=1:Line 2: Left side of assignment operator must be variable or property.
onEnterFrame()= function(){
actually i learnt this scripting of animation rewind through some video tutorial, this code was running fine in that tutorial, but i am not able to run it…
Note: i am using Actionscript2.0