Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-22-2008, 07:31 PM   #1
404notfound
Registered User
 
Join Date: Dec 2005
Posts: 38
Question customizing the "list component" (text color)

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
404notfound is offline   Reply With Quote
Old 04-22-2008, 08:09 PM   #2
dr_zeus
Feathers
 
dr_zeus's Avatar
 
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,999
Default

Set the textFormat style.
__________________
Josh Tynjala | Feathers
dr_zeus is offline   Reply With Quote
Old 04-22-2008, 11:18 PM   #3
404notfound
Registered User
 
Join Date: Dec 2005
Posts: 38
Question

Is there a more explanatory way?
404notfound is offline   Reply With Quote
Old 05-04-2008, 06:59 AM   #4
jungoy
Simplifying Complexity
 
jungoy's Avatar
 
Join Date: May 2008
Posts: 98
Default

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);
jungoy is offline   Reply With Quote
Old 03-13-2009, 02:56 AM   #5
stinkysGTI
Registered User
 
Join Date: Jun 2007
Posts: 7
Default

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?
stinkysGTI is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you something like this ... newttyy HTML and JavaScript 1 10-15-2007 09:02 PM
Dynamic Text Typing Effect, in Color jballou ActionScript 2.0 3 08-10-2006 04:20 PM
change color of text in an input text box rhammel Other Flash General Questions 1 06-02-2006 05:57 PM
How would I script a text color change within a Movie Clip? Dave At ADC ActionScript 2.0 8 09-19-2005 01:54 PM
Quick color object question JEBoothjr ActionScript 1.0 (and below) 6 08-06-2003 05:04 PM


All times are GMT. The time now is 07:19 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.