Combobox immer Titel anzeigen (resp. item1)

  • Möchte, dass die Combobox immer den ersten Eintrag (resp.Titel anzeigt). Der erste Eintrag ist wie ein Titel für eine Gruppe, danach folgen Namen der Mitglieder. Normal wird der selektierte Name (Hotspot) angezeigt (auch wenn ich selectitem (item1) angebe.
    Wie muss ich nun den Code im xml schreiben, damit immer nur der Titel angezeigt wird? Oder muss ich die fla-Datei anpassen und wie?

    Vielen Dank Felix


    <plugin name="combobox1" url="%SWFPATH%/combobox_sp.swf" align="lefttop" x="150" y="10" width="120" dropdownwidth="120" rowcount="10" blendmode="layer" onloaded="combobox1();" />

    <action name="combobox1">
    removeall();
    additem(WK Allschwil, action(item1) );
    additem(Bamatter Andreas, action(item2) );
    additem(Bieri Armin, action(item3) );
    additem(Fuchs Bea, action(item4) );
    additem(Hecklin Beatrice, action(item5) );
    additem(Morat Niklaus, action(item6) );
    additem(Pfaff Thomas, action(item7) );
    additem(Traunecker Yorick, action(item8) );

    </action>

    <action name="item1">
    looktohotspot(spot3,NULL,NULL,BLEND(3));
    plugin[combobox].selectitem(item1);
    </action>


    <action name="item2">
    looktohotspot(videospot1,NULL,NULL,BLEND(3));
    plugin[combobox].selectitem(item1);


    </action>

    <action name="item3">
    looktohotspot(spot4,NULL,NULL,BLEND(3));
    plugin[combobox].selectitem(item1);

  • Danke Klaus, aber es geht immer noch nicht so, wie ich es möchte. Vielleicht habe ich mich schlecht ausgedrückt.

    Hätte gerne, dass immer der Text des ersten Items angezeigt wird (WK Allschwil) egal welchen Hotspot ich aufgerufen habe.

    In der Zwischenzeit habe ich den Code geändert, da kürzere Schreibweise (bei 90 Listeneinträgen)


    <plugin name="combobox1" url="%SWFPATH%/combobox_sp.swf" align="lefttop" x="150" y="10" width="120" dropdownwidth="120" rowcount="10" blendmode="layer" onloaded="combobox1();" />

    <action name="combobox1">
    removeall();
    addIdItem(11, 'WK Allschwil', looktohotspot(spot0,NULL,NULL,BLEND(3)); );
    addIdItem(12, 'Bamatter Andreas', looktohotspot(spot15,NULL,NULL,BLEND(3)); );
    addIdItem(13, 'Bieri Armin', looktohotspot(spot13,NULL,NULL,BLEND(3)); );
    addIdItem(14, 'Fuchs Bea', looktohotspot(spot14,NULL,NULL,BLEND(3)); );
    addIdItem(15, 'Hecklin Beatrice', looktohotspot(spot16,NULL,NULL,BLEND(3)); );
    addIdItem(16, 'Morat Niklaus', looktohotspot(spot17,NULL,NULL,BLEND(3)); );
    addIdItem(17, 'Pfaff Thomas', looktohotspot(spot12,NULL,NULL,BLEND(3)); );
    addIdItem(18, 'Traunecker Yorick', looktohotspot(spot18,NULL,NULL,BLEND(3)); );
    selectIdItem(WK Allschwil);
    </action>

Jetzt mitmachen!

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