?
Solved

style a radio button

Posted on 2010-01-11
1
Medium Priority
?
740 Views
Last Modified: 2013-11-11
how do i style a radio button in flash using AS3

i want to be able to use another font and change its color, and possibly its size?
0
Comment
Question by:chefkeifer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 19

Accepted Solution

by:
moagrius earned 2000 total points
ID: 26287468
use the setStyle method with a textformat object, e.g.,
import fl.controls.RadioButton;

var format:TextFormat = new TextFormat("Tahoma",11,0xFF0000);

var bob:RadioButton = new RadioButton();
bob.label = "some label";
bob.setStyle("textFormat", format);
addChild(bob);

Open in new window

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question