kameha  | Bonjour à tous,
   j'ai un problème assez curieux, une animation (un diaporama) qui boucle sur un serveur (ovh) par exemple ne boucle pas sur un autre serveur (online.net). C'est à dire qu'une fois affiché l'ensemble des images (de 1 à 4), plus rien ne s'affiche.
 Possible que ça joue suivant le serveur?
   Pour info, voici le lien, vous trouverez le flash à gauche en bas pour vous rendre compte du bug.
 Et mon code :
  Code :
 - import mx.transitions.Tween ;
 - this._x = 0;
 - this._y = 0;
 - // ____________________________ PARAMETRES ____________________________________  
 - nbImg = 1 ;
 - alphaSpeed = speed_fade ; // vitesse de fading  
 - tempo = speed_trans * 1000; // temps entre chaque transition en millisecondes  
 - dirImg = path_dir_img ; // nom du dossier image  
 - extention = "." + type_image ; // nom de l´extention des images  
 - nomAnimation = id_logo;
 - posLogoX = pos_logo_x ;
 - posLogoY = pos_logo_y ;
 - // ____________________________ CREATION DES CONTAINER _________________________  
 - var container1 = this.createEmptyMovieClip("container1", this.getNextHighestDepth()) ;
 - var container2 = this.createEmptyMovieClip("container2", this.getNextHighestDepth()) ;
 - var logo = this.createEmptyMovieClip("logo", this.getNextHighestDepth()) ;
 -     logo._x = posLogoX ; 
 -    logo._y = posLogoY ;
 - logo.attachMovie (nomAnimation, "logo", logo.getNextHighestDepth());
 - NextContentLoader = container1;
 - // _____________________________Gestion du load _________________________________  
 - var my_mcl = new MovieClipLoader();
 - var mclListener = new Object ();
 - my_mcl.addListener(mclListener);
 - mclListener.onLoadInit = function (target:Object) {
 -       target._alpha = 0;
 -       (target == container1) ? NextContentLoader = container2 : NextContentLoader = container1 ;
 -       target.swapDepths(NextContentLoader);
 -        var alphaImg:Tween = new Tween (target, '_alpha´,easing.Elastic.easeOut , 0, 100, alphaSpeed, true);
 -        
 -         alphaImg.onMotionFinished = function () {
 -                idTimer = setInterval (timer, tempo) ;
 -       } 
 - }
 - mclListener.onLoadError = function () {
 -       nbImg = 1 ;
 -      MovieLoad ();
 - }
 - // __________________________ FONCTIONS DIVERSES  _________________________  
 - function MovieLoad () {
 -         my_mcl.loadClip(dirImg + nbImg + extention, NextContentLoader);
 - }
 - function timer () {
 -      if (i < 1000)
 -         {
 -            i++ ;
 -        } 
 -       else 
 -            {
 -                clearInterval(idTimer);
 -              nbImg++;
 -                 MovieLoad ();
 -            }
 - }
 - MovieLoad ();
 
  |  
 
   Merci d'avance pour votre aide    Message édité par kameha le 25-09-2008 à 21:43:47
  |