Mclip et xml-(

seden Messages postés 7 Date d'inscription samedi 16 août 2003 Statut Membre Dernière intervention 19 septembre 2006 - 16 sept. 2006 à 13:08
seden Messages postés 7 Date d'inscription samedi 16 août 2003 Statut Membre Dernière intervention 19 septembre 2006 - 19 sept. 2006 à 17:29
bonjour,
j'ai un clip (intro_voeux.swf) qui contient un clip (voeux.swf) qui fait appel à album.xml et rien ne fonctionne-( alors que la config voeux.swf seul qui appelle album.xml fonctionne…
je m'arrache les cheveux^^
je tiens à votre dispo les sources
'rci

seden

3 réponses

shubenka Messages postés 759 Date d'inscription mercredi 11 décembre 2002 Statut Membre Dernière intervention 12 novembre 2008
16 sept. 2006 à 14:15
0
seden Messages postés 7 Date d'inscription samedi 16 août 2003 Statut Membre Dernière intervention 19 septembre 2006
17 sept. 2006 à 08:45
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
0
seden Messages postés 7 Date d'inscription samedi 16 août 2003 Statut Membre Dernière intervention 19 septembre 2006
19 sept. 2006 à 17:29
y'a plus personne sur le coup-(



seden
0
Rejoignez-nous