You are not logged in.

1

Thursday, October 16th 2014, 11:57pm

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

2

Saturday, October 18th 2014, 5:25pm

Hi,

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

e.g.

Source code

1
2
3
4
5
6
krpano.set("events.onxmlcomplete", function():void
{
  krpano.set('view.limitview','range');
  krpano.set('view.hlookatmin',-90);
  krpano.set('view.hlookatmax',90);
});


Best regards,
Klaus