Hello Forrest,
after tweaking "itemdatapath", "valuedatapath" and "textdatapath", you'll get the desired results:

 <datacombobox id="combobox" itemdatapath="test:/moods/mood"
                 valuedatapath="name/@value" textdatapath="name/text()"
                 bgcolor="#787e8d" defaulttext="Mood 1" width="150" y="4">
   <handler name="onselect">
     Debug.write( "Selecting mood: " + this.getValue());
   </handler>
 </datacombobox>

Best Regards,
 André Bargull
Hi All:

    So when I run the following, the datacombox is first non responsive (Flash 
9 player on SLED 10), then when it does respond, only Mood 1 and Mood 2 get 
written when they are selected.  Did I miss something?

    Thanks

    Forrest
------------------------------------------------------------


<canvas debug="true">
  <dataset name="test">
    <moods>
      <mood>
        <name value="Mood 1">Mood 1</name>
      </mood>
      <mood>
        <name value="Mood 2">Mood 2</name>
      </mood>
      <mood>
        <name value="Mood 3">Mood 3</name>
      </mood>
      <mood>
        <name value="Mood 4">Mood 4</name>
      </mood>
    </moods>
  </dataset>
  <datacombobox id="combobox" itemdatapath="test:/moods/mood/name" bgcolor="#787e8d" defaulttext="Mood 
1" width="150" y="4">
    <handler name="onselect">
      Debug.write( "Selecting mood: " + this.getValue());
    </handler>
  </datacombobox>
</canvas>

Reply via email to