this is from Ceeby's Bungalow tour I have seen many of you others use this as well. http://www.circutour.com/bungalow/ I have my infomation box drop down onstart just like his tour however I cannot find a way to disable the onstart after its first load. if i leave my starting pano and come back it onstarts again. I just want it to load the first time and then disable it until it is called on by my information icon. Ceeby's tour runs the way I want mine to but I cannot see his code. Any help anyone? I almost have my first professional tour complete and this is holding me up.
how to do this ...
-
-
Hi,
which "onstart" do you want to disable?
1. have you defined a onstart on every pano xml (<krpano onstart="...">) and don't want to execute it?
or
2. do you mean the "onstart" parameter of the loadpano() action?
for the 1. type:
when you load a other xml, which has "onstart" attribute, this "onstart" will be
overwritten when you add calls as 4. parameter OR after the loadpano() call,e.g. - here a action is called after loadpano():
this suppresses the onstart of the nextpano.xml,
or type 2 - when you have already loadpano calls in this format:
Code<action name="combobox:Front Deck"> loadpano(front.xml,...); wait(blend); lookto(...);" </action>
and want to remove the calls after loadpano(),
there are more possiblities:
e.g. split this into 2 actions, and "change" the "content" of the first
action after the first call:Code
Alles anzeigen<action name="combobox:Front Deck"> action(front_deck_load); action(front_deck_onstart); </action> <action name="front_deck_load"> set(action[combobox:Front Deck].content, action(front_deck_load) ); loadpano(front.xml,...); wait(BLEND); </action> <action name="front_deck_onstart"> lookto(...); lookto(...); </action>
in the "front_deck_load" action the "combobox:Front Deck" action
was changed to only "action(front_deck_load)", that means on the next
call of "combobox:Front Deck" only the loading code will be executed,I hope this was understandable, while witting it down yet,
it sounds a little bit confusingbest regards,
Klaus -
which "onstart" do you want to disable?
1. have you defined a onstart on every pano xml (<krpano onstart="...">) and don't want to execute it?
this is what I was using. Yes that makes sense I have been able to stop the onstart with these directions. Thank You very much Klaus.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!