If you know up front how many "boxes" you are going to open... and the names of each... then VN2009 has it correct. For each box, create an action that closes it...
THEN... if you are setting up a "master - close all" button somewhere... then include each of those single actions within it.
NOTE - nomenclature / syntax / format is NOT correct... just a quick illustration of the concept.
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<action name="close_box_1">
...
...
</action>
<action name="close_box_2">
...
...
</action>
<action name="close_box_3">
...
...
</action>
<action name="close_box_n">
...
...
</action>
<action name="close_all_boxes">
action(close_box_1);
action(close_box_2);
action(close_box_3);
...
action(close_box_n);
</action>
|
You could further simplify the code by using a "generic" action... and passing a parameter (%#) through to it... see
http://www.krpano.com/docu/xml/#action
May be best to set it up the long way at first and then work on simplifying it...