Thanks for the help, I've found out what the problem was, and it wasn't a flex problem :) Somehow during the upload of my pictures, some of them do not appear to have been uploaded correctly. the properties and files size appear to be the same as on my local machine but they are not. So I just need to identify all of the pictures that have been uploaded incorrectly. (little bit unsure of best way to do this as I've uploaded about 1000!).
When I get some time going to try and write a loading bar for an image and if the data for the picture takes too long to load then stop it from loading so that the pictures that are correct can still load. hopefully that way I'll be able to work out which pictures are at fault and replace them. thanks. --- In [email protected], "Bela Hajzer" <[EMAIL PROTECTED]> wrote: > > > > --- In [email protected], "b0b0bb0b" <ksutherland@> wrote: > > > > Cheers I had a look at SWFLoader, but it doesn't do anything > > differently. I use a Image tag and set the source of the image at > > run time. The actual source comes from an XML document which I use > > for searching. I start of with a large XML document that contains > > everything (this does not load any images), I then search that XML > > for keywords and similiar and create a new smaller XML document. This > > new XML documnet then creates the gallery, which gets loaded. > > > > When the app loads you get a loading bar, is there any way to get a > > loading bar for each image? this might help find out whats happening. > > > > Thanks again. > > > > --- In [email protected], "Bela Hajzer" Bela.Hajzer@ > > wrote: > > > > > -- > > > > > > Hi, > > > > > > Looks like you've got some resource problem. > > > > > > My first guess is that you should load your jpeg dynamically using > > > SWFLoader controll instead of loading all > > > > > > at once in the PhotoService as. > > > > > > I am going to give a try myself in a few days time. > > > > > > Bye Bela > > > > > > Hi again, > > May I suggest to monitor this image loading, just put the following into > your ThumbnailView.mxml: > > * change="startTime(event)" //put it into photoList, your > HorizontalList > * complete="endTime(event)" //put it into photoImage, your > currently selected image > * <mx:TextArea id="ta1"/> //put it into e.x. your VBox, and the > following into <mx:Script></mx:Script> > * private function startTime(e:Event):void { > sTime = getTimer(); > } > private function endTime(e:Event):void { > var eTime:Number=getTimer(); > var totalTime:Number=eTime - sTime; > ta1.text = "totalTime: " + totalTime; > totalTime=0; > } > > So whenever you click any thumbnail you gonna get the elapsed time of > the currently selected image's loading. > > Bottleneck can occur at different level, just try to isolate it. > > For the first time you get NaN in your ta1 TextArea, just ignore it. > > ps: In the Build and Deploy pdf you can find two chapters about > optimization. > > Cheers Bela > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

