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:

    Zitat

    ...
    <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:

    Zitat

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

    or

    Zitat

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

    not works *sad*

    With regards, Igor.

    2 Mal editiert, zuletzt von Ukrajinec (23. November 2012 um 08:47)

  • 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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!