Mailing List
Home
Forum Home
Flash Pro
Subjects
Subject: RE: Firework Effect
Web Service Results
Flash Interface with 10mb xml file
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash MX 2004 Sucks
Reading and displaying RSS feeds in Flash MX
Flash and QuickTime VR
Textfield prototype question
XML to Object help
Order of events per frame
MX2004 Dataset itemClassName
memory management removeMovieClip /
Event Dispatcher between classes
Help: MX 2004 How to script a print button to print the entire sli
ScrollPane component doesn 't auto update
setInterval bug identified and fixed
setInterval bug identified and fixed
Listener Object 's best practice
 
Listbox color change..

Listbox color change..

2004-03-14       - By ascode

 Back
Reply:     1     2     3  

Possible cause could be your export settings,
since you are using the halo components check if your export settings
are set to flash player 7 and actionscript version 2.
try something like this:
MP3List.setStyle("color", "0xFF0000");
MP3List.setStyle("fontFamily", "Verdana");
MP3List.setStyle("fontSize", "10");
MP3List.setStyle("themeColor", "haloOrange");

greetz



-- --Oorspronkelijk bericht-- --
Van: Chizl [mailto:flashforum@(protected)]
Verzonden: zondag 14 maart 2004 10:15
Aan: Newbie Flash Forum
Onderwerp: [Flashnewbie] Listbox color change..



Hello..    I'm new to this forum and I'm somewhat a newbie in flash.   I
used to develop in Flash 4 and 5, then as of 3 months ago I was thrown
into Flash MX 2004 and using a lot of ActionScript..

I'm kind of between newbie and somewhat decent, so I figure I would just
sign up here..  :)

Here is what I'm working on at home..
<http://www.chizl.com/music/mp3/> http://www.chizl.com/music/mp3/

It's an MP3 player and I have a lot of it completed..  The problem I'm
having at the moment is changing the color of my Listbox.

Here is what I've tried..

TRY 1:
var s = MP3List.style;
s.color = 0xff0000;
s.fontFamily = "Verdana";
s.fontSize = 5;
s.fontWeight = "bold";
s.applyChanges();

TRY 2:
var myFstyle=new FStyleFormat()
myFstyle.textFont="Verdana"
myFstyle.background=0x00ff00
myFstyle.textSize=5
myFstyle.textColor=0xFF0000
myFstyle.face=0x0000FF
myFstyle.addListener(MP3List)
myFstyle.applyChanges()

TRY 3:
globalStyleFormat.textFont="Verdana"
globalStyleFormat.textSize=5
globalStyleFormat.textColor=0xFF0000
globalStyleFormat.addListener(MP3List)
globalStyleFormat.applyChanges()

TRY 4:
MP3List.setStyleProperty("textColor", 0xFF0000);
MP3List.setStyleProperty("face", 0xFF0000);


As you can see, I have tried just about everything I can find on the
web, but NONE of these seem to do anything not even an error..

Anyone please point me in the right direction??  


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Bericht</TITLE>

<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=522475521-14032004><FONT color=#000080 size=2>Possible cause
could be your export settings, </FONT></SPAN></DIV>
<DIV><SPAN class=522475521-14032004><FONT color=#000080 size=2>since you are
using the halo components check if your export settings are set to flash player
7 and actionscript version 2.</FONT></SPAN></DIV>
<DIV><SPAN class=522475521-14032004><FONT color=#000080 size=2>try something
like this:</FONT></SPAN></DIV>
<DIV><SPAN class=522475521-14032004><FONT color=#000080
size=2>MP3List.setStyle("color", "0xFF0000");<BR>MP3List.setStyle("fontFamily",
"Verdana");<BR>MP3List.setStyle("fontSize",
"10");<BR>MP3List.setStyle("themeColor", "haloOrange");</FONT></SPAN></DIV>
<DIV><SPAN class=522475521-14032004><FONT color=#000080
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=522475521-14032004><FONT color=#000080
size=2>greetz</FONT></SPAN></DIV>
<DIV><SPAN class=522475521-14032004></SPAN>&nbsp;</DIV>
<DIV><SPAN class=522475521-14032004><FONT color=#000080
size=2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
 <DIV></DIV>
 <DIV class=OutlookMessageHeader lang=nl dir=ltr align=left><FONT face=Tahoma
 size=2>-- --Oorspronkelijk bericht-- --<BR><B>Van:</B> Chizl
 [mailto:flashforum@(protected)] <BR><B>Verzonden:</B> zondag 14 maart 2004
 10:15<BR><B>Aan:</B> Newbie Flash Forum<BR><B>Onderwerp:</B> [Flashnewbie]
 Listbox color change..<BR><BR></FONT></DIV><!-- Converted from text/rtf
format -->
 <P><FONT face=Arial size=2>Hello..&nbsp;&nbsp;&nbsp; I'm new to this forum
and
 I'm somewhat a newbie in flash&#8230;&nbsp;&nbsp; I used to develop in Flash
4 and
 5, then as of 3 months ago I was thrown into Flash MX 2004 and using a lot of
 ActionScript..</FONT></P>
 <P><FONT face=Arial size=2>I'm kind of between newbie and somewhat decent, so
 I figure I would just sign up here..&nbsp; :)</FONT> </P>
 <P><FONT face=Arial size=2>Here is what I'm working on at home..</FONT> <BR>
<A
 href="http://www.chizl.com/music/mp3/"><U><FONT face=Arial color=#0000ff
 size=2>http://www.chizl.com/music/mp3/</FONT></U></A> </P>
 <P><FONT face=Arial size=2>It's an MP3 player and I have a lot of it
 completed..&nbsp; The problem I'm having at the moment is changing the color
 of my Listbox.</FONT></P>
 <P><FONT face=Arial size=2>Here is what I've tried..</FONT> </P>
 <P><FONT face=Arial size=2>TRY 1:</FONT> <BR><FONT face=Arial size=2>var s =
 MP3List.style;</FONT> <BR><FONT face=Arial size=2>s.color = 0xff0000;</FONT>
 <BR><FONT face=Arial size=2>s.fontFamily = "Verdana";</FONT> <BR><FONT
 face=Arial size=2>s.fontSize = 5;</FONT> <BR><FONT face=Arial
 size=2>s.fontWeight = "bold";</FONT> <BR><FONT face=Arial
 size=2>s.applyChanges();</FONT> </P>
 <P><FONT face=Arial size=2>TRY 2:</FONT> <BR><FONT face=Arial size=2>var
 myFstyle=new FStyleFormat()</FONT> <BR><FONT face=Arial
 size=2>myFstyle.textFont="Verdana" </FONT><BR><FONT face=Arial
 size=2>myFstyle.background=0x00ff00 </FONT><BR><FONT face=Arial
 size=2>myFstyle.textSize=5</FONT> <BR><FONT face=Arial
 size=2>myFstyle.textColor=0xFF0000 </FONT><BR><FONT face=Arial
 size=2>myFstyle.face=0x0000FF </FONT><BR><FONT face=Arial
 size=2>myFstyle.addListener(MP3List)</FONT> <BR><FONT face=Arial
 size=2>myFstyle.applyChanges()</FONT> </P>
 <P><FONT face=Arial size=2>TRY 3:</FONT> <BR><FONT face=Arial
 size=2>globalStyleFormat.textFont="Verdana"</FONT> <BR><FONT face=Arial
 size=2>globalStyleFormat.textSize=5</FONT> <BR><FONT face=Arial
 size=2>globalStyleFormat.textColor=0xFF0000</FONT> <BR><FONT face=Arial
 size=2>globalStyleFormat.addListener(MP3List)</FONT> <BR><FONT face=Arial
 size=2>globalStyleFormat.applyChanges()</FONT> </P>
 <P><FONT face=Arial size=2>TRY 4:</FONT> <BR><FONT face=Arial
 size=2>MP3List.setStyleProperty("textColor", 0xFF0000);</FONT> <BR><FONT
 face=Arial size=2>MP3List.setStyleProperty("face", 0xFF0000);</FONT> </P><BR>
 <P><FONT face=Arial size=2>As you can see, I have tried just about everything
 I can find on the web, but NONE of these seem to do anything not even an
 error..</FONT></P>
 <P><FONT face=Arial size=2>Anyone please point me in the right
 direction??&nbsp; </FONT></P></BLOCKQUOTE></BODY></HTML>