Salut,
afin de bien comprendre j'ai mis mon swf en ligne
icij'ai une liste de swf dont le chemin est stocké dans le fichier swfs.xml :
<?xml version="1.0" ?>
<swfs>
<movie id="01" name="01.swf"></movie>
<movie id="02" name="02.swf"></movie>
<movie id="03" name="03.swf"></movie>
</swfs>
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
merci