if you want to show the first 3 names,just select the first 3 record,and join them into a String object,then bind the String to swf.
FFish Script:
Code:
FlashPlayer.bindData("names");
record = conn.Execute("Select name from table1 where available = 1");
record.MoveFirst();
var names = record.Fields(1).Value.toString();
for (i = 0; i < 2; i ++)
{
record.MoveNext();
names += "||" + record.Fields(1).Value.toString();
}
FlashPlayer.names = names;
FlashPlayer.updateData(false);
in the actionscript:
Code:
var names;
yourArray = new Array();
yourArray = names.split("||");