I am with a problem, I have my main file that has the normal menu that he would be principal.swf, I is using this to call the other .swf that he would be noticias.swf, that would have a project of the news in xml.
// AS do button menu 2 chamar noticias.swf.
menu2_mc.onPress = function ()
{
loadMovie("noticias.swf", 1);
};
what I am using in xml is this
// noticias xml
stop ();
//
System.useCodepage=true
//call xml e css
var estilo = new TextField.StyleSheet ();
var arquivo_css = "xml/jr.css";
estilo.load (arquivo_css);
estilo.onLoad = function (correto)
{
if (correto)
{
var meuXML:XML = new XML ();
meuXML.ignoreWhite=true
meuXML.load ("xml/jr.xml");
meuXML.onLoad = function ()
{
_root.tela_mc.plana_mc.jr_txt.text = meuXML;
};
}
jr_txt.styleSheet = estilo;
};
my problem is following, when I compels my file noticias.swf it appears normal with the news, but when I am in the file principal.swf and click in button 2 menu it brings me the file noticias.swf but without xml, xml does not appear no way, somebody knows as I can fixed this?