If i try and embed fonts when i use css with flash the text does not show. is 
it possible to embed fonts when using an external stylesheet? i have been 
embedding and using textformat, but now i am playing with css and nothing seems 
to work. am i stuck not using pixel fonts with CSS?

function createNews() {
 // draw news area
 _root.createEmptyMovieClip("news_mc", this.getNextHighestDepth());
 _root.news_mc.createTextField ("news_txt",this.getNextHighestDepth(), 0, 0, 
200, 600);
 with(_root.news_mc.news_txt) {
  wordWrap = true;
  multiline = true;
  html = true;
 };
 // apply stylesheet
 var cssFormat = new TextField.StyleSheet();
 var path = "flash.css";
 var quick = "<br><p class='title'>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>"
 output = _root.news_mc.news_txt;
 cssFormat.load(path);
 cssFormat.onLoad = function(success) {
 if (success) {
  output.styleSheet = cssFormat;
  output.text = quick;
 } else {
  output.text = "Error loading CSS file!";
 }
};
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to