PDA

View Full Version : [AS2] listbox component rollOver


mcgrailm
09-17-2008, 07:43 PM
I have a listbox filled with data and i am using the following code to customize it

list_box.useRollOver = true;
list_box.selectedIndex = 0;
list_box.fontStyle = "Ariel";
list_box.fontSize = 8;
list_box.selectionColor = "0x999966";
list_box.rollOverColor = "0x6E7743";
list_box.textSelectedColor = "0xFFFFFF";
list_box.backgroundColor = "0xBEBEB1";


this all works fine except ... the rollOverColor doesn't stay when I hover over a particular item in in the list, does anyone know why that is ?

Mike

mcgrailm
09-17-2008, 08:02 PM
I have a listbox filled with data and i am using the following code to customize it

list_box.useRollOver = true;
list_box.selectedIndex = 0;
list_box.fontStyle = "Ariel";
list_box.fontSize = 8;
list_box.selectionColor = "0x999966";
list_box.rollOverColor = "0x6E7743";
list_box.textSelectedColor = "0xFFFFFF";
list_box.backgroundColor = "0xBEBEB1";


this all works fine except ... the rollOverColor doesn't stay when I hover over a particular item in in the list, does anyone know why that is ?

Mike

jasonJ
09-17-2008, 08:08 PM
Well the onRollOver color stays here. I've tried with the exact code of yours (see the attachment)

mcgrailm
09-17-2008, 08:46 PM
yes indeed it does.... thank you that helped me realize there was a bug in my code I was rapidly setting the index which was causing the problem..

mike