all groups > flash actionscript > may 2004 >
You're in the

flash actionscript

group:

Radiobutton, Checkbox Costumizing Fonts



Radiobutton, Checkbox Costumizing Fonts ob112 NO[at]SPAM web.de
5/15/2004 5:59:12 PM
flash actionscript: Hello, very easy question, but seems to be impossible:

I want to change the Font of the labels of the
standard Radiobuttons and Checkboxes,
but does not work. (e.g. myRadioButton.setProperty)

now the labes have something Arial, 10p Font black. Where is that
written and how can one change it?

Thanks,

Re: Radiobutton, Checkbox Costumizing Fonts Jack.
5/16/2004 10:17:23 AM
in MX, apply a FStyleFormat

aformat = new FStyleFormat();
aformat.textColor = 0x59DF60;
aformat.textSize = 18;
aformat.textIndent = 10;
aformat.textFont = "myFont"; /* Linkage ID of New Font in Library */

aformat.applyChanges();
aformat.addListener(rb1,rb2,rb3,rb44); // instance names

hth

Re: Radiobutton, Checkbox Costumizing Fonts ob112 NO[at]SPAM web.de
5/17/2004 12:30:07 AM
Thank you, but this does not work.

aformat = new FStyleFormat(); yields in "undefined"

seems, it does not have FStyleFormat! do I need an import?
which?

Thank you, Oliver

[quoted text, click to view]
Re: Radiobutton, Checkbox Costumizing Fonts ob112 NO[at]SPAM web.de
5/17/2004 12:34:47 AM
Thank you, but this does not work.

aformat = new FStyleFormat(); yields in "undefined"

seems, it does not have FStyleFormat! do I need an import?
which?

Thank you, Oliver

[quoted text, click to view]
Re: Radiobutton, Checkbox Costumizing Fonts Jack.
5/17/2004 3:35:03 PM
the answer i gave will work in Flash6 MX,
AddThis Social Bookmark Button