Java Pop-Up with embedded text?

Hello all,

I have a site using external text files (see below). I’d like to add a link in the text file that utilizes a resized pop-up instead of just using the target=_‘new’. I don’t know if it’s possible to use javascript in the text file, or if I can somehow embed the java inside the container swf. Thanks!

Here’s the code I’m using to load the external text file:
[AS]
var myStyle:TextField.StyleSheet = new TextField.StyleSheet();
myStyle.load(“main_styles.css”);
output.styleSheet = myStyle;

output.multiline= true;
output.wordWrap = true;
output.html = true;
output.selectable = true;

var story:XML = new XML();
story.ignoreWhite = true;
story.load(“text/myText.txt”);
story.onLoad = function () {
output.htmlText = story;
}
[/AS]