Sie sind nicht angemeldet.

1

Dienstag, 29. November 2011, 01:05

Combobox problem

I have two ways to change pano: by the combobox and by the map.

When clicking on the hotspot on the map, the combobox field doesn't update.
I've been trying for two days and still didn't get around it.

Here you can have a look:

http://www.marcolanciani.com/test-villaflora/


This is my last try:

set(plugin[combobox].caption,8572);

Hope you might help.

Regards,
Marco

2

Dienstag, 29. November 2011, 09:52

Hi,

put this to beginning of every xml / scene:

<events onloadcomplete="plugin[combobox].selectitem('8572');"/>


Now everytime, no matter how you get to that xml / scene it will always set the combobox. Hope this helps! *smile*

Protip for the tour. Never use red dots over green. As colorblind i didn't see any spots on the map until i was showed there are spots.

Regards,
Jesse Passoja
Passoja design
www.passojadesign.com

3

Dienstag, 29. November 2011, 12:26

Hi,

e.g. use:

Quellcode

1
<events name="firstsceneonly" onloadcomplete="plugin[combobox].selectitem('8572');"/>


and put that code into the <scene> element,
otherwise the event will be called every time when a scene was loaded (note - global events keep set)

best regards,
Klaus

4

Dienstag, 29. November 2011, 13:20

Thanks Jesse and Klaus.

Also I've noticed that it works even if the event's name is the same for each pano.xml/scene.
Is this normal?

Regards,
Marco

5

Dienstag, 29. November 2011, 16:17

Jesse, thanks for the colorblind tip.

There are other color combinations to avoid, or only red on green?

Regards,
Marco

6

Dienstag, 29. November 2011, 17:17

Hello,

I have the same problem. My panorama is with hotspots and combobox:
http://www.print-o-tec.de/panorama_spo/index.html

When I change the room by clicking the hotspot, the combobox doesnt change.
It tried to include the code, but it didnt work.

These are parts of my code:

-----------------

<plugin name="box" url="%SWFPATH%/plugins/combobox.swf" alturl="plugins/combobox.js"
preload="true"
keep="true"
align="righttop" x="15" y="15" width="180"
blendmode="layer"
rowcount="6"
onclick="trace(combobox clicked);"
/>


<action name="start">
plugin[box].addIdItem(1, 'EG: Küche', loadscene(eg_kueche,null,MERGE,BLEND(1.5)); );
plugin[box].addIdItem(2, 'OG1: Flur', loadscene(og1_flur,null,MERGE,BLEND(1.5)); );
plugin[box].addIdItem(3, 'OG1: Wohnzimmer', loadscene(og1_wohnzimmer,null,MERGE,BLEND(1.5)); );
plugin[box].addIdItem(4, 'OG1: Badezimmer', loadscene(og1_badezimmer,null,MERGE,BLEND(1.5)); );
plugin[box].addIdItem(5, 'OG1: Kinderzimmer', loadscene(og1_kinderzimmer,null,MERGE,BLEND(1.5)); );
plugin[box].addIdItem(6, 'OG2: Schlafzimmer', loadscene(og2_schlafzimmer,null,MERGE,BLEND(1.5)); );

<!-- load 1. scene on start -->
loadscene(eg_kueche,null,MERGE,BLEND(1.5));
...

-----------------

And a scene for example:


<!-- SCENE OG 1 Flur -->


<scene name="og1_flur" >
<events onloadcomplete="plugin[box].selectitem('2');"/>

<preview url="Flur_fertig.tiles/preview.jpg" />

...

-----------------

What am I doing wrong?
Can You help me?

Regards,
Josh

Ähnliche Themen