I have a button that creates new combo boxes with dataproviders. I can hard code things and create combo-boxes as much as I want but thats a little silly. I need to dynamically create new combo boxes and then reference them for hooking up the data providers and getting results etc.
I have figured out how to create dynamic variable names. For instance: this["cbx" + counter].x = xValue; this["cbx" + counter].addEventListener(FlexEvent.CREATION_COMPLETE,createRemoteObject); this["cbx" + counter].labelField = "Label"; addChild(this["cbx" + counter]); The problem is that I cant figure out how to dynamically create a new ComboBox. This is as far as I can get (and its wrong) this["cbx" + counter]:ComboBox = new ComboBox(); brad

