Some question about combobox..

  • Good day!
    I have a combobox, which must to change language at the panorama. It's described at the file build.xml

    So, how to realize that the language, of hotspots at file build0.xml, will be changed depending of the combobox value.


    And I have a combo box that lets you select the panorama which you want:

    Quote

    ...
    <plugin name="combobox" url="builddata/graphics/combobox.swf" preload="true" alturl="builddata/graphics/combobox.js" keep="true" align="righttop" x="10" y="10" rowcount="10">
    <item name="combobox0" caption="Near Mc-Donalds" onClick="mainloadpano(build0.xml);"/>
    <item name="combobox1" caption="Sagrestia entrance from the street" onClick="mainloadpano(build1.xml);"/>
    <item name="combobox2" caption="Left side view" onClick="mainloadpano(build2.xml);"/>
    </plugin> ...

    How to change the value "caption" by language combobox?
    Codes as:

    Quote

    set(plugin[combobox].combobox0, "caption='another text' ");

    or

    Quote

    set(plugin[combobox].combobox0.caption, "another text");

    not works *sad*

    With regards, Igor.

    Edited 2 times, last by Ukrajinec (November 23, 2012 at 8:47 AM).

  • Hi,

    the combobox plugin isn't designed for dynamically changing the item capitations (especially the Flash version).

    For a multi-language combobox or a combobox with changing items, try fully rebuilding/filling the combobox every time,
    e.g.

    Best regards,
    Klaus

Participate now!

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