Dans mon flash j'apelle ce fichier xml :
var mon_xml:XML = new XML();
mon_xml.ignoreWhite = true;
mon_xml.onLoad = function(OK) {
if (OK) {
Info.text = "chargement effectué";
} else {
Info.text = "fichier non reconnu";
}
};
mon_xml.load("swfs.xml");
Toujours dans mon flash, je souhaite afficher 1 swf à la fois dans un movieclip appellé encart1 via un drag and drop:
onClipEvent (enterFrame)
{
if (this, hitTest(_root.area))
{
_root.stat.text = "hit";
this.encart1.loadMovie(mon_xml.firstChild.childNodes[0].attributes.name);
} else {
_root.stat.text = "shit";
}
}
mon drag and drop marche mais aucun swf ne se lance dans mon movieclip
Tout mes fichiers sont dans le même répertoires
J'utilise flash CS3
je publie en flashplayer 9 action script 1.0
si quelqu'un à une idée ça serait top