loadImage() by a as3 interface doesnt work

  • hello everybody :)

    I want load a image.jpg instead of a pano.

    Maybe i dont all understood but if yes :

    -krpanoloader is a loader
    - the api say i can use loadImage() for call image file
    - the way is :

    Code
    krpano.call("loadImage(my_image.jpg);");

    and :
    like in as3 krpanoloader unload the pano files for load my image // but i know unload pano is not still possible

    non ?

    I dont be able to load an image files in the krpanoloader !!! grrrr

    Some help please ?

    Thanks a lot :)

  • Hi,

    there is no loadimage() action!

    if you mean the loadimage function from the krpano interface object:
    https://krpano.com/docu/plugininterface/#loadImage

    then this is only for loading normal image files for usage inside as3 (not related to the pano images in any way)
    it could be used this way:

    Code
    krpano.loadImage("image.jpg", loaddone_callback);
    ...
    function loaddone_callback(ld:Object):void
    {
      var image:Loader = ld.loader;
      ...
    }


    But it you want to load a new spherical images (but note - the direct use of spherical images is not recommend due rendering quality issues) - you could use the loadpano() action and use 'null' as xml and set the path to the pano image - e.g.

    Code
    krpano.call("loadpano(null,sphere=image.jpg,MERGE,BLEND(1));");

    see also here:
    https://krpano.com/docu/quickref/#shortcutvars

    Best regards,
    Klaus

Participate now!

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