bonjour et merci.
j'ai appliqué le méthode this._lockroot et plus rien ne fonctionne :
voici le code :
//changement du nombre de vignettes par ligne
colonne = 8;
//changement du nombre de vignettes par ligne
/////////////////////////////////////////////////////////////////
mcl = new MovieClipLoader();
//gestionnaire du chargement
ecouteurChargement = new Object();
mcl.addListener(ecouteurChargement);
ecouteurChargement.onLoadComplete = function() {
if (cible._alpha =100) {
alpha(cible, true);
}
if (cible._alpha =0) {
alpha(cible, false);
}
};
monFmt = new TextFormat();
monFmt.font = "Verdana";
module.description01.setTextFormat(monFmt);
module.description01.embedFonts = true;
///////////////////////////////////////////////////////////////
function alpha(mc:MovieClip, bool:Boolean):Void {
mc.onEnterFrame = function() {
if (bool) {
this._alpha += 10;
if (this._alpha>=100) {
this.onEnterFrame = null;
}
} else {
this._alpha -= 10;
if (this._alpha<=0) {
this.onEnterFrame = null;
}
}
};
}
///////////////////////////////////////////////////////////////
tabimage = new Array();
XMLimage = new XML();
XMLimage.ignoreWhite = true;
XMLimage.onLoad = function() {
tabimage = XMLimage.firstChild.childNodes;
for (i=0; i<tabimage.length; i++) {
this._lockroot.cadre.duplicateMovieClip("cadre"+i, i*1+5000);
this._lockroot["cadre"+i].glu.loadMovie(this._lockroot.tabimage[i].attributes.urlimage_min);
if (i<colonne) {
//position y
this._lockroot["cadre"+i]._y = 10;
//a*i+b a=espacement x b=position x
this._lockroot["cadre"+i]._x = 60*i+10;
} else {
//espacement y
this._lockroot["cadre"+i]._y = Number(this._lockroot["cadre"+(i-colonne)]._y)+60;
this._lockroot["cadre"+i]._x = this._lockroot["cadre"+(i-colonne)]._x;
}
//réglage profondeur
module.swapDepths(this._lockroot["cadre"+i]);
logo.swapDepths(module);
///////////////////////////////////////////////////////////////
this._lockroot["cadre"+i].big = this._lockroot.tabimage[i].attributes.urlimage_big;
this._lockroot["cadre"+i].texte = this._lockroot.tabimage[i].attributes.desc;
this._lockroot["cadre"+i].onRelease = function() {
mcl.loadClip(this.big, cible);
};
this._lockroot["cadre"+i].onRollOver = function() {
module.startDrag(this);
alpha(module, true);
module.description01 = this.texte;
};
this._lockroot["cadre"+i].onRollOut = function() {
alpha(module, false);
};
}
};
XMLimage.load("album.xml");
seden