Bonjour,
je pense que ton probleme vient du fait que tu apelles des variables qui n'existent pas
tu crée un clip nommé "o_mc_photo" et ensuite tu fais appel à la VARIABLE o_mc_photo lorsque tu charges ton image
tu charge ton image dans 'undefiend' -> normal que cela ne déclanche pas le onLoadInit
Probablement que tu auras le même soucis pour o_text_titre et o_text_bas.
Soit tu les mets en variable (comme je le propose pour o_mc_photo), soit tu cibles correctement
monmcl.loadClip(fichier.firstChild.childNodes[numero_diapo].childNodes[1].childNodes[0].childNodes[0], this.o_mc_photo);
var coeff:Number=(Stage.height- this.o_txt_titre._height-this.o_txt_bas._height)/photo._height;
//CREATION DU CLIP POUR LA PHOTO
var o_mc_photo:MovieClip= this.createEmptyMovieClip("o_mc_photo", 50);
var o_txt_titre: ??? = ??? //redimensionement de la photo
var ecouteur:Object = new Object();
var monmcl:MovieClipLoader = new MovieClipLoader();
ecouteur.onLoadInit = function(photo:MovieClip) {
var coeff:Number=(Stage.height-
o_txt_titre._height-
o_txt_bas._height)/photo._height;
photo._yscale = coeff;
photo._xscale = coeff;
trace(photo._height)
trace(coeff);
trace(photo._yscale);
trace(photo._xscale);
}
monmcl.addListener(ecouteur);
monmcl.loadClip(fichier.firstChild.childNodes[numero_diapo].childNodes[1].childNodes[0].childNodes[0], o_mc_photo);
@+
