A Flash Developer Resource Site

Results 1 to 20 of 189

Thread: For everyone with a preloader problem

Hybrid View

  1. #1
    Junior Member
    Join Date
    Oct 2007
    Posts
    24
    Hi whispers,

    thanks for answering my post.

    However, I don't understand this portion.

    "1 that runs displays when the movie starts..to show howmuch of the main movie is being loaded.."

    Hopefully I can do 1 preloader to load all my mcs and that the progress bar will reflect the loading of the total size of the main mc and the external mcs. For example, my banner.swf = 50kb, menu.swf=25kb, content.swf=500kb, intro.swf=200kb. I have checked and asked around and read that I can use arrays and moviecliploader to load them one by one. But if I were to load them one by one, my drawn preloader that will display the progress by revealing the logo, will be repeated a number of times based on the number of mcs that I be loading. Can I have it to gathered all the size and then load them and do the progress animation once only?

    does the moviecliploader have a function of doing so or I got to do it manually by getting the size of the all the mcs, add them up, then let them be the total size, and use bytesloaded divided by this total size and reflect it in my progress bar? You think is possible?

    thanks.

  2. #2
    Flasher
    Join Date
    Jun 2005
    Posts
    1,365
    Quote Originally Posted by xfiles_wolvie
    Hi whispers,

    thanks for answering my post.

    However, I don't understand this portion.

    "1 that runs displays when the movie starts..to show howmuch of the main movie is being loaded.."

    Hopefully I can do 1 preloader to load all my mcs and that the progress bar will reflect the loading of the total size of the main mc and the external mcs. For example, my banner.swf = 50kb, menu.swf=25kb, content.swf=500kb, intro.swf=200kb. I have checked and asked around and read that I can use arrays and moviecliploader to load them one by one. But if I were to load them one by one, my drawn preloader that will display the progress by revealing the logo, will be repeated a number of times based on the number of mcs that I be loading. Can I have it to gathered all the size and then load them and do the progress animation once only?

    does the moviecliploader have a function of doing so or I got to do it manually by getting the size of the all the mcs, add them up, then let them be the total size, and use bytesloaded divided by this total size and reflect it in my progress bar? You think is possible?

    thanks.
    Basically, your answer is this:
    If you want to load them all at once, that defeats the purpose of loading external swfs, and you might as well just put them all in the main movie as MC's.

    If you want to reduce loading time, and only load things when called upon, I would say put the home page, menu, etc. in the main movie, and then put the rest of the pages in external swfs and use moviecliploader for those.

    Hope that helps,
    Sportzguy933

  3. #3
    Junior Member
    Join Date
    Oct 2007
    Posts
    24
    Hi whispers and Sportsguy,

    thanks for answering my post. both of you are so correct. Nvr tot of it.

    I will go search the multiloader class as mentioned by whispers. I will also consider sportsguy suggestion.

    thanks all.

  4. #4
    Flasher
    Join Date
    Jun 2005
    Posts
    1,365
    Sounds good. Both are the same suggestion really. You just have to remember that if you want to load your movie separately, loading part of your movie, and then the next part right in a row is the same as loading them all at once. You might as well same some time and work for yourself and use the preloader format from this tutorial. If you would like to have a homepage and menu loaded first, and then load the rest of the pages on-demand, you might as well use the format from this tutorial for the homepage, menu and whatever else you want to have right away, and then use movieclip loader (like Whispers suggested) for the other pages.

    Hope that helps,
    Sportzguy933

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center