# Java Pop-Up with embedded text?

**URL:** https://forum.kirupa.com/t/java-pop-up-with-embedded-text/229052
**Category:** flash
**Created:** [June 13, 2007, 6:12pm UTC](https://forum.kirupa.com/t/java-pop-up-with-embedded-text/229052 "2007-06-13T18:12:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![misterpatrick](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@misterpatrick](https://forum.kirupa.com/u/misterpatrick)
#### Post date: [June 13, 2007, 6:12pm UTC](https://forum.kirupa.com/t/java-pop-up-with-embedded-text/229052/1 "2007-06-13T18:12:25Z")

</div>

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]
