PDA

View Full Version : customizing the "list component" (text color)


404notfound
04-22-2008, 07:31 PM
Is there a way to change the text color in the list component? Would it be done in action scripting or in the xlm?

Thanks

dr_zeus
04-22-2008, 08:09 PM
Set the textFormat style.

404notfound
04-22-2008, 11:18 PM
Is there a more explanatory way? :confused:

jungoy
05-04-2008, 06:59 AM
Yes, there is a way to change the color in the list component.

First, you give your List Component an instance name, then add the following action script to a frame where your list component is located.

ListComponent-InstanceName.setStyle("color", 0x66CCFF);

ListComponent-InstanceName.setStyle("textRollOverColor", 0xFF0000);

stinkysGTI
03-13-2009, 02:56 AM
I'm trying the same thing with no luck. I'm using Flash v10 and AS3.

I'm loading the list content from an xml file. When I try to add those lines in after changing the instance name to the one I'm using, nothing changes.

I tried putting it in with all the rest of my AS and on a separate layer and on the same layer/frame the list component is on.

Anybody know why it's not working?