Hello -
I’ve sucessfully implemented css into flash using the tutorial below.
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”;
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!!!