# How undelete --\> "delete this.onRollOver;"?

**URL:** <https://forum.kirupa.com/t/how-undelete-delete-this-onrollover/77313>\
**Category:** Uncategorized\
**Created:** [January 26, 2005, 10:41am UTC](https://forum.kirupa.com/t/how-undelete-delete-this-onrollover/77313 "2005-01-26T10:41:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![turtle](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@turtle](https://forum.kirupa.com/u/turtle)\
**Post date:** [January 26, 2005, 10:41am UTC](https://forum.kirupa.com/t/how-undelete-delete-this-onrollover/77313/1 "2005-01-26T10:41:04Z")

</div>

I’m trying to change color on a text. (onRollOVer, onRollOut and onRelease).  
When it’s onRealease, I want this text in one color.  
Ok this code bellow works… :ne:  
But, because I have deleted the onRollover and onRollOut, these effects will not be applied anymore…  
How can I “undelete” this ???  
I’ve tried with **delete this.onEnterFrame;** , but it does not works!  
Thanks for your help…

```auto
orig = "0xFFFFFF"; 
overSt = "0x980F08"; 
prSt = "0xFFCC00"; 
 
//item = duplicateMovieClip 
 
item.onRollOver = function() { 
	 Color_mcbase = new Color(this); 
	 Color_mcbase.setRGB(overSt); 
} 
item.onRollOut = function() { 
	 Color_mcbase = new Color(this); 
	 Color_mcbase.setRGB(orig); 
} 
item.onRelease = function() { 
delete this.onEnterFrame; 
 
this.onEnterFrame = function() { 
	 delete this.onRollOver; 
	 delete this.onRollOut; 
} 
Color_mcbase = new Color(this); 
Color_mcbase.setRGB(prSt); 
for (var i = 0; i<cant; i++) { 
	 if (_root.mc_scroll["base"+i] != this){ 
		 reset_color = new Color(_root.mc_scroll["base"+i]); 
		 reset_color.setRGB(orig); 
	 } 
}

```
