# onRollOver font color change of dynamic text

**URL:** https://forum.kirupa.com/t/onrollover-font-color-change-of-dynamic-text/189293
**Category:** flash
**Created:** [June 1, 2006, 2:09pm UTC](https://forum.kirupa.com/t/onrollover-font-color-change-of-dynamic-text/189293 "2006-06-01T14:09:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![molotov](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@molotov](https://forum.kirupa.com/u/molotov)
#### Post date: [June 1, 2006, 2:09pm UTC](https://forum.kirupa.com/t/onrollover-font-color-change-of-dynamic-text/189293/1 "2006-06-01T14:09:46Z")

</div>

I have a movie clip that is acting as a button and the text is being pulled in by from an XML file. This text will be a clickable link. I’d like to change the color of the text in an onRollOver function but it’s not working. Any suggestions?

I’ve tried:

```auto
myFormat_fmt = new TextFormat();
myFormat_fmt.color = 0xE50000;

mod1Pop.onRollOver = function() {
	mod1Pop.mod1Title.setNewTextFormat(myFormat_fmt);
}

```

and it doesn’t work. also tried putting that in the actionscript of the movie itself with no luck.
