# Rollover/rollout code

**URL:** <https://forum.kirupa.com/t/rollover-rollout-code/246507>\
**Category:** flash\
**Created:** [December 11, 2007, 7:37pm UTC](https://forum.kirupa.com/t/rollover-rollout-code/246507 "2007-12-11T19:37:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leslie\_J](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@Leslie\_J](https://forum.kirupa.com/u/Leslie_J)\
**Post date:** [December 11, 2007, 7:37pm UTC](https://forum.kirupa.com/t/rollover-rollout-code/246507/1 "2007-12-11T19:37:00Z")

</div>

Hi - I’m new to the forum (and to CS3). I downloaded a piece of script that I applied to my mc and it works great. The only problem is that the link opens in a new window. How do I alter the script so that the url opens in the same window? I did try deleting ,"\_blank" from the last bit of code, but it still opens in a new window. Any help would be greatly appreciated!

//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");
