I am creating some dynamic checkboxes from the results of a database read to sqlite. I am able to get the data and the correct number of checkboxes is being created but I'm having a problem populating the labels for the checkboxes. Here is the section of code that gets the results from the database and creates the checkboxes.
var result:Array = stmt.getResult().data;
for each( var obj:Object in result )
var cb:CheckBox = new CheckBox();
cb.label = obj.toString();
This was answered on another forum for me.
The line cb.label = obj.toString();
needed to be changed to the data.
myDatabaseFieldName would be whatever column you are pulling the data in from and should be the actual name in the table.