Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Quick Question about flash radio buttons

  • 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, Registered Users 2 Posts: 2,643 ✭✭✭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