0 Replies Latest reply on Sep 26, 2006 12:42 AM by Martin_Bean

    preloader stoping swf from working properly

    Martin_Bean
      have made this external preloader to load my 2mb .swf, and it works but when u click on a button the wipe go across the screen but it doesnt change the page as you can see this on this link below

      Text

      but its supose to look like this example( if you clicked on the installs button a 3d amimated wipe will go across the screen then it will jump to the Installs page)
      Text

      and i dont know why

      im using the flash 8 Slide presentation template as its perfect for what im achive easy to and works fine with out the external preloader but if i use the external preloader it stop the buttons working by stoping them going to the next page

      the code that tells flash to goto the correct slide is in the movie clip where the image sequance of the wipe is and at the end of the image sequance i have an action layer which is as follows



      // GoTo Screen behavior
      if((_root.application.Installs != undefined) && (_root.application.Installs != null))
      {
      var screen = null;
      var target = this;
      while((screen == null) && (target != undefined) && (target != null))
      {
      if(target instanceof mx.screens.Screen)
      {
      screen = target;
      }
      else
      {
      target = target._parent;
      }
      }
      if(screen instanceof mx.screens.Slide)
      {
      screen.gotoSlide(_root.application.Installs);
      }
      }
      // End GoTo Screen behavior


      and my external preloader code is as follows


      var mcl:MovieClipLoader = new MovieClipLoader();

      var mclL:Object = new Object();

      mclL.onLoadProgress = function(target, loaded,total) {
      loader.percent.text = Math.round((loaded/total) * 100) + "%";
      }

      mclL.onLoadInit = function () {
      loader._visible = false;
      loader.percent.text = "";
      }

      mcl.addListener(mclL);

      mcl.loadClip("kidpower_Web.swf",holder);

      b1.onRelease = function() {
      loader._visible = true;
      mcl.loadClip("kidpower_Web.swf",holder);
      }

      b2.onRelease = function() {
      loader._visible = true;
      mcl.loadClip("2_Web.swf",holder);
      }

      Thanks Martin