You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, December 30th 2009, 12:01pm

krpano.get("progress.filestotal") & krpano.get("progress.filesneeded") send me 0 all the time

Hello, i'm working on a loading bar plugin but theses two line send me 0 all the time.


Source code

1
2
var filestotal:int = int(krpano.get("progress.filestotal"));
var filesneeded:int = int(krpano.get("progress.filesneeded"));


i'm work with krpano 1.0.8 beta 9 DEV (build 2009-09-14)

it's a bug ?

2

Thursday, December 31st 2009, 12:32am

Hi,

right, in the 1.0.8 version these parameters are currently not set,

the reason was a improved loading algorithm,
it works now a bit different, there is no "filesneeded" anymore,

at the moment only these variables can be used:
progress.progress (0.0 ... 1.0)
progress.bytesloaded
progress.bytestotal
progress.isloading
(true or false)
progress.loaddone (true or false)
progress.previewdone (true or false)

best regards,
Klaus

3

Thursday, December 31st 2009, 10:59am

Very good new !

Hello,
Thank a lot.

This new property is very efficient for manage own progress bar.

Now it's work good.

Bravo !

4

Thursday, December 31st 2009, 11:08am

one idea

For make the difference between the progres bar ( for load time) and the wait animation ( i think for the decode time... )
Can it's possible to create a flag or a property, for us.
with this we can create own "wait animation" too.

Thanks

5

Saturday, January 2nd 2010, 1:01pm

Hi,

there is no real difference between load and wait,
the default "showwait" just shows an stateless waiting animation,

the decoding of the images in flash is unfortunately done "in-time" and
not in a parallel background thread, this is the reason for the short
blocks/stops during loading,

best regards,
Klaus