nizo 0 Denunciar post Postado Março 2, 2010 Olá pessoal, estou com uma dúvida, gostaria de saber se tem como fazer um preload de um arquivo XML da mesma forma que fazemos com os arquivos swf? tentei usar o trace no total de bytes do arquivo, mais ele me retorna "undefined" var arquivoXML = new XML(); arquivoXML.ignoreWhite = true; arquivoXML.load("xml/arquivoXML.xml"); trace(arquivoXML.getBytesTotal()); Obrigado. Compartilhar este post Link para o post Compartilhar em outros sites
Public2004 79 Denunciar post Postado Março 2, 2010 Veja se retorna algo: arquivoXML = new XML(); arquivoXML.ignoreWhite = true; arquivoXML.load("xml/arquivoXML.xml"); arquivoXML.onLoad = function(success) { if (success) { trace(this.getBytesLoaded()+ " de "+this.getBytesTotal()); } }; Att. Compartilhar este post Link para o post Compartilhar em outros sites