combobox plugins scene update problem

  • Is there a way to update the combo box in that scene if a scene change is made to a hot spot while using a combo box plug-in?
    Is something wrong with the following code.


    <events name="cbbox_scene_update" keep="true"
    onxmlcomplete="layer[cbscenes].selectitem( get(scene[get(xml.scene)].name) );"
    />

    <combobox name="cbscenes" design="vtour" align="righttop" x="10" y="10" onloaded="add_scene_items();" />
    <action name="add_scene_items" scope="local">
    for(set(i,0), i LT scene.count, inc(i),
    caller.additem(calc('[img src=[dq]' + scene[get(i)].thumburl + '[dq] style=[dq]border:1px solid rgba(255,255,255,0.5);width:48px;height:32px;vertical-align:middle;margin-right:8px;[dq]/] '+scene[get(i)].title), calc('loadscene('+i+',null,MERGE,BLEND(0.5))') );
    );
    </action>

    *sad*

Participate now!

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