hello,
im making an exercise where i load a textfile in a textarea
and format it with a css page but everytime i test my movie
i only get undefined in the textarea
i did exactly what was written in my book so i dont understand
why this isnt working
heres the code
the textarea has the instancename news_txtCode:var flash_css = new TextField.StyleSheet(); flash_css.load("styles.css"); flash_css.onLoad = function(success:Boolean) { if (success) { news_txt.styleSheet = flash_css; } else { trace("error loading css file"); } }; var news_lv:LoadVars = new LoadVars(); news_lv.load("newspage.txt"); news_lv.onLoad = function(success:Boolean) { if (success) { news_txt.text = news_lv.content; } else { trace("unable to load text file"); } }; news_txt.html= true; news_txt.editable= false;