--- In flexcoders@yahoogroups.com, "b0b0bb0b" <[EMAIL PROTECTED]> 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 flexcoders@yahoogroups.com, "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
Software development tool | Software development | Software development services |
Home design software | Software development company |
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___