esatto, ma siccome in flash non puoi leggere l'xml fnchè non è stato completamente caricato, basterebbe:
codice:this.stop(); createXML = function() { this.mioXML = new XML(); this.mioXML.load("file.xml"); this.mioXML._t = this; this.mioXML.onLoad = xmlcaricato }; xmlcaricato = function() { this._t.play(); } }; moviePreloader = function() { var car = this.getBytesLoaded(); var tot = this.getBytesTotal(); if(car == tot){ this.onEnterFrame = undefined; this.createXML(); } }; this.onEnterFrame = moviePreloader;

Rispondi quotando