è possibile eseguire delle azioni (es. gotoAndPlay(1)) desritte in un file XML?
ciao a tutti.
è possibile eseguire delle azioni (es. gotoAndPlay(1)) desritte in un file XML?
ciao a tutti.
Nel file XMl "azioni.xml":
Nel filmato flash, nello stesso frame dove c'è il movieclip "mc":codice:<azione metodo="gotoAndPlay" target="mc" param="5" />
codice:mc.stop(); dati_xml = new XML(); dati_xml.path = this; dati_xml.ignoreWhite = true; dati_xml.onLoad = function(success) { if(success){ var src = this.firstChild.attributes eval(src.metodo).call(this.path[src.target], src.param); } else { trace("file non disponibile"); } }; dati_xml.load("azioni.xml");