AS2 Create a function for TextFormat?

I have one dynamic text box on the timeline, with the same name throughout, and a new keyframe whenever the text changes, but the formatting stays the same. I tried to create a function to apply the formatting but it didn’t want to work, so I’ve got the entire block of formatting on each and every keyframe. This is pretty cumbersome and would make any format changes burdensome. Creating a function for that should work, shouldn’t it?