Hi, I'm making a virtual tour with 7 panos.
Each pano has its own xml file and on each pano a textfield is shown by tweening its position :
this code is in the skin.xml file included in each xml pano file :
<action name="show_infos">
tween(plugin[intro].y,0,2,easeOutQuad);
delayedcall(10,close_infos());
</action>
<action name="close_infos">
tween(plugin[intro].y,-500,2,easeOutQuad);
</action>
<plugin name="intro" url="textfield.swf"
keep="false"
origin="lefttop"
width="407"
y="-500"
background="true"
bordercolor="0xffffff"
roundedge="50"
autosize="center"
html="data:introhtml"
css="data:introcss"
selectable="false"
zorder="1"
onclick="close_infos()"
children="false"
onhover="showtext(Masquer les infos,textfieldstyle);"
/>
Display More
and in each xml pano file I call the show_infos action and set the introhtml data :
<krpano version="1.0.8.14" onstart="show_infos">
<data name="introhtml">
Bla bla bla pano 1
</data>
the problem is that is I load a new pano (so a new xml file calling show_infos onstart) before the delayedcall of the first one is finished the delayedcall value stays for the second one and the close_infos is called then.
Am I clear ? for exemple I start the tour with pano1.xml, it calls "show_infos()" and after 10 seconds calls "close_infos()", is I load pano2 7 seconds after the first one the "close_infos()" is called 3 seconds after pano2 is loaded instead of 10 seconds...
Is there a solution ???
Many many thanx !