  | | | Listbox color change.. | Listbox color change.. 2004-03-14 - By ascode
Back Hi Chizl, could you post a link to ur fla? mark
-- --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=008030016-14032004><FONT color=#000080 size=2>Hi Chizl,</FONT></SPAN></DIV> <DIV><SPAN class=008030016-14032004><FONT color=#000080 size=2>could you post a link to ur fla?</FONT></SPAN></DIV> <DIV><SPAN class=008030016-14032004><FONT color=#000080 size=2></FONT></SPAN> </DIV> <DIV><SPAN class=008030016-14032004><FONT color=#000080 size=2>mark</FONT></SPAN></DIV> <DIV><SPAN class=008030016-14032004></SPAN> </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.. 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..</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.. :)</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.. 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?? </FONT></P></BLOCKQUOTE></BODY></HTML>
|
|
 |