3 Replies Latest reply: Feb 22, 2009 9:34 PM by kglad RSS

    Preloader issue

    purple_am Community Member
      Hey guys,

      This preloader thing will turn me mad.
      A few days back it was running all fine. Now its giving me a headache.

      Now the issue is like that
      The first image preloads fine,
      When the second starts the preloader gets jammed at 25 or 30 % for sometime then goes to the next image without showing the second image. The third and fourth images preloads ok. Then the same issue on the fifth image. Its preloading 5 images in all.

      Well a bit confusing i suppose. Check the example HERE

      Below the code am using :


        • 1. Re: Preloader issue
          kglad CommunityMVP
          1. don't call resizeTemp() repeatedly. once is enough after your onLoadInit() is called.

          2. don't nest resizeTemp() inside your listener.

          3. and most importantly, use setTimeout() instead of setInteral() or clear that interval as soon as loadRandomBitmap is called.
          • 2. Re: Preloader issue
            purple_am Community Member
            I follwed steps 1 and 3. Its working ....

            If i take the resizeTemp() outside of the listener it does not work.

            Thanks

            By the way will you be willing to give some training. If yes we can discuss this privately. ;)
            • 3. Re: Preloader issue
              kglad CommunityMVP
              you're welcome.

              and yes, you can send me a prvt message or send a brief email via my website and we can go from there.