You are not logged in.

1

Sunday, June 28th 2009, 2:25am

How to use 2 simpleviewer in one scene..

Hi All...
I want to use two simpleviewer in one scene.. But it doesnt work. Is there any way to do ıt with simple viewer... Or do you know other viewers that ı can do it ..

Thanks....

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

2

Sunday, June 28th 2009, 3:16am

I haven't tried it... so I'm not sure of the problems it would bring up.

Can you explain more about how you are trying to use the two simpleviewers?

Two separate plugins... each going to a different xml file?
One plugin... and switching the url to point to different xml files?

I haven't seen anybody mention using two in the same scene.

Tuur

Sage

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

3

Sunday, June 28th 2009, 11:45am

http://www.krpano.com/forum/wbb/index.ph…ID=223&pageNo=2


that could be a way that milotimbol does... i tried my own way and that will not work because of the simple viewer think it's the only one and it doesn't let it self remove or so...

i tried a couple of months ago and this will not work..

Cheers

tuur *thumbsup*

4

Monday, June 29th 2009, 1:02pm

I want to use two simpleviewer in one scene.. But it doesnt work. Is there any way to do ıt with simple viewer... Or do you know other viewers that ı can do it ..
Hi,

the simpleviewer can be only used once inside krpano,
this is unfortunately a limitation of the simpleviewer itself,
there is currently no way to change that,

best regards,
Klaus

5

Wednesday, March 31st 2010, 2:02am

Hey, I have try the solution (sorry for my poor English) for that, you must use Simpleviewer pro 2.0 (not the free version and not the v 1.8, JUST the 2.0 pro (read in AS3 and usable with an xml (such krpano)( (you must pay 45$) ans you load simpleviewer.swf in other swf, with simply typical AS3 code, type :

Quoted

var svAPI:Object; //svAPI is the object to call API methods on
var svLoader:Loader = new Loader();
addChild(svLoader);
svLoader.contentLoaderInfo.addEventListener(Event.INIT, onViewerInit);
svLoader.load(new URLRequest("simpleviewer.swf"));

/**
* Fired when preloader is available
* Can set gallery flashvars at this point
*/
function onViewerInit(e:Event):void{
Object(svLoader.content).addEventListener("svComplete", onGalleryLoaded);
var options:Object = Object(svLoader.content).embedOptions;
options.galleryURL = "gallery.xml";
}

/**
* Fired when gallery has completely loaded. API is now available.
*/
function onGalleryLoaded(e:Event):void{
svAPI = Object(svLoader.content).api;
svAPI.setSize(640,480);
}
and you load the new swf in krpano as any plugin :

Quoted

<plugin name="gallery" align="center" height="40%" width="40%" url="loadersimpleviewer.swf" visible="true" zorder="7"/>
<plugin name="gallery2" align="center" height="40%" width="40%" url="loadersimpleviewer2.swf" visible="true" zorder="7"/>
I post exemple her :

Download loadersimpleviewer1.swf for free on uploading.com et
Download loadersimpleviewer2.swf for free on uploading.com

(loader must be in the folder of simpleviwer.swf and gallery1.xml and gallery2.xml)

But I have an little problem, the picture are not align with the thumbnail (if one codeur are in the place, please help)

thanks for all !

This post has been edited 1 times, last edit by "groumch" (Mar 31st 2010, 5:19pm)


VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

6

Wednesday, March 31st 2010, 6:11pm

i just use a thickbox and some java script to pop the simple viewers on top. some tours i have 4 simpleviewer galleries using this method.

7

Friday, February 3rd 2012, 1:37am

How to use several simpleviewer in one scene ?

I don't succeed in using more than 1 simpleviewer gallery on my tour...
Is there a way to create different viewers or something else ??