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

Adobe Cs5 flash, components

New Here ,
Jan 28, 2019 Jan 28, 2019

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?

Views

154

Translate

Translate

Report

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

Votes

Translate

Translate
Community Expert ,
Jan 28, 2019 Jan 28, 2019

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

Votes

Translate

Translate

Report

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

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?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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