# Can anybody convert this here actionscriptz?

**URL:** <https://forum.kirupa.com/t/can-anybody-convert-this-here-actionscriptz/329623>\
**Category:** flash\
**Created:** [September 23, 2012, 11:39pm UTC](https://forum.kirupa.com/t/can-anybody-convert-this-here-actionscriptz/329623 "2012-09-23T23:39:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vapourrub](https://avatars.discourse-cdn.com/v4/letter/v/8491ac/32.png) [@vapourrub](https://forum.kirupa.com/u/vapourrub)\
**Post date:** [September 23, 2012, 11:39pm UTC](https://forum.kirupa.com/t/can-anybody-convert-this-here-actionscriptz/329623/1 "2012-09-23T23:39:48Z")

</div>

[COLOR=#333333]This here code works great and dandy for the ole AS2 but wont play ball on AS3 whatsoever. Is there a straightforward conversion for AS3 or must I embark on an entirely new scroll?[/COLOR]

[CENTER][COLOR=#333333]Heres the code:[/COLOR][/CENTER]

[COLOR=#333333]stop();[/COLOR]

[COLOR=#333333]this.onEnterFrame = function(){[/COLOR]  
[COLOR=#333333]if(rewind == true){ [/COLOR]  
[COLOR=#333333]prevFrame(); [/COLOR]  
[COLOR=#333333]}[/COLOR]  
[COLOR=#333333]}[/COLOR]

[COLOR=#333333]this.onRollOver = function(){[/COLOR]  
[COLOR=#333333]rewind = false; [/COLOR]  
[COLOR=#333333]play(); [/COLOR]  
[COLOR=#333333]}[/COLOR]

[COLOR=#333333]this.onRollOut = function(){[/COLOR]  
[COLOR=#333333]rewind = true; [/COLOR]  
[COLOR=#333333]}[/COLOR]

[COLOR=#333333]this.onRelease = function(){[/COLOR]  
[COLOR=#333333]getURL(“index.php”,"\_top");[/COLOR]  
[COLOR=#333333]}[/COLOR]

[COLOR=#333333]Any help would be greatly appreciated mandem.[/COLOR]
