Skip to main content
Participant
January 28, 2019
Answered

Adobe Cs5 flash, components

  • January 28, 2019
  • 1 reply
  • 312 views

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?

This topic has been closed for replies.
Correct answer JoãoCésar17023019

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

1 reply

JoãoCésar17023019
Community Expert
JoãoCésar17023019Community ExpertCorrect answer
Community Expert
January 28, 2019

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

msa4769Author
Participant
January 29, 2019

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?

JoãoCésar17023019
Community Expert
Community Expert
January 29, 2019

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