# textColor changes onRollOver/Rollout in dynamic clips

**URL:** https://forum.kirupa.com/t/textcolor-changes-onrollover-rollout-in-dynamic-clips/272623
**Category:** flash
**Created:** [October 7, 2008, 4:18am UTC](https://forum.kirupa.com/t/textcolor-changes-onrollover-rollout-in-dynamic-clips/272623 "2008-10-07T04:18:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wolcotter](https://avatars.discourse-cdn.com/v4/letter/w/6bbea6/32.png) [@wolcotter](https://forum.kirupa.com/u/wolcotter)
#### Post date: [October 7, 2008, 4:18am UTC](https://forum.kirupa.com/t/textcolor-changes-onrollover-rollout-in-dynamic-clips/272623/1 "2008-10-07T04:18:31Z")

</div>

Can anyone tell me why the rollOver states in these clips are not working? As you can see these are dynamically generated button clips containing dynamic text fields named “numText.” I have tested the very same button clip with the same addressing in a separate file (non dynamic) and it works just fine.

Here it is -

```auto
function makeBtns() {
	
	var xPos:Number = 75;
	var yPos:Number = 536;
	
	for (i = 0; i < OneUrls.length; i++) {
	this.attachMovie("numClip", "numClip"+i, this.getNextHighestDepth(), {_x:xPos, _y:yPos});
	xPos += this["numClip"+i]._width+5;
	this["numClip"+i].ID = i;
        this["numClip"+i].numField.text = i+1;
	this["numClip"+i].onRollOver = function():Void {
		this["numClip"+i].numField.textColor = 0x000000;
		}
	this["numClip"+i].onRollOut = function():Void {
		this["numClip"+i].numField.textColor = 0x999999;
		}
	}
}

```

Thanks / help appreciated
