Hi,
here an example implementation:
the menu texts where stored in a custom <menu> tag:
|
Source code
|
1
2
3
4
5
|
<menu>
<item name="m1" caption="Varanda Foto 1" />
<item name="m2" caption="Piscina Foto 2" />
...
</menu>
|
then the used to fill the combobox:
|
Source code
|
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
28
29
|
<plugin name="cb" url="plugins/combobox/combobox.swf"
onloaded="fillcombobox();"
/>
<action name="fillcombobox">
removeall();
additems();
</action>
<action name="additems">
if(%1 != NEXT, set(i,0));
additem(get(menu.item[get(i)].caption), movetoN(get(i)); );
inc(i);
if(i LT menu.item.count, additems(NEXT));
</action>
<action name="movetoN">
action(startloading);
loadpano(%1.xml,null,KEEPALL,BLEND(2));
lookat(-18,0,90);
wait(blend);
oninterrupt(action(lookinterrupt));
action(loadingdone);
set(plugin[titre].html,);
set(plugin[text].html,);
set(plugin[foto_box].url,%SWFPATH%/img/img%1.png);
txtadd(plugin[titre].html, 'data:tt%1');
txtadd(plugin[text].html, 'data:ttx%1');
</action>
|
best regards,
Klaus