5 Replies Latest reply on Mar 30, 2007 5:22 PM by kglad

    Problem with loading pics in a photo gallery

    Flamebg Level 1
      Ok.. I don't know what is the problem for this.. maybe someone with more experience bumped to this too.. and can help me out..
      I will put the link here so u can see it but before u open it, pay attention of the mess.. pictures are loaded one over another or not loaded at all.. There are 2 panels of the same pics and code, the second one loads the pics the same way as the first one right after the first one has finished loading all of the pics. But strangely the second panel with pics has absolutely no problem with positioning the pics correctly with their correct size even the first time u open it. (this comes from the swf of the pic that loads in the loader; they all load in loaders positioned by me). After the gallery has loaded the first time and u Refresh the page.. u will see the gallery works perfect. If u want to see the mess up again, just delete ur temporary internet files and refresh the page again. Here is my gallery (not finished yet):


      When I test this in flash with simulate download, all works fine except that some pics show progress of loading (I've made listeners for that) and on complete I trace it completed loading but they don't show up..

      So I can't figure out what might be causing this problem...
      As far as my logic goes.. I can tell that if in the second panel the pics load succesfully every time, this means that the problem comes only the first time they are being loaded.. for me this doesn't make any sense.. and I see as solution to make some invisiblemovie clip that will load all of my pics for the first time and then the actual visible movie clips that are visible will continue so there are no problems.
      I don't know if this will work.. it is just my thinking.
      Maybe there is some other way to fix this when they load the first time.. maybe telling the code to load it.. and reload it after that ?
      Any ideas what could be causing this problem ?
      Hope someone can explain to me..

      Thanks in advance...