5 Replies Latest reply on Mar 13, 2007 7:39 PM by kevicus

    Preloader without loading bar

      I'm pretty new to this. I've created a flash movie as the header in a html/css web page. After searching extensively, I'm in need of the action script code that will allow me to create a pre-loader that loads just a static jpeg as the rest of the swf loads. None of the tutorials seem to address what I am looking for. In short, I do not need "a loading bar, a percentage preloader and a text field that shows how many bytes of your SWF movie have been loaded so far and the total file size" just a static jpeg that shows until the swf loads.

      Nothing I've tried seems to work when I test it.

      Currently I have:

      this.onEnterFrame =function(){
      var total:Number =this.getBytesTotal();
      var loaded:Number = this.getBytesLoaded();
      var percent:Number = Math.round(Number(loaded/total)*100);
      myString.text = percent.toString()+ "%";

      if(loaded >= total)
      this.onEnterFrame = null;
      this.gotoAndPlay("Scene 2", 1);

      Any help would be greatly appreciated.