Customizing Combobox Component

Hi,

I was messing around with the Combobox component last night. Pretty sweet component. I was trying to make it a specific size. It seemed to work, however, when I published it the combobox size would change. Is there a way to keep it from changing size?

Also does anybody know of a good thread or tute on how to skin the component through actionscript?

Did you check the tutes here? :trout:

Did you search the forums, i posted a while ago a website that let you skin your component, and also an actionscript oriented code to skin your components.

I’ll see if i can get the links of the topics for you.

PS. You can search the forums by pressing on the grey button labeled ‘Search’ below the blue header.

Hi guys,

Thanks for the replies. I did check the tutes and did a thread search on combobox. Both of you had some great posts, but I didn’t see the answer to my question.

I think I just found it though. See Below. Looks like you can size the width, but cannot control the height, which is what I was having trouble with.

============================================
FComboBox.setSize

Availability

Flash Player 6.

Usage

myComboBox.setSize(width)

Parameters

width An integer specifying the width of the combo box, in pixels.

Returns

Nothing.

Description

Method; resizes the combo box to the specified width. <b>(You cannot set the height of a combo box component.)</b> Use this method to programmatically resize the combo box and update it at runtime.

Example

The following code sets or resizes the width of menuMain to 100 pixels.

menuMain.setSize(100);