• 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,

  • Hi,

    e.g. use:

    Code
    <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

  • 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

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!