How can I add a text preloader to this code?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • papalazarou78
    New Member
    • Mar 2007
    • 4

    How can I add a text preloader to this code?

    Hi

    I've been working on a site where swf's are loaded into main movie with transitions between the sections. I have the following code on the mcContainer...

    Code:
    onClipEvent (enterFrame) {
    if (!loaded && this._url != _root._url) {
    if (this.getBytesLoaded() == this.getBytesTotal()) {
    loaded = true;
    _root.transition.gotoAndPlay("opening");
    }
    }
    }
    How can I add a text percentage preloader into this code?

    Any help will be greatly received

    Thanks
    Wayne
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    After a quick Google I came up with this link.

    Comment

    • papalazarou78
      New Member
      • Mar 2007
      • 4

      #3
      Thanks for the reply. I'm still quite new to AS, and I have done a few sites with preloaders along the lines of the one in the link you supplied. But for this site I'm doing, I need something that will work with the existing code for loading the swf files, and I can't seem to add in code from other pre-loaders without either getting errors or effecting the loading of the swfs. If it helps, I have the files uploaded here;

      www.fullfatdesi gns.co.uk/files2.zip

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        Originally posted by papalazarou78
        Thanks for the reply. I'm still quite new to AS, and I have done a few sites with preloaders along the lines of the one in the link you supplied. But for this site I'm doing, I need something that will work with the existing code for loading the swf files, and I can't seem to add in code from other pre-loaders without either getting errors or effecting the loading of the swfs. If it helps, I have the files uploaded here;

        www.fullfatdesi gns.co.uk/files2.zip
        What errors do you get?

        Comment

        • papalazarou78
          New Member
          • Mar 2007
          • 4

          #5
          The errors are from copying and pasting lines of text from another preloader into the wrong place. I don't remember the exact errors, but when I try to correct them (by trying to either add or take away ( or } ) I end up with more errors. I am still a beginner to AS, and usually work by using code from tutorials or forums and trying to piece them together, which has got me so-far, but I think I need to learn the basics of AS, so that things like this don't throw me. Think I will buy one of those 'learn actionscript in 24hrs' book :)

          Thanks
          Wayne

          Comment

          • ravikumarz
            New Member
            • Apr 2007
            • 1

            #6
            can any one give me the tips to preload images as well as flash files. because in my website it take little bit time delay. any one give me idea

            Comment

            • Motoma
              Recognized Expert Specialist
              • Jan 2007
              • 3236

              #7
              Originally posted by ravikumarz
              can any one give me the tips to preload images as well as flash files. because in my website it take little bit time delay. any one give me idea
              Try a Google search on "Flash Preloader Tutorial."

              Comment

              Working...