Hi
I am using the following from the examples to provide an intro image. The VT is a three scene and the intro image code is contained within one of the scenes. Obviously when you go back to the first scene within the VT the intro image reloads which is no what I want.
<events name="panoevents"
onloadcomplete="delayedcall(introimage, 4.0, if(layer[introimage], hideintroimage() ); ); set(events[panoevents].onloadcomplete,null);"
onremovepano="stopdelayedcall(introimage);"
/>
<layer name="introimage"
url="xxxxxxxxxx.jpg"
align="center"
onloaded="set(alpha,0); tween(alpha,1.0);"
onclick="hideintroimage();"
/>
<action name="hideintroimage">
if(layer[introimage].enabled,
set(layer[introimage].enabled,false);
tween(layer[introimage].alpha, 0.0, 0.5, default, removelayer(introimage));
);
</action>
I only want the into image once and enquire the best way to achieve this please. I wondered whether the initiation would be best placed within the startup call here
<action name="startup">
if(startscene === null, copy(startscene,scene[0].name));
loadscene(get(startscene), null, MERGE);
</action>
But my knowledge is up the what is needed to achieve what is quite a simple request!!
Many thanks for your help