# Rewind animaion

**URL:** <https://forum.kirupa.com/t/rewind-animaion/286075>\
**Category:** flash\
**Created:** [April 9, 2009, 5:04pm UTC](https://forum.kirupa.com/t/rewind-animaion/286075 "2009-04-09T17:04:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rashmi\_shri](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@rashmi\_shri](https://forum.kirupa.com/u/rashmi_shri)\
**Post date:** [April 9, 2009, 5:04pm UTC](https://forum.kirupa.com/t/rewind-animaion/286075/1 "2009-04-09T17:04:21Z")

</div>

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_
