# Opening popups from text within variable

**URL:** https://forum.kirupa.com/t/opening-popups-from-text-within-variable/122879
**Category:** Uncategorized
**Created:** [September 17, 2004, 10:04pm UTC](https://forum.kirupa.com/t/opening-popups-from-text-within-variable/122879 "2004-09-17T22:04:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![beatsociety](https://avatars.discourse-cdn.com/v4/letter/b/a4c791/32.png) [@beatsociety](https://forum.kirupa.com/u/beatsociety)
#### Post date: [September 17, 2004, 10:04pm UTC](https://forum.kirupa.com/t/opening-popups-from-text-within-variable/122879/1 "2004-09-17T22:04:26Z")

</div>

Hello -

I’ve sucessfully implemented css into flash using the tutorial below.  
[http://www.kirupa.com/developer/mx2004/css.htm](http://www.kirupa.com/developer/mx2004/css.htm)

My question is how would I insert “a href=” links into the to open several 500 x 500px popup windows from within this code? The javascript that I usually use to do this does not work: ie _“javascript:var w = window.open(‘file.html’,‘name’,‘width=500,height=500’)”_

* * *

var format = new TextField.StyleSheet();  
var path = “[http://www.kirupa.com/developer/mx2004/code/flash.css](http://www.kirupa.com/developer/mx2004/code/flash.css)”;  
var quick = “\<br\>\<p class=‘one’\>The quick Kirupa jumps over the lazy dog.\</p\>\<br\>\<p class=‘two’\>The quick Kirupa jumps over the lazy dog.\</p\>\<br\>\<p class=‘three’\>The quick Kirupa jumps over the lazy dog.\</p\>\<br\>\<p class=‘four’\>The quick Kirupa jumps over the lazy dog.\</p\>”;  
format.load(path);  
format.onLoad = function(loaded) {  
if (loaded) {  
output.styleSheet = format;  
output.text = quick;  
} else {  
output.text = “Error loading CSS file!”;  
}  
};

* * *

Many thanks in advance!!!
