You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

milotimbol

Intermediate

  • "milotimbol" started this thread

Posts: 220

Location: Philippines

Occupation: Software Developer

  • Send private message

1

Sunday, October 24th 2010, 12:31pm

Loading a new panorama doesnt clear plugins

I sent this to Klaus but he did not answer. So I'm posting it here.

I have 2 xmls that have different themes. I would usually use just 1 theme and use scenes instead of separate xmls but for this app I really need to do it this way. Anyway, I have an xml with orange theme (fullscreen, auto-rotate, hide-controls) and I have another xml with white theme (same buttons) when I move from 1 pano to another using loadpano() the buttons dont disappear. For example when I move from the orange pano theme to the white pano theme, the orange buttons are left on the player and the white also appears. I already tried moving the common code inside scenes like this

Source code

1
<scene name="scene-1a"><include url="common.xml" /><view hlookat="0" vlookat="0" maxpixelzoom="1.0" fov="90" fovmin="20" fovmax="90" /><display details="22" />



before the include was outside scene. But the result is the same. How do I solve this? Basically I want to move from on xml to another without retaining the theme of the prevous xml.

Thanks,
Milo

Posts: 91

Location: Norway

Occupation: Product Specialist @ www.fuglefjellet.no

  • Send private message

2

Sunday, October 24th 2010, 1:04pm

Theres really not enough code posted to debug, but have you checked your keep settings ?

http://www.krpano.com/docu/xml/#plugin

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

3

Sunday, October 24th 2010, 6:51pm

why is this in the action script forum?

yup not enough code to debug. could be as simple as keep="false" nothing can transfer then, however you will need the same plugins on each xml which will cause them to flicker when changing scenes as they are reloaded.

your other option is to have the same plugins on both with different target urls. if the plugins are called the same thing use the MERGE command and the identical names should be over written by the new plugins with the same name i use that in a few of my tours.

otherwise just use the same set if plugins for every scene and create actions to change the target urls. they might not be hcanging for you due to some other action running at the same time. without more code we cannot help. if that is the case jsut try moving your action around that would change the plugins urls to the new colors. try onpreviewcomplete or on loadcomplete of the target.

milotimbol

Intermediate

  • "milotimbol" started this thread

Posts: 220

Location: Philippines

Occupation: Software Developer

  • Send private message

4

Thursday, October 28th 2010, 12:52pm

You guys are right it should be keep="false". I've forgotten about this. I was already banging my head on the wall .haha. Thanks for the help! *thumbsup*

Similar threads