A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: change listbox values setStyle isnt working for me?

Hybrid View

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    8

    change listbox values setStyle isnt working for me?

    Hi guys and gals - flash cs3 here I cant change the compnonent lists font values - in particular the font color...

    I can use this and it works fine

    Code:
    playList.setStyle("contentPadding", 50);
    but this has no effect?!?!

    Code:
    playList.setStyle("color", "red");
    I have looked through the help section which isnt very helpful and have googled around and there isnt much so that makes me think I am missing something.

    Does anyone have a list of styles that can be changed in a list? or a reference to them?

    thanks in advance for any help you can give to this problem

  2. #2
    Junior Member
    Join Date
    Nov 2009
    Posts
    8
    so this is the solution I have found

    Code:
    var colorTextFormat:TextFormat = new TextFormat();
    colorTextFormat.color = 0xFFFFFF;
    colorTextFormat.font = "Arial";
    colorTextFormat.size = 10;
    StyleManager.setStyle("colorTextFormat",colorTextFormat);
    This forum seems a little dead - thats two of my own questions I have answered!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center