così è più corretto, ma il loadMovie ha ancora quel piccolo punto interrogativo, da dove proviene il nome dei file da caricare?
codice:System.useCodepage = true mioxml=new XML(); mioxml.ignoreWhite = true; mioxml.path = this; mioxml.onLoad = function(success){ if(success){ var nodes = this.firstChild.childNodes; for(var i = 0; i < nodes.length; i++){ this.path.attachMovie("luigi", "link"+i, i) this.path["link"+i]._y = i==0 ? 251 : this.path["link"+(i-1)]._y + this.path["link"+(i-1)]._height + 2 this.path["link"+i]._x = 65 this.path["link"+i].loadMovie(/* Qui ci và il nome del file esterno */); } } } mioxml.load("xml/stones.xml");

Rispondi quotando