Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

milotimbol

Fortgeschrittener

  • »milotimbol« ist der Autor dieses Themas

Beiträge: 242

Wohnort: Philippines

Beruf: Software Developer

  • Nachricht senden

1

Sonntag, 24. Oktober 2010, 12:31

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

Quellcode

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

Beiträge: 91

Wohnort: Norway

Beruf: Product Specialist @ www.fuglefjellet.no

  • Nachricht senden

2

Sonntag, 24. Oktober 2010, 13:04

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

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

3

Sonntag, 24. Oktober 2010, 18:51

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

Fortgeschrittener

  • »milotimbol« ist der Autor dieses Themas

Beiträge: 242

Wohnort: Philippines

Beruf: Software Developer

  • Nachricht senden

4

Donnerstag, 28. Oktober 2010, 12:52

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*

Ähnliche Themen