You are not logged in.

lilxxl

Beginner

  • "lilxxl" started this thread

Posts: 9

Location: by, minsk

  • Send private message

1

Monday, July 16th 2012, 9:04am

How to make plugin loaded once when tour starts...

Hi.
Help, pls, I cant find a right way to do this myself.

I have a tour. When it starts, it shows one intro image, wait for 4 seconds and then dissapears.
For example:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<plugin name="upper" url="_____.png" align="center" 
.....
onloaded="tween(plugin[upper].y, 0, 5)" zorder="2" 
onclick="upper1();......." /> 


<action name="upper1">
tween(plugin[upper].y, 350, 1);
tween(plugin[upper].alpha, 0, 1);
set(plugin[upper].enabled, false, removeplugin(upper)););
</action>


<events onloadcomplete="delayedcall(4, upper1() );....." />


When I put this code into the first scene - it works, but of course it load every time, when the first scene is loaded.
When I put it just after <krpano version="1.0.8.14"> and before scenes - in doesnt work, even if onloaded or onstart in defined in <krpano version="1.0.8.14">... *wacko* Maybe there's something need to be added to make it work?

So the question is - how to make this plugin LOAD ONLY ONCE in first scene / or when tour starts???? *confused*

Thanx *rolleyes*
arhivarius.org

lilxxl

Beginner

  • "lilxxl" started this thread

Posts: 9

Location: by, minsk

  • Send private message

2

Monday, July 16th 2012, 9:49am

Oh...
Sorry, sorry, sorry - keep=true helped *thumbup*
arhivarius.org