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

How to set comboBox borderThickness

Participant ,
Apr 24, 2023 Apr 24, 2023

Copy link to clipboard

Copied

I can set most of the parameters of a comboBox, cb, by setting the attribute directly on the object, such as:
cb.rowHeight = 30;

cb.alpha = 100;

for row height and alpha respectively. But for other attributes such as bordercolor and thickness, it seems to use a setStyle function. So it compiles with:

cb.setStyle("borderColor", 0x75aa75);
cb.setStyle("borderThickness", 10);

but it doesn't seem to cause any change. Does it need some other method?

Views

2.0K

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

Participant , Apr 26, 2023 Apr 26, 2023

Ok. Not sure why that useful control of a comboBox appearance isn't available in AS3, but that will help avoid future confusion. Thanks.

Votes

Translate

Translate
Community Expert ,
Apr 24, 2023 Apr 24, 2023

Copy link to clipboard

Copied

that looks like you're trying to style the list component part of the combobox.  is that correct?

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
Participant ,
Apr 24, 2023 Apr 24, 2023

Copy link to clipboard

Copied

It's the actual button I'm trying to style, the idle state before the drop down appears. Is there a path to that border, button width and color?

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 ,
Apr 24, 2023 Apr 24, 2023

Copy link to clipboard

Copied

then you may want to edit the combobox skins (up, over, down):

 

from, https://help.adobe.com/en_US/as3/components/WS5b3ccc516d4fbf351e63e3d118a9c65b32-7f1c.html

 

ComboBox skins

You can change the color of the Up skin to change the color of the component in its inactive state on the Stage.

  1. Create a new Flash file (ActionScript 3.0) document.

  2. Drag the ComboBox component to the Stage.

  3. Double-click it to open its palette of skins.

  4. Double-click the Up skin until it is selected and open for editing.

  5. Set the zoom control to 400%.

  6. Click the center area of the skin until its color appears in the Fill color picker in the Property inspector.

  7. Select color #33FF99 using the Fill color picker to apply it to the Up skin.

  8. Click the Back button at the left side of the edit bar above the Stage to return to document-editing mode.

  9. Select Control > Test Movie.

    The ComboBox should appear on the Stage as shown in the following illustration.

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
Participant ,
Apr 24, 2023 Apr 24, 2023

Copy link to clipboard

Copied

Ok, that lets me set the border color and I see the other options for alignent, but I don't see any controls for the border width, or the downarrow button color or width. Are those also accessible in this interface?

ComboSub.jpgUpskin.jpg

Producing this with a specified border color, but too thin and without matching the pulldown button:

Resulting button.jpg

Trying to get to this:

ComboBoxButton.jpg

There seems to be alot of relevant options here: https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/controls/ComboBox.html

Are they only for the drop down rows? Expressions like cb.setStyle("borderThickness", 10), using setStyle seem recognized, but don't produce any visible results.

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 ,
Apr 25, 2023 Apr 25, 2023

Copy link to clipboard

Copied

it's probably easier to just create a movieclip that looks and does exactly what you want.

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
Participant ,
Apr 25, 2023 Apr 25, 2023

Copy link to clipboard

Copied

So the setStyle doesn't apply to this version on the comboBox? That seemed to have the applicable parameters, including the borderwidth.

https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/ComboBox.html

Is that an option only for Flex, and not Flash? Is there not a corresponding attribute for the same comboBox component in AS3? The compiler seems to accept it, but the assigment doesn't change anything. There seems to be overlap between Flex and Flash, and I guess some Flex structures are recognized but ignored.

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 ,
Apr 25, 2023 Apr 25, 2023

Copy link to clipboard

Copied

yes that looks applicable to the flex combobox.

 

mouseover products and check flash pro only.  i don't think you'll see mx stuff anymore.

 

kglad_0-1682454449330.png

 

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
Participant ,
Apr 26, 2023 Apr 26, 2023

Copy link to clipboard

Copied

Ok. Not sure why that useful control of a comboBox appearance isn't available in AS3, but that will help avoid future confusion. Thanks.

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 ,
Apr 26, 2023 Apr 26, 2023

Copy link to clipboard

Copied

LATEST

you're welcome.

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