# Convert as2 to as3 .. help please :)

**URL:** https://forum.kirupa.com/t/convert-as2-to-as3-help-please/268871
**Category:** flash
**Created:** [August 19, 2008, 9:37pm UTC](https://forum.kirupa.com/t/convert-as2-to-as3-help-please/268871 "2008-08-19T21:37:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Vote\_for\_Pedro](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@Vote\_for\_Pedro](https://forum.kirupa.com/u/Vote_for_Pedro)
#### Post date: [August 19, 2008, 9:37pm UTC](https://forum.kirupa.com/t/convert-as2-to-as3-help-please/268871/1 "2008-08-19T21:37:22Z")

</div>

Hey guys (yay a new cool community)

I found this great guide on making a mc rewind just the way I wanted it to ([http://www.kirupa.com/developer/mx2004/button\_effect.htm](http://www.kirupa.com/developer/mx2004/button_effect.htm)) But just couldn’t figure out why it wouldn’t wokr in my project, well… of coures I was building in as3 and it seems the code in that tutorial is as2. I got some of the code translated by googling, but I’m really just not sure if even that is right. I could also just copy all the stuff I’ve done into a as2 project… (I’m kind of a nOOb, so I don’t know if that’s good to do or not) But I read that maybe it’s just worth upgrading since as3 is better… and, if I want to snatch more code from somewhere it on the other hand won’t work if it’s in as3…

Here’s a copy of the code used in that tutorial:

stop();

this.onEnterFrame = function(){  
if(rewind == true){  
prevFrame();  
}  
}

this.onRollOver = function(){  
rewind = false;  
play();  
}

this.onRollOut = function(){  
rewind = true;  
}

this.onRelease = function(){  
getURL(“[http://www.kirupa.com](http://www.kirupa.com)”,"\_blank");  
}

Thanks a bunch pipls! :bu:
