Alright, I’m having some issues css’ing text loaded into masked field.
I can load the text in from a txt file. No worries. I can create links, no worries. My problem is simply the css.
I used this code from the kirupa tutoria
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(success) {
if (success) {
output.styleSheet = format;
output.text = quick;
} else {
output.text = "Error loading CSS file!";
}
};
and then created the mask with this code
content_mc.setMask(mask_mc);
But it still shows up empty. I’m aware that the css code above will not import the text, but one step at a time lol. I have posted my fla here: http://dev.gad.ca/porubanec/index.zip
Any help would be greatly appreciated as I need to get this site done by Wednesday!