Copy link to clipboard
Copied
I am using readymade components from flash. From the menu bar window, components library. I am using the radio button and combo box. I wish to change the font size on the labels. Stretching and transforming does not increase the font size. What could i do?
Hi.
You're goinna need ActionScript for this.
Please read this Ned Murphy​​'s answer:
Is there a way to Set Font Style to Label or Button components?
Regards,
JC
Copy link to clipboard
Copied
Hi.
You're goinna need ActionScript for this.
Please read this Ned Murphy​​'s answer:
Is there a way to Set Font Style to Label or Button components?
Regards,
JC
Copy link to clipboard
Copied
Thank you. This code works for a radio button label. I wish to also increase the size of the font for cs5 flash components for a combo box. I have tried the code above but it does not increase the size of font label in the combo box. How do i go about doing this?
Copy link to clipboard
Copied
Hi.
Please have a look at this answer:
actionscript 3 - ComboBox Text Formatting through AS3 - Stack Overflow​
Alright well the ComboBox is a container which contains the TextField and the DropDown List. So you can't directly apply the setStyle on ComboBox itself rather you need to apply it to the specific element inside the ComboBox.
import flash.text.TextFormat;
//Text Formats that needs to be applied on your comboBox
var txtformat:TextFormat = new TextFormat();
txtformat.size = 30;
//Lets just increase the size of fonts
//Increase the main TextField's font size of your ComboBox
yourComboBox.textField.setStyle("textFormat", txtformat);
//Increase the font size of dropDownList items
yourComboBox.dropdown.setRendererStyle("textFormat", txtformat);
I hope this helps.
Regards,
JC