work so that the bar doesn't start from 0 at every image. Any other idea?
>
> Sascha
>
>
>
>
>
> - Original Message -
> From: "Adrian Park" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list"
> Sent: Sunday, March 12, 2
,
!k
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sascha
Balkau
Sent: Sunday, March 12, 2006 3:07 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Loading several images with one progressbar?
Hi Adrian,
thanks for the idea but this approach
> thanks for the idea but this approach will not work in my case because the
> images are loaded sequencially. If one image is finished loading, my class
> starts loading the next and so on, one after one. And the amount of images
> varies (the image filenames are fetched from a XML file).
put the
ount of
images
> varies (the image filenames are fetched from a XML file).
> I'm now defining a segmentWidth by dividing the full progressbar width
by
> the amount of images that are going to be loaded. That gives me the
100%
> for
> one image on the whol bar. I just haven't
o make it
> work so that the bar doesn't start from 0 at every image. Any other idea?
>
> Sascha
>
>
>
>
>
> - Original Message -
> From: "Adrian Park" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list"
> Sent: Sunday, M
t; > for
> > one image on the whol bar. I just haven't figured out yet how to make it
> > work so that the bar doesn't start from 0 at every image. Any other
> > idea?
> >
> > Sascha
> >
> >
> >
> >
> >
> > ---
; <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list"
> Sent: Sunday, March 12, 2006 3:24 AM
> Subject: Re: [Flashcoders] Loading several images with one progressbar?
>
>
> Say you have 3 images loading, use something like this:
>
> var bytesLoaded:Numb
ading the next and so on, one after one. And the amount of
> > > images
> > > varies (the image filenames are fetched from a XML file).
> > > I'm now defining a segmentWidth by dividing the full progressbar width
> > > by
> > > the amount of images that are going
to make it work so that the bar doesn't start from 0 at every image.
Any other idea?
Sascha
- Original Message - From: "Adrian Park" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list"
Sent: Sunday, March 12, 2006 3:24 AM
Subject: Re: [Flashcoders] Loadi
L PROTECTED]>
To: "Flashcoders mailing list"
Sent: Sunday, March 12, 2006 3:24 AM
Subject: Re: [Flashcoders] Loading several images with one progressbar?
Say you have 3 images loading, use something like this:
var bytesLoaded:Number = 0;
var bytesTotal:Number = 0;
bytesLoaded += ima
CTED]>
To: "Flashcoders mailing list"
Sent: Sunday, March 12, 2006 3:24 AM
Subject: Re: [Flashcoders] Loading several images with one
progressbar?
Say you have 3 images loading, use something like this:
var bytesLoaded:Number = 0;
var bytesTotal:Number = 0;
bytesLoaded += ima
Any other idea?
Sascha
- Original Message -
From: "Adrian Park" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list"
Sent: Sunday, March 12, 2006 3:24 AM
Subject: Re: [Flashcoders] Loading several images with one progressbar?
Say you have 3 imag
Say you have 3 images loading, use something like this:
var bytesLoaded:Number = 0;
var bytesTotal:Number = 0;
bytesLoaded += image1.getBytesLoaded();
bytesTotal += image1.getBytesTotal();
bytesLoaded += image2.getBytesLoaded();
bytesTotal += image2.getBytesTotal();
bytesLoaded += image3.getBytes
Hi,
this is probably an old hat but I can't get it right. I want to display the
load progress of several images with one progress bar. How do I calculate
the percentage of the bar?
Thanks alot,
Sascha
___
Flashcoders@chattyfig.figleaf.com
To change
14 matches
Mail list logo