Hi all!
Firstly excuse my English wich is not perfect !
I'm trying to add the combobox in interaction with the google maps plugin.
Here is my code to simple, in first case I had this:
Code
<spot name="palais_des_congres" lat="43.499204" lng="-1.542715"
onhover="showtext(Palais des congrès,hoverstyle);"
onclick="action(load_palais_des_congres);"
heading="190"
active="true"
/>
<spot name="digue" lat="43.500371" lng="-1.544051"
onhover="showtext(Digue du Surf Club,hoverstyle);"
onclick="action(load_digue);"
heading="90"
/>
</plugin>
<!-- load and update map actions -->
<action name="load_palais_des_congres">
plugin[maps].activatespot(palais_des_congres);
plugin[maps].pantospot(palais_des_congres);
loadpano('palais_des_congres.xml',null,MERGE,BLEND(1));
</action>
<action name="load_digue">
plugin[maps].activatespot(digue);
plugin[maps].pantospot(digue);
loadpano('../digue/digue.xml',null,MERGE,BLEND(1));
</action>
<plugin name="combobox"
url="../plugins/combobox.swf"
align="lefttop"
preload="true"
x="10"
y="10"
width="150"
keep="true"
/>
<action name="combobox:Palais Des Congrès">
plugin[maps].activatespot(palais_des_congres);
plugin[maps].pantospot(palais_des_congres);
loadpano(../palais_des_congres/palais_des_congres.xml,null,MERGE,BLEND(1));
</action>
<action name="combobox:Digue du Surf Club">
plugin[maps].activatespot(digue);
plugin[maps].pantospot(digue);
loadpano(../digue/digue.xml,null,MERGE,BLEND(1));
</action>
Alles anzeigen
My problem here was to update the combobox item when clicking on the map spot, so I tried this:
Code
<action name="load_palais_des_congres">
plugin[maps].activatespot(palais_des_congres);
plugin[maps].pantospot(palais_des_congres);
loadpano('palais_des_congres.xml',null,MERGE,BLEND(1));
plugin[combobox].selectitem(combobox:Palais Des Congrès);
</action>
<action name="load_digue">
plugin[maps].activatespot(digue);
plugin[maps].pantospot(digue);
loadpano('../digue/digue.xml',null,MERGE,BLEND(1));
plugin[combobox].selectitem(combobox:Digue du Surf Club);
</action>
Alles anzeigen
But doesn't work !!
If I try using the manual way with items, like this:
Code
<action name="setupitems">
additem(Pano 1, action(pano1) );
additem(Pano 2, action(pano2) );
</action>
<action name="pano1">
plugin[combobox].selectitem(Pano 1);
plugin[maps].activatespot(palais_des_congres);
plugin[maps].pantospot(palais_des_congres);
loadpano(../palais_des_congres/palais_des_congres.xml,null,MERGE,BLEND(1));
</action>
<action name="pano2">
plugin[combobox].selectitem(Pano 2);
plugin[maps].activatespot(digue);
plugin[maps].pantospot(digue);
loadpano(../digue/digue.xml,null,MERGE,BLEND(1));
</action>
Alles anzeigen
Nothing appears in the combobox (no item names) !
I looked around on the forum but can't understand why it doesn't work... I'm sure that's probably a mistake while coding but I can't find where or why!!
if Someone has an idea it would be welcomed !!
Thank all of you in advance.
Best regards