Skip to content Flash-fx website
flash-fx logo image1
flash-fx logo image2
Simple solutions to complex problems. Historical swordsmanship Great online resource and forums relating to Maya and 3D.
Home << Tutorials << Flash << Combobox

Flash Combobox (MX 2004)

Defaulting selectedIndex in Combobox to be displayed

Problem

Loaded content into a Combobox but now need to display the default values in a form without having to manually select the 1st option.

Solution

You need to use dispatchEvent to fire the command.
Example below shows a combobox which has a resultset added to it (dataProvider). Then a change function is added but we need to fire the event straight away to populate the textinput and textarea components: