Limit Horizontal View

  • Hello,

    I'm hoping someone can help me. I'm new to krpano and am trying to limit the range on horizontal view from left to right. I'm using flash and have used the MAKE PANO (SINGLE-SWF) droplet to generate my pano. I'm using this because I need to embed the pano into an existing flash application. The pano loads into the application okay, but I can't for some reason limit the view horizontally.

    Below is my code, am I missing something?

    function krpano_load_complete(e:Event):void {

    krpanoObject = (e.target.content as Object);
    krpanoObject.embeddedstartup(stage, krpano_ready);
    }

    // ----------------------------------------------------------------

    function krpano_ready(krpanointerface:Object):void {

    krpanoMC.name = 'krpanomc';
    krpano = krpanointerface;

    krpano.set('view.limitview','range');
    krpano.set('view.hlookatmin',-90);
    krpano.set('view.hlookatmax',90);


    }

    Regards,
    Mark Jeffery

  • Hi,

    you would need to set the limits 'after' the pano xml was loaded,

    e.g.

    Code
    krpano.set("events.onxmlcomplete", function():void
    {
      krpano.set('view.limitview','range');
      krpano.set('view.hlookatmin',-90);
      krpano.set('view.hlookatmax',90);
    });

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!