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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Quick Question about flash radio buttons

  • 03-04-2006 10: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,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