3 Replies Latest reply on Aug 25, 2009 1:47 PM by kglad

    Help preloading .FLV

    ActivEdit Level 1

      I have a project where I need to preload a couple of .FLVs...there is only 1 per .swf...I've imported them to the stage so the FLVPlayback contentPath (wwms_video.flv) is already set in the component inspector. I already built a preloader for loading external .swfs and it works fine. Can anyone help me modify the code so that it points to my FLVPlayback component instead of myLoader? Thx!


      var mcLoader:MovieClipLoader = new MovieClipLoader();
      var myListener:Object = new Object();

      myListener.onLoadProgress = function(target_mc,bytesLoaded,bytesTotal) {
      extLoader_mc._visible = true;
      _root.btnWebsite_btn._visible = false;
        var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
      extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
      if (bytesLoaded >= bytesTotal) {
        extLoader_mc._visible = false;