4 Replies Latest reply on Jan 31, 2011 6:24 AM by kglad

    Preloader Not Previewing

    Kwangle Level 1

      Hi All,


      I've written a simple preloader which I've put in its own movie clip. The code is as follows:


      yOrg = 14;

      yShift = 95;

      this.onEnterFrame = function() {

        byteTot = _root.getBytesTotal();

        byteLoa = _root.getBytesLoaded();

        loadVal = byteLoa/byteTot;

        loadPercent = Math.round(loadVal);

        if (loadPC>=1) {

            //starts movie


        } else {

          //moves masking object

          msk._y = yOrg-(yShift*loadVal);

          loadTxt.text= "LOADING "+loadPercent;




      The code works out a value between 0 and 1 called 'loadVal' this is used to animate a masking object a distance defined by a variable called 'yShift'. loadVal is rounded up to give a whole number that is displayed in a text field showing the percentage of the movie which has loaded.


      The preloader seems to be running and it will trigger the move to play when it completes but I can't see the preloader previewing in the Bandwidth Profiler, even when I set the data speed to be very slow. I've noticed this issue before and it is annoying as I need to see how the preloader looks and works.


      Any ideas?