Groups | Blog | Home
all groups > flash (macromedia) > march 2004 >

flash (macromedia) : Radio Button Customization


brett2_UMBC
3/5/2004 11:18:09 PM
I'm looking for a way to customize the text, color, and size of a radio button
in my flash presentation. I only ask because I have a dark background, and
need a light text. Thanks for the help.

~Brett
Jack.
3/5/2004 11:24:06 PM
apply a style format to the instance names of your radiobuttons,

aformat = new FStyleFormat();
aformat.textColor = 0x59DF60;
aformat.textSize = 18;
aformat.textIndent = 10;

aformat.applyChanges();
aformat.addListener(rb1,rb2,rb3,rb22);

brett2_UMBC
3/6/2004 1:41:24 AM
Ok, so when you say:

aformat = new FStyleFormat();
aformat.textColor = 0x59DF60;
aformat.textSize = 18;
aformat.textIndent = 10;

aformat.applyChanges();
aformat.addListener(rb1,rb2,rb3,rb22); <--This Line

is there an easier way to state ALL radio buttons should receive that format?
I will have 140 radio buttons within my movie, and I want them all to look the
same. How can this effect be achieved?

~Brett
Jack.
3/6/2004 1:02:34 PM
apply a global style format, note that this will affect all components,

function setGS(){
globalStyleFormat.face = 0x7DC6BD;
globalStyleFormat.highlight3D = 0x7DC6BD;
globalStyleFormat.textIndent = 10;
globalStyleFormat.textSize = 18;
globalStyleFormat.textColor = 0x59DF60;
globalStyleFormat.applyChanges();
};
setGS();
brett2_UMBC
3/6/2004 4:53:58 PM
Ok, I understand that. Thank you.

My only question is in your styleface, and textcolor you have 0xZZZZZZ. How
do I get those numbers and letters so that I get the look and feel of what i
want?

~Brett
Jack.
3/6/2004 5:35:11 PM
0xZZZZZZ is the hex of the color you set,
open the Color Mixer, click inside the color panel
and drag the lightness/darkness handle to see
the hex number for that color. apply it to your format.

brett2_UMBC
3/6/2004 6:21:07 PM
Ok, so it's still not working.

Is the OxZZZZZZ number the RGB or is it the normal #00FF00 you would use in
HTML font coloring?

Also, where can I find the .face hex numbers to change the font? (<-- if it's
possible)

Thanks.

Jack.
3/6/2004 7:39:10 PM
there are large sections dedicated to the info you seek,

Working with Color > Working with color overview
Working with Color > Working with solid colors and gradient fills in the Color
Mixer
Creating Interaction with ActionScript > Creating complex interactivity >
Setting color values
Working with Text > Setting text attributes > Choosing a font, point size,
style, and color
Using Components > Customizing component colors and text > Changing properties
of all Flash UI components

all in the Help Files (MX) ,
hth
AddThis Social Bookmark Button