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.


    Code
    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 ?

  • 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

  • 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

  • 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

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!