You are not logged in.

1

Sunday, July 7th 2013, 5:12am

Intro Image wont auto hide

I am using this code (found on the forum) for my intro image, it works and closes on click but does not close after 5 seconds if someone can see whats wrong with the code its driving me nuts!



<plugin name="introimage" keep="true" url="%SWFPATH%/skin/introimage.png" align="center" onclick="hideintroimage();" onloaded="autohideintroimage();"/>
<action name="hideintroimage">
if(plugin[introimage].enabled, set(plugin[introimage].enabled,false);tween(plugin[introimage].alpha, 0.0, 0.5, default, removeplugin(introimage)););
</action>
<action name="autohideintroimage">
if(plugin[data].introImageHasBeenPlayed==false, set(plugin[introimage].alpha,0); tween(plugin[introimage].alpha,1.0,WAIT);
delayedcall(5, hideintroimage() );
set(plugin[data].introImageHasBeenPlayed,true););
</action>


I think im missing introImageHasBeenPlayed but i have no idea what that should be


this code is in my skin btw

This post has been edited 1 times, last edit by "jeffd" (Jul 7th 2013, 9:10am)


Taurus

Trainee

Posts: 140

Location: Belarus

Occupation: photographer & virtual tour developer

  • Send private message

2

Sunday, July 7th 2013, 11:14am

Hi,
so try

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<plugin name="introimage" HasBeenPlayed="false" keep="true" 
url="%SWFPATH%/skin/introimage.png" align="center" 
onclick="hideintroimage();" onloaded="autohideintroimage();"/>

<action name="hideintroimage">
if(plugin[introimage].enabled,	
set(plugin[introimage].enabled,false);tween(plugin[introimage].alpha, 
0.0, 0.5, default, removeplugin(introimage)););
</action>

<action name="autohideintroimage">
if(plugin[introimage].HasBeenPlayed == false, 
     	set(plugin[introimage].alpha,0); tween(plugin[introimage].alpha,1.0,WAIT); delayedcall(5, hideintroimage()); set(plugin[introimage].HasBeenPlayed,true);
    );

</action>


Serge
--
in order to comply the word with the affairs, you need to keep quiet and do nothing!

Virtual tour Gomel
Virtual tour
Virtual tour
Elbrus
...

Windows 10x64 & krpano 1.20

3

Sunday, July 7th 2013, 10:36pm

awesome thanks a lot!

Similar threads