Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Quick Question about flash radio buttons

Options
  • 03-04-2006 11:03pm
    #1
    Closed Accounts Posts: 8


    I am trying to figure out something. I know it must be very simple if you know what your doing. I am trying to change the colour of the radio button's label/caption. I don't see anything in the component inspector. Do i need to write some actionscript?
    :rolleyes: ;):o:p:D :eek: :( :mad: :cool: :confused:


Comments

  • Registered Users Posts: 2,647 ✭✭✭impr0v


    You can't "hard" edit it as you would another movie clip in the library (well you can, but it's a long process), however you can easily change its properties using actionscript.

    For example, if your button instance was called 'myButton', the following code attached to a keyframe would change the text color to red:
    myButton.setStyle("color", 0xFF0000);
    
    or
    myButton.setStyle("color", "red");
    
    (the latter method will only work for a number of default colors)

    You can set other properties in the same way, e.g.:
    myButton.setStyle("fontFamily", "Arial");
    myButton.setStyle("fontSize", 16);
    myButton.setStyle("fontWeight", "bold");
    

    For more information see the Macromedia Livedoc on the subject.


Advertisement