O codigo funciona, pegando o Valor do XML, quando esta em _root, mas agora eu coloquei ele dentro de uma Cena, e não ta funcionando.
eu tentei assim:
var style_sheet = new TextField.StyleSheet();
var css_url = "xml_styles.css";
style_sheet.load(css_url);
style_sheet.onLoad = function(ok){
if (ok) {
var meuXML:XML = new XML();
meuXML.load("news.xml");
meuXML.onLoad = function(){
_root.noticias.news_txt.text = meuXML
}
}
news_txt.styleSheet = style_sheet;
}
Sendo que minha Cena tem nome de "Noticias" como ficaria o certo?