Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Adobe Cs5 flash, components

New Here ,
Jan 28, 2019 Jan 28, 2019

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?

268
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 28, 2019 Jan 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

Translate
Community Expert ,
Jan 28, 2019 Jan 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 29, 2019 Jan 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 29, 2019 Jan 29, 2019
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines