Hi Tuur,
Thanks for your help.
Here is my code from the XML file :
<krpano version="1.17.1" title="" onstart="startup();" tourlink="http://sidarchikov.com" >
<include url="swfaddress.xml"/>
<action name="startup">
<!--delayedcall(0.1, add_scenes_to_swfaddress());-->
if(startscene === null, copy(startscene,scene[0].name));loadscene(get(startscene), null, MERGE);
</action>
<!-- set social plugin -->
<plugin name="email_button"
url="images/email.png"
align="topright"
x="10"
y="10"
altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));"
onhover="showtext(Share this view via e-mail);"
onclick="share_via_email();"
/>
<plugin name="email_button"
url="images/email.png"
align="topright"
x="10"
y="10"
altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));"
onhover="showtext(Share this view via e-mail);"
onclick="share_via_email();"
/>
<plugin name="pinterest_button"
url="images/pinterest.png"
align="topright"
x="50"
y="10"
altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));"
onhover="showtext(Share this view on Pinterest);"
onclick="share_on_pinterest();"
/>
<plugin name="twitter_button"
url="images/twitter.png"
align="topright"
x="90"
y="10"
altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));"
onhover="showtext(Share this view on Twitter);"
onclick="share_on_twitter();"
/>
<plugin name="googleplus_button"
url="images/googleplus.png"
align="topright"
x="130"
y="10"
altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));"
onhover="showtext(Share this view on Google+);"
onclick="share_on_googleplus();"
/>
<plugin name="facebook_button"
url="images/facebook.png"
align="topright"
x="170"
y="10"
altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));"
onhover="showtext(Share this view on Facebook);"
onclick="share_on_facebook();"
/>
The problem is here :
<action name="startup">
<!--delayedcall(0.1, add_scenes_to_swfaddress());-->
if(startscene === null, copy(startscene,scene[0].name));loadscene(get(startscene), null, MERGE);
</action>
I need to add " if(startscene === null, copy(startscene,scene[0].name));loadscene(get(startscene), null, MERGE);" into "startup" but I don't know how to add "delayedcall(0.1, add_scenes_to_swfaddress());"
Thanks for your help !