SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2006
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    AS3 RadioButtons .setStyleProperty ??

    Hi, just a quickie. In actionScript 3 is there away of setting the colour property of Radio buttons text label? much like the AS2 .setStyleProperty.
    Thanks Jono

  2. #2
    SitePoint Wizard jim_morrison3's Avatar
    Join Date
    Apr 2004
    Location
    UK
    Posts
    2,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In AS3 you have setStyle() method. For your radio button you will be changing the text color like this:

    Code:
    var rb:RadioButton=new RadioButton();
    rb.label="Radio Button Text";
    rb.setStyle("color",0xff00ff);
    Good Luck!
    There are things known and Things unknown
    And in between are the Doors.
    I love hand Coding.


Bookmarks

Posting Permissions

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