3 Replies Latest reply on Feb 16, 2011 6:51 AM by kglad

    Pre-Loader function error

    UltimateFlashxz

      hey all

       

      the title says all i get an error on my function and cant tell whats wrong so i cant fix it.

       

      Error:

      **Error** Scene=Scene 1, layer=AS, frame=1:Line 3: Syntax error.

           Function Lbar (){

       

      Full Code:

      stop();

      LoaderInt = setInterval(Lbar, 10);

      Function Lbar (){

      if(getBytesLoaded() >= getBytesTotal()){

      play();

      clearInterval(LoaderInt);

      }

      fill_MC._xscale = (getBytesLoaded()/getBytesTotal()*100);

      }