Hi, On 6/6/06, João Saleiro <[EMAIL PROTECTED]> wrote: > If you try to load one image at a time, overall download time is a bit > smaller than if you try loading them all at once, if you are talking on > hundreds of photos. I don't have an explanation, but when I have time to > create the referred class, maybe I'll found out why.
This can be explained using simple mathematics. time = size/speed where time is the downoad time, size is the total bytes to download, and speed is the download speed. Let's assume speed is more or less constant. If size is small (one photo at a time), time is small. If size is large (hundreds of photos), time is large. > João Saleiro > > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of [EMAIL PROTECTED] > Sent: terça-feira, 6 de Junho de 2006 3:27 > To: [email protected] > Subject: Re: [osflash] Important questions for future robust > web-applications development > > > MovieClipLoader is sh*t > > Agreed. Image loading in Flash in general is something that gave me a lot of > trouble. I built this photo kiosk (daypix.com) for the Flash 6 player > without MovieClipLoader. It resells holiday photos. The vendor doesn't know > anything about the people in the photo, except the day and tour they where > on. So any given thumbnail display has to preload load hundreds of pix for > the client to page through quickly. If they get bored waiting for other > peoples photos to load before they can find their own then the sale is lost. > > I found the flash player a _lot_ slower than simply loading the pix into the > browser with HTML and I had to do a lot of messing around to offset it, so I > too would be really interested in hearing about best practice in this area. > > > I know there are solutions > > Please share the ones you have in mind. > > > if you remove the movieclip from the stage before the resource is > > loaded (and that happens a lot, especially if you have a nervous user > > using your application :o) ) the Queue loader crashes (resource is > > loaded, but onLoadInit is not called and no error is thrown). > > How about checking if the image has loaded before trying to delete it. If it > hasn't loaded hide it offstage ({_x:-1000, _y:-1000, _alpha:0}) and set a > deleteMe flag that onLoad will check. > > I never figured out the optimal number of images to load simultaneously, my > load queue default was 5. Trying to load a lot at once didn't seem to help > speed wise and like you say the load can't be stop once it's requested. > > Tony > > > _______________________________________________ > osflash mailing list > [email protected] > http://osflash.org/mailman/listinfo/osflash_osflash.org > > > _______________________________________________ > osflash mailing list > [email protected] > http://osflash.org/mailman/listinfo/osflash_osflash.org > -- Ray Chuan _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
