Repeating

I’m trying to figure out how to make some text glow randomly red repeatedly.

I have created the text as an object, added randomly placed Keyframes and used 50 frames. I changed the colour red on every other keypoint and then on the final frame added the action:

Stop () ;
gotoAndPlay (1) ;

But whenever I play the section of animation in the editor or on the main stage it won’t repeat the object’s animation. Can anyone help?

Uni