Salut a tous, j'aurai besoin d'un conseil, voila mon problème, j'ai récupéré un code sympa de galerie dynamique xml et je veux remplacer les instruction concernant le renvoi sur une URL (on clique sur l'image d'une galerie, ce qui renvoi a une image dans un popup) par un lien vers une frame de Flash sur mon fichier xml, ça fait actuellement référence à: <link>/marioz.htm</link> mon childnode[1]. J'ai beau avoir regardé partout, dans d'autres sources, je ne trouve vraiment pas comment placer un bête "GotoandPlay()" ou un loadmovieclip...
Voila, je sais que ma question sent bon le newbee mais si quelqu'un peut m'aiguiller.
Merci
là, c'est le code original de Marioz
----------------------------------------------------
function getLabel(_arg1) {
return (baseNode.childNodes[_arg1].childNodes[0].firstChild.nodeValue);
}
function getLink(_arg1) {
return (baseNode.childNodes[_arg1].childNodes[1].firstChild.nodeValue);}
function getWidth(_arg1) {
return (baseNode.childNodes[_arg1].childNodes[2].firstChild.nodeValue);
}
function getHeight(_arg1) {
return (baseNode.childNodes[_arg1].childNodes[3].firstChild.nodeValue);
}
function getPic(_arg1) {
return (baseNode.childNodes[_arg1].childNodes[4].firstChild.nodeValue);
}
function alphaIn(_arg1) {
if (_arg1.txt.txt._currentframe<9) {
_arg1.txt.txt.play();
}
}
function alphaOut(_arg1) {
_arg1.txt.txt.gotoAndStop(1);
}
function launchProject(_arg1) {
myURL = new String(("'popup"+_arg1.launchURL)+"'"); myHeight = new String(("'height="+_arg1.launchHeight)+",");
myWidth = new String(("width="+_arg1.launchWidth)+",");
getURL((((("javascript:openNewWindow("+myURL)+",'HMX',")+myHeight)+myWidth)+"toolbar=no,scrollbars=no')");}
baseNode = featXML.firstChild;
var child = baseNode.firstChild;
while (child != null) {
numItems++;
child = child.nextSibling;
}
_root.createEmptyMovieClip("featuredProjects", 1);
featuredProjects._y = 6;
featuredProjects._visible = false;
i = 0;
while (i<numItems) {
featuredProjects.attachMovie("thumb", "thumb"+i, i);
myN = eval("featuredProjects.thumb"+i);
myN.hitArea = myN.hA;
myN.createEmptyMovieClip("pic", 1);
myN.createEmptyMovieClip("txt", 2);
myN.txt._y = -5;
myN.hA._visible = false;
myN.attachMovie("thumbLabel", "thumbLabel", 2);
myN.thumbLabel.txt = getLabel(i);
myN.thumbLabel._y = -33;
myN.thumbLabel._alpha = 0;
myPic = getPic(i);
myLabel = getLabel(i);
myN.pic.loadMovie("images/"+myPic, 1);
myN.txt.attachMovie("txt", "txt", 2);
myN.txt.txt.txt = myLabel;
myN.launchURL = getLink(i); myN.launchWidth = getWidth(i);
myN.launchHeight = getHeight(i);
myN.onPress = function() {
};
i++;
}