Html anchor links in a .txt file

Okay - so maybe I am going about this all the wrong way -

But I have text in a scrolling text box I want to be able to anchor “top of page” links to from various points in the page.

It’s a no brainer in HTML, but Flash isn’t liking the link/anchor hard coding I did to my .txt document

The document shows up fine, all the html formatting is there - but the anchor links aren’t working properly -

I used

myData = new LoadVars();
myData.onLoad = function() {
myText_txt.html = true;
myText_txt.htmlText = this.myVariable;
};
myData.load(“content.txt”);

to call the file - which is working fine.

and in the .txt file I used

<a name=“top”>top</a> for the anchor
<a href="#top">Back to top</a> for the link

Suggestions?

If there is a better way to go about this, I am all ears - :ear: