thanks, just what i needed, of course the htmlText disapperas when the next keyframe comes, so i changed
myText.text = var;
to
myText.text = var;
myText.htmlText = var;
then on the next keyframe i added
myText.htmlText = myText.text
not sure why, but necessary.