1 Reply Latest reply on May 13, 2006 7:56 AM by Newsgroup_User

    moviecliploader problem

    yavona
      i ve the code above and the result is someting like this : www.yusufonaldi.com/layer/kliploader.swf

      while preloading it shows the swf files first frames and stops. after loading sometimes it doesn't work, sometimes works if you refresh the page. i did'n solve this problem. what can it be?

      -i use flash 8
      -i ve used to video2swf software to convert the video file to swf.
      -swf is 370 kb.
      -i publish the fla in A.S.2 and flash 8 format


      var klipLoader = new MovieClipLoader();

      klipLoader.onLoadStart = function (bosklip) {
      kutu.text="laoding"
      }

      klipLoader.onLoadProgress = function (bosklip, yuklenen, total) {
      yuzde=Math.floor( yuklenen/total*100);
      bar._xscale=yuzde;
      kutu.text="% "+yuzde+" yükleme yapıldı"
      }

      klipLoader.onLoadComplete = function (bosklip){
      kutu._visible=false;
      bar._visible=false;
      barcervece._visible=false;
      }

      klipLoader.onLoadInit = function (bosklip) {
      bosklip._width = 170;
      bosklip._height = 170;
      }

      klipLoader.onLoadError = function (bosklip, hata) {
      if(hata=="URLNotFound"){
      kutu.text="Dosya bulunamadı";
      }else if(hata=="LoadNeverCompleted"){
      kutu.text="Bağlantı kesildi";
      }
      }

      klipLoader.loadClip("a1.swf","_root.bosklip");
        • 1. Re: moviecliploader problem
          Level 7
          1. Not sure of all the visible properties in the code. But be sure you are
          making the loading swf visible. Perhaps at testing you might be sure that is
          the case incase your code is not making it visible at the correct time.
          2. Take care with third party swf generation software, you do not know
          except from the vendor what is happening inside the file and it may be that
          you need to use their player wrapper. Unfortunately I do not know the
          details of what video2swf does to the innerds of the swf.


          Perhaps you need bosklip.play() in the onLoadComplete or onLoadInit or both

          klipLoader.onLoadComplete = function (bosklip){
          kutu._visible=false;
          bar._visible=false;
          barcervece._visible=false;
          bosklip.play();
          }
          klipLoader.onLoadInit = function (bosklip) {
          bosklip._width = 170;
          bosklip._height = 170;
          bosklip.play();
          }

          3. Not clear if you are publishing for the net or a local desktop projector.
          The MovieClipLoader events fire differently when played from projector (EXE)
          because the entire external movie is loaded and not streamed and thus a
          preloader process may not be needed.

          --
          Lon Hosford
          www.lonhosford.com
          May many happy bits flow your way!
          "yavona" <webforumsuser@macromedia.com> wrote in message
          news:e404cd$3hq$1@forums.macromedia.com...
          i ve the code above and the result is someting like this :
          http://www.yusufonaldi.com/layer/kliploader.swf

          while preloading it shows the swf files first frames and stops. after
          loading
          sometimes it doesn't work, sometimes works if you refresh the page. i did'n
          solve this problem. what can it be?

          -i use flash 8
          -i ve used to video2swf software to convert the video file to swf.
          -swf is 370 kb.
          -i publish the fla in A.S.2 and flash 8 format


          var klipLoader = new MovieClipLoader();

          klipLoader.onLoadStart = function (bosklip) {
          kutu.text="laoding"
          }

          klipLoader.onLoadProgress = function (bosklip, yuklenen, total) {
          yuzde=Math.floor( yuklenen/total*100);
          bar._xscale=yuzde;
          kutu.text="% "+yuzde+" y?kleme yap?ld?"
          }

          klipLoader.onLoadComplete = function (bosklip){
          kutu._visible=false;
          bar._visible=false;
          barcervece._visible=false;
          }

          klipLoader.onLoadInit = function (bosklip) {
          bosklip._width = 170;
          bosklip._height = 170;
          }

          klipLoader.onLoadError = function (bosklip, hata) {
          if(hata=="URLNotFound"){
          kutu.text="Dosya bulunamad?";
          }else if(hata=="LoadNeverCompleted"){
          kutu.text="Ba?lant? kesildi";
          }
          }

          klipLoader.loadClip("a1.swf","_root.bosklip");