Hi Cap,
OK, drag a list component on to the stage and call it "listBox"
then use this code and mess around with itThere are other bits you can stylise if you look around the web too.PHP Code:listBox.setStyle("backgroundColor","0xEAEAEA");
listBox.setStyle("fontFamily","Arial");
listBox.setStyle("fontSize",20);
listBox.setStyle("rollOverColor","0xDDDDDD");
listBox.setStyle("selectionColor","0xAAAAAA");
listBox.setStyle("textSelectedColor","0xFFFFFF");
listBox.setStyle("textRollOverColor","0xFFFFFF");
listBox.setStyle("selectionDuration",0);
listBox.setStyle("borderStyle","solid");
listBox.setStyle("borderColor","0x999999");
listBox.setStyle("themeColor","0x999999");
listBox.rowHeight = 30;
listBox.rowCount = 5;
var array:Array = new Array("Aardvark", "Buzzard", "Caterpillar", "Duck", "Elephant", "Frog", "Giraffe");
for (var n:Number = 0; n < array.length; n++)
{
listBox.addItem({label:array[n], data:array[n]});
}
Not sure why your other problem is happening





Reply With Quote