Is it possible to load the source of an mx:Model at run time?
I need the dataProvider for a comboBox to be an XML file loaded at
runtime. I know how to load an XML file, but setting the
dataProvider of the comboBox to the loaded XML doesn't seem to
work. All help is appreciated.
"setting the dataProvider of the comboBox to the loaded XML "
That is the correct way to go. mx:Model is rarely worth while.
Note: the list-based components dataProviders require a list
or array or collection datatype.
Set resultFormat="e4x", it defaults to "object", which yu do
not want. Use a result handler to assign the XMLList directly to
the ComboBox dataProvider. You will probably need to specify a
labelField, or use a label function.