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
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);
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
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();
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
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.
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.
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
Don't see what you're looking for? Try a search.
|